diff options
author | 2015-10-11 11:26:48 +0200 | |
---|---|---|
committer | 2015-10-11 11:32:18 +0200 | |
commit | 109d6b4f673a249aea4deeb0cdb5b54a21592410 (patch) | |
tree | ec3589a50dac5be54ef6248d1e0ff3a9fd3b41b4 /dev-util | |
download | mv-109d6b4f673a249aea4deeb0cdb5b54a21592410.tar.gz mv-109d6b4f673a249aea4deeb0cdb5b54a21592410.tar.bz2 mv-109d6b4f673a249aea4deeb0cdb5b54a21592410.zip |
Clear history for egencache --repo=mv --update-changelogs
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/ccache/ccache-99999999-r3.ebuild | 73 | ||||
-rw-r--r-- | dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch | 21 | ||||
-rw-r--r-- | dev-util/ccache/files/ccache-3.1.7-no-perl.patch | 15 | ||||
-rw-r--r-- | dev-util/ccache/files/ccache-config-3 | 97 | ||||
-rw-r--r-- | dev-util/ccache/metadata.xml | 12 | ||||
-rw-r--r-- | dev-util/diffhelp/Manifest | 1 | ||||
-rw-r--r-- | dev-util/diffhelp/diffhelp-1.9.ebuild | 29 | ||||
-rw-r--r-- | dev-util/diffhelp/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/mv_perl/Manifest | 1 | ||||
-rw-r--r-- | dev-util/mv_perl/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/mv_perl/mv_perl-2.49.ebuild | 37 | ||||
-rw-r--r-- | dev-util/pyrep/Manifest | 1 | ||||
-rw-r--r-- | dev-util/pyrep/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/pyrep/pyrep-1.4-r1.ebuild | 33 |
14 files changed, 368 insertions, 0 deletions
diff --git a/dev-util/ccache/ccache-99999999-r3.ebuild b/dev-util/ccache/ccache-99999999-r3.ebuild new file mode 100644 index 00000000..0d9fed91 --- /dev/null +++ b/dev-util/ccache/ccache-99999999-r3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +WANT_LIBTOOL=none +EGIT_REPO_URI="git://git.samba.org/ccache.git" +inherit autotools eutils git-r3 readme.gentoo + +DESCRIPTION="fast compiler cache" +HOMEPAGE="http://ccache.samba.org/" + +SRC_URI="" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="app-arch/xz-utils + sys-libs/zlib" +RDEPEND="${DEPEND} + sys-apps/gentoo-functions" + +src_prepare() { + # make sure we always use system zlib + rm -rf zlib || die + epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609 + epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178 + sed \ + -e "/^EPREFIX=/s:'':'${EPREFIX}':" \ + "${FILESDIR}"/ccache-config-3 > ccache-config || die + epatch_user + eautoreconf +} + +src_install() { + DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt ) + default + + dobin ccache-config + + DOC_CONTENTS=" +To use ccache with **non-Portage** C compiling, add +'${EPREFIX}/usr/lib/ccache/bin' to the beginning of your path, before '${EPREFIX}/usr/bin'. +Portage 2.0.46-r11+ will automatically take advantage of ccache with +no additional steps. If this is your first install of ccache, type +something like this to set a maximum cache size of 2GB: +# ccache -M 2G +If you are upgrading from an older version than 3.x you should clear all of your caches like so: +# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C +ccache now supports sys-devel/clang and dev-lang/icc, too!" + + readme.gentoo_create_doc +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]] ; then + "${EROOT}"/usr/bin/ccache-config --remove-links + "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST} + fi +} + +pkg_postinst() { + "${EROOT}"/usr/bin/ccache-config --install-links + "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST} + + # nuke broken symlinks from previous versions that shouldn't exist + rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die + rm -rf "${EROOT}"/usr/lib/ccache.backup || die + + readme.gentoo_print_elog +} diff --git a/dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch b/dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch new file mode 100644 index 00000000..5e502912 --- /dev/null +++ b/dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/56178 + +stick to the size of files on disk rather than their byte size. +this func is only used for stats management, so this should be safe. + +--- a/util.c ++++ b/util.c +@@ -845,12 +845,7 @@ file_size(struct stat *st) + #ifdef _WIN32 + return (st->st_size + 1023) & ~1023; + #else +- size_t size = st->st_blocks * 512; +- if ((size_t)st->st_size > size) { +- /* probably a broken stat() call ... */ +- size = (st->st_size + 1023) & ~1023; +- } +- return size; ++ return st->st_blocks * 512; + #endif + } + diff --git a/dev-util/ccache/files/ccache-3.1.7-no-perl.patch b/dev-util/ccache/files/ccache-3.1.7-no-perl.patch new file mode 100644 index 00000000..5abd15e1 --- /dev/null +++ b/dev-util/ccache/files/ccache-3.1.7-no-perl.patch @@ -0,0 +1,15 @@ +avoid weak perl usage in tests + +https://bugs.gentoo.org/421609 + +--- a/test.sh ++++ b/test.sh +@@ -1466,7 +1466,7 @@ + mkdir -p $dir + i=0 + while [ $i -lt 10 ]; do +- perl -e 'print "A" x 4017' >$dir/result$i-4017.o ++ printf '%4017s' '' | tr ' ' 'A' >$dir/result$i-4017.o + touch $dir/result$i-4017.stderr + touch $dir/result$i-4017.d + if [ $i -gt 5 ]; then diff --git a/dev-util/ccache/files/ccache-config-3 b/dev-util/ccache/files/ccache-config-3 new file mode 100644 index 00000000..7f604f00 --- /dev/null +++ b/dev-util/ccache/files/ccache-config-3 @@ -0,0 +1,97 @@ +#!/bin/sh +# +# ccache-config - helper script for ccache and its ebuild +# +# Copyright 2003-2014 Superlucidity Services, LLC +# Copyright 2013-2014 Gentoo Foundation +# This program licensed under the GNU GPL version 2. +# +# This script developed by Zachary T Welch at Superlucidity Services, LLC +# it was cloned from the distcc-config script +# +# Additional features to come; this provides a starting point + +EPREFIX='' + +. "${EPREFIX}"/lib/gentoo/functions.sh 2>/dev/null || { + ebegin() { echo " * $* ..."; } + eend() { + local r=${1:-$?} + [ ${r} -eq 0 ] && echo " [ OK ]" || echo " [ !! ]" + return $r + } +} + +LIBDIR="lib" + +# this should be getopt'd someday (override with CC_QUIET=1) +CC_VERBOSE=1 +unset _CC_QUIET +c_quiet() { + [ -n "${CC_QUIET:-${_CC_QUIET}}" ] || [ -z "${CC_VERBOSE}" ] +} + +c_ebegin() { c_quiet || ebegin "$@" ; } +c_eend() { c_quiet || eend "$@" ; } + +### +# the following functions manage the ccache symlinks +# they allow the user or other scripts (namely gcc-config) to +# automatically update ccache's links when upgrading toolchains +# +cc_path() { + echo ${ROOT%/}${EPREFIX}/usr/${LIBDIR}/ccache/bin/$1 +} +cc_remove_link() { + local t=$(cc_path "$1") + if [ -L ${t} ]; then + c_ebegin "Removing ${t}" + rm -f "${t}" + c_eend + + # Trim the empty dir if possible. #517242 + t=${t%/*} + if rmdir "${t}" 2>/dev/null; then + rmdir "${t%/*}" 2>/dev/null + fi + : + fi +} +cc_install_link() { + # Search the PATH for the specified compiler + # then create shadow link in /usr/lib/ccache/bin to ccache + + if command -v "$1" >/dev/null ; then + # first be sure any old link is removed + _CC_QUIET=1 + cc_remove_link "$1" + unset _CC_QUIET + + # then create the new link + local t=$(cc_path "$1") + c_ebegin "Creating ccache shadow link ${t}" + mkdir -p -m 0755 "${t%/*}" && ln -s "${EPREFIX}"/usr/bin/ccache "${t}" + c_eend + fi +} +cc_links() { + local a + for a in gcc cc c++ g++ icc icpc clang clang++ ; do + "cc_${1}_link" "${2}${2:+-}${a}" + done +} + +### +# main routine + +case $1 in + --install-links ) + cc_links install "$2" + ;; + --remove-links ) + cc_links remove "$2" + ;; + * ) + echo "usage: $0 {--install-links|--remove-links} [ CHOST ]" + ;; +esac diff --git a/dev-util/ccache/metadata.xml b/dev-util/ccache/metadata.xml new file mode 100644 index 00000000..21bd7702 --- /dev/null +++ b/dev-util/ccache/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>toolchain</herd> + <maintainer> + <email>robbat2@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + ccache acts as a caching pre-processor to C/C++ compilers, improving + compilation time when recompiling previously compiled source. + </longdescription> +</pkgmetadata> diff --git a/dev-util/diffhelp/Manifest b/dev-util/diffhelp/Manifest new file mode 100644 index 00000000..86306f98 --- /dev/null +++ b/dev-util/diffhelp/Manifest @@ -0,0 +1 @@ +DIST diffhelp-1.9.tar.gz 1974 SHA256 b01883002d797c3d9d7e1268b66e24ef36e02642339151c3ad05645da5b69a06 SHA512 ea2ffa07041a28545facd6a626ab49c1853f2e32e64f05ba52cbb7afe8243f60474c48f46b853e99008d20fc4bebea70ee6516bfc794a9c601b786fa006dd0d1 WHIRLPOOL af924437aef7f58282606ed294c45d526fb7022f500cae9eb3acb9e589c7499b5a49ccff62f18f10548c4e3f70b95bbc13f0f5d67d18aa09aef06f322be38812 diff --git a/dev-util/diffhelp/diffhelp-1.9.ebuild b/dev-util/diffhelp/diffhelp-1.9.ebuild new file mode 100644 index 00000000..f3539c9c --- /dev/null +++ b/dev-util/diffhelp/diffhelp-1.9.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +RESTRICT="mirror" +inherit eutils + +DESCRIPTION="A frontend, beautifier, and path-fixer for diff -u" +HOMEPAGE="https://github.com/vaeth/diffhelp/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + use prefix || sed -i \ + -e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \ + -- "${PN}" || die + epatch_user +} + +src_install() { + dobin "${PN}" + insinto /usr/share/zsh/site-functions + doins "_${PN}" +} diff --git a/dev-util/diffhelp/metadata.xml b/dev-util/diffhelp/metadata.xml new file mode 100644 index 00000000..a6ce60d0 --- /dev/null +++ b/dev-util/diffhelp/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> + <upstream> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> + <bugs-to>mailto:martin@mvath.de</bugs-to> + <remote-id type="github">vaeth/diffhelp</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/mv_perl/Manifest b/dev-util/mv_perl/Manifest new file mode 100644 index 00000000..bc96c0ae --- /dev/null +++ b/dev-util/mv_perl/Manifest @@ -0,0 +1 @@ +DIST mv_perl-2.49.tar.gz 66965 SHA256 f3554df1ca22431c45e1942127ee1ee771b9ef4be4606a276f9a3b146bfc36d4 SHA512 911390eb995e4b881a2944608e9917d197f4d16e983b131d8523d460b73233a5a4d3f71d0df7f33382e9b022b1f812880619994e61071756d93ad362cd0ce8aa WHIRLPOOL a82576ef7c8c8884e7d6d3f429e569a5cd0ccb7b21d5374856f6d969c7a49f1361faeac58cee34c5dc759134de17abf9f97d44542e39293dc9f16f8c40ce34b7 diff --git a/dev-util/mv_perl/metadata.xml b/dev-util/mv_perl/metadata.xml new file mode 100644 index 00000000..6b63165a --- /dev/null +++ b/dev-util/mv_perl/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> + <upstream> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> + <bugs-to>mailto:martin@mvath.de</bugs-to> + <remote-id type="github">vaeth/mv_perl</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/mv_perl/mv_perl-2.49.ebuild b/dev-util/mv_perl/mv_perl-2.49.ebuild new file mode 100644 index 00000000..83f2adcd --- /dev/null +++ b/dev-util/mv_perl/mv_perl-2.49.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +RESTRICT="mirror" +inherit eutils + +DESCRIPTION="A collection of perl scripts (replacement in files, syncing dirs etc)" +HOMEPAGE="https://github.com/vaeth/mv_perl/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.12" +# || ( >=dev-lang/perl-5.9.4 >=virtual/perl-File-Spec-3.0 ) +# || ( >=dev-lang/perl-5.6.1 >=virtual/perl-Getopt-Long-2.24 ) +# || ( >=dev-lang/perl-5.7.3 virtual/perl-Digest-MD5 ) +# || ( >=dev-lang/perl-5.7.3 virtual/perl-Time-HiRes ) + +src_prepare() { + epatch_user +} + +src_install() { + dobin bin/* + dodoc README + insinto /usr/share/zsh/site-functions + doins zsh/_* +} + +pkg_postinst() { + optfeature "support to set timestamps of symlinks" 'dev-perl/File-lchown' +} diff --git a/dev-util/pyrep/Manifest b/dev-util/pyrep/Manifest new file mode 100644 index 00000000..516923ed --- /dev/null +++ b/dev-util/pyrep/Manifest @@ -0,0 +1 @@ +DIST pyrep-1.4.tar.gz 8622 SHA256 8051593becdd43ceaa3e0602f4d20c02f85b70233d443147ffbbb9ab715451f4 SHA512 9038b6368930628488f5e47a08262c9a51aec20172e8528d199d113653e445d37a69d4f07c00087cc8359e04fcf864ea72c749d9552b580d8f38ff62d8ec55f7 WHIRLPOOL 7a752cde3c1e84d2900dd3704ef2bdfb72ae06741c801cbcc6c3b11decf88674a108dce704dd4038a5e9c9b21c6b45d37a9e10fadc9853748f8c0bfb0f121fe9 diff --git a/dev-util/pyrep/metadata.xml b/dev-util/pyrep/metadata.xml new file mode 100644 index 00000000..d9f498ac --- /dev/null +++ b/dev-util/pyrep/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> + <upstream> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> + <bugs-to>mailto:martin@mvath.de</bugs-to> + <remote-id type="github">vaeth/pyrep</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/pyrep/pyrep-1.4-r1.ebuild b/dev-util/pyrep/pyrep-1.4-r1.ebuild new file mode 100644 index 00000000..c10ea901 --- /dev/null +++ b/dev-util/pyrep/pyrep-1.4-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +RESTRICT="mirror" +PYTHON_COMPAT=( jython2_7 pypy{,3} python{2_7,3_{4,5}} ) +inherit eutils python-single-r1 + +DESCRIPTION="Search and/or replace regular expressions within many files interactively" +HOMEPAGE="https://github.com/vaeth/pyrep/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RDEPEND="${PYTHON_DEPS}" + +src_prepare() { + python_fix_shebang "${S}" + use prefix || sed -i \ + -e '1s"^#!/usr/bin/env python$"#!'"${EPREFIX}/usr/bin/python"'"' \ + -- "${PN}" || die + epatch_user +} + +src_install() { + dobin "${PN}" + dodoc AUTHORS README +} |