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 8EED9138336 for ; Tue, 2 Apr 2019 21:21:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07B6BE0B18; Tue, 2 Apr 2019 21:21:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 D1214E0B18 for ; Tue, 2 Apr 2019 21:21:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5228B335D0A for ; Tue, 2 Apr 2019 21:21:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9969A576 for ; Tue, 2 Apr 2019 21:21:42 +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: <1554240092.496fa3fb747714be27e53fda0004d44d59e16fb8.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/pybliographer/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/pybliographer/pybliographer-1.4.0-r1.ebuild X-VCS-Directories: app-office/pybliographer/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 496fa3fb747714be27e53fda0004d44d59e16fb8 X-VCS-Branch: master Date: Tue, 2 Apr 2019 21:21:42 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8bf16486-7eef-4fe2-a7cf-4cb83a962ba5 X-Archives-Hash: 582fbe5351a4472964ca32ad45157beb commit: 496fa3fb747714be27e53fda0004d44d59e16fb8 Author: Pacho Ramos gentoo org> AuthorDate: Tue Apr 2 21:20:45 2019 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Tue Apr 2 21:21:32 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496fa3fb app-office/pybliographer: Fix pybliographic execution too Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Pacho Ramos gentoo.org> .../pybliographer/pybliographer-1.4.0-r1.ebuild | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/app-office/pybliographer/pybliographer-1.4.0-r1.ebuild b/app-office/pybliographer/pybliographer-1.4.0-r1.ebuild new file mode 100644 index 00000000000..322a8a88103 --- /dev/null +++ b/app-office/pybliographer/pybliographer-1.4.0-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_EAUTORECONF="yes" +PYTHON_COMPAT=( python2_7 ) + +inherit gnome2 python-single-r1 + +DESCRIPTION="Pybliographer is a tool for working with bibliographic databases" +HOMEPAGE="https://pybliographer.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=app-text/recode-3.6-r1 + app-text/rarian + dev-libs/glib:2 + dev-python/pygobject:2[${PYTHON_USEDEP}] + >=dev-python/pygtk-2.24.0:2[${PYTHON_USEDEP}] + >=dev-python/python-bibtex-1.2.5[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + app-text/yelp-tools + >=sys-devel/gettext-0.19.8 +" + +# Tests broken for a long time, they rely on non-standard PATH for python +# modules, bug #678444 +RESTRICT="test" + +src_prepare() { + # Workaround for bug 487204. + sed -i \ + -e 's:\$(srcdir)/::g' \ + tests/Makefile.am || die "sed failed" + + # Install Python modules into site-packages directories. + find -name Makefile.am | xargs sed -i \ + -e "/^pybdir[[:space:]]*=[[:space:]]*/s:\$(datadir):$(python_get_sitedir):" || die "sed failed" + sed -i -e 's:prefix=:cd @datapyb@ \&\& prefix=:' scripts/pybscript.in + sed -i -e "s:\@datapyb@:$(python_get_sitedir)/${PN}:g" pybliographer.in scripts/pybscript.in || die + sed -i \ + -e "s:gladedir = \$(datadir):gladedir = $(python_get_sitedir):" \ + Pyblio/GnomeUI/glade/Makefile.am || die "sed failed" + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-depchecks +} + +src_install() { + gnome2_src_install + python_fix_shebang "${D}" + dodir /usr/share/${PN} + mv "${ED}/$(python_get_sitedir)/${PN}/pixmaps" "${ED}"/usr/share/${PN} || die +}