summaryrefslogtreecommitdiff
path: root/app-portage/gentoolkit-dev
diff options
context:
space:
mode:
Diffstat (limited to 'app-portage/gentoolkit-dev')
-rw-r--r--app-portage/gentoolkit-dev/Manifest10
-rw-r--r--app-portage/gentoolkit-dev/files/gentoolkit-dev-0.2.8.3-tests.patch25
-rw-r--r--app-portage/gentoolkit-dev/gentoolkit-dev-0.2.8.3-r1.ebuild57
-rw-r--r--app-portage/gentoolkit-dev/gentoolkit-dev-0.3.0.ebuild86
-rw-r--r--app-portage/gentoolkit-dev/gentoolkit-dev-0.3.1.ebuild87
-rw-r--r--app-portage/gentoolkit-dev/metadata.xml15
6 files changed, 280 insertions, 0 deletions
diff --git a/app-portage/gentoolkit-dev/Manifest b/app-portage/gentoolkit-dev/Manifest
new file mode 100644
index 000000000000..5d69eff91dca
--- /dev/null
+++ b/app-portage/gentoolkit-dev/Manifest
@@ -0,0 +1,10 @@
+AUX gentoolkit-dev-0.2.8.3-tests.patch 897 SHA256 993cf921d0e03806199fee9734a656559a6d7bf20b4427a2ef11f578cff3dc65 SHA512 0b5f3555a8374c1765770c27a950a26a3e7f7f222a5cf1cb1a5ed326d1d7757fd40639eaf58c54daffc668929bd25e76fffb108c75f20e5f0a2937f74a03e8cb WHIRLPOOL 7247d88f8ec56be1312f6978dc157721cd62336bc639cb29f54a729a336253485655fc6aa8be1b44373fb0be4dcc56b72a7f2e2185a09f84bd9f3c44a14bfff1
+DIST gentoolkit-dev-0.2.8.3.tar.gz 53322 SHA256 b9f96deb53adacf7885c937e1c92688a40839a3992da551616f8745835ec59fb SHA512 f55362e46928633598cb07640505202521e3f4bdaade1faecb4ac14ba1bee0489207cb7ab03531e06d7922446a57083365f51c63ceb8cf1e0badba9ac503c16e WHIRLPOOL 9bb50b92c52c62a74249885ff7d82d6ba2426de6b7052b2e65673a85c6dfe76c201d899e71b8d327a3fed550a1cf1a75616cda369d7f5f37bc93912a8d7845e5
+DIST gentoolkit-dev-0.3.0.tar.gz 58655 SHA256 c42d525560f5c85f48e9b2aeb02a5f3ee04e80e52c90e5d1a00eed1ebe9df671 SHA512 d15f6546cf88af0832c14eb003c72b5906bb9b9f078c903e1e444b12c2e432fd1a2fa077eda5496e222cb50cfd5a705e86044b9a1c0164ac6b4b38268461ced5 WHIRLPOOL b3db58c6941ad5ae04fc581de8785d9e0fe6c3b49bdabf401732e881b2e2a1489eb86c3fd650cafe6b56bf26c74ad25dffe8dfb7fdc8b374b3bb0427dd34c2e4
+DIST gentoolkit-dev-0.3.1.tar.gz 58472 SHA256 f68e8647b799c6872598a5adfe6a028af6b8521ae5cd5a6615b796c906e5304c SHA512 e47fa698710132914c2de6d25f7450b90383b9d6283e927221bec30be3a56de93c09e81c35e025dee2f01bd5c2f10cf231fc392c415849029529712cd81aea19 WHIRLPOOL a3fc98b9bf7e4086245795abbd1d71fe1da394aba90f0cc3ae3258f6b7be79363c171dab45d40b9bf37f008f8b0da4bf674f52b8d11c48d1cf06237c8746acca
+EBUILD gentoolkit-dev-0.2.8.3-r1.ebuild 1554 SHA256 07a761509777be5bc6fc1e9afc3f0cb57ed77fd7062aa8eaaf7c92898b2c2555 SHA512 7d86c2ec99dcf6b1b263f4f2b4c72900e68c6ba8d3babfd910d748ef91100c55c94facd712361eb50030aedf78759ddca8f73b13518b6a1c519189ab4ae7f93f WHIRLPOOL 8e14ad4398dc61b8e01446a7f30ffbf6b99a776346e21fad777349df3283b698d6b01c90c16f84955a6db7299d1225bbdf9d40236c9f876e240e4a7f8474ca70
+EBUILD gentoolkit-dev-0.3.0.ebuild 2339 SHA256 7a6b7ca7819d2edc9edf604e56ef4ce8c62a95053d4f1d98bc345c9e74947830 SHA512 70d80ebb6ea489e2530ebdbda66e6696dcbfc28e7e4083de72249cbdee0992b511857b621b625fb7729b21a43b472871f51180f12c3ec8a93371b829c33538e8 WHIRLPOOL 208a89e8575a62ed8070134de2bbd66a2dc009f22b559b2669a30d2d7fcc32e88177d9ec392dac2cd6f67f83bffd2b4b0ef890e5440aae744b939e0acf35fda1
+EBUILD gentoolkit-dev-0.3.1.ebuild 2414 SHA256 5646cadc106bcdb094e568a977b19671c69ac260c2055e1432260cc5959d595c SHA512 9e4d4dceb99fba907f610238669e4cfbea036bb2045cf1d4a3460773d21d1b1f0a260c56fd409f5eaaa4a9a9abb80aad0e911e428a4a4ac317680d8b2b8a9ece WHIRLPOOL 549930b9aea6e8f05c0aa33ba1c8a5477c7934b44a53fe077e7771699e8362443b62493907bf702667f5094614b73e97ea4079aee76e34110636732d96b66b33
+MISC ChangeLog 3740 SHA256 7745095b7cf69d14b8ba980fa6b24d7fff84c4929a538f57af354918026ccd2c SHA512 287434da7a7f4e1544dded855e2efada0b3c1c2377fab8f4c465e70a79c9fd12bab757a45fbe69f1d96544bf6e5f01be8ea0b1df076f228ced0d135e12b70571 WHIRLPOOL ad2a920cef455f2f125d48286e7376256e32199495c3cbc7589dbe141d8971b60fcaefef73c6cbac9879b6f367cf169ed0a532f993d2c1395c393e0bae2b98f3
+MISC ChangeLog-2015 22290 SHA256 c95fbb79c90dcc75eba939ed9b4c3d4777d91f563fd92832e205fe61103301dd SHA512 8aa69bbfcaed83bb7fdcd0d38a9ea29a01908497dc46017248aca621cc7bbc9a2f5045b1358e6b463a3da0097b5e355e35b552594e97db936ed97c79e239fe5f WHIRLPOOL 69980e330f2b1a78443c255de9a0ef82153eb24698bab04fc4c8a9206f1dab15c86b59044dc203d9278e78708fae28ac1f14f04b57040b8cb724857460882c08
+MISC metadata.xml 533 SHA256 85feb3811c713836f7de405b6123264a8e3ff0b6500efd0a61191e635e150c5a SHA512 cbecb84390c3cd16a766fa162aaae12b456e656b1d6f17ca8279a79016ad9107541ba52c350cd2603487b608c4bc852919aa3b2e765e6031e320c359f89224a4 WHIRLPOOL 436edd53752fefc42c1de0def7c71662446961fb0d1b938aefd33cdbfe11c3b35acc8c98553421aa4bb23d9b7d8dff2b7028249c318b2588baaa2bde99420839
diff --git a/app-portage/gentoolkit-dev/files/gentoolkit-dev-0.2.8.3-tests.patch b/app-portage/gentoolkit-dev/files/gentoolkit-dev-0.2.8.3-tests.patch
new file mode 100644
index 000000000000..533491d76897
--- /dev/null
+++ b/app-portage/gentoolkit-dev/files/gentoolkit-dev-0.2.8.3-tests.patch
@@ -0,0 +1,25 @@
+From 2da4232cfd9597b829dda4bcfbf3aab25f243950 Mon Sep 17 00:00:00 2001
+From: Christian Ruppert <idl0r@gentoo.org>
+Date: Sat, 11 May 2013 23:56:25 +0200
+Subject: [PATCH] Fix echangelog test
+
+---
+ src/echangelog/test/test.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
+index 0559113..53bb0b5 100755
+--- a/src/echangelog/test/test.sh
++++ b/src/echangelog/test/test.sh
+@@ -160,7 +160,7 @@ ebegin "Preparing echangelog"
+
+ if [ -e "../echangelog" ]; then
+ cp ../echangelog "${_ROOT}/tmp" || set $?
+- sed -i -e 's:use POSIX qw.*:use POSIX qw(setlocale getcwd);\nuse TEST qw(strftime);:' "${_ROOT}/tmp/echangelog" || set $?
++ sed -i -e 's:use POSIX qw.*:use POSIX qw(locale_h setlocale getcwd);\nuse TEST qw(strftime);:' "${_ROOT}/tmp/echangelog" || set $?
+ eend ${1:-0} || exit ${1}
+ else
+ eerror "error"
+--
+1.8.1.5
+
diff --git a/app-portage/gentoolkit-dev/gentoolkit-dev-0.2.8.3-r1.ebuild b/app-portage/gentoolkit-dev/gentoolkit-dev-0.2.8.3-r1.ebuild
new file mode 100644
index 000000000000..b113ef5deeb4
--- /dev/null
+++ b/app-portage/gentoolkit-dev/gentoolkit-dev-0.2.8.3-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+PYTHON_REQ_USE="xml"
+
+inherit python-r1 eutils
+
+DESCRIPTION="Collection of developer scripts for Gentoo"
+HOMEPAGE="https://www.gentoo.org/proj/en/portage/tools/index.xml"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CDEPEND="
+ sys-apps/portage[${PYTHON_USEDEP}]
+ dev-lang/perl
+ sys-apps/diffutils"
+DEPEND="${PYTHON_DEPS}
+ !>=app-portage/gentoolkit-0.4.0
+ test? ( ${CDEPEND} )"
+RDEPEND="${PYTHON_DEPS}
+ ${CDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-tests.patch"
+}
+
+src_test() {
+ # echangelog test is not able to run as root
+ # the EUID check may not work for everybody
+ if [[ ${EUID} -ne 0 ]];
+ then
+ python_foreach_impl emake test
+ else
+ ewarn "test skipped, please re-run as non-root if you wish to test ${PN}"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ python_replicate_script "${ED}"/usr/bin/imlate
+}
+
+pkg_postinst() {
+ ewarn "This package is deprecated. ebump, ekeyword and imlate have "
+ ewarn "been moved to >=app-portage/gentoolkit-0.4.0"
+ ewarn "The remaining gentoolkit-dev commands are considered deprecated"
+}
diff --git a/app-portage/gentoolkit-dev/gentoolkit-dev-0.3.0.ebuild b/app-portage/gentoolkit-dev/gentoolkit-dev-0.3.0.ebuild
new file mode 100644
index 000000000000..dd303b08c326
--- /dev/null
+++ b/app-portage/gentoolkit-dev/gentoolkit-dev-0.3.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_REQ_USE="xml"
+
+inherit python-r1
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/gentoolkit.git
+ https://anongit.gentoo.org/git/proj/gentoolkit.git"
+ EGIT_BRANCH="gentoolkit-dev"
+else
+ SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.gz"
+ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="Collection of developer scripts for Gentoo"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CDEPEND="
+ sys-apps/portage[${PYTHON_USEDEP}]
+ dev-lang/perl
+ sys-apps/diffutils"
+DEPEND="${PYTHON_DEPS}
+ !>=app-portage/gentoolkit-0.4.0
+ test? ( ${CDEPEND} )"
+RDEPEND="${PYTHON_DEPS}
+ ${CDEPEND}"
+
+src_prepare() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # fix shebangs of scripts
+ local d p
+ ebegin "Fixing shebangs"
+ for d in src/* ; do
+ p=${d#*/}
+ sed -i \
+ -e "1s:\(\(/usr\)\?/bin/\):${EPREFIX}\1:" \
+ ${d}/${p}* \
+ || die "failed to fix ${d}/${p}"
+ done
+ eend $?
+
+ # fix repo location
+ sed -i \
+ -e "s:portage\.db\['/'\]:portage.db['${EPREFIX}/']:g" \
+ src/ekeyword/ekeyword.py \
+ || die "failed to set EPREFIX in ekeyword"
+ # fix repo name
+ sed -i \
+ -e "s:repo='gentoo':repo='gentoo_prefix':g" \
+ src/ekeyword/ekeyword.py \
+ || die "failed to set correct reponame in ekeyword"
+ fi
+}
+
+src_test() {
+ # echangelog test is not able to run as root
+ # the EUID check may not work for everybody
+ if [[ ${EUID} -ne 0 ]]; then
+ python_foreach_impl emake test
+ else
+ ewarn "test skipped, please re-run as non-root if you wish to test ${PN}"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ python_replicate_script "${ED}"/usr/bin/{ekeyword,imlate}
+}
+
+pkg_postinst() {
+ ewarn "This package is deprecated. ebump, ekeyword and imlate have "
+ ewarn "been moved to >=app-portage/gentoolkit-0.4.0"
+ ewarn "The remaining gentoolkit-dev commands are considered deprecated"
+}
diff --git a/app-portage/gentoolkit-dev/gentoolkit-dev-0.3.1.ebuild b/app-portage/gentoolkit-dev/gentoolkit-dev-0.3.1.ebuild
new file mode 100644
index 000000000000..3ddd92e2178b
--- /dev/null
+++ b/app-portage/gentoolkit-dev/gentoolkit-dev-0.3.1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_REQ_USE="xml"
+
+inherit python-r1
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/gentoolkit.git
+ https://anongit.gentoo.org/git/proj/gentoolkit.git"
+ EGIT_BRANCH="gentoolkit-dev"
+else
+ SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.gz
+ https://dev.gentoo.org/~vapier/dist/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="Collection of developer scripts for Gentoo"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CDEPEND="
+ sys-apps/portage[${PYTHON_USEDEP}]
+ dev-lang/perl
+ sys-apps/diffutils"
+DEPEND="${PYTHON_DEPS}
+ !>=app-portage/gentoolkit-0.4.0
+ test? ( ${CDEPEND} )"
+RDEPEND="${PYTHON_DEPS}
+ ${CDEPEND}"
+
+src_prepare() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # fix shebangs of scripts
+ local d p
+ ebegin "Fixing shebangs"
+ for d in src/* ; do
+ p=${d#*/}
+ sed -i \
+ -e "1s:\(\(/usr\)\?/bin/\):${EPREFIX}\1:" \
+ ${d}/${p}* \
+ || die "failed to fix ${d}/${p}"
+ done
+ eend $?
+
+ # fix repo location
+ sed -i \
+ -e "s:portage\.db\['/'\]:portage.db['${EPREFIX}/']:g" \
+ src/ekeyword/ekeyword.py \
+ || die "failed to set EPREFIX in ekeyword"
+ # fix repo name
+ sed -i \
+ -e "s:repo='gentoo':repo='gentoo_prefix':g" \
+ src/ekeyword/ekeyword.py \
+ || die "failed to set correct reponame in ekeyword"
+ fi
+}
+
+src_test() {
+ # echangelog test is not able to run as root
+ # the EUID check may not work for everybody
+ if [[ ${EUID} -ne 0 ]]; then
+ python_foreach_impl emake test
+ else
+ ewarn "test skipped, please re-run as non-root if you wish to test ${PN}"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ python_replicate_script "${ED}"/usr/bin/{ekeyword,imlate}
+}
+
+pkg_postinst() {
+ ewarn "This package is deprecated. ebump, ekeyword and imlate have "
+ ewarn "been moved to >=app-portage/gentoolkit-0.4.0"
+ ewarn "The remaining gentoolkit-dev commands are considered deprecated"
+}
diff --git a/app-portage/gentoolkit-dev/metadata.xml b/app-portage/gentoolkit-dev/metadata.xml
new file mode 100644
index 000000000000..c0f5291db220
--- /dev/null
+++ b/app-portage/gentoolkit-dev/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>tools-portage@gentoo.org</email>
+ <name>Gentoo Portage tools team</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>vapier@gentoo.org</email>
+ <description>Only ekeyword related bugs</description>
+ </maintainer>
+ <longdescription>
+ Gentoolkit-dev is a collection of developer tools for the Gentoo distribution.
+ </longdescription>
+</pkgmetadata>