summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/parallel/parallel-20111222.ebuild')
-rw-r--r--sys-process/parallel/parallel-20111222.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-process/parallel/parallel-20111222.ebuild b/sys-process/parallel/parallel-20111222.ebuild
new file mode 100644
index 000000000000..990ad5d1ccf2
--- /dev/null
+++ b/sys-process/parallel/parallel-20111222.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/parallel/parallel-20111222.ebuild,v 1.1 2011/12/29 12:29:14 fauli Exp $
+
+EAPI=3
+
+DESCRIPTION="A shell tool for executing jobs in parallel locally or on remote machines"
+HOMEPAGE="http://www.gnu.org/software/parallel/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-lang/perl"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i -e '/^[ \t]*$Global::progname[ \t]*=/ s/parallel/gparallel/' \
+ src/parallel || die
+}
+
+src_configure() {
+ econf --program-transform-name='s/parallel/gparallel/' || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" docdir="${EPREFIX}"/usr/share/doc/${PF}/html || die
+
+ # --program-transform-* care about only bin and man.
+ mv "${ED}"/usr/share/doc/${PF}/html/{,g}parallel.html || die
+
+ rm -f "${ED}"/usr/bin/sem || die
+ dosym gparallel /usr/bin/sem
+ dodoc NEWS README || die
+}
+
+pkg_postinst() {
+ ewarn "'parallel' command has been renamed to 'gparallel' to avoid"
+ ewarn "a naming collision with sys-apps/moreutils."
+ elog "To distribute jobs to remote machines you'll need these dependencies"
+ elog " net-misc/openssh"
+ elog " net-misc/rsync"
+}