diff options
author | Matt Turner <mattst88@gentoo.org> | 2020-03-18 18:37:50 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2020-03-18 19:06:57 -0700 |
commit | a04b0728b477fe78d8bf5cb691c24d02fd03fd9f (patch) | |
tree | 2f27a176f0892ebf3ef7a18e2d6de83405ebc3b7 /dev-libs/libreport/libreport-2.12.0.ebuild | |
parent | media-libs/mlt: Drop 6.18.0 (diff) | |
download | gentoo-a04b0728b477fe78d8bf5cb691c24d02fd03fd9f.tar.gz gentoo-a04b0728b477fe78d8bf5cb691c24d02fd03fd9f.tar.bz2 gentoo-a04b0728b477fe78d8bf5cb691c24d02fd03fd9f.zip |
dev-libs/libreport: Version bump to 2.12.0
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/libreport/libreport-2.12.0.ebuild')
-rw-r--r-- | dev-libs/libreport/libreport-2.12.0.ebuild | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/dev-libs/libreport/libreport-2.12.0.ebuild b/dev-libs/libreport/libreport-2.12.0.ebuild new file mode 100644 index 000000000000..7be927077753 --- /dev/null +++ b/dev-libs/libreport/libreport-2.12.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7} ) + +inherit autotools python-r1 + +DESCRIPTION="Generic library for reporting software bugs" +HOMEPAGE="https://github.com/abrt/libreport" +SRC_URI="https://github.com/abrt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="gtk +python" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + app-admin/augeas + >=dev-libs/glib-2.43.4:2 + dev-libs/satyr:0= + dev-libs/json-c:= + dev-libs/libtar + dev-libs/libxml2:2 + dev-libs/nettle:= + dev-libs/newt:= + dev-libs/xmlrpc-c:= + net-libs/libproxy:= + net-misc/curl:=[ssl] + sys-apps/dbus + sys-apps/systemd + gtk? ( >=x11-libs/gtk+-3.3.12:3 ) + python? ( ${PYTHON_DEPS} ) + x11-misc/xdg-utils +" +RDEPEND="${DEPEND} + acct-user/abrt + acct-group/abrt +" +BDEPEND=" + app-text/asciidoc + app-text/xmlto + >=dev-util/intltool-0.3.50 + >=sys-devel/gettext-0.17 + virtual/pkgconfig +" + +# Tests require python-meh, which is highly redhat-specific. +RESTRICT="test" + +src_prepare() { + default + ./gen-version || die # Needed to be run before autoreconf + eautoreconf + use python && python_copy_sources +} + +src_configure() { + use python && python_setup + + local myargs=( + --localstatedir="${EPREFIX}/var" + --without-bugzilla + $(use_with gtk) + $(use_with python python3) + ) + if use python; then + python_foreach_impl run_in_build_dir econf "${myargs[@]}" + else + econf "${myargs[@]}" + fi +} + +src_compile() { + if use python; then + python_foreach_impl run_in_build_dir default + else + default + fi +} + +src_install() { + if use python; then + python_install() { + default + python_optimize + } + python_foreach_impl run_in_build_dir python_install + else + default + fi + + # Need to set correct ownership for use by app-admin/abrt + diropts -o abrt -g abrt + keepdir /var/spool/abrt + + find "${D}" -name '*.la' -exec rm -f {} + || die +} |