dev-libs/rasqal: fix build with USE=pcre when old libpcre is not installed

The previously committed upstream patch for libpcre2 support has some
dodgy behaviour wrt. the --enable-pcre flag. Instead we can let configure
autodetect whatever it finds and then select the library we want
(libpcre2 or posix) depending on USE.
Also properly depend on libcre2 subslot.

Closes: https://bugs.gentoo.org/962785
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43756
Closes: https://github.com/gentoo/gentoo/pull/43756
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2025-09-12 18:36:50 +02:00
committed by Sam James
parent f071f7b33b
commit ad730e7afc

View File

@@ -24,7 +24,7 @@ RDEPEND="
!gmp? ( dev-libs/mpfr:= )
gmp? ( dev-libs/gmp:= )
kernel_linux? ( >=sys-apps/util-linux-2.19 )
pcre? ( dev-libs/libpcre2 )
pcre? ( dev-libs/libpcre2:= )
xml? ( dev-libs/libxml2:= )
"
DEPEND="${RDEPEND}"
@@ -58,7 +58,6 @@ src_configure() {
local myeconfargs=(
--with-decimal=$(usex gmp gmp mpfr)
--with-uuid-library=$(usex kernel_linux libuuid internal)
$(use_enable pcre)
--with-regex-library=$(usex pcre pcre2 posix)
$(use_enable static-libs static)
$(use_enable xml xml2)