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 user
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 COMMON_DEPEND="${PYTHON_DEPS}
22 >=dev-libs/glib-2.43.4:2
33 gtk? ( >=x11-libs/gtk+-3.3.12:3 )
34 python? ( ${PYTHON_DEPS} )
37 RDEPEND="${COMMON_DEPEND}"
39 DEPEND="${COMMON_DEPEND}
42 >=dev-util/intltool-0.3.50
43 >=sys-devel/gettext-0.17
47 # Tests require python-meh, which is highly redhat-specific.
52 enewuser abrt -1 -1 -1 abrt
57 ./gen-version || die # Needed to be run before autoreconf
59 use python && python_copy_sources
64 --localstatedir="${EPREFIX}/var"
66 # Fixes "syntax error in VERSION script" and we aren't supporting Python2 anyway
68 $(usex python "--with-python3" "--without-python3")
71 python_foreach_impl run_in_build_dir \
79 use python && python_foreach_impl run_in_build_dir default
83 use python && python_foreach_impl run_in_build_dir default
84 # Need to set correct ownership for use by app-admin/abrt
85 diropts -o abrt -g abrt
86 keepdir /var/spool/abrt
88 find "${D}" -name '*.la' -exec rm -f {} + || die