Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/moreutils/
Date: Wed, 02 Sep 2020 23:34:00
Message-Id: 1599089621.584d7f6ddc60a5e28c2be6ef94b6d8c665d20c45.sam@gentoo
1 commit: 584d7f6ddc60a5e28c2be6ef94b6d8c665d20c45
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 2 23:33:41 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 23:33:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=584d7f6d
7
8 sys-apps/moreutils: bump to 0.64
9
10 Package-Manager: Portage-3.0.4, Repoman-2.3.23
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sys-apps/moreutils/Manifest | 1 +
14 sys-apps/moreutils/moreutils-0.64.ebuild | 67 ++++++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/sys-apps/moreutils/Manifest b/sys-apps/moreutils/Manifest
18 index 7fbfd8fc21d..4f29a06c52c 100644
19 --- a/sys-apps/moreutils/Manifest
20 +++ b/sys-apps/moreutils/Manifest
21 @@ -1 +1,2 @@
22 +DIST moreutils-0.64.tar.gz 92741 BLAKE2B 3e014a18a3b7615bcd83fd9b0a1e3010a059aae154395c2c1158f57634fe83c27503dc3aff1e116743cf80fc73ee2063ea60b03d4bece4119b962669095c71dc SHA512 94f131b9b02a8c1139dfe34abacab022687f51413c529288f57fa876676c028e200324ed855b910a7dbfb4290eb8b38b3dc182eda49988f521a550162b0a0eec
23 DIST moreutils_0.63.orig.tar.xz 80468 BLAKE2B 39efa522c5bf9b982b70c1180f622a7d5a489cabbeb741f2a1a0674dfe9907ef85bccccf9f9cc4ae8d3c81442b1513f0692c070b4c00f052135528dc0e47eb6f SHA512 71bd5ec4d265dff708db372189146acb067c4edaf62888755d245ccb3f4b5bb54f6c31bda68991f78c27ab231de8ea7126f947834f3604b60d7142d0357cb66b
24
25 diff --git a/sys-apps/moreutils/moreutils-0.64.ebuild b/sys-apps/moreutils/moreutils-0.64.ebuild
26 new file mode 100644
27 index 00000000000..86020a66dc6
28 --- /dev/null
29 +++ b/sys-apps/moreutils/moreutils-0.64.ebuild
30 @@ -0,0 +1,67 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="a collection of tools that nobody thought to write when Unix was young"
39 +HOMEPAGE="https://joeyh.name/code/moreutils/ https://git.joeyh.name/index.cgi/moreutils.git/"
40 +# Not available at time of release
41 +#SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.xz"
42 +SRC_URI="https://git.joeyh.name/index.cgi/moreutils.git/snapshot/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux"
47 +IUSE="+doc +perl"
48 +
49 +RDEPEND="
50 + perl? (
51 + dev-lang/perl
52 + dev-perl/IPC-Run
53 + dev-perl/Time-Duration
54 + dev-perl/TimeDate
55 + )"
56 +DEPEND="
57 + app-admin/eselect
58 + doc? (
59 + dev-lang/perl
60 + >=app-text/docbook2X-0.8.8-r2
61 + app-text/docbook-xml-dtd:4.4
62 + )"
63 +
64 +src_prepare() {
65 + # don't build manpages
66 + if ! use doc ; then
67 + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die
68 + fi
69 +
70 + # don't install perl scripts
71 + if ! use perl ; then
72 + sed -i -e '/PERLSCRIPTS/d' Makefile || die
73 + fi
74 +
75 + default
76 +}
77 +
78 +src_compile() {
79 + tc-export CC
80 + emake CFLAGS="${CFLAGS}" DOCBOOKXSL=/usr/share/sgml/docbook/xsl-stylesheets PREFIX="${EPREFIX}/usr"
81 +}
82 +
83 +src_install() {
84 + emake DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install
85 +
86 + # sys-process is more advanced than parallel from moreutils, rename it
87 + if use doc; then
88 + mv "${ED}"/usr/share/man/man1/{,${PN}_}parallel.1 || die
89 + fi
90 +
91 + mv "${ED}"/usr/bin/{,${PN}_}parallel || die
92 +}
93 +
94 +pkg_postinst() {
95 + # try to make sure $EDITOR is valid for vipe (bug #604630)
96 + eselect editor update
97 +}