1 |
commit: 07b5195672f710e700de7dca39519ea1b58d60b6 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 22 09:08:40 2022 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 22 09:14:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07b51956 |
7 |
|
8 |
dev-libs/libreport: Bump to 2.16.0 |
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/libreport/Manifest | 1 + |
14 |
dev-libs/libreport/libreport-2.16.0.ebuild | 100 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 101 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libreport/Manifest b/dev-libs/libreport/Manifest |
18 |
index 7116c7dea91f..0c523b06126e 100644 |
19 |
--- a/dev-libs/libreport/Manifest |
20 |
+++ b/dev-libs/libreport/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST libreport-2.15.2.tar.gz 1859867 BLAKE2B f890e3cb8b2a23647e4c3fb0caaf984b1b21fd32e066d04f835f8a475e317cbc75287375e0a10a01b91670d04bba1f15b1180065f7029b8d7d1c0a2fb890914b SHA512 c98003325fa70d674177c9f602a7f121815a9675701ee780ad8908ed69862f2c69be65c7483fd3f017ba299dda51ba304f0908c771c9d97cb5bba057e3a9c5dc |
23 |
+DIST libreport-2.16.0.tar.gz 1901880 BLAKE2B 520ad157de02dbe5fd15b2ffcfc9b0a09587c3696b41a202f0a78b53a2d366a2991906437aa38d7c84407dcd4a788d358b9e320f70c30e602f1b903433288717 SHA512 cbb456bb63b92a255fecb87191160c2e515b4434cbaaa9404fb69f4f78421fe98c4057969f4b6b99e1b52e815d83c483bdbbe606a4bd2e34cf5268769e7bd40f |
24 |
|
25 |
diff --git a/dev-libs/libreport/libreport-2.16.0.ebuild b/dev-libs/libreport/libreport-2.16.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..f8d64e4b1687 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/libreport/libreport-2.16.0.ebuild |
30 |
@@ -0,0 +1,100 @@ |
31 |
+# Copyright 1999-2022 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 python-r1 |
38 |
+ |
39 |
+DESCRIPTION="Generic library for reporting software bugs" |
40 |
+HOMEPAGE="https://github.com/abrt/libreport" |
41 |
+SRC_URI="https://github.com/abrt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0/2" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+IUSE="gtk +python" |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
49 |
+ |
50 |
+DEPEND="${PYTHON_DEPS} |
51 |
+ app-admin/augeas |
52 |
+ app-arch/libarchive:0= |
53 |
+ >=dev-libs/glib-2.43.4:2 |
54 |
+ >=dev-libs/satyr-0.38:0= |
55 |
+ dev-libs/json-c:= |
56 |
+ dev-libs/libxml2:2 |
57 |
+ dev-libs/nettle:= |
58 |
+ dev-libs/newt:= |
59 |
+ dev-libs/xmlrpc-c:= |
60 |
+ net-libs/libproxy:= |
61 |
+ net-misc/curl:=[ssl] |
62 |
+ sys-apps/dbus |
63 |
+ sys-apps/systemd |
64 |
+ gtk? ( >=x11-libs/gtk+-3.3.12:3 ) |
65 |
+ python? ( ${PYTHON_DEPS} ) |
66 |
+ x11-misc/xdg-utils |
67 |
+" |
68 |
+RDEPEND="${DEPEND} |
69 |
+ acct-user/abrt |
70 |
+ acct-group/abrt |
71 |
+" |
72 |
+BDEPEND=" |
73 |
+ app-text/asciidoc |
74 |
+ app-text/xmlto |
75 |
+ >=dev-util/intltool-0.3.50 |
76 |
+ >=sys-devel/gettext-0.17 |
77 |
+ virtual/pkgconfig |
78 |
+" |
79 |
+ |
80 |
+# Tests require python-meh, which is highly redhat-specific. |
81 |
+RESTRICT="test" |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
85 |
+ ./gen-version || die # Needed to be run before autoreconf |
86 |
+ eautoreconf |
87 |
+ use python && python_copy_sources |
88 |
+} |
89 |
+ |
90 |
+src_configure() { |
91 |
+ use python && python_setup |
92 |
+ |
93 |
+ local myargs=( |
94 |
+ --localstatedir="${EPREFIX}/var" |
95 |
+ --without-bugzilla |
96 |
+ $(use_with gtk) |
97 |
+ $(use_with python python3) |
98 |
+ ) |
99 |
+ if use python; then |
100 |
+ python_foreach_impl run_in_build_dir econf "${myargs[@]}" |
101 |
+ else |
102 |
+ econf "${myargs[@]}" |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ if use python; then |
108 |
+ python_foreach_impl run_in_build_dir default |
109 |
+ else |
110 |
+ default |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ if use python; then |
116 |
+ python_install() { |
117 |
+ default |
118 |
+ python_optimize |
119 |
+ } |
120 |
+ python_foreach_impl run_in_build_dir python_install |
121 |
+ else |
122 |
+ default |
123 |
+ fi |
124 |
+ |
125 |
+ # Need to set correct ownership for use by app-admin/abrt |
126 |
+ diropts -o abrt -g abrt |
127 |
+ keepdir /var/spool/abrt |
128 |
+ |
129 |
+ find "${D}" -name '*.la' -exec rm -f {} + || die |
130 |
+} |