1 |
commit: dd8cb817ad5974e28ff5b62b4084177a31e2a70f |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 18:10:29 2021 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 21 18:25:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd8cb817 |
7 |
|
8 |
dev-libs/satyr: Bump to 0.39 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
dev-libs/satyr/Manifest | 1 + |
14 |
dev-libs/satyr/satyr-0.39.ebuild | 101 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/satyr/Manifest b/dev-libs/satyr/Manifest |
18 |
index 12fe8b7800d4..9969e66ff3ef 100644 |
19 |
--- a/dev-libs/satyr/Manifest |
20 |
+++ b/dev-libs/satyr/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST satyr-0.38.tar.gz 433626 BLAKE2B 682d28a932758353e986d2906baf294183756d60a063ce03ba79506b58c92e4fc039c2246c0d43910f6d27d62dd674ffd3b772eeb6e8de46d8080735754b3d3a SHA512 09168050ca7bae00fb3d39f23f8c1e0adcf9cc4d3e491aa002bf9a0a7a265df980d12e430ea7f3eaa9010e0432821b106db5ce3b1e8d935d78b1e56d37110051 |
23 |
+DIST satyr-0.39.tar.gz 434581 BLAKE2B 7b4e11d8027877aa3b9e8144f8917f03b489b157c1112794a3c2bea9998a4367a7ec06cdec6c144fd96ecdabc83a85c5fb2644df02d59086ea3a113b1402fabe SHA512 f6d24ae054867ccdbb2dabdd63c6b351f7eec9ffe5426bdeffa86d585a52d13b07dd31e26b7d14e4850a1fdca748b0d5e23bb51fbc2843af79bf306f09d3145f |
24 |
|
25 |
diff --git a/dev-libs/satyr/satyr-0.39.ebuild b/dev-libs/satyr/satyr-0.39.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..754906da9469 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/satyr/satyr-0.39.ebuild |
30 |
@@ -0,0 +1,101 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+PYTHON_COMPAT=( python3_{7..10} ) |
36 |
+ |
37 |
+inherit autotools multiprocessing python-r1 |
38 |
+ |
39 |
+DESCRIPTION="Satyr is a collection of low-level algorithms for program failure processing" |
40 |
+HOMEPAGE="https://github.com/abrt/satyr" |
41 |
+SRC_URI="https://github.com/abrt/${PN}/archive/${PV}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2+" |
44 |
+SLOT="0/4" |
45 |
+ |
46 |
+IUSE="python" |
47 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
48 |
+ |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ python? ( ${PYTHON_DEPS} ) |
53 |
+ >=dev-libs/elfutils-0.158 |
54 |
+ dev-libs/glib:2 |
55 |
+ dev-libs/json-c:= |
56 |
+ dev-libs/nettle:= |
57 |
+" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+BDEPEND=" |
60 |
+ virtual/pkgconfig |
61 |
+ dev-util/gperf |
62 |
+" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ ./gen-version || die # Needs to be run before full autoreconf |
67 |
+ eautoreconf |
68 |
+ use python && python_copy_sources |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ use python && python_setup |
73 |
+ |
74 |
+ local myargs=( |
75 |
+ --localstatedir="${EPREFIX}/var" |
76 |
+ --without-rpm |
77 |
+ $(usex python "--with-python3" "--without-python3") |
78 |
+ ) |
79 |
+ |
80 |
+ if use python; then |
81 |
+ python_configure() { |
82 |
+ econf "${myargs[@]}" |
83 |
+ } |
84 |
+ python_foreach_impl run_in_build_dir python_configure |
85 |
+ else |
86 |
+ econf "${myargs[@]}" |
87 |
+ fi |
88 |
+} |
89 |
+ |
90 |
+src_compile() { |
91 |
+ if use python; then |
92 |
+ python_foreach_impl run_in_build_dir default |
93 |
+ else |
94 |
+ default |
95 |
+ fi |
96 |
+ |
97 |
+} |
98 |
+ |
99 |
+src_test() { |
100 |
+ local extra_args |
101 |
+ |
102 |
+ # In order to pass --jobs to the test runner |
103 |
+ run_tests() { |
104 |
+ cd tests || die |
105 |
+ emake testsuite |
106 |
+ ./testsuite --jobs=$(makeopts_jobs) ${extra_args[@]} $@ |
107 |
+ |
108 |
+ # Only run the python bindings tests for other python impls |
109 |
+ extra_args=('-k' 'python3_bindings.*') |
110 |
+ } |
111 |
+ |
112 |
+ if use python; then |
113 |
+ python_foreach_impl run_in_build_dir run_tests |
114 |
+ else |
115 |
+ run_tests SKIP_PYTHON3=yes |
116 |
+ fi |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ if use python; then |
121 |
+ python_install() { |
122 |
+ default |
123 |
+ python_optimize |
124 |
+ } |
125 |
+ python_foreach_impl run_in_build_dir python_install |
126 |
+ else |
127 |
+ default |
128 |
+ fi |
129 |
+ |
130 |
+ find "${D}" -name '*.la' -type f -delete || die |
131 |
+} |