mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-16 11:02:04 +02:00
sys-libs/libselinux: Sync with Gentoo
It's from Gentoo commit 35682fb9cc368eedd2568009b1b6a2ad81c997be. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
c22321a5fb
commit
c9695d6823
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -46,7 +46,9 @@ BDEPEND="virtual/pkgconfig
|
||||
python? (
|
||||
>=dev-lang/swig-2.0.9
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
)
|
||||
${PYTHON_DEPS}
|
||||
${DISTUTILS_DEPS}
|
||||
)
|
||||
ruby? ( >=dev-lang/swig-2.0.9 )"
|
||||
|
||||
src_prepare() {
|
||||
@ -60,6 +62,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
default
|
||||
if multilib_is_native_abi; then
|
||||
if use python; then
|
||||
distutils-r1_src_configure
|
||||
@ -164,8 +167,11 @@ python_install() {
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if use python; then
|
||||
distutils-r1_src_test
|
||||
default
|
||||
if multilib_is_native_abi; then
|
||||
if use python; then
|
||||
distutils-r1_src_test
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
USE_RUBY="ruby32 ruby33"
|
||||
|
||||
@ -45,15 +46,30 @@ BDEPEND="virtual/pkgconfig
|
||||
python? (
|
||||
>=dev-lang/swig-2.0.9
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
)
|
||||
${PYTHON_DEPS}
|
||||
${DISTUTILS_DEPS}
|
||||
)
|
||||
ruby? ( >=dev-lang/swig-2.0.9 )"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
if use python; then
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
default
|
||||
if multilib_is_native_abi; then
|
||||
if use python; then
|
||||
distutils-r1_src_configure
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
tc-export AR CC PKG_CONFIG RANLIB
|
||||
|
||||
@ -150,6 +166,13 @@ python_install() {
|
||||
dosym -r "$(python_get_sitedir)/selinux/_selinux${pycext}" "$(python_get_sitedir)/_selinux${pycext}"
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
default
|
||||
if use python; then
|
||||
distutils-r1_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Fix bug 473502
|
||||
for POLTYPE in ${POLICY_TYPES};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user