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