diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 11:23:54 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 11:23:54 +0000 |
commit | 23704a0d529c376545bb41a1b82467917111e886 (patch) | |
tree | a18e5e162b48f83c112761c76a60e6dcd2169703 /sys-apps/moreutils | |
parent | Version bump wrt #388665 by Corentin Chary. Rename gparallel back to parallel... (diff) | |
download | gentoo-2-23704a0d529c376545bb41a1b82467917111e886.tar.gz gentoo-2-23704a0d529c376545bb41a1b82467917111e886.tar.bz2 gentoo-2-23704a0d529c376545bb41a1b82467917111e886.zip |
Rename parallel command to moreutils_parallel because the one from sys-process/parallel is more advanced wrt #349225 by Helmut Jarausch
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/moreutils')
-rw-r--r-- | sys-apps/moreutils/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/moreutils/moreutils-0.45-r1.ebuild | 63 |
2 files changed, 72 insertions, 2 deletions
diff --git a/sys-apps/moreutils/ChangeLog b/sys-apps/moreutils/ChangeLog index 9817eed53965..acae1670e996 100644 --- a/sys-apps/moreutils/ChangeLog +++ b/sys-apps/moreutils/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/moreutils -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/moreutils/ChangeLog,v 1.33 2011/09/05 07:04:40 radhermit Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/moreutils/ChangeLog,v 1.34 2012/01/23 11:23:54 ssuominen Exp $ + +*moreutils-0.45-r1 (23 Jan 2012) + + 23 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> + +moreutils-0.45-r1.ebuild: + Rename parallel command to moreutils_parallel because the one from + sys-process/parallel is more advanced wrt #349225 by Helmut Jarausch 05 Sep 2011; Tim Harder <radhermit@gentoo.org> -files/moreutils-0.30-dtd-path.patch, -moreutils-0.39.ebuild, diff --git a/sys-apps/moreutils/moreutils-0.45-r1.ebuild b/sys-apps/moreutils/moreutils-0.45-r1.ebuild new file mode 100644 index 000000000000..b1f20ec39d3a --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.45-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/moreutils/moreutils-0.45-r1.ebuild,v 1.1 2012/01/23 11:23:54 ssuominen Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs prefix + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write +thirty years ago" +HOMEPAGE="http://kitenet.net/~joey/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.45-dtd-path.patch + eprefixify "${S}/"*.docbook + + # Don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' \ + -e '/man1/d' \ + Makefile + fi + + # Don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + mv -vf "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + mv -vf "${ED}"usr/bin/{,${PN}_}parallel || die +} |