1 |
commit: f31629eb484a330a5c40eede73361d4074d3e203 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 7 02:45:14 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 7 02:45:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f31629eb |
7 |
|
8 |
sys-apps/sed: add 4.9 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706198 |
11 |
Closes: https://bugs.gentoo.org/837782 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sys-apps/sed/Manifest | 2 ++ |
15 |
sys-apps/sed/sed-4.9.ebuild | 56 +++++++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 58 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/sed/Manifest b/sys-apps/sed/Manifest |
19 |
index 30ed2089ac65..6c15c512bef2 100644 |
20 |
--- a/sys-apps/sed/Manifest |
21 |
+++ b/sys-apps/sed/Manifest |
22 |
@@ -1,2 +1,4 @@ |
23 |
DIST sed-4.8.tar.xz 1348048 BLAKE2B 62f6b6500cc9a20a35cafc2b09b12bb7da67fa0afb0b1b26153babc0023424b3126f44d29eba14c25fc4490996c90738b191c9440c66da6c120bbb9bc6f6df65 SHA512 7de25d9bc2981c63321c2223f3fbcab61d7b0df4fcf7d4394b72400b91993e1288d8bf53948ed5fffcf5a98c75265726a68ad4fb98e1d571bf768603a108c1c8 |
24 |
DIST sed-4.8.tar.xz.sig 833 BLAKE2B 8e5b3c69a28ffbfa49ef6f769fbb72c6f1ec14e6e1e0cec3851d15d85e05560a8a74e28e037eefb916b10831b4afbe0e4735d713dc3b90d7d73de7d0b1176d0b SHA512 9b886bdbd18ee2d60608cee3fd2b4193a1b6c3309d887ee05828c14b89b7b515dbf042a9e0ebdd13e6ccfa42e3cd217a408c796d68c4ebedaaa64f795000f095 |
25 |
+DIST sed-4.9.tar.xz 1397092 BLAKE2B 6c7c7dc782b87c3bd0b5e826ba46c2f1dc7bd8c1159945fcf14b394711742964628774cf9f27d844b672721d7849e6c31992d82fafb9ed4118b7feb60406d1e1 SHA512 36157a4b4a2430cf421b7bd07f1675d680d9f1616be96cf6ad6ee74a9ec0fe695f8d0b1e1f0b008bbb33cc7fcde5e1c456359bbbc63f8aebdd4fedc3982cf6dc |
26 |
+DIST sed-4.9.tar.xz.sig 833 BLAKE2B 256bb112aa3aec1a8d40544ef1b0a7570f35d66369047ed3d261c57f938042dcb4a169137eaed6639bcfb472e4a6fc6ebec2de243b2c4d4c0ba0e9081f92556d SHA512 ceb235850184b99017783486e182ade9db38313d20b2b34d23f54d8affe180f7a191139b993e8ec7718ca33eff732f547ca4b3b59aaf865feaae611dfeae5c46 |
27 |
|
28 |
diff --git a/sys-apps/sed/sed-4.9.ebuild b/sys-apps/sed/sed-4.9.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..1c4032498092 |
31 |
--- /dev/null |
32 |
+++ b/sys-apps/sed/sed-4.9.ebuild |
33 |
@@ -0,0 +1,56 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/sed.asc |
40 |
+inherit flag-o-matic verify-sig |
41 |
+ |
42 |
+DESCRIPTION="Super-useful stream editor" |
43 |
+HOMEPAGE="http://sed.sourceforge.net/" |
44 |
+SRC_URI="mirror://gnu/sed/${P}.tar.xz" |
45 |
+SRC_URI+=" verify-sig? ( mirror://gnu/sed/${P}.tar.xz.sig )" |
46 |
+ |
47 |
+LICENSE="GPL-3+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
50 |
+IUSE="acl nls selinux static" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ !static? ( |
54 |
+ acl? ( virtual/acl ) |
55 |
+ nls? ( virtual/libintl ) |
56 |
+ selinux? ( sys-libs/libselinux ) |
57 |
+ ) |
58 |
+" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ static? ( |
61 |
+ acl? ( virtual/acl[static-libs(+)] ) |
62 |
+ nls? ( virtual/libintl[static-libs(+)] ) |
63 |
+ selinux? ( sys-libs/libselinux[static-libs(+)] ) |
64 |
+ ) |
65 |
+" |
66 |
+BDEPEND="nls? ( sys-devel/gettext ) |
67 |
+ verify-sig? ( sec-keys/openpgp-keys-sed )" |
68 |
+ |
69 |
+src_configure() { |
70 |
+ use static && append-ldflags -static |
71 |
+ |
72 |
+ local myconf=( |
73 |
+ --exec-prefix="${EPREFIX}" |
74 |
+ $(use_enable acl) |
75 |
+ $(use_enable nls) |
76 |
+ $(use_with selinux) |
77 |
+ # rename to gsed for better BSD compatibility |
78 |
+ --program-prefix=g |
79 |
+ ) |
80 |
+ econf "${myconf[@]}" |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ default |
85 |
+ |
86 |
+ # symlink to the standard name |
87 |
+ dosym gsed /bin/sed |
88 |
+ dosym gsed.1 /usr/share/man/man1/sed.1 |
89 |
+} |