Gentoo Archives: gentoo-commits

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