1 |
commit: 93b6240ab30ac070c289194fe303df29c8800611 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 17 09:52:21 2019 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 17 10:03:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93b6240a |
7 |
|
8 |
app-admin/setools: bump 4.2.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
12 |
|
13 |
app-admin/setools/Manifest | 1 + |
14 |
app-admin/setools/setools-4.2.2.ebuild | 49 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest |
18 |
index 387b91c6a8d..45ebb0c4779 100644 |
19 |
--- a/app-admin/setools/Manifest |
20 |
+++ b/app-admin/setools/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST setools-4.1.1.tar.gz 461649 BLAKE2B a753718aa6a5de889ba7a2eea921340061edf1bcb0b572a365e858949a92d2f8a92a876be2e4bc539d85fa6029511ab6afabfbe8138cdb5a73b587a9b58551bb SHA512 2e55a3b07e2f94d7c84054f31d266567b9acc708fe2b0e16ac3ea24e8301c712bcf564ff915a6135a1a6ba6822682bb3a6530dae20161a832fb7048364acbd04 |
23 |
DIST setools-4.2.1.tar.gz 365096 BLAKE2B f415ec15ce7caade2a511896c6027720ecd8b4fae938d9dee1e0b677388966557b9615503df58dd6057f5c0ef81690f753f3e1af773ef5fd8095b29aca0ab249 SHA512 7d00295fe7ff16e96e15266807f8e0a67cc2978f9051cd85afb9ee71ca7fad16ccf7421a4a163bb793950bc20a44f3cbb8409b4e0642d0f96cf7a3df7bc59c31 |
24 |
+DIST setools-4.2.2.tar.bz2 237881 BLAKE2B 6c09223e36af4ccf1ab3c194df3a4dd2871887abf25c9bcd66ef3510357f2fb6efef65a8c773267eb951c05e8308b12d96bab8efb65eb07c2ae53be60f045e82 SHA512 03eb9dfa22da6d6cffd1732fbc7d50eb8276c235d29f76b774e190b3f04f3b00533131885c6d4bc3c8dc965526b1bf4d6aec4bb3af193b4eb76a15acaa9f743f |
25 |
|
26 |
diff --git a/app-admin/setools/setools-4.2.2.ebuild b/app-admin/setools/setools-4.2.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f186598f7c0 |
29 |
--- /dev/null |
30 |
+++ b/app-admin/setools/setools-4.2.2.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+PYTHON_COMPAT=( python3_5 python3_6 ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Policy Analysis Tools for SELinux" |
41 |
+HOMEPAGE="https://github.com/SELinuxProject/setools/wiki" |
42 |
+ |
43 |
+if [[ ${PV} == 9999 ]] ; then |
44 |
+ inherit git-r3 |
45 |
+ EGIT_REPO_URI="https://github.com/SELinuxProject/setools.git" |
46 |
+else |
47 |
+ SRC_URI="https://github.com/SELinuxProject/setools/releases/download/${PV}/${P}.tar.bz2" |
48 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
49 |
+fi |
50 |
+ |
51 |
+LICENSE="GPL-2 LGPL-2.1" |
52 |
+SLOT="0" |
53 |
+IUSE="X test" |
54 |
+ |
55 |
+RDEPEND="${PYTHON_DEPS} |
56 |
+ >=dev-python/networkx-2.0[${PYTHON_USEDEP}] |
57 |
+ >=sys-libs/libsepol-2.8:= |
58 |
+ >=sys-libs/libselinux-2.8:= |
59 |
+ X? ( |
60 |
+ dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] |
61 |
+ )" |
62 |
+ |
63 |
+DEPEND="${RDEPEND} |
64 |
+ >=dev-python/cython-0.27 |
65 |
+ test? ( |
66 |
+ sys-apps/checkpolicy |
67 |
+ )" |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ sed -i "s/'-Werror', //" "${S}"/setup.py || die "failed to remove Werror" |
71 |
+ sed -i "s@^lib_dirs = .*@lib_dirs = ['${ROOT:-/}usr/$(get_libdir)']@" "${S}"/setup.py || \ |
72 |
+ die "failed to set lib_dirs" |
73 |
+ |
74 |
+ use X || local PATCHES=( "${FILESDIR}"/setools-4.2.0-remove-gui.patch ) |
75 |
+ distutils-r1_python_prepare_all |
76 |
+} |
77 |
+ |
78 |
+python_test() { |
79 |
+ esetup.py test |
80 |
+} |