From a5121c5d4a471acdc27f56babd07c66feaa6789d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 15:12:26 +0100 Subject: games-strategy/gwp: 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 --- games-strategy/gwp/gwp-0.4.0-r3.ebuild | 60 -------------------------------- games-strategy/gwp/gwp-0.4.0-r4.ebuild | 63 ++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 60 deletions(-) delete mode 100644 games-strategy/gwp/gwp-0.4.0-r3.ebuild create mode 100644 games-strategy/gwp/gwp-0.4.0-r4.ebuild (limited to 'games-strategy') diff --git a/games-strategy/gwp/gwp-0.4.0-r3.ebuild b/games-strategy/gwp/gwp-0.4.0-r3.ebuild deleted file mode 100644 index f9a4fa227439..000000000000 --- a/games-strategy/gwp/gwp-0.4.0-r3.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -GCONF_DEBUG="yes" -PYTHON_COMPAT=( python2_7 ) - -inherit eutils flag-o-matic gnome2 python-single-r1 - -DESCRIPTION="GNOME client for the classic PBEM strategy game VGA Planets 3" -HOMEPAGE="http://gwp.lunix.com.ar/" -SRC_URI="http://gwp.lunix.com.ar/releases/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="nls opengl python" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND="x11-libs/gtk+:2 - gnome-base/libgnomeui - gnome-base/libglade - app-text/rarian - dev-libs/libpcre - nls? ( virtual/libintl ) - opengl? ( x11-libs/gtkglext ) - python? ( ${PYTHON_DEPS} - dev-python/pygtk[${PYTHON_USEDEP}] )" -DEPEND="${RDEPEND} - virtual/pkgconfig - nls? ( sys-devel/gettext )" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - append-libs -lm - epatch \ - "${FILESDIR}"/${P}-gcc41.patch \ - "${FILESDIR}"/${P}-exec-stack.patch - sed -i \ - -e '/ -O1/d' \ - -e '/ -g$/d' \ - src/Makefile.in || die - gnome2_src_prepare -} - -src_configure() { - gnome2_src_configure \ - $(use_enable nls) \ - $(use_enable opengl gtkglext) \ - $(use_enable python) -} - -src_install() { - DOCS="AUTHORS ChangeLog CHANGES README TODO" \ - gnome2_src_install - rm -rf "${D}"/usr/share/doc/gwp -} diff --git a/games-strategy/gwp/gwp-0.4.0-r4.ebuild b/games-strategy/gwp/gwp-0.4.0-r4.ebuild new file mode 100644 index 000000000000..86e8f30a76bb --- /dev/null +++ b/games-strategy/gwp/gwp-0.4.0-r4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +GCONF_DEBUG="yes" +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic gnome2 python-single-r1 + +DESCRIPTION="GNOME client for the classic PBEM strategy game VGA Planets 3" +HOMEPAGE="http://gwp.lunix.com.ar/" +SRC_URI="http://gwp.lunix.com.ar/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls opengl python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="x11-libs/gtk+:2 + gnome-base/libgnomeui + gnome-base/libglade + app-text/rarian + dev-libs/libpcre + nls? ( virtual/libintl ) + opengl? ( x11-libs/gtkglext ) + python? ( ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pygtk[${PYTHON_MULTI_USEDEP}] + ') + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + append-libs -lm + epatch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-exec-stack.patch + sed -i \ + -e '/ -O1/d' \ + -e '/ -g$/d' \ + src/Makefile.in || die + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable nls) \ + $(use_enable opengl gtkglext) \ + $(use_enable python) +} + +src_install() { + DOCS="AUTHORS ChangeLog CHANGES README TODO" \ + gnome2_src_install + rm -rf "${D}"/usr/share/doc/gwp +} -- cgit v1.2.3-65-gdbad