games-rpg/adonthell: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Fri, 14 Oct 2016 20:38:47 +0000 (15:38 -0500)
committerAustin English <wizardedit@gentoo.org>
Fri, 14 Oct 2016 22:31:25 +0000 (17:31 -0500)
Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

games-rpg/adonthell/adonthell-0.3.5-r2.ebuild [new file with mode: 0644]
games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch
games-rpg/adonthell/files/adonthell-0.3.5-format.patch
games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch

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 (file)
index 0000000..885ae8f
--- /dev/null
@@ -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
+}
index 903bd9a5f67d20977390e0b9bbd88de5b40a7b86..8aaad58894b70daf324130c3d6103b86566a1397 100644 (file)
@@ -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)
index f66cc50e16dbd6d37cec10786ee0d82b23e680ad..fa85d7858109183bec60dcdb01fd8f007d73920f 100644 (file)
@@ -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);
index f4d07e867e48082933e2539a572581d092b2fc07..7e54ec5ee03a991179e888b296982abb578e7927 100644 (file)
@@ -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: