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