commit:     f84897cdc5c7b2ec4c7c514346edc86200c6cbad
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 27 05:27:37 2017 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Apr 27 07:21:14 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f84897cd

sys-apps/moreutils: version bump to 0.61

 sys-apps/moreutils/Manifest              |  1 +
 sys-apps/moreutils/moreutils-0.61.ebuild | 64 ++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/sys-apps/moreutils/Manifest b/sys-apps/moreutils/Manifest
index d0700251888..b1f0df916f5 100644
--- a/sys-apps/moreutils/Manifest
+++ b/sys-apps/moreutils/Manifest
@@ -1 +1,2 @@
 DIST moreutils-0.60.tar.gz 93137 SHA256 
a095e9647ccde72d43a4d39ee215c6ac59a00b2cd1da17ccbcaf70e3923ae011 SHA512 
b09b81606fc307abe26173fbd2e50ab3ee84db53b7242dc57a0747a83489088b1702435cfad5a171af00d56ab154b9d4c3062a3d4ac7c002dc03315c6fca0cab
 WHIRLPOOL 
9d0183cf422a408957ccf027f5f141cae11ab5b99eaeff2b3a5949b88d87544b865a3466286a2e2208103bda7a91728f3ec5078361940d6ce3bc058277ba568a
+DIST moreutils-0.61.tar.gz 93234 SHA256 
e361d7da29125a81bf7899275460ac91f6a2e538f3bb61160a0d1d3754af876f SHA512 
6164680c8bfec02f7a84274b1d4342a1d6c296e14843496dcc9f9ac71b3e3b1663dea72e2251a546a646775afa70589483e8d5da71b388b1022476bb3dd91b56
 WHIRLPOOL 
3c5fa18c37ef9633f487d55605ad627dc64a3dc9ce3065ae2a43086efdad367d12badfbb71d3aebc986d56988334e84394e9ce3e3a4b6ea3d70c31d30296bd0b

diff --git a/sys-apps/moreutils/moreutils-0.61.ebuild 
b/sys-apps/moreutils/moreutils-0.61.ebuild
new file mode 100644
index 00000000000..d1abd6acab0
--- /dev/null
+++ b/sys-apps/moreutils/moreutils-0.61.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="a collection of tools that nobody thought to write when Unix was 
young"
+HOMEPAGE="http://joeyh.name/code/moreutils/";
+#SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz"
+SRC_URI="https://dev.gentoo.org/~radhermit/dist/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 hppa ~ppc ~ppc64 x86 ~x86-linux"
+IUSE="+doc +perl"
+
+RDEPEND="
+       perl? (
+               dev-lang/perl
+               dev-perl/IPC-Run
+               dev-perl/Time-Duration
+               dev-perl/TimeDate
+       )"
+DEPEND="
+       app-admin/eselect
+       doc? (
+               dev-lang/perl
+               >=app-text/docbook2X-0.8.8-r2
+               app-text/docbook-xml-dtd:4.4
+       )"
+
+src_prepare() {
+       # don't build manpages
+       if ! use doc ; then
+               sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die
+       fi
+
+       # don't install perl scripts
+       if ! use perl ; then
+               sed -i -e '/PERLSCRIPTS/d' Makefile || die
+       fi
+
+       default
+}
+
+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
+       if use doc; then
+               mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die
+       fi
+       mv "${ED}"usr/bin/{,${PN}_}parallel || die
+}
+
+pkg_postinst() {
+       # try to make sure $EDITOR is valid for vipe (bug #604630)
+       eselect editor update
+}

Reply via email to