From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 05C30138335 for ; Sat, 23 Jun 2018 08:09:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44F4DE08EB; Sat, 23 Jun 2018 08:09:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DDAF5E08EB for ; Sat, 23 Jun 2018 08:09:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 266C2335C8B for ; Sat, 23 Jun 2018 08:09:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FA902A1 for ; Sat, 23 Jun 2018 08:09:31 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1529741026.520afd7521723d7bf2b0d73cb1db707bf8220391.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/abrt/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/abrt/abrt-2.10.10-r1.ebuild X-VCS-Directories: app-admin/abrt/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 520afd7521723d7bf2b0d73cb1db707bf8220391 X-VCS-Branch: master Date: Sat, 23 Jun 2018 08:09:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b575e4f4-c88d-41ae-96c0-ee70a344bbff X-Archives-Hash: 73852ecfc3e109bb81830ac0e02d6838 commit: 520afd7521723d7bf2b0d73cb1db707bf8220391 Author: Pacho Ramos gentoo org> AuthorDate: Sat Jun 23 08:03:46 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sat Jun 23 08:03:46 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=520afd75 app-admin/abrt: Install libs and .pc in /usr Package-Manager: Portage-2.3.40, Repoman-2.3.9 app-admin/abrt/abrt-2.10.10-r1.ebuild | 115 ++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/app-admin/abrt/abrt-2.10.10-r1.ebuild b/app-admin/abrt/abrt-2.10.10-r1.ebuild new file mode 100644 index 00000000000..12dd8675095 --- /dev/null +++ b/app-admin/abrt/abrt-2.10.10-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{4,5,6} ) + +inherit autotools gnome2-utils python-single-r1 systemd user + +DESCRIPTION="Automatic bug detection and reporting tool" +HOMEPAGE="https://github.com/abrt/abrt/wiki/ABRT-Project" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug selinux" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +COMMON_DEPEND="${PYTHON_DEPS} + >=dev-libs/glib-2.43:2 + >=dev-libs/libreport-2.9.5[python] + dev-libs/libxml2 + dev-libs/nss + >=gnome-base/gsettings-desktop-schemas-3.15.1 + sys-apps/dbus + sys-apps/systemd + sys-auth/polkit + sys-fs/inotify-tools + x11-libs/gtk+:3 + >=x11-libs/libnotify-0.7 +" +RDEPEND="${COMMON_DEPEND} + app-arch/cpio + dev-libs/elfutils + dev-python/argcomplete[${PYTHON_USEDEP}] + dev-python/argh[${PYTHON_USEDEP}] + dev-python/humanize[${PYTHON_USEDEP}] + sys-apps/util-linux + >=sys-devel/gdb-7 +" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + app-text/xmlto + dev-libs/satyr[${PYTHON_USEDEP}] + >=dev-util/intltool-0.35.0 + virtual/pkgconfig + >=sys-devel/gettext-0.17 +" + +RESTRICT="test" # tests *may* be broken due to all the RHEL crap. explore later. + +pkg_setup() { + python-single-r1_pkg_setup + + enewgroup abrt + enewuser abrt -1 -1 -1 abrt +} + +src_prepare() { + default + + # pyhook test is sensitive to the format of python's error messages, and + # fails with certain python versions + sed -e '/pyhook.at/ d' \ + -i tests/Makefile.* tests/testsuite.at || die "sed remove pyhook tests failed" + ./gen-version || die # Needed to be run before autoreconf + eautoreconf +} + +src_configure() { + myeconfargs=( + --libdir="${EPREFIX}/usr/$(get_libdir)" + --localstatedir="${EPREFIX}/var" + --without-bodhi + # package breaks due to not finding libreport-web with bodhi plugin enabled + --without-rpm + $(usex selinux "" "--without-selinux") + --without-python2 + # Fixes "syntax error in VERSION script" and we aren't supporting Python2 anyway + --with-python3 + --without-pythondoc + # package breaks due to no sphinx-build-3 + --without-pythontests + # kill tests for now until they can be explored. + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + keepdir /var/run/abrt + # /var/spool/abrt is created by dev-libs/libreport + + diropts -m 700 -o abrt -g abrt + keepdir /var/spool/abrt-upload + + diropts -m 775 -o abrt -g abrt + keepdir /var/cache/abrt-di + + find "${D}" -name '*.la' -delete || die + + newinitd "${FILESDIR}/${PN}-2.0.12-r1-init" abrt + newconfd "${FILESDIR}/${PN}-2.0.12-r1-conf" abrt +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}