summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-14 08:18:31 +0100
committerSam James <sam@gentoo.org>2023-05-14 08:26:39 +0100
commit384dcdde49b74c051eff19816a711831364795ba (patch)
tree93877955d1170c621016499c80f4536234e4a7e3 /dev-libs/libpcre
parentsci-libs/pdal: drop old versions (diff)
downloadgentoo-384dcdde49b74c051eff19816a711831364795ba.tar.gz
gentoo-384dcdde49b74c051eff19816a711831364795ba.tar.bz2
gentoo-384dcdde49b74c051eff19816a711831364795ba.zip
dev-libs/libpcre: add Valgrind annotation support 194
The headers are needed to get Valgrind annotations. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libpcre')
-rw-r--r--dev-libs/libpcre/libpcre-8.45-r1.ebuild18
-rw-r--r--dev-libs/libpcre/metadata.xml1
2 files changed, 13 insertions, 6 deletions
diff --git a/dev-libs/libpcre/libpcre-8.45-r1.ebuild b/dev-libs/libpcre/libpcre-8.45-r1.ebuild
index 18522d5343a3..4c1bdd5438eb 100644
--- a/dev-libs/libpcre/libpcre-8.45-r1.ebuild
+++ b/dev-libs/libpcre/libpcre-8.45-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -22,17 +22,22 @@ S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="3"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~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 ~x86-winnt"
-IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline static-libs unicode zlib"
-REQUIRED_USE="readline? ( !libedit )
- libedit? ( !readline )"
+IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline static-libs unicode valgrind zlib"
+REQUIRED_USE="
+ readline? ( !libedit )
+ libedit? ( !readline )
+"
RDEPEND="
bzip2? ( app-arch/bzip2 )
zlib? ( sys-libs/zlib )
libedit? ( dev-libs/libedit )
- readline? ( sys-libs/readline:0= )
+ readline? ( sys-libs/readline:= )
+"
+DEPEND="
+ ${RDEPEND}
+ valgrind? ( dev-util/valgrind )
"
-DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
MULTILIB_CHOST_TOOLS=(
@@ -63,6 +68,7 @@ multilib_src_configure() {
$(use_enable static-libs static)
$(use_enable unicode utf)
$(use_enable unicode unicode-properties)
+ $(multilib_native_use_enable valgrind)
$(multilib_native_use_enable zlib pcregrep-libz)
--enable-pcre8
diff --git a/dev-libs/libpcre/metadata.xml b/dev-libs/libpcre/metadata.xml
index e7bcdb6d6d5d..f5512da0f52d 100644
--- a/dev-libs/libpcre/metadata.xml
+++ b/dev-libs/libpcre/metadata.xml
@@ -16,6 +16,7 @@
Add support for command line editing to pcretest, through
<pkg>sys-libs/readline</pkg>.
</flag>
+ <flag name="valgrind">Support Valgrind (<pkg>dev-util/valgrind</pkg>) with annotations to improve results for memcheck.</flag>
<flag name="zlib">
Add support for pcregrep command to search within
gzip-compressed files (via <pkg>sys-libs/zlib</pkg>).