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