1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7} )
7 inherit autotools python-r1
9 DESCRIPTION="Generic library for reporting software bugs"
10 HOMEPAGE="https://github.com/abrt/libreport"
11 SRC_URI="https://github.com/abrt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20 DEPEND="${PYTHON_DEPS}
22 >=dev-libs/glib-2.43.4:2
34 gtk? ( >=x11-libs/gtk+-3.3.12:3 )
35 python? ( ${PYTHON_DEPS} )
45 >=dev-util/intltool-0.3.50
46 >=sys-devel/gettext-0.17
50 # Tests require python-meh, which is highly redhat-specific.
55 ./gen-version || die # Needed to be run before autoreconf
57 use python && python_copy_sources
61 use python && python_setup
64 --localstatedir="${EPREFIX}/var"
67 $(use_with python python3)
70 python_foreach_impl run_in_build_dir econf "${myargs[@]}"
78 python_foreach_impl run_in_build_dir default
90 python_foreach_impl run_in_build_dir python_install
95 # Need to set correct ownership for use by app-admin/abrt
96 diropts -o abrt -g abrt
97 keepdir /var/spool/abrt
99 find "${D}" -name '*.la' -exec rm -f {} + || die