1 |
commit: f3cf55891347a0df30b4826ac39dae2ceaab9a64 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 19:16:31 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 19:17:13 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3cf5589 |
7 |
|
8 |
dev-libs/libpcre2: add 10.39 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libpcre2/Manifest | 1 + |
13 |
dev-libs/libpcre2/libpcre2-10.39.ebuild | 95 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 96 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libpcre2/Manifest b/dev-libs/libpcre2/Manifest |
17 |
index dea3875bac8..dcba31a9c98 100644 |
18 |
--- a/dev-libs/libpcre2/Manifest |
19 |
+++ b/dev-libs/libpcre2/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST libpcre2-10.36-patchset-01.tar.xz 1364 BLAKE2B bfef3c876a092e06972107b44794c23b758a030181f3040c8b722db166789eac794783169b468fc71334fd660bc2f1c31422a8cb8e5bdc18a69b72654b1b59b2 SHA512 04324d1efa6d155fa3ffbc328638e4674bea305fef7f57d4369ab4a6399a0f489b4c0ecfb49643feff310d91872e1673e965c48a5c60f1bf54a319f0d275c306 |
22 |
DIST pcre2-10.37.tar.bz2 1729384 BLAKE2B b4e56041010d7f44e84a63a17b35e87329d258107d8b27ccead10f51e7deacc93cbee64a22c71b9f0b8f244920b3a22fa4d9b786ec441a428e0ad0bb8535773e SHA512 69f4bf4736b986e0fc855eedb292efe72a0df2e803bc0e61a6cf47775eed433bb1b2f28d7e641591ef4603d47beb543a64ed0eef9538d00f0746bc3435c143ec |
23 |
DIST pcre2-10.38.tar.bz2 1729078 BLAKE2B 9438ff2422afaa83d5a4b2e64d5897068c35add28d66956431f9937191416d6df4903ecf35af72c788480d7def08e0ce17922e9b036698ce1bbe6cacbb799df2 SHA512 3634cb2db6ccba9720c1b69890bcd9eb7057f6a6cb6981f12b3f2d6b2bb4e75e4e5014f566045f9ba1b79edf01fa5c4d81eb333727b9462e843dfb70f3a58f95 |
24 |
+DIST pcre2-10.39.tar.bz2 1730729 BLAKE2B 9ee01ac2704e9cb7a107d402fa0c32828fc66425b62270f6891667bde5fb00c1e779c9730df3522acbd62d11703343bf48265050c09d3754183de314baf7cddd SHA512 b3d898198f4b5ffc3453d2ba56fe2a7298c01c52e5f67d45f1e046fc0dee62e16a4024fcb65839ac9c367beedb531647affd6f8599fbeb102f19423c150d80d4 |
25 |
|
26 |
diff --git a/dev-libs/libpcre2/libpcre2-10.39.ebuild b/dev-libs/libpcre2/libpcre2-10.39.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..a83eed24489 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libpcre2/libpcre2-10.39.ebuild |
31 |
@@ -0,0 +1,95 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit libtool multilib-minimal usr-ldscript |
38 |
+ |
39 |
+PATCH_SET="${PN}-10.36-patchset-01.tar.xz" |
40 |
+ |
41 |
+DESCRIPTION="Perl-compatible regular expression library" |
42 |
+HOMEPAGE="https://www.pcre.org/" |
43 |
+MY_P="pcre2-${PV/_rc/-RC}" |
44 |
+if [[ ${PV} != *_rc* ]] ; then |
45 |
+ # Only the final releases are available here. |
46 |
+ SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2 |
47 |
+ https://ftp.pcre.org/pub/pcre/${MY_P}.tar.bz2 |
48 |
+ https://github.com/PhilipHazel/pcre2/releases/download/${MY_P}/${MY_P}.tar.bz2" |
49 |
+else |
50 |
+ SRC_URI="https://ftp.pcre.org/pub/pcre/Testing/${MY_P}.tar.bz2" |
51 |
+fi |
52 |
+ |
53 |
+if [[ -n "${PATCH_SET}" ]] ; then |
54 |
+ SRC_URI+=" https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET} |
55 |
+ https://dev.gentoo.org/~polynomial-c/dist/${PATCH_SET}" |
56 |
+fi |
57 |
+ |
58 |
+LICENSE="BSD" |
59 |
+SLOT="0/3" # libpcre2-posix.so version |
60 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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" |
61 |
+IUSE="bzip2 +jit libedit +pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib" |
62 |
+REQUIRED_USE="?? ( libedit readline )" |
63 |
+ |
64 |
+BDEPEND=" |
65 |
+ virtual/pkgconfig |
66 |
+ userland_GNU? ( >=sys-apps/findutils-4.4.0 ) |
67 |
+" |
68 |
+RDEPEND=" |
69 |
+ bzip2? ( app-arch/bzip2 ) |
70 |
+ libedit? ( dev-libs/libedit ) |
71 |
+ readline? ( sys-libs/readline:0= ) |
72 |
+ zlib? ( sys-libs/zlib ) |
73 |
+" |
74 |
+DEPEND="${RDEPEND}" |
75 |
+ |
76 |
+S="${WORKDIR}/${MY_P}" |
77 |
+ |
78 |
+MULTILIB_CHOST_TOOLS=( |
79 |
+ /usr/bin/pcre2-config |
80 |
+) |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ if [[ -d "${WORKDIR}/patches" ]] ; then |
84 |
+ rm "${WORKDIR}"/patches/pcre2-10.36-001-issue2698.patch || die |
85 |
+ eapply "${WORKDIR}"/patches |
86 |
+ fi |
87 |
+ |
88 |
+ default |
89 |
+ |
90 |
+ elibtoolize |
91 |
+} |
92 |
+ |
93 |
+multilib_src_configure() { |
94 |
+ local myeconfargs=( |
95 |
+ --enable-pcre2-8 |
96 |
+ --enable-shared |
97 |
+ --with-match-limit-depth=$(usex recursion-limit 8192 MATCH_LIMIT) |
98 |
+ $(multilib_native_use_enable bzip2 pcre2grep-libbz2) |
99 |
+ $(multilib_native_use_enable libedit pcre2test-libedit) |
100 |
+ $(multilib_native_use_enable readline pcre2test-libreadline) |
101 |
+ $(multilib_native_use_enable zlib pcre2grep-libz) |
102 |
+ $(use_enable jit) |
103 |
+ $(use_enable jit pcre2grep-jit) |
104 |
+ $(use_enable pcre16 pcre2-16) |
105 |
+ $(use_enable pcre32 pcre2-32) |
106 |
+ $(use_enable static-libs static) |
107 |
+ $(use_enable unicode) |
108 |
+ ) |
109 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
110 |
+} |
111 |
+ |
112 |
+multilib_src_compile() { |
113 |
+ emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=") |
114 |
+} |
115 |
+ |
116 |
+multilib_src_install() { |
117 |
+ emake \ |
118 |
+ DESTDIR="${D}" \ |
119 |
+ $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \ |
120 |
+ install |
121 |
+ multilib_is_native_abi && gen_usr_ldscript -a pcre2-posix |
122 |
+} |
123 |
+ |
124 |
+multilib_src_install_all() { |
125 |
+ find "${ED}" -type f -name "*.la" -delete || die |
126 |
+} |