From 707c612db997ff1be84d16dde4c532560969e918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 7 Feb 2020 10:48:36 +0100 Subject: app-office/gnumeric: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-office/gnumeric/gnumeric-1.12.39-r1.ebuild | 67 +++++++++++++++++++++ app-office/gnumeric/gnumeric-1.12.39.ebuild | 64 -------------------- app-office/gnumeric/gnumeric-1.12.44-r1.ebuild | 82 ++++++++++++++++++++++++++ app-office/gnumeric/gnumeric-1.12.44.ebuild | 82 -------------------------- 4 files changed, 149 insertions(+), 146 deletions(-) create mode 100644 app-office/gnumeric/gnumeric-1.12.39-r1.ebuild delete mode 100644 app-office/gnumeric/gnumeric-1.12.39.ebuild create mode 100644 app-office/gnumeric/gnumeric-1.12.44-r1.ebuild delete mode 100644 app-office/gnumeric/gnumeric-1.12.44.ebuild (limited to 'app-office/gnumeric') diff --git a/app-office/gnumeric/gnumeric-1.12.39-r1.ebuild b/app-office/gnumeric/gnumeric-1.12.39-r1.ebuild new file mode 100644 index 000000000000..f12e005b4cec --- /dev/null +++ b/app-office/gnumeric/gnumeric-1.12.39-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python2_7 ) + +inherit gnome2 flag-o-matic python-single-r1 + +DESCRIPTION="The GNOME Spreadsheet" +HOMEPAGE="http://www.gnumeric.org/" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" + +IUSE="+introspection libgda perl python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# Missing gnome-extra/libgnomedb required version in tree +# but its upstream is dead and will be dropped soon. + +# lots of missing files, also fails tests due to 80-bit long story +# upstream bug #721556 +RESTRICT="test" + +RDEPEND=" + app-arch/bzip2 + sys-libs/zlib + >=dev-libs/glib-2.38.0:2 + >=gnome-extra/libgsf-1.14.33:= + >=x11-libs/goffice-0.10.38:0.10 + >=dev-libs/libxml2-2.4.12:2 + >=x11-libs/pango-1.24.0:= + + >=x11-libs/gtk+-3.8.7:3 + x11-libs/cairo:=[svg] + + introspection? ( >=dev-libs/gobject-introspection-1:= ) + perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} + $(python_gen_cond_dep ' + >=dev-python/pygobject-3:3[${PYTHON_MULTI_USEDEP}] + ') + ) + libgda? ( gnome-extra/libgda:5[gtk] ) +" +DEPEND="${RDEPEND} + dev-util/gtk-doc-am + >=dev-util/intltool-0.35.0 + app-text/yelp-tools + virtual/pkgconfig +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --with-zlib \ + $(use_with libgda gda) \ + $(use_enable introspection) \ + $(use_with perl) \ + $(use_with python) +} diff --git a/app-office/gnumeric/gnumeric-1.12.39.ebuild b/app-office/gnumeric/gnumeric-1.12.39.ebuild deleted file mode 100644 index 2ff8d6609df0..000000000000 --- a/app-office/gnumeric/gnumeric-1.12.39.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" -GNOME2_LA_PUNT="yes" -PYTHON_COMPAT=( python2_7 ) - -inherit gnome2 flag-o-matic python-single-r1 - -DESCRIPTION="The GNOME Spreadsheet" -HOMEPAGE="http://www.gnumeric.org/" -LICENSE="GPL-2" - -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" - -IUSE="+introspection libgda perl python" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -# Missing gnome-extra/libgnomedb required version in tree -# but its upstream is dead and will be dropped soon. - -# lots of missing files, also fails tests due to 80-bit long story -# upstream bug #721556 -RESTRICT="test" - -RDEPEND=" - app-arch/bzip2 - sys-libs/zlib - >=dev-libs/glib-2.38.0:2 - >=gnome-extra/libgsf-1.14.33:= - >=x11-libs/goffice-0.10.38:0.10 - >=dev-libs/libxml2-2.4.12:2 - >=x11-libs/pango-1.24.0:= - - >=x11-libs/gtk+-3.8.7:3 - x11-libs/cairo:=[svg] - - introspection? ( >=dev-libs/gobject-introspection-1:= ) - perl? ( dev-lang/perl:= ) - python? ( ${PYTHON_DEPS} - >=dev-python/pygobject-3:3[${PYTHON_USEDEP}] ) - libgda? ( gnome-extra/libgda:5[gtk] ) -" -DEPEND="${RDEPEND} - dev-util/gtk-doc-am - >=dev-util/intltool-0.35.0 - app-text/yelp-tools - virtual/pkgconfig -" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_configure() { - gnome2_src_configure \ - --disable-static \ - --with-zlib \ - $(use_with libgda gda) \ - $(use_enable introspection) \ - $(use_with perl) \ - $(use_with python) -} diff --git a/app-office/gnumeric/gnumeric-1.12.44-r1.ebuild b/app-office/gnumeric/gnumeric-1.12.44-r1.ebuild new file mode 100644 index 000000000000..dc288a384e42 --- /dev/null +++ b/app-office/gnumeric/gnumeric-1.12.44-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python2_7 python3_6 ) + +inherit gnome2 flag-o-matic python-r1 + +DESCRIPTION="The GNOME Spreadsheet" +HOMEPAGE="http://www.gnumeric.org/" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="+introspection libgda perl python" +# python-loader plugin is python2.7 only +REQUIRED_USE=" + introspection? ( ${PYTHON_REQUIRED_USE} ) + python? ( || ( $(python_gen_useflags -2) ) )" + +# Missing gnome-extra/libgnomedb required version in tree +# but its upstream is dead and will be dropped soon. + +# lots of missing files, also fails tests due to 80-bit long story +# upstream bug #721556 +RESTRICT="test" + +RDEPEND=" + app-arch/bzip2 + sys-libs/zlib + >=dev-libs/glib-2.40.0:2 + >=gnome-extra/libgsf-1.14.33:= + >=x11-libs/goffice-0.10.42:0.10 + >=dev-libs/libxml2-2.4.12:2 + >=x11-libs/pango-1.24.0:= + + >=x11-libs/gtk+-3.8.7:3 + x11-libs/cairo:=[svg] + + introspection? ( ${PYTHON_DEPS} + >=dev-libs/gobject-introspection-1:= ) + perl? ( dev-lang/perl:= ) + python? ( $(python_gen_impl_dep '' -2) + >=dev-python/pygobject-3:3[${PYTHON_USEDEP}] ) + libgda? ( gnome-extra/libgda:5[gtk] ) +" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.5 + app-text/yelp-tools + dev-util/gtk-doc-am + >=dev-util/intltool-0.35.0 + virtual/pkgconfig +" + +src_prepare() { + # Manage gi overrides ourselves + sed '/SUBDIRS/ s/introspection//' -i Makefile.{am,in} || die + gnome2_src_prepare +} + +src_configure() { + if use python ; then + python_setup -2 + fi + gnome2_src_configure \ + --disable-static \ + --with-zlib \ + $(use_with libgda gda) \ + $(use_enable introspection) \ + $(use_with perl) \ + $(use_with python) +} + +src_install() { + gnome2_src_install + if use introspection; then + python_moduleinto gi.overrides + python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py + fi +} diff --git a/app-office/gnumeric/gnumeric-1.12.44.ebuild b/app-office/gnumeric/gnumeric-1.12.44.ebuild deleted file mode 100644 index dc288a384e42..000000000000 --- a/app-office/gnumeric/gnumeric-1.12.44.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" -GNOME2_LA_PUNT="yes" -PYTHON_COMPAT=( python2_7 python3_6 ) - -inherit gnome2 flag-o-matic python-r1 - -DESCRIPTION="The GNOME Spreadsheet" -HOMEPAGE="http://www.gnumeric.org/" -LICENSE="GPL-2" - -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -IUSE="+introspection libgda perl python" -# python-loader plugin is python2.7 only -REQUIRED_USE=" - introspection? ( ${PYTHON_REQUIRED_USE} ) - python? ( || ( $(python_gen_useflags -2) ) )" - -# Missing gnome-extra/libgnomedb required version in tree -# but its upstream is dead and will be dropped soon. - -# lots of missing files, also fails tests due to 80-bit long story -# upstream bug #721556 -RESTRICT="test" - -RDEPEND=" - app-arch/bzip2 - sys-libs/zlib - >=dev-libs/glib-2.40.0:2 - >=gnome-extra/libgsf-1.14.33:= - >=x11-libs/goffice-0.10.42:0.10 - >=dev-libs/libxml2-2.4.12:2 - >=x11-libs/pango-1.24.0:= - - >=x11-libs/gtk+-3.8.7:3 - x11-libs/cairo:=[svg] - - introspection? ( ${PYTHON_DEPS} - >=dev-libs/gobject-introspection-1:= ) - perl? ( dev-lang/perl:= ) - python? ( $(python_gen_impl_dep '' -2) - >=dev-python/pygobject-3:3[${PYTHON_USEDEP}] ) - libgda? ( gnome-extra/libgda:5[gtk] ) -" -DEPEND="${RDEPEND} - app-text/docbook-xml-dtd:4.5 - app-text/yelp-tools - dev-util/gtk-doc-am - >=dev-util/intltool-0.35.0 - virtual/pkgconfig -" - -src_prepare() { - # Manage gi overrides ourselves - sed '/SUBDIRS/ s/introspection//' -i Makefile.{am,in} || die - gnome2_src_prepare -} - -src_configure() { - if use python ; then - python_setup -2 - fi - gnome2_src_configure \ - --disable-static \ - --with-zlib \ - $(use_with libgda gda) \ - $(use_enable introspection) \ - $(use_with perl) \ - $(use_with python) -} - -src_install() { - gnome2_src_install - if use introspection; then - python_moduleinto gi.overrides - python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py - fi -} -- cgit v1.2.3