From 5ff60441eb149372bb97e072ba11635cd04046dc Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Fri, 26 Feb 2010 10:00:59 +0000 Subject: [PATCH] Imported from sunrise, Thanks Jure Varlec for inial ebuild, #299798. Package-Manager: portage-2.2_rc63/cvs/Linux i686 --- app-shells/prll/ChangeLog | 11 +++++++++ app-shells/prll/Manifest | 16 +++++++++++++ app-shells/prll/files/0.4-ldflags.patch | 13 +++++++++++ app-shells/prll/files/0.4-prefix.patch | 20 +++++++++++++++++ app-shells/prll/metadata.xml | 8 +++++++ app-shells/prll/prll-0.4.ebuild | 30 +++++++++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 app-shells/prll/ChangeLog create mode 100644 app-shells/prll/Manifest create mode 100644 app-shells/prll/files/0.4-ldflags.patch create mode 100644 app-shells/prll/files/0.4-prefix.patch create mode 100644 app-shells/prll/metadata.xml create mode 100644 app-shells/prll/prll-0.4.ebuild diff --git a/app-shells/prll/ChangeLog b/app-shells/prll/ChangeLog new file mode 100644 index 000000000000..3948efffee46 --- /dev/null +++ b/app-shells/prll/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-shells/prll +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/prll/ChangeLog,v 1.1 2010/02/26 10:00:58 jlec Exp $ + +*prll-0.4 (26 Feb 2010) + + 26 Feb 2010; Justin Lecher (jlec) + +files/0.4-ldflags.patch, +files/0.4-prefix.patch, +prll-0.4.ebuild, + +metadata.xml: + Imported from sunrise, Thanks Jure Varlec for inial ebuild, #299798. + diff --git a/app-shells/prll/Manifest b/app-shells/prll/Manifest new file mode 100644 index 000000000000..efad83940310 --- /dev/null +++ b/app-shells/prll/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 0.4-ldflags.patch 405 RMD160 d6b5b1e387a9b89be169bee7a4fd39800ae5f8f2 SHA1 b5ba5ad2f0a50b8be51c49712576e0fcabf9b55e SHA256 f5ed44591442cb99366672a79b6ebe2137d310d30c862088b3b262ecbe5be1f8 +AUX 0.4-prefix.patch 677 RMD160 360f03156c361f24098a73353484555b4cb2579a SHA1 54821c32f1bb8be1ead8791039375e5b4f63c23a SHA256 58615a6587d04e73d1ca805b39262d96d0b2d6655f4cf34fe04bb9276391701c +DIST prll-0.4.tar.bz2 29934 RMD160 53a1a963fd9eed0dbacec7996f6058c63ff75f28 SHA1 08a8f65a9bdda147c1874777769b6604e15345f9 SHA256 d39eef661e9225edc8910565bda24c4de795c93d19e2ec83532c81273600c762 +EBUILD prll-0.4.ebuild 785 RMD160 41a36b5730873bc1f84ad60f7d3062fa97b4d04d SHA1 778b83887390980d1b17a60c0860369c4411d8da SHA256 d423d24a38456fa829511e8b39373504d12b1208b44d4fbf56a016b6e450a9d0 +MISC ChangeLog 443 RMD160 e1cfb52d5b0075e844a8519129e101eb71e2fc5a SHA1 70d6f3d2cd16542687a0e5a4b2f2ffe07e4dab2d SHA256 8470176c061ab291ff1bd44eaa9d229671ec3bea8c8651f6d329fc4398deab0f +MISC metadata.xml 220 RMD160 1e732f5f838c71d83c8cd61ac81b2c4e42d78816 SHA1 e0926eae4242c2f2294b895817381b60fd77be9d SHA256 1b6a15365e6f85f8a567642201a5dec874df466787b97c836e546eb6e54d1ce2 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iEYEARECAAYFAkuHm+cACgkQgAnW8HDreRbIhQCgoBG+XDjj+m2e2kCN5HzT4Rwp +3AUAn15GhKxgjJS1mK43OyvmIIl2xgk8 +=nE+Y +-----END PGP SIGNATURE----- diff --git a/app-shells/prll/files/0.4-ldflags.patch b/app-shells/prll/files/0.4-ldflags.patch new file mode 100644 index 000000000000..4e17c394ef83 --- /dev/null +++ b/app-shells/prll/files/0.4-ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index c4587e7..b53dbb8 100644 +--- a/Makefile ++++ b/Makefile +@@ -13,7 +13,7 @@ sanitycheck: check_key_size + ./check_key_size && touch sanitycheck || (rm -f sanitycheck && false) + + prll_jobserver: sanitycheck +- $(CC) $(CFLAGS) -o prll_jobserver prll_jobserver.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o prll_jobserver prll_jobserver.c + + test: prll_jobserver + cd tests && $(MAKE) diff --git a/app-shells/prll/files/0.4-prefix.patch b/app-shells/prll/files/0.4-prefix.patch new file mode 100644 index 000000000000..82bf35891228 --- /dev/null +++ b/app-shells/prll/files/0.4-prefix.patch @@ -0,0 +1,20 @@ +diff --git a/prll.sh b/prll.sh +index 2ed4c04..bcf1525 100644 +--- a/prll.sh ++++ b/prll.sh +@@ -25,13 +25,13 @@ function prll() { + EOF + return 1 + fi +- /usr/bin/which prll_jobserver > /dev/null ++ @GENTOO_PORTAGE_EPREFIX@/usr/bin/which prll_jobserver > /dev/null + if [[ $? -ne 0 ]] ; then + echo "PRLL: Missing prll_jobserver." 1>&2 + return 1 + fi + if [[ -z $PRLL_NR_CPUS ]] ; then +- /usr/bin/which grep > /dev/null ++ @GENTOO_PORTAGE_EPREFIX@/usr/bin/which grep > /dev/null + if [[ $? -ne 0 || ! -a /proc/cpuinfo ]] ; then + echo "PRLL: Environment variable PRLL_NR_CPUS is not set" 1>&2 + echo "PRLL: and either the grep utility is missing or" 1>&2 diff --git a/app-shells/prll/metadata.xml b/app-shells/prll/metadata.xml new file mode 100644 index 000000000000..05e29780c54a --- /dev/null +++ b/app-shells/prll/metadata.xml @@ -0,0 +1,8 @@ + + + + no-herd + + jlec@gentoo.org + + diff --git a/app-shells/prll/prll-0.4.ebuild b/app-shells/prll/prll-0.4.ebuild new file mode 100644 index 000000000000..ec3a3040c0bc --- /dev/null +++ b/app-shells/prll/prll-0.4.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/prll/prll-0.4.ebuild,v 1.1 2010/02/26 10:00:58 jlec Exp $ + +EAPI="2" + +inherit eutils prefix toolchain-funcs + +DESCRIPTION="A utility for parallelizing execution in bash or zsh" +HOMEPAGE="http://prll.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3 WTFPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~x86-linux ~amd64-linux" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-ldflags.patch + epatch "${FILESDIR}"/${PV}-prefix.patch + tc-export CC + eprefixify ${PN}.sh +} + +src_install() { + dobin ${PN}_jobserver || die + insinto /etc/profile.d/ + doins ${PN}.sh || die + dodoc ChangeLog AUTHORS README NEWS || die +} -- 2.26.2