Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libreport: libreport-2.0.10.ebuild ChangeLog libreport-2.0.7.ebuild
Date: Sun, 08 Jul 2012 11:13:36
Message-Id: 20120708111325.880AF20063@flycatcher.gentoo.org
1 pacho 12/07/08 11:13:25
2
3 Modified: ChangeLog
4 Added: libreport-2.0.10.ebuild
5 Removed: libreport-2.0.7.ebuild
6 Log:
7 Version bump, drop old.
8
9 (Portage version: 2.1.11.5/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.11 dev-libs/libreport/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libreport/ChangeLog?rev=1.11&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libreport/ChangeLog?rev=1.11&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libreport/ChangeLog?r1=1.10&r2=1.11
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libreport/ChangeLog,v
21 retrieving revision 1.10
22 retrieving revision 1.11
23 diff -u -r1.10 -r1.11
24 --- ChangeLog 6 Jun 2012 03:37:34 -0000 1.10
25 +++ ChangeLog 8 Jul 2012 11:13:25 -0000 1.11
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-libs/libreport
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libreport/ChangeLog,v 1.10 2012/06/06 03:37:34 zmedico Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libreport/ChangeLog,v 1.11 2012/07/08 11:13:25 pacho Exp $
31 +
32 +*libreport-2.0.10 (08 Jul 2012)
33 +
34 + 08 Jul 2012; Pacho Ramos <pacho@g.o> +libreport-2.0.10.ebuild,
35 + -libreport-2.0.7.ebuild:
36 + Version bump, drop old.
37
38 06 Jun 2012; Zac Medico <zmedico@g.o> libreport-2.0.7.ebuild,
39 libreport-2.0.9.ebuild:
40 @@ -46,4 +52,3 @@
41 +files/libreport-2.0.7-no-bugzilla.patch,
42 +files/libreport-2.0.7-uploader_event-syntax.patch, +metadata.xml:
43 Add bug reporting library from the gnome overlay; needed for abrt.
44 -
45
46
47
48 1.1 dev-libs/libreport/libreport-2.0.10.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libreport/libreport-2.0.10.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libreport/libreport-2.0.10.ebuild?rev=1.1&content-type=text/plain
52
53 Index: libreport-2.0.10.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libreport/libreport-2.0.10.ebuild,v 1.1 2012/07/08 11:13:25 pacho Exp $
58
59 EAPI="4"
60 PYTHON_DEPEND="2:2.6"
61
62 inherit autotools eutils python user
63
64 DESCRIPTION="Generic library for reporting software bugs"
65 HOMEPAGE="https://fedorahosted.org/abrt/"
66 SRC_URI="https://fedorahosted.org/released/abrt/${P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="debug"
72
73 RDEPEND=">=dev-libs/glib-2.21:2
74 dev-libs/newt
75 dev-libs/nss
76 dev-libs/libtar
77 dev-libs/libxml2
78 dev-libs/xmlrpc-c
79 gnome-base/gnome-keyring
80 net-libs/libproxy
81 net-misc/curl[ssl]
82 sys-apps/dbus
83 x11-libs/gtk+:2"
84 DEPEND="${RDEPEND}
85 app-text/asciidoc
86 app-text/xmlto
87 >=dev-util/intltool-0.3.50
88 virtual/pkgconfig
89 >=sys-devel/gettext-0.17"
90
91 # Tests require python-meh, which is highly redhat-specific.
92 RESTRICT="test"
93
94 pkg_setup() {
95 python_set_active_version 2
96 python_pkg_setup
97
98 enewgroup abrt
99 enewuser abrt -1 -1 -1 abrt
100 }
101
102 src_prepare() {
103 # Replace redhat- and fedora-specific defaults with gentoo ones
104 epatch "${FILESDIR}/${PN}-2.0.9-gentoo.patch"
105
106 # Disable bugzilla plugin for now (requires bugs.gentoo.org infra support)
107 epatch "${FILESDIR}/${PN}-2.0.9-no-bugzilla.patch"
108
109 # Modify uploader_event so that the gui recognizes it
110 epatch "${FILESDIR}/${PN}-2.0.7-uploader_event-syntax.patch"
111
112 # -Werror should not be used by default
113 sed -e "s/-Werror\( \|$\)//" \
114 -i src/client-python/Makefile.* src/cli/Makefile.* \
115 src/gtk-helpers/Makefile.* src/gui-wizard-gtk/Makefile.* \
116 src/lib/Makefile.* src/plugins/Makefile.* \
117 src/report-python/Makefile.* || die "sed failed"
118
119 python_clean_py-compile_files
120
121 mkdir m4
122 eautoreconf
123 }
124
125 src_configure() {
126 # Gentoo's xmlrpc-c does not provide a pkgconfig file
127 # XXX: this is probably cross-compile-unfriendly
128 export XMLRPC_CFLAGS=$(xmlrpc-c-config --cflags)
129 export XMLRPC_LIBS=$(xmlrpc-c-config --libs)
130 export XMLRPC_CLIENT_CFLAGS=$(xmlrpc-c-config client --cflags)
131 export XMLRPC_CLIENT_LIBS=$(xmlrpc-c-config client --libs)
132 # Configure checks for python.pc; our python-2.7 installs python-2.7.pc,
133 # while python-2.6 does not install any pkgconfig file.
134 export PYTHON_CFLAGS=$(python-config --includes)
135 export PYTHON_LIBS=$(python-config --libs)
136
137 ECONF="--disable-bodhi
138 --localstatedir=${EPREFIX}/var"
139 # --disable-debug enables debug!
140 use debug && ECONF="${ECONF} --enable-debug"
141 econf ${ECONF}
142 }
143
144 src_install() {
145 default
146
147 # Need to set correct ownership for use by app-admin/abrt
148 diropts -o abrt -g abrt
149 keepdir /var/spool/abrt
150
151 find "${D}" -name '*.la' -exec rm -f {} + || die
152 }
153
154 pkg_postinst() {
155 python_mod_optimize report reportclient
156 }
157
158 pkg_postrm() {
159 python_mod_cleanup report reportclient
160 }