1 |
commit: a8072d9f120e24b23fa08b7457342b645b183a4a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 23:33:26 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 23:40:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8072d9f |
7 |
|
8 |
sys-apps/grep: add 3.8_p20221230 (RC, unkeyworded) |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-apps/grep/Manifest | 2 + |
13 |
sys-apps/grep/grep-3.8_p20221230.ebuild | 100 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 102 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/grep/Manifest b/sys-apps/grep/Manifest |
17 |
index 65caccff65b5..4ab49339662b 100644 |
18 |
--- a/sys-apps/grep/Manifest |
19 |
+++ b/sys-apps/grep/Manifest |
20 |
@@ -1,4 +1,6 @@ |
21 |
DIST grep-3.7.tar.xz 1641196 BLAKE2B acf03b1fe8065dac48d686de070bab9ecddae65c97f3b0e2be484e8abdd06d1fbdbb396f3d73dadadf9618aad2f02cf6416094bad64d5f2f15eab6b6b3adfeda SHA512 e9e45dcd40af8367f819f2b93c5e1b4e98a251a9aa251841fa67a875380fae52cfa27c68c6dbdd6a4dde1b1017ee0f6b9833ef6dd6e419d32d71b6df5e972b82 |
22 |
DIST grep-3.7.tar.xz.sig 833 BLAKE2B 02a2850e22e8054dcfd02b6f08747a97d43dae9adb908516bdaed35750aa7f773832ad1b0b4c53d7b0ebc8f1fe2979e7938bbbeeb09ea00c11b4a0d5846c7b9c SHA512 9db28883b696fbbb0fad32f4ecd168954dc475d5f0a8f2b4f960ff615ef7dd8348a7caaee85a96287824472a29485ff921af121c582083ca5ad5c30960f99cf4 |
23 |
+DIST grep-3.8.11-908f.tar.xz 1658032 BLAKE2B d217a3b15f2597e2ffd54b941aae179c038697e4b620f09a61fe3655c1ae0777186311ec2cccdbf1266b0182eede232778e19e1f9dc87d7c5621e624e3857052 SHA512 a065c0e13c3c1cf87eb7011d1dd55f6b3386e9fd21dad9262fbe6ec7e830f3955c563050ef27a485b612f620285bbe4729e326e9f2ca24e42011a1040bec3d78 |
24 |
+DIST grep-3.8.11-908f.tar.xz.sig 833 BLAKE2B 460e7eb98f803995de43e919cae2d01e261380fde100c4570c50304035585573c358d0154e98102aafbfdd23ce726c15a59adbdfa3922408a4dada4095be13e4 SHA512 b4d9d517746633ee1fbbd8277fb22499634163b77e320be0721d1e48c4d8f1fbc4ec63177698cdac3f7d411403f51afbf7b7e302b78ccd7cf581361eb3963277 |
25 |
DIST grep-3.8.tar.xz 1709536 BLAKE2B 24cf6f7aa35c85f59f508969ee9731c5be1e5c613e64e636f464bbdde917bb99ba739e4b82abf08da127ad0400d62e27d139f85142035745121d381982ec6c36 SHA512 2014519a80c6dcd799837e1bd7d9d5ebe8729ec54b0dc76981dac4755a9a8a9f200470cdcc911e2825bed8162e61da39e3dd60289f7393b48bf67314077d0c79 |
26 |
DIST grep-3.8.tar.xz.sig 833 BLAKE2B 40f472389705375611015ba0eb85eb32643304b1a324877a75821d086a128a20d00df3d7cd960ec45709f40f21488bbcf993c6fe667ef23663688b33296e650b SHA512 8266b58485f225c2189814e3898c72e59d251b729e0c302d31f57abdb7ac2e6e28dde2c5c8095673b6f007b2a3ebc26db1dca910a7771aba80dad4b3c6761ee4 |
27 |
|
28 |
diff --git a/sys-apps/grep/grep-3.8_p20221230.ebuild b/sys-apps/grep/grep-3.8_p20221230.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..2b397f18b09b |
31 |
--- /dev/null |
32 |
+++ b/sys-apps/grep/grep-3.8_p20221230.ebuild |
33 |
@@ -0,0 +1,100 @@ |
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/grep.asc |
40 |
+inherit flag-o-matic verify-sig |
41 |
+ |
42 |
+DESCRIPTION="GNU regular expression matcher" |
43 |
+HOMEPAGE="https://www.gnu.org/software/grep/" |
44 |
+ |
45 |
+if [[ ${PV} == *_p* ]] ; then |
46 |
+ # Subscribe to the 'platform-testers' ML to find these. |
47 |
+ # Useful to test on our especially more niche arches and report issues upstream. |
48 |
+ MY_COMMIT="11-908f" |
49 |
+ MY_P=${PN}-$(ver_cut 1-2).${MY_COMMIT} |
50 |
+ SRC_URI="https://meyering.net/${PN}/${MY_P}.tar.xz" |
51 |
+ SRC_URI+=" verify-sig? ( https://meyering.net/${PN}/${MY_P}.tar.xz.sig )" |
52 |
+ S="${WORKDIR}"/${MY_P} |
53 |
+else |
54 |
+ SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" |
55 |
+ SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.xz.sig )" |
56 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
57 |
+fi |
58 |
+ |
59 |
+LICENSE="GPL-3+" |
60 |
+SLOT="0" |
61 |
+IUSE="+egrep-fgrep nls pcre static" |
62 |
+ |
63 |
+# We lack dev-libs/libsigsegv[static-libs] for now |
64 |
+REQUIRED_USE="static? ( !sparc )" |
65 |
+ |
66 |
+LIB_DEPEND="pcre? ( >=dev-libs/libpcre2-7.8-r1[static-libs(+)] ) |
67 |
+ sparc? ( dev-libs/libsigsegv )" |
68 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
69 |
+ nls? ( virtual/libintl ) |
70 |
+ virtual/libiconv" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ static? ( ${LIB_DEPEND} )" |
73 |
+BDEPEND="virtual/pkgconfig |
74 |
+ nls? ( sys-devel/gettext ) |
75 |
+ verify-sig? ( sec-keys/openpgp-keys-grep )" |
76 |
+ |
77 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ |
82 |
+ # bug #523898 |
83 |
+ sed -i \ |
84 |
+ -e "s:@SHELL@:${EPREFIX}/bin/sh:g" \ |
85 |
+ -e "s:@grep@:${EPREFIX}/bin/grep:" \ |
86 |
+ src/egrep.sh || die |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ use static && append-ldflags -static |
91 |
+ |
92 |
+ # We used to turn this off unconditionally (bug #673524) but we now |
93 |
+ # allow it for cases where libsigsegv is better for userspace handling |
94 |
+ # of stack overflows. |
95 |
+ # In particular, it's necessary for sparc: bug #768135 |
96 |
+ export ac_cv_libsigsegv=$(usex sparc) |
97 |
+ |
98 |
+ local myeconfargs=( |
99 |
+ --bindir="${EPREFIX}"/bin |
100 |
+ $(use_enable nls) |
101 |
+ $(use_enable pcre perl-regexp) |
102 |
+ ) |
103 |
+ |
104 |
+ econf "${myeconfargs[@]}" |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ default |
109 |
+ |
110 |
+ if use egrep-fgrep ; then |
111 |
+ # Delete the upstream wrapper variants which warn on egrep+fgrep use |
112 |
+ rm "${ED}"/bin/{egrep,fgrep} || die |
113 |
+ |
114 |
+ into / |
115 |
+ # Install egrep, fgrep which don't warn. |
116 |
+ # |
117 |
+ # We do this by default to avoid breakage in old scripts |
118 |
+ # and such which don't expect unexpected output on stderr, |
119 |
+ # we've had examples of builds failing because foo-config |
120 |
+ # starts returning a warning. |
121 |
+ # |
122 |
+ # https://lists.gnu.org/archive/html/bug-grep/2022-10/msg00000.html |
123 |
+ newbin - egrep <<-EOF |
124 |
+ #!/usr/bin/env sh |
125 |
+ exec "${EPREFIX}/bin/grep" -E "\$@" |
126 |
+ EOF |
127 |
+ |
128 |
+ newbin - fgrep <<-EOF |
129 |
+ #!/usr/bin/env sh |
130 |
+ exec "${EPREFIX}/bin/grep" -F "\$@" |
131 |
+ EOF |
132 |
+ fi |
133 |
+} |