1 |
commit: d8c6db460e2de44b3d4db179687ca5a6334ac3cf |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 21 06:59:50 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 21 07:05:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8c6db46 |
7 |
|
8 |
dev-libs/libpcre: Bump to version 8.42 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-libs/libpcre/Manifest | 1 + |
13 |
.../libpcre-8.41-fix-stack-size-detection.patch | 4 +- |
14 |
dev-libs/libpcre/libpcre-8.42.ebuild | 96 ++++++++++++++++++++++ |
15 |
3 files changed, 99 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/dev-libs/libpcre/Manifest b/dev-libs/libpcre/Manifest |
18 |
index 6cdfc4655c5..9c138703d64 100644 |
19 |
--- a/dev-libs/libpcre/Manifest |
20 |
+++ b/dev-libs/libpcre/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST pcre-8.40.tar.bz2 1560119 BLAKE2B 121d2c9f8c403a663fe27a68030faf09a06dec5e6a25ae8d62e06887850e219e87c71a14f6ded084fa25b719067acb71c89c66c81f6f09f55dcc51feaf41e737 SHA512 b4c27eafbdf33bd7a1384655b1936f4be3bc6745c072347eb26e988896c52664bd85ac42444da1be78b6e20f45b6c7e5921f5f20f5b0741b5bd3d9844e5bd4e2 |
23 |
DIST pcre-8.41.tar.bz2 1561874 BLAKE2B 2a97a859237994137190da00c30ba7c15e8631b82b7f200858cf722f1fdd0405d36c24bb716eb099d8107f2f829a85fd7d3497f36cdac51769636989331e7a79 SHA512 cc9cdbeb98c010fe4f093a019bebfb91965dae4c6a48f8e49c38ec8df7d9da7f0d32c12fc58f22c51f1c2f010e72b65bcbf8bbf180060e93edf464fa9a7c3551 |
24 |
+DIST pcre-8.42.tar.bz2 1570171 BLAKE2B f68bac3cf8ff5a81ccba31fd4d8926e05143a25a756e7daba9793467cec9cd8a4766f394f958ffca088b472463a43a31ea77014f2d4505082c1f366a18f30c7a SHA512 b47b923108f6ee0c31409b79d0888314271b482a22590e164d02f21d2112fba22dd0342c24f9ba0f5fcc5b8c65550bad08c476e30a2fc79b34ecf4601ed82f3d |
25 |
|
26 |
diff --git a/dev-libs/libpcre/files/libpcre-8.41-fix-stack-size-detection.patch b/dev-libs/libpcre/files/libpcre-8.41-fix-stack-size-detection.patch |
27 |
index 0fd6b5f3b22..a0e71ab3f30 100644 |
28 |
--- a/dev-libs/libpcre/files/libpcre-8.41-fix-stack-size-detection.patch |
29 |
+++ b/dev-libs/libpcre/files/libpcre-8.41-fix-stack-size-detection.patch |
30 |
@@ -1,8 +1,8 @@ |
31 |
https://bugs.exim.org/show_bug.cgi?id=2173#c4 |
32 |
|
33 |
diff --git a/pcre/pcre_exec.c b/pcre/pcre_exec.c |
34 |
---- a/pcre/pcre_exec.c |
35 |
-+++ b/pcre/pcre_exec.c |
36 |
+--- a/pcre_exec.c |
37 |
++++ b/pcre_exec.c |
38 |
@@ -509,6 +509,12 @@ |
39 |
(e.g. stopped by repeated call or recursion limit) |
40 |
*/ |
41 |
|
42 |
diff --git a/dev-libs/libpcre/libpcre-8.42.ebuild b/dev-libs/libpcre/libpcre-8.42.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..613e96bb360 |
45 |
--- /dev/null |
46 |
+++ b/dev-libs/libpcre/libpcre-8.42.ebuild |
47 |
@@ -0,0 +1,96 @@ |
48 |
+# Copyright 1999-2018 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=6 |
52 |
+ |
53 |
+inherit multilib libtool flag-o-matic toolchain-funcs multilib-minimal |
54 |
+ |
55 |
+DESCRIPTION="Perl-compatible regular expression library" |
56 |
+HOMEPAGE="http://www.pcre.org/" |
57 |
+MY_P="pcre-${PV/_rc/-RC}" |
58 |
+if [[ ${PV} != *_rc* ]] ; then |
59 |
+ # Only the final releases are available here. |
60 |
+ SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2 |
61 |
+ ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2" |
62 |
+else |
63 |
+ SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2" |
64 |
+fi |
65 |
+ |
66 |
+LICENSE="BSD" |
67 |
+SLOT="3" |
68 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
69 |
+IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib" |
70 |
+REQUIRED_USE="readline? ( !libedit ) |
71 |
+ libedit? ( !readline )" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ bzip2? ( app-arch/bzip2 ) |
75 |
+ zlib? ( sys-libs/zlib ) |
76 |
+ libedit? ( dev-libs/libedit ) |
77 |
+ readline? ( sys-libs/readline:0= ) |
78 |
+" |
79 |
+DEPEND=" |
80 |
+ ${RDEPEND} |
81 |
+ virtual/pkgconfig |
82 |
+" |
83 |
+ |
84 |
+S="${WORKDIR}/${MY_P}" |
85 |
+ |
86 |
+MULTILIB_CHOST_TOOLS=( |
87 |
+ /usr/bin/pcre-config |
88 |
+) |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}"/${PN}-8.41-fix-stack-size-detection.patch |
92 |
+) |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ default |
96 |
+ sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die |
97 |
+ elibtoolize |
98 |
+} |
99 |
+ |
100 |
+multilib_src_configure() { |
101 |
+ local myeconfargs=( |
102 |
+ --with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT) |
103 |
+ $(multilib_native_use_enable bzip2 pcregrep-libbz2) |
104 |
+ $(use_enable cxx cpp) |
105 |
+ $(use_enable jit) |
106 |
+ $(use_enable jit pcregrep-jit) |
107 |
+ $(use_enable pcre16) |
108 |
+ $(use_enable pcre32) |
109 |
+ $(multilib_native_use_enable libedit pcretest-libedit) |
110 |
+ $(multilib_native_use_enable readline pcretest-libreadline) |
111 |
+ $(use_enable static-libs static) |
112 |
+ $(use_enable unicode utf) |
113 |
+ $(use_enable unicode unicode-properties) |
114 |
+ $(multilib_native_use_enable zlib pcregrep-libz) |
115 |
+ --enable-pcre8 |
116 |
+ --enable-shared |
117 |
+ ) |
118 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
119 |
+} |
120 |
+ |
121 |
+multilib_src_compile() { |
122 |
+ emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=") |
123 |
+} |
124 |
+ |
125 |
+multilib_src_install() { |
126 |
+ emake \ |
127 |
+ DESTDIR="${D}" \ |
128 |
+ $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \ |
129 |
+ install |
130 |
+ gen_usr_ldscript -a pcre |
131 |
+} |
132 |
+ |
133 |
+multilib_src_install_all() { |
134 |
+ find "${ED}" -name "*.la" -delete || die |
135 |
+} |
136 |
+ |
137 |
+pkg_preinst() { |
138 |
+ preserve_old_lib /$(get_libdir)/libpcre.so.0 |
139 |
+} |
140 |
+ |
141 |
+pkg_postinst() { |
142 |
+ preserve_old_lib_notify /$(get_libdir)/libpcre.so.0 |
143 |
+} |