summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-10-14 15:38:47 -0500
committerAustin English <wizardedit@gentoo.org>2016-10-14 17:31:25 -0500
commit7b3f6a79b4ced0727ab754c0414905a292dec6cb (patch)
treead3e654a2d79b990721e0e8d1bcb3505185f674d /games-rpg/adonthell
parentnet-proxy/shadowsocks-libev: remove old (diff)
downloadgentoo-7b3f6a79b4ced0727ab754c0414905a292dec6cb.tar.gz
gentoo-7b3f6a79b4ced0727ab754c0414905a292dec6cb.tar.bz2
gentoo-7b3f6a79b4ced0727ab754c0414905a292dec6cb.zip
games-rpg/adonthell: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-rpg/adonthell')
-rw-r--r--games-rpg/adonthell/adonthell-0.3.5-r2.ebuild71
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch4
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-format.patch4
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch4
4 files changed, 77 insertions, 6 deletions
diff --git a/games-rpg/adonthell/adonthell-0.3.5-r2.ebuild b/games-rpg/adonthell/adonthell-0.3.5-r2.ebuild
new file mode 100644
index 00000000000..885ae8fa88c
--- /dev/null
+++ b/games-rpg/adonthell/adonthell-0.3.5-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils python-single-r1
+
+DESCRIPTION="roleplaying game engine"
+HOMEPAGE="http://adonthell.linuxgames.com/"
+SRC_URI="https://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc nls"
+
+RDEPEND="${PYTHON_DEPS}
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libsdl:0[X,video,sound]
+ media-libs/libvorbis
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ sys-libs/zlib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-${PV/a/}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.in.patch
+ "${FILESDIR}"/${P}-format.patch
+ "${FILESDIR}"/${P}-gcc46.patch
+ "${FILESDIR}"/${P}-glibc-2.10.patch
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/AC_PATH_PROGS/s:python:${EPYTHON}:" \
+ configure.in || die "sed failed"
+ rm -f ac{local,include}.m4
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --disable-py-debug \
+ $(use_enable nls) \
+ $(use_enable doc)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir /usr/share/${PN}/games
+ dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
+}
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch b/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch
index 903bd9a5f67..8aaad58894b 100644
--- a/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch
@@ -1,5 +1,5 @@
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
@@ -13,7 +13,7 @@
AM_INIT_AUTOMAKE([])
AM_CONFIG_HEADER(config.h)
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-format.patch b/games-rpg/adonthell/files/adonthell-0.3.5-format.patch
index f66cc50e16d..fa85d785810 100644
--- a/games-rpg/adonthell/files/adonthell-0.3.5-format.patch
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-format.patch
@@ -1,5 +1,5 @@
---- src/py_adonthell_wrap.cc.old 2014-10-20 14:21:57.495642785 +0200
-+++ src/py_adonthell_wrap.cc 2014-10-20 14:22:35.019293237 +0200
+--- a/src/py_adonthell_wrap.cc 2014-10-20 14:21:57.495642785 +0200
++++ b/src/py_adonthell_wrap.cc 2014-10-20 14:22:35.019293237 +0200
@@ -867,7 +867,7 @@
Py_DECREF(old_str);
Py_DECREF(value);
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch b/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch
index f4d07e867e4..7e54ec5ee03 100644
--- a/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch
@@ -1,5 +1,5 @@
---- src/win_event.cc.old 2011-04-18 08:24:16.000000000 +0200
-+++ src/win_event.cc 2011-04-18 08:25:18.000000000 +0200
+--- a/src/win_event.cc 2011-04-18 08:24:16.000000000 +0200
++++ b/src/win_event.cc 2011-04-18 08:25:18.000000000 +0200
@@ -34,8 +34,9 @@
case DESTROY: