1 |
commit: 61c3559ec27d3548921a07f9a828bb265940c9c8 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 24 21:05:14 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 24 22:23:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c3559e |
7 |
|
8 |
dev-libs/satyr: Version bump to 0.31 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
dev-libs/satyr/Manifest | 1 + |
13 |
dev-libs/satyr/satyr-0.31.ebuild | 99 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 100 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/satyr/Manifest b/dev-libs/satyr/Manifest |
17 |
index 6a336244dea..69fd9486808 100644 |
18 |
--- a/dev-libs/satyr/Manifest |
19 |
+++ b/dev-libs/satyr/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST satyr-0.27.tar.gz 435341 BLAKE2B ade40bc6a1c48e6fc0af7913ff94ed044c63fdb63b8d86ba010bebcfd2098831bc6c7361d116851aee88f49c640d1457dd8953becad60b6ff6dc32deec6c7942 SHA512 7b01cf16489644fbfbe2150477279a94c6fa9b3310edebc84b83bab58d1058df0be478ab6bf4c6910b4168122721dde10d573711abb983b0eb5ccda09cb80710 |
22 |
DIST satyr-0.30.tar.gz 427940 BLAKE2B 97fedef59cc77b2ae81857c491532552c352a272658d02564d2661d06a4ccc99c18bcd57e5e68e5a612e9e65c5878f19b2f18bbe74066874a7295e2f65d64149 SHA512 ebc6e9c0fd8cd130cf1701573c8ecdadf73fe54efa563759a47f990a91b217cf1dec01045be624d15cfa96b1370ddf2412b0537e57ed628dc27e860be46e21cf |
23 |
+DIST satyr-0.31.tar.gz 428719 BLAKE2B 23c6ea53db261fee366566101c2b0f1e23cf530728332fe752897ee982ffac057b98de3d9a52dbfc64932cdb73aaff7e35c976e7a55e30b4417f3880782f9125 SHA512 a5aafa1ca5f85a0a817c6fa9a3b428672c9f4f529fb7d73a3e819cc836b78c01a0ca44b47317fcdd4a40dc6386688a450bd78564b6e466091cdc9a2c730c3fda |
24 |
|
25 |
diff --git a/dev-libs/satyr/satyr-0.31.ebuild b/dev-libs/satyr/satyr-0.31.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..362a8ca2186 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/satyr/satyr-0.31.ebuild |
30 |
@@ -0,0 +1,99 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_COMPAT=( python3_{7..9} ) |
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="python? ( ${PYTHON_DEPS} ) |
52 |
+ >=dev-libs/elfutils-0.158 |
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 |
+} |