app-admin/setools: IUSE X -> gui, sync 9999 with 4.5.1

Amends 010e5171be,
ca6cab88cb,
34a8e3101f

Bug: https://bugs.gentoo.org/931286
Bug: https://bugs.gentoo.org/933780
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-01-27 22:43:21 +01:00
parent 4d300a899a
commit 39bbb03b44
4 changed files with 16 additions and 32 deletions

View File

@@ -1,18 +0,0 @@
--- a/setup.py
+++ b/setup.py
@@ -139,12 +139,10 @@ setup(name='setools',
author_email='pebenito@ieee.org',
url='https://github.com/SELinuxProject/setools',
cmdclass={'build_qhc': QtHelpCommand, 'clean': CleanCommand},
- packages=['setools', 'setools.checker', 'setools.diff', 'setoolsgui', 'setoolsgui.apol'],
- scripts=['apol', 'sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta', 'sechecker'],
+ packages=['setools', 'setools.checker', 'setools.diff'],
+ scripts=['sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta', 'sechecker'],
data_files=installed_data,
- package_data={'': ['*.ui', '*.qhc', '*.qch'], 'setools': ['perm_map',
- 'policyrep.pyi',
- 'py.typed']},
+ package_data={'setools': ['perm_map', 'policyrep.pyi', 'py.typed']},
ext_modules=cythonize(ext_py_mods, include_path=['setools/policyrep'],
annotate=cython_annotate,
compiler_directives={"language_level": 3,

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
@@ -12,7 +12,7 @@ inherit distutils-r1
DESCRIPTION="Policy Analysis Tools for SELinux"
HOMEPAGE="https://github.com/SELinuxProject/setools/wiki"
if [[ ${PV} == 9999 ]] ; then
if [[ ${PV} == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/SELinuxProject/setools.git"
S="${WORKDIR}/${P}"
@@ -24,7 +24,7 @@ fi
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
IUSE="test X"
IUSE="gui test"
RESTRICT="!test? ( test )"
RDEPEND="${PYTHON_DEPS}
@@ -32,7 +32,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/setuptools[${PYTHON_USEDEP}]
>=sys-libs/libsepol-3.2:=
>=sys-libs/libselinux-3.2:=
X? (
gui? (
dev-python/pyqt6[gui,widgets,${PYTHON_USEDEP}]
dev-python/pygraphviz[${PYTHON_USEDEP}]
)"
@@ -50,7 +50,7 @@ python_prepare_all() {
sed -i "s@^lib_dirs = .*@lib_dirs = ['${ROOT:-/}usr/$(get_libdir)']@" "${S}"/setup.py || \
die "failed to set lib_dirs"
use X || PATCHES+=( "${FILESDIR}"/setools-4.5.1-remove-gui.patch )
use gui || PATCHES+=( "${FILESDIR}"/${P}-remove-gui.patch )
distutils-r1_python_prepare_all
}

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
@@ -12,19 +12,19 @@ inherit distutils-r1
DESCRIPTION="Policy Analysis Tools for SELinux"
HOMEPAGE="https://github.com/SELinuxProject/setools/wiki"
if [[ ${PV} == 9999 ]] ; then
if [[ ${PV} == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/SELinuxProject/setools.git"
S="${WORKDIR}/${P}"
else
SRC_URI="https://github.com/SELinuxProject/setools/releases/download/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
S="${WORKDIR}/${PN}"
fi
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
IUSE="test X"
IUSE="gui test"
RESTRICT="!test? ( test )"
RDEPEND="${PYTHON_DEPS}
@@ -32,13 +32,15 @@ RDEPEND="${PYTHON_DEPS}
dev-python/setuptools[${PYTHON_USEDEP}]
>=sys-libs/libsepol-3.2:=
>=sys-libs/libselinux-3.2:=
X? (
gui? (
dev-python/pyqt6[gui,widgets,${PYTHON_USEDEP}]
dev-python/pygraphviz[${PYTHON_USEDEP}]
)"
DEPEND="${RDEPEND}"
BDEPEND=">=dev-python/cython-0.29.14[${PYTHON_USEDEP}]
test? (
dev-python/pyqt6[gui,testlib,widgets,${PYTHON_USEDEP}]
dev-python/pytest-qt[${PYTHON_USEDEP}]
sys-apps/checkpolicy
)"
@@ -48,7 +50,7 @@ python_prepare_all() {
sed -i "s@^lib_dirs = .*@lib_dirs = ['${ROOT:-/}usr/$(get_libdir)']@" "${S}"/setup.py || \
die "failed to set lib_dirs"
use X || PATCHES+=( "${FILESDIR}"/setools-4.4.2-remove-gui.patch )
use gui || PATCHES+=( "${FILESDIR}"/${PN}-4.5.1-remove-gui.patch )
distutils-r1_python_prepare_all
}

View File

@@ -188,8 +188,8 @@ net-analyzer/rrdtool rados
>=media-video/ffmpeg-5 shaderc
# matoro <matoro_gentoo@matoro.tk> (2023-11-22)
# Qt 5 is not keyworded here
app-admin/setools X test
# PyQt 6 is not keyworded here
app-admin/setools gui test
# matoro <matoro_gentoo@matoro.tk> (2023-11-22)
# Qt 5 is not keyworded here