1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{4,5,6} )
7 inherit autotools gnome2-utils python-single-r1 systemd user
9 DESCRIPTION="Automatic bug detection and reporting tool"
10 HOMEPAGE="https://github.com/abrt/abrt/wiki/ABRT-Project"
11 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20 COMMON_DEPEND="${PYTHON_DEPS}
21 >=dev-libs/glib-2.43.4:2
22 >=dev-libs/libreport-2.10.0[python]
24 >=gnome-base/gsettings-desktop-schemas-3.15.1
32 RDEPEND="${COMMON_DEPEND}
37 dev-python/argcomplete[${PYTHON_USEDEP}]
38 dev-python/argh[${PYTHON_USEDEP}]
39 dev-python/humanize[${PYTHON_USEDEP}]
43 DEPEND="${COMMON_DEPEND}
46 dev-libs/satyr[${PYTHON_USEDEP}]
47 >=dev-util/intltool-0.35.0
49 >=sys-devel/gettext-0.17
52 RESTRICT="test" # tests *may* be broken due to all the RHEL crap. explore later.
55 python-single-r1_pkg_setup
58 enewuser abrt -1 -1 -1 abrt
64 # Install under proper directory
65 sed -i -e 's:dbusabrtdocdir = ${datadir}/doc/abrt-dbus-${VERSION}/html:dbusabrtdocdir = ${datadir}/doc/${PF}/html:' doc/problems-service/Makefile.am || die
67 # Ensure this works for systems with and without /usr merge
68 sed -i -e "s:/usr/bin/bash:$(which bash):" init-scripts/abrtd.service || die
70 # pyhook test is sensitive to the format of python's error messages, and
71 # fails with certain python versions
72 sed -e '/pyhook.at/ d' \
73 -i tests/Makefile.* tests/testsuite.at || die "sed remove pyhook tests failed"
74 ./gen-version || die # Needed to be run before autoreconf
80 --libdir="${EPREFIX}/usr/$(get_libdir)"
81 --localstatedir="${EPREFIX}/var"
83 # package breaks due to not finding libreport-web with bodhi plugin enabled
85 $(usex selinux "" "--without-selinux")
87 # Fixes "syntax error in VERSION script" and we aren't supporting Python2 anyway
90 # package breaks due to no sphinx-build-3
92 # kill tests for now until they can be explored.
95 econf "${myeconfargs[@]}"
100 python_optimize #661706
102 keepdir /var/run/abrt
103 # /var/spool/abrt is created by dev-libs/libreport
105 diropts -m 700 -o abrt -g abrt
106 keepdir /var/spool/abrt-upload
108 diropts -m 775 -o abrt -g abrt
109 keepdir /var/cache/abrt-di
111 find "${D}" -name '*.la' -delete || die
113 newinitd "${FILESDIR}/${PN}-2.0.12-r1-init" abrt
114 newconfd "${FILESDIR}/${PN}-2.0.12-r1-conf" abrt
118 gnome2_icon_cache_update
122 gnome2_icon_cache_update