summaryrefslogtreecommitdiff
path: root/dev-libs/libpcre2
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-07 03:05:50 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-07 03:05:50 -0500
commit8453817910bc2afbb7ab1fbf61c3f06fb7320f35 (patch)
tree3d107194f4fc4d247ed6c21875e9dff4562e22e1 /dev-libs/libpcre2
parente3ac4a99dbb849deb8dd15df4be98e6e14d55ab5 (diff)
downloadbaldeagleos-repo-8453817910bc2afbb7ab1fbf61c3f06fb7320f35.tar.gz
baldeagleos-repo-8453817910bc2afbb7ab1fbf61c3f06fb7320f35.tar.xz
baldeagleos-repo-8453817910bc2afbb7ab1fbf61c3f06fb7320f35.zip
Adding metadata
Diffstat (limited to 'dev-libs/libpcre2')
-rw-r--r--dev-libs/libpcre2/Manifest2
-rw-r--r--dev-libs/libpcre2/libpcre2-10.48.ebuild108
2 files changed, 110 insertions, 0 deletions
diff --git a/dev-libs/libpcre2/Manifest b/dev-libs/libpcre2/Manifest
index a051b362802a..901152f09c46 100644
--- a/dev-libs/libpcre2/Manifest
+++ b/dev-libs/libpcre2/Manifest
@@ -1,2 +1,4 @@
DIST pcre2-10.47.tar.bz2 2145789 BLAKE2B 9b56eddbc8b6fd6ce925575c337891c4f7790215c77325c1f0ad4a72be07e2a2a6a6b6638a5a2c49d1da6f4715320f240fd17c4ffcb77d1bb00875b990d6ee13 SHA512 889a6fdc80f8a7285e4a75d189c183b4588df81bdf048302cf0830e11bbf9b9eeb387ba43dfd3aff8ffb3aa693291e8c535845c06e8ce92d1028cefa6b474804
DIST pcre2-10.47.tar.bz2.sig 566 BLAKE2B 0bfe968f32c410a49bf1120b05027d3171b38fdd8fd4d9d77e58cad4811770ef9cabcc3275556116a5cfe28784fc5faa0c5f5bf959e7aae9d6ef2f491ffbb936 SHA512 fbea8f001533c700e0adae881d2d13f2a5f32c272cb1323fd6b76530b011fb3e8eafdc6eb762c36d91296f66fe2fe3861887d6f5219045a2dad8de55f3825051
+DIST pcre2-10.48.tar.bz2 2213024 BLAKE2B 7c500b4271e13c8a965a85c2aac4a72d5f29b7a3318b6077fa9de391512669ad26a5a774eee322c966ed38127ca9dfc139e4dacc1c1b23578d0674d882b3d84c SHA512 b350b8bfc909f3ebf9dfe39c535f04cc4618997f0fa025d12b4d92aaaac3c15ae93b6def62ed220eabbe08df9277cda0b80de4eedb7ec7376daf7e6a78a868b8
+DIST pcre2-10.48.tar.bz2.sig 566 BLAKE2B 13e1820f3b4a5c4175447c078c5c6829194681cbf368a67126ef3108ce3988908b1c8a22f3d82563fa9e13b17cb1d5daa5b274c4292fcfe78cae1512c7eddcbe SHA512 07373ddc9f7687caae29ad632cedeb4fb2306bce91c04e29754672ef98e4f37b4f92bfe135c53f0162d7f7d4d654a77aa6341cd1168c630357e0a685ce8c33dc
diff --git a/dev-libs/libpcre2/libpcre2-10.48.ebuild b/dev-libs/libpcre2/libpcre2-10.48.ebuild
new file mode 100644
index 000000000000..6a7f13d47276
--- /dev/null
+++ b/dev-libs/libpcre2/libpcre2-10.48.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Always bump this package with virtual/libpcre2-internals.
+
+# https://pcre2project.github.io/pcre2/project/security/
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nicholaswilson.asc
+inherit dot-a libtool multilib multilib-minimal toolchain-funcs verify-sig
+
+MY_P="pcre2-${PV/_rc/-RC}"
+DESCRIPTION="Perl-compatible regular expression library"
+HOMEPAGE="https://pcre2project.github.io/pcre2/ https://www.pcre.org/"
+SRC_URI="
+ https://github.com/PCRE2Project/pcre2/releases/download/${MY_P}/${MY_P}.tar.bz2
+ verify-sig? ( https://github.com/PCRE2Project/pcre2/releases/download/${MY_P}/${MY_P}.tar.bz2.sig )
+"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="BSD"
+SLOT="0/3" # libpcre2-posix.so version
+if [[ ${PV} != *_rc* ]] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+fi
+IUSE="bzip2 +jit libedit +pcre16 +pcre32 +readline static-libs unicode valgrind zlib"
+REQUIRED_USE="?? ( libedit readline )"
+
+RDEPEND="
+ bzip2? ( app-arch/bzip2 )
+ libedit? ( dev-libs/libedit )
+ readline? ( sys-libs/readline:= )
+ zlib? ( virtual/zlib:= )
+"
+DEPEND="
+ ${RDEPEND}
+ valgrind? ( dev-debug/valgrind )
+"
+BDEPEND="
+ virtual/pkgconfig
+ verify-sig? ( >=sec-keys/openpgp-keys-nicholaswilson-20250910 )
+"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pcre2-config
+)
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ # Only exists in MS Visual C++ (bug #954363)
+ __assume
+)
+
+src_prepare() {
+ default
+ elibtoolize
+}
+
+src_configure() {
+ use static-libs && lto-guarantee-fat
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-pcre2-8
+ --enable-shared
+ $(multilib_native_use_enable bzip2 pcre2grep-libbz2)
+ $(multilib_native_use_enable libedit pcre2test-libedit)
+ $(multilib_native_use_enable readline pcre2test-libreadline)
+ $(multilib_native_use_enable valgrind)
+ $(multilib_native_use_enable zlib pcre2grep-libz)
+ $(use_enable jit)
+ $(use_enable jit pcre2grep-jit)
+ $(use_enable pcre16 pcre2-16)
+ $(use_enable pcre32 pcre2-32)
+ $(use_enable static-libs static)
+ $(use_enable unicode)
+ )
+
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+ emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
+}
+
+multilib_src_test() {
+ emake check VERBOSE=yes
+}
+
+multilib_src_install() {
+ emake \
+ DESTDIR="${D}" \
+ $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
+ install
+
+ # bug #934977
+ if ! tc-is-static-only && [[ ! -f "${ED}/usr/$(get_libdir)/libpcre2-8$(get_libname)" ]] ; then
+ eerror "Sanity check for libpcre2-8$(get_libname) failed."
+ eerror "Shared library wasn't built, possible libtool bug"
+ [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]] && die "libpcre2-8$(get_libname) not found in build, aborting"
+ fi
+}
+
+multilib_src_install_all() {
+ find "${ED}" -type f -name "*.la" -delete || die
+ strip-lto-bytecode
+}