summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenton Groombridge <concord@gentoo.org>2022-06-02 09:50:52 -0400
committerKenton Groombridge <concord@gentoo.org>2022-06-03 21:02:53 -0400
commita245b6b7b1c3ad557610262c28eadb3bbc2ed19a (patch)
treec7d25b4e2976b19d762acb78dddcc6bbaffbcded /sys-libs/libselinux
parentdev-perl/Sereal-Encoder: add 4.23.0 (diff)
downloadgentoo-a245b6b7b1c3ad557610262c28eadb3bbc2ed19a.tar.gz
gentoo-a245b6b7b1c3ad557610262c28eadb3bbc2ed19a.tar.bz2
gentoo-a245b6b7b1c3ad557610262c28eadb3bbc2ed19a.zip
sys-libs/libselinux: make pcre2 unconditional
Bug: https://bugs.gentoo.org/837986 Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'sys-libs/libselinux')
-rw-r--r--sys-libs/libselinux/libselinux-9999.ebuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys-libs/libselinux/libselinux-9999.ebuild b/sys-libs/libselinux/libselinux-9999.ebuild
index 90b74872231d..e2a73b254d7b 100644
--- a/sys-libs/libselinux/libselinux-9999.ebuild
+++ b/sys-libs/libselinux/libselinux-9999.ebuild
@@ -26,12 +26,11 @@ fi
LICENSE="public-domain"
SLOT="0"
-IUSE="+pcre2 python ruby static-libs ruby_targets_ruby26 ruby_targets_ruby27"
+IUSE="python ruby static-libs ruby_targets_ruby26 ruby_targets_ruby27"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RDEPEND=">=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
- !pcre2? ( >=dev-libs/libpcre-8.33-r1:=[static-libs?,${MULTILIB_USEDEP}] )
- pcre2? ( dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}] )
+RDEPEND="dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}]
+ >=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
python? ( ${PYTHON_DEPS} )
ruby? (
ruby_targets_ruby26? ( dev-lang/ruby:2.6 )
@@ -58,7 +57,7 @@ multilib_src_compile() {
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)" \
LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
- USE_PCRE2="$(usex pcre2 y n)" \
+ USE_PCRE2=y \
FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
all
@@ -68,7 +67,7 @@ multilib_src_compile() {
LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)" \
- USE_PCRE2="$(usex pcre2 y n)" \
+ USE_PCRE2=y \
FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
pywrap
}
@@ -85,7 +84,7 @@ multilib_src_compile() {
LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)" \
- USE_PCRE2="$(usex pcre2 y n)" \
+ USE_PCRE2=y \
FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
rubywrap
}
@@ -101,7 +100,7 @@ multilib_src_install() {
emake DESTDIR="${D}" \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)" \
- USE_PCRE2="$(usex pcre2 y n)" \
+ USE_PCRE2=y \
install
if multilib_is_native_abi && use python; then
@@ -109,7 +108,7 @@ multilib_src_install() {
emake DESTDIR="${D}" \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)" \
- USE_PCRE2="$(usex pcre2 y n)" \
+ USE_PCRE2=y \
install-pywrap
python_optimize # bug 531638
}
@@ -125,7 +124,7 @@ multilib_src_install() {
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)" \
RUBY=${1} \
- USE_PCRE2="$(usex pcre2 y n)" \
+ USE_PCRE2=y \
install-rubywrap
}
for RUBYTARGET in ${USE_RUBY}; do