diff options
author | 2014-12-02 16:09:07 +0000 | |
---|---|---|
committer | 2014-12-02 16:09:07 +0000 | |
commit | f4642d77a98ef8572f7ae3e9e1c687eebbc89eaf (patch) | |
tree | 65c1d1382d5ebc625c47cb5428d532b8a5dcd45a /games-strategy/gwp/gwp-0.4.0-r3.ebuild | |
parent | drop corosync-2 mask wrt #518880 (diff) | |
download | gentoo-2-f4642d77a98ef8572f7ae3e9e1c687eebbc89eaf.tar.gz gentoo-2-f4642d77a98ef8572f7ae3e9e1c687eebbc89eaf.tar.bz2 gentoo-2-f4642d77a98ef8572f7ae3e9e1c687eebbc89eaf.zip |
Bump to eapi5, use new python eclasses
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'games-strategy/gwp/gwp-0.4.0-r3.ebuild')
-rw-r--r-- | games-strategy/gwp/gwp-0.4.0-r3.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/games-strategy/gwp/gwp-0.4.0-r3.ebuild b/games-strategy/gwp/gwp-0.4.0-r3.ebuild new file mode 100644 index 000000000000..4993c78267dc --- /dev/null +++ b/games-strategy/gwp/gwp-0.4.0-r3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/gwp/gwp-0.4.0-r3.ebuild,v 1.1 2014/12/02 16:09:07 pacho Exp $ + +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/scrollkeeper + 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 +} |