Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpcre2/
Date: Sun, 10 May 2020 14:08:39
Message-Id: 1589119711.b7d8f8a829f9f32429a78623babf1e347e4f7942.polynomial-c@gentoo
1 commit: b7d8f8a829f9f32429a78623babf1e347e4f7942
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 10 14:08:22 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun May 10 14:08:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7d8f8a8
7
8 dev-libs/libpcre2: Bump to version 10.35
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libpcre2/Manifest | 1 +
14 dev-libs/libpcre2/libpcre2-10.35.ebuild | 91 +++++++++++++++++++++++++++++++++
15 2 files changed, 92 insertions(+)
16
17 diff --git a/dev-libs/libpcre2/Manifest b/dev-libs/libpcre2/Manifest
18 index a8947feadd7..8497efa4857 100644
19 --- a/dev-libs/libpcre2/Manifest
20 +++ b/dev-libs/libpcre2/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libpcre2-10.34-patchset-01.tar.xz 1208 BLAKE2B 615b7eff085bd52bb3aed30c90ec5b8cec406f96c58bdfb0304dd59311517662067e68f85bc9930ed6f749820ecfe3c483e261616187bc1077ebb053670d4950 SHA512 d881665701bc330f237d19ee48491a81dc8b952b0b8e529eb83c3ffdf14710f68eb934f872ed76ef6b0bee1864261453e7e71e60e14217c004e4e12c6baa499f
23 DIST pcre2-10.34.tar.bz2 1714731 BLAKE2B f731339b3acdb084ddb1462cf4638edefbfc4a95e63e44c8c75ded55fd9b98334336dbda5f31bd8e9410e63ccd83dc7e707cc20f03df4d801f182ff4939b6cc6 SHA512 77ad75f8b0b8bbfc2f57932596151bca25b06bd621e0f047e476f38cd127f43e2052460b95c281a7e874aad2b7fd86c8f3413f4a323abb74b9440a42d0ee9524
24 +DIST pcre2-10.35.tar.bz2 1725214 BLAKE2B f97412258f0d2c09dc18c5973156e616730ae301713a0172fb2f467e5d2857bf64c6d02ac247e797ce4c96e2fb9b122888f71aede3f5eb3540731f6c3c254ed4 SHA512 ecfb8d48e219daff02874783b7b436fe7d70d8471e44eb66e1e29abb7b0aa67547e6b5fba7058b074ac90eef265ece7d12728f80afdda45b6b8124435f4561fd
25
26 diff --git a/dev-libs/libpcre2/libpcre2-10.35.ebuild b/dev-libs/libpcre2/libpcre2-10.35.ebuild
27 new file mode 100644
28 index 00000000000..89944f501cc
29 --- /dev/null
30 +++ b/dev-libs/libpcre2/libpcre2-10.35.ebuild
31 @@ -0,0 +1,91 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic libtool multilib-minimal toolchain-funcs usr-ldscript
38 +
39 +PATCH_SET="${PN}-10.34-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 +else
49 + SRC_URI="https://ftp.pcre.org/pub/pcre/Testing/${MY_P}.tar.bz2"
50 +fi
51 +
52 +if [[ -n "${PATCH_SET}" ]] ; then
53 + SRC_URI+=" https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}
54 + https://dev.gentoo.org/~polynomial-c/dist/${PATCH_SET}"
55 +fi
56 +
57 +LICENSE="BSD"
58 +SLOT="0"
59 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
60 +IUSE="bzip2 +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib"
61 +REQUIRED_USE="?? ( libedit readline )"
62 +
63 +BDEPEND="
64 + virtual/pkgconfig
65 + userland_GNU? ( >=sys-apps/findutils-4.4.0 )
66 +"
67 +RDEPEND="
68 + bzip2? ( app-arch/bzip2 )
69 + libedit? ( dev-libs/libedit )
70 + readline? ( sys-libs/readline:0= )
71 + zlib? ( sys-libs/zlib )
72 +"
73 +DEPEND="${RDEPEND}"
74 +
75 +S="${WORKDIR}/${MY_P}"
76 +
77 +MULTILIB_CHOST_TOOLS=(
78 + /usr/bin/pcre2-config
79 +)
80 +
81 +src_prepare() {
82 + [[ -d "${WORKDIR}/patches" ]] && eapply "${WORKDIR}"/patches
83 +
84 + default
85 +
86 + elibtoolize
87 +}
88 +
89 +multilib_src_configure() {
90 + local myeconfargs=(
91 + --enable-pcre2-8
92 + --enable-shared
93 + --with-match-limit-depth=$(usex recursion-limit 8192 MATCH_LIMIT)
94 + $(multilib_native_use_enable bzip2 pcre2grep-libbz2)
95 + $(multilib_native_use_enable libedit pcre2test-libedit)
96 + $(multilib_native_use_enable readline pcre2test-libreadline)
97 + $(multilib_native_use_enable zlib pcre2grep-libz)
98 + $(use_enable jit)
99 + $(use_enable jit pcre2grep-jit)
100 + $(use_enable pcre16 pcre2-16)
101 + $(use_enable pcre32 pcre2-32)
102 + $(use_enable static-libs static)
103 + $(use_enable unicode)
104 + )
105 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
106 +}
107 +
108 +multilib_src_compile() {
109 + emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
110 +}
111 +
112 +multilib_src_install() {
113 + emake \
114 + DESTDIR="${D}" \
115 + $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
116 + install
117 + multilib_is_native_abi && gen_usr_ldscript -a pcre2-posix
118 +}
119 +
120 +multilib_src_install_all() {
121 + find "${ED}" -type f -name "*.la" -delete || die
122 +}