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/sed/
Date: Sun, 30 Oct 2022 15:51:48
Message-Id: 1667145017.2f8c0176b502f6150bec2e9d3523dd59b6223bf8.sam@gentoo
1 commit: 2f8c0176b502f6150bec2e9d3523dd59b6223bf8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 30 12:25:03 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 15:50:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f8c0176
7
8 sys-apps/sed: Install as gsed for better BSD compat.
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sys-apps/sed/sed-4.8-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 60 insertions(+)
15
16 diff --git a/sys-apps/sed/sed-4.8-r1.ebuild b/sys-apps/sed/sed-4.8-r1.ebuild
17 new file mode 100644
18 index 000000000000..6cea28c227be
19 --- /dev/null
20 +++ b/sys-apps/sed/sed-4.8-r1.ebuild
21 @@ -0,0 +1,60 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/sed.asc
28 +inherit flag-o-matic verify-sig
29 +
30 +DESCRIPTION="Super-useful stream editor"
31 +HOMEPAGE="http://sed.sourceforge.net/"
32 +SRC_URI="mirror://gnu/sed/${P}.tar.xz"
33 +SRC_URI+=" verify-sig? ( mirror://gnu/sed/${P}.tar.xz.sig )"
34 +
35 +LICENSE="GPL-3+"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
38 +IUSE="acl nls selinux static"
39 +
40 +RDEPEND="
41 + !static? (
42 + acl? ( virtual/acl )
43 + nls? ( virtual/libintl )
44 + selinux? ( sys-libs/libselinux )
45 + )
46 +"
47 +DEPEND="${RDEPEND}
48 + static? (
49 + acl? ( virtual/acl[static-libs(+)] )
50 + nls? ( virtual/libintl[static-libs(+)] )
51 + selinux? ( sys-libs/libselinux[static-libs(+)] )
52 + )
53 +"
54 +BDEPEND="nls? ( sys-devel/gettext )
55 + verify-sig? ( sec-keys/openpgp-keys-sed )"
56 +
57 +PATCHES=(
58 + "${FILESDIR}/${P}-avoid-noreturn-diagnostic.patch"
59 +)
60 +
61 +src_configure() {
62 + use static && append-ldflags -static
63 +
64 + local myconf=(
65 + --exec-prefix="${EPREFIX}"
66 + $(use_enable acl)
67 + $(use_enable nls)
68 + $(use_with selinux)
69 + # rename to gsed for better BSD compatibility
70 + --program-prefix=g
71 + )
72 + econf "${myconf[@]}"
73 +}
74 +
75 +src_install() {
76 + default
77 +
78 + # symlink to the standard name
79 + dosym gsed /bin/sed
80 + dosym gsed.1 /usr/share/man/man1/sed.1
81 +}