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