Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/moreutils/
Date: Sat, 03 Feb 2018 09:15:14
Message-Id: 1517648642.9627802a9b5ff9a76a26d25e85cedcbb91975959.radhermit@gentoo
1 commit: 9627802a9b5ff9a76a26d25e85cedcbb91975959
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 2 09:52:14 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 3 09:04:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9627802a
7
8 sys-apps/moreutils: version bump to 0.62
9
10 sys-apps/moreutils/Manifest | 1 +
11 sys-apps/moreutils/moreutils-0.62.ebuild | 64 ++++++++++++++++++++++++++++++++
12 2 files changed, 65 insertions(+)
13
14 diff --git a/sys-apps/moreutils/Manifest b/sys-apps/moreutils/Manifest
15 index 8cc133fdefd..afc6df0c959 100644
16 --- a/sys-apps/moreutils/Manifest
17 +++ b/sys-apps/moreutils/Manifest
18 @@ -1,2 +1,3 @@
19 DIST moreutils-0.60.tar.gz 93137 BLAKE2B 223fdcb162ce7a17a12b1b26f9b77d210cdf2b44492632dcfa75005d0a9872ff90153b6240ed5b96a0a413b323b60d5b5380e79f2f2059e401837ecc5dd6aba3 SHA512 b09b81606fc307abe26173fbd2e50ab3ee84db53b7242dc57a0747a83489088b1702435cfad5a171af00d56ab154b9d4c3062a3d4ac7c002dc03315c6fca0cab
20 DIST moreutils-0.61.tar.gz 93234 BLAKE2B cfa3c24d68ca0f9ef220ef97e0ac50a77e557cc399ef898d15a56d4e205ba180f494ca7a89a566e4dea28eebf08590fbd94b75f7850f941a8a22eba147f8e61d SHA512 6164680c8bfec02f7a84274b1d4342a1d6c296e14843496dcc9f9ac71b3e3b1663dea72e2251a546a646775afa70589483e8d5da71b388b1022476bb3dd91b56
21 +DIST moreutils-0.62.tar.gz 93711 BLAKE2B b8d8cf7c83c3a9fc6a3fb1677954520dcc884ba81eebdf7cde2232f8aea7177f4c79dbce84ff20cf20f924af279c6e02683dfd082ad35237cc0109cddfe30e14 SHA512 100d8129572c1b9ef1381150b69cbcd1762700e66c0ffa0ea849989352bc1bad77b67c5dbc00c159ca6c02905585dbfa3c8a5d88e910da9daaf27b5dba9f2367
22
23 diff --git a/sys-apps/moreutils/moreutils-0.62.ebuild b/sys-apps/moreutils/moreutils-0.62.ebuild
24 new file mode 100644
25 index 00000000000..2e245cd08c2
26 --- /dev/null
27 +++ b/sys-apps/moreutils/moreutils-0.62.ebuild
28 @@ -0,0 +1,64 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +inherit toolchain-funcs
34 +
35 +DESCRIPTION="a collection of tools that nobody thought to write when Unix was young"
36 +HOMEPAGE="https://joeyh.name/code/moreutils/"
37 +#SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz"
38 +SRC_URI="https://dev.gentoo.org/~radhermit/dist/${P}.tar.gz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux"
43 +IUSE="+doc +perl"
44 +
45 +RDEPEND="
46 + perl? (
47 + dev-lang/perl
48 + dev-perl/IPC-Run
49 + dev-perl/Time-Duration
50 + dev-perl/TimeDate
51 + )"
52 +DEPEND="
53 + app-admin/eselect
54 + doc? (
55 + dev-lang/perl
56 + >=app-text/docbook2X-0.8.8-r2
57 + app-text/docbook-xml-dtd:4.4
58 + )"
59 +
60 +src_prepare() {
61 + # don't build manpages
62 + if ! use doc ; then
63 + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die
64 + fi
65 +
66 + # don't install perl scripts
67 + if ! use perl ; then
68 + sed -i -e '/PERLSCRIPTS/d' Makefile || die
69 + fi
70 +
71 + default
72 +}
73 +
74 +src_compile() {
75 + tc-export CC
76 + emake CFLAGS="${CFLAGS}" DOCBOOKXSL=/usr/share/sgml/docbook/xsl-stylesheets PREFIX="${EPREFIX}/usr"
77 +}
78 +
79 +src_install() {
80 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install
81 +
82 + # sys-process is more advanced than parallel from moreutils, rename it
83 + if use doc; then
84 + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die
85 + fi
86 + mv "${ED}"usr/bin/{,${PN}_}parallel || die
87 +}
88 +
89 +pkg_postinst() {
90 + # try to make sure $EDITOR is valid for vipe (bug #604630)
91 + eselect editor update
92 +}