| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libreport/libreport-2.0.13.ebuild,v 1.3 2013/03/25 16:21:24 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
PYTHON_DEPEND="2:2.6"
|
| 7 |
|
| 8 |
inherit autotools eutils python user
|
| 9 |
|
| 10 |
DESCRIPTION="Generic library for reporting software bugs"
|
| 11 |
HOMEPAGE="https://fedorahosted.org/abrt/"
|
| 12 |
SRC_URI="https://fedorahosted.org/released/abrt/${P}.tar.gz"
|
| 13 |
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="amd64 x86"
|
| 17 |
IUSE="debug"
|
| 18 |
|
| 19 |
COMMON_DEPEND=">=dev-libs/btparser-0.18
|
| 20 |
>=dev-libs/glib-2.21:2
|
| 21 |
dev-libs/json-c
|
| 22 |
dev-libs/libtar
|
| 23 |
dev-libs/libxml2:2
|
| 24 |
dev-libs/newt
|
| 25 |
dev-libs/nss
|
| 26 |
dev-libs/xmlrpc-c
|
| 27 |
net-libs/libproxy
|
| 28 |
net-misc/curl[ssl]
|
| 29 |
sys-apps/dbus
|
| 30 |
>=x11-libs/gtk+-3.3.12:3
|
| 31 |
x11-misc/xdg-utils"
|
| 32 |
RDEPEND="${COMMON_DEPEND}
|
| 33 |
|| ( gnome-base/gnome-keyring >=kde-base/kwalletd-4.8 )"
|
| 34 |
DEPEND="${COMMON_DEPEND}
|
| 35 |
app-text/asciidoc
|
| 36 |
app-text/xmlto
|
| 37 |
>=dev-util/intltool-0.3.50
|
| 38 |
>=sys-devel/gettext-0.17
|
| 39 |
virtual/pkgconfig"
|
| 40 |
|
| 41 |
# Tests require python-meh, which is highly redhat-specific.
|
| 42 |
RESTRICT="test"
|
| 43 |
|
| 44 |
pkg_setup() {
|
| 45 |
python_set_active_version 2
|
| 46 |
python_pkg_setup
|
| 47 |
|
| 48 |
enewgroup abrt
|
| 49 |
enewuser abrt -1 -1 -1 abrt
|
| 50 |
}
|
| 51 |
|
| 52 |
src_prepare() {
|
| 53 |
# Replace redhat- and fedora-specific defaults with gentoo ones, and disable
|
| 54 |
# code that requires gentoo infra support.
|
| 55 |
epatch "${FILESDIR}/${PN}-2.0.13-gentoo.patch"
|
| 56 |
|
| 57 |
# Modify uploader_event so that the gui recognizes it
|
| 58 |
epatch "${FILESDIR}/${PN}-2.0.7-uploader_event-syntax.patch"
|
| 59 |
|
| 60 |
# automake-1.12
|
| 61 |
epatch "${FILESDIR}/${PN}-2.0.13-automake-1.12.patch"
|
| 62 |
|
| 63 |
# json-c-0.11, https://github.com/abrt/libreport/pull/159
|
| 64 |
epatch "${FILESDIR}/${PN}-2.0.13-json-c-0.11.patch"
|
| 65 |
|
| 66 |
python_clean_py-compile_files
|
| 67 |
|
| 68 |
mkdir -p m4
|
| 69 |
eautoreconf
|
| 70 |
}
|
| 71 |
|
| 72 |
src_configure() {
|
| 73 |
ECONF="--disable-bodhi
|
| 74 |
--localstatedir=${EPREFIX}/var"
|
| 75 |
# --disable-debug enables debug!
|
| 76 |
use debug && ECONF="${ECONF} --enable-debug"
|
| 77 |
econf ${ECONF}
|
| 78 |
}
|
| 79 |
|
| 80 |
src_install() {
|
| 81 |
default
|
| 82 |
|
| 83 |
# Need to set correct ownership for use by app-admin/abrt
|
| 84 |
diropts -o abrt -g abrt
|
| 85 |
keepdir /var/spool/abrt
|
| 86 |
|
| 87 |
find "${D}" -name '*.la' -exec rm -f {} + || die
|
| 88 |
}
|
| 89 |
|
| 90 |
pkg_postinst() {
|
| 91 |
python_mod_optimize report reportclient
|
| 92 |
}
|
| 93 |
|
| 94 |
pkg_postrm() {
|
| 95 |
python_mod_cleanup report reportclient
|
| 96 |
}
|