1 |
commit: b48c340cdf0df551ac25fcf937f2995f8162ae47 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 00:23:21 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 00:23:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b48c340c |
7 |
|
8 |
sys-apps/grep: add 3.7_p20220702 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-apps/grep/Manifest | 2 + |
13 |
sys-apps/grep/grep-3.7_p20220702.ebuild | 72 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/grep/Manifest b/sys-apps/grep/Manifest |
17 |
index 78f9926f70a4..68382ec881fc 100644 |
18 |
--- a/sys-apps/grep/Manifest |
19 |
+++ b/sys-apps/grep/Manifest |
20 |
@@ -1,4 +1,6 @@ |
21 |
DIST grep-3.7.62-9a668.tar.xz 1687820 BLAKE2B 95f5deccb3b3b223cb429f5c515674bed5209e6ca1d295b5ddfcf09614c6c10f6c6f56df9931a3dc0926b48abced15ab1099d8e84840c74846cb89270e248473 SHA512 b24a11138e683d75e75b4f04a42f4d202526a691aa70c303af4d257e2a395a4266b4bc05afff4fff7ab0efc5564af3efe0f9108cbeddf406d4dc3f171a642f25 |
22 |
DIST grep-3.7.62-9a668.tar.xz.sig 833 BLAKE2B 9be6a33b1d2e29eeaea6bfbcbeade37eb4d7c8b2fdf37ec82376b1cc158f02c6916c87c21378cd099f863787ae46e2bc7dd40df77b263fe971f50b7bbe67cced SHA512 5245b7af4202bd49ef8937eda3ad91949e6bd9e16e217c0a326e8d6abc17d8f47e068197cb5df16829298912eed0d811164da4d1d7bd3ce3ff679a87a281f33b |
23 |
+DIST grep-3.7.98-c9ac.tar.xz 1701736 BLAKE2B ac7fa0a45179b25b241e2f57b6731f3ccd4a1950aeab749d47ef286f1723ec6324e894b452c24877224bf61f54584447a2cb4278d6911eca7debf92a7d0b8698 SHA512 9325db663350b47493434f01639f17a383ccf5b18d45c8de2d38d529b60982d426b1a09f0d653ff4e716933fb9a429e18c69a832d667f12c37ccab9d90a07f4b |
24 |
+DIST grep-3.7.98-c9ac.tar.xz.sig 833 BLAKE2B d215edbe769bdbb1afbfe3cc560509ba7e1c9ddcbc149cdd173ffd41f4d195c66b2119847b7383dbd7f9ff613e9a21a34c28a14ad4c2422846ad4e5cfb0eb369 SHA512 7a781df1c1b072f752b70bbfd843f71d8ef76cc68d908d1f2e9dd6058b706a3ee2d8013ff73300c3d9d3019a5a98e901a088f2630de666a997eb52825955cadb |
25 |
DIST grep-3.7.tar.xz 1641196 BLAKE2B acf03b1fe8065dac48d686de070bab9ecddae65c97f3b0e2be484e8abdd06d1fbdbb396f3d73dadadf9618aad2f02cf6416094bad64d5f2f15eab6b6b3adfeda SHA512 e9e45dcd40af8367f819f2b93c5e1b4e98a251a9aa251841fa67a875380fae52cfa27c68c6dbdd6a4dde1b1017ee0f6b9833ef6dd6e419d32d71b6df5e972b82 |
26 |
DIST grep-3.7.tar.xz.sig 833 BLAKE2B 02a2850e22e8054dcfd02b6f08747a97d43dae9adb908516bdaed35750aa7f773832ad1b0b4c53d7b0ebc8f1fe2979e7938bbbeeb09ea00c11b4a0d5846c7b9c SHA512 9db28883b696fbbb0fad32f4ecd168954dc475d5f0a8f2b4f960ff615ef7dd8348a7caaee85a96287824472a29485ff921af121c582083ca5ad5c30960f99cf4 |
27 |
|
28 |
diff --git a/sys-apps/grep/grep-3.7_p20220702.ebuild b/sys-apps/grep/grep-3.7_p20220702.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..7f5d56e74b26 |
31 |
--- /dev/null |
32 |
+++ b/sys-apps/grep/grep-3.7_p20220702.ebuild |
33 |
@@ -0,0 +1,72 @@ |
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="98-c9ac" |
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="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 |
+} |