From d8149293e9453cded779939e7a65bc8fcfcb9fe3 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Wed, 4 Sep 2019 21:46:45 +0200 Subject: app-office/pybliographer: gconf-python used at runtime Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Pacho Ramos --- .../pybliographer/pybliographer-1.4.0-r1.ebuild | 65 --------------------- .../pybliographer/pybliographer-1.4.0-r2.ebuild | 66 ++++++++++++++++++++++ 2 files changed, 66 insertions(+), 65 deletions(-) delete mode 100644 app-office/pybliographer/pybliographer-1.4.0-r1.ebuild create mode 100644 app-office/pybliographer/pybliographer-1.4.0-r2.ebuild (limited to 'app-office') diff --git a/app-office/pybliographer/pybliographer-1.4.0-r1.ebuild b/app-office/pybliographer/pybliographer-1.4.0-r1.ebuild deleted file mode 100644 index 13679af58184..000000000000 --- a/app-office/pybliographer/pybliographer-1.4.0-r1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# 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 || die - 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 "${D}/$(python_get_sitedir)/${PN}/pixmaps" "${ED}"/usr/share/${PN} || die -} diff --git a/app-office/pybliographer/pybliographer-1.4.0-r2.ebuild b/app-office/pybliographer/pybliographer-1.4.0-r2.ebuild new file mode 100644 index 000000000000..4cf3e67ada7b --- /dev/null +++ b/app-office/pybliographer/pybliographer-1.4.0-r2.ebuild @@ -0,0 +1,66 @@ +# 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/gconf-python:2[${PYTHON_USEDEP}] + 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 || die + 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 "${D}/$(python_get_sitedir)/${PN}/pixmaps" "${ED}"/usr/share/${PN} || die +} -- cgit v1.2.3-65-gdbad