summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-09-14 14:11:53 -0500
committerAustin English <wizardedit@gentoo.org>2016-09-14 14:12:31 -0500
commit3e8d4debb48c83d315329375597c87ff6f944a30 (patch)
tree68e260e64918980f833f1877031cdd132a7caae2 /games-roguelike/scourge
parentgames-roguelike/powder: remove deprecated games eclass (diff)
downloadgentoo-3e8d4debb48c83d315329375597c87ff6f944a30.tar.gz
gentoo-3e8d4debb48c83d315329375597c87ff6f944a30.tar.bz2
gentoo-3e8d4debb48c83d315329375597c87ff6f944a30.zip
games-roguelike/scourge: 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-roguelike/scourge')
-rw-r--r--games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch4
-rw-r--r--games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch4
-rw-r--r--games-roguelike/scourge/scourge-0.21.1-r1.ebuild64
3 files changed, 68 insertions, 4 deletions
diff --git a/games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch b/games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch
index 44b817e55cb3..5c2bc202f384 100644
--- a/games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch
+++ b/games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch
@@ -1,5 +1,5 @@
---- scourge-0.21.1.src/scourge/configure.in
-+++ scourge-0.21.1.src/scourge/configure.in
+--- a/configure.in
++++ b/configure.in
@@ -4,7 +4,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/scourge.h)
diff --git a/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch b/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch
index 50c5cac32934..6f3f7b3e2a65 100644
--- a/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch
+++ b/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch
@@ -1,5 +1,5 @@
---- src/squirrel/squtils.h.old 2012-08-30 18:06:43.474037926 +0200
-+++ src/squirrel/squtils.h 2012-08-30 18:14:13.300261523 +0200
+--- a/src/squirrel/squtils.h 2012-08-30 18:06:43.474037926 +0200
++++ b/src/squirrel/squtils.h 2012-08-30 18:14:13.300261523 +0200
@@ -8,6 +8,9 @@
#define SQ_FREE(__ptr,__size) sq_vm_free(__ptr,__size);
#define SQ_REALLOC(__ptr,__oldsize,__size) sq_vm_realloc(__ptr,__oldsize,__size);
diff --git a/games-roguelike/scourge/scourge-0.21.1-r1.ebuild b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild
new file mode 100644
index 000000000000..22ee6cf791ec
--- /dev/null
+++ b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils wxwidgets
+
+DESCRIPTION="A graphical rogue-like adventure game"
+HOMEPAGE="https://sourceforge.net/projects/scourge/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz
+ mirror://sourceforge/${PN}/${P}.data.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/freetype:2
+ media-libs/libsdl[joystick,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ virtual/libintl
+ virtual/opengl
+ virtual/glu"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S=${WORKDIR}/${PN}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-automake-1.13.patch
+)
+
+src_prepare() {
+ default
+
+ # bug #257601
+ sed -i \
+ -e '/AC_CHECK_HEADERS.*glext/ s:):, [#include <GL/gl.h>] ):' \
+ configure.in || die
+ sed -i \
+ -e '/snprintf/s/tmp, 256/tmp, sizeof(tmp)/' \
+ src/scourgehandler.cpp || die
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-data-dir=/usr/share/${PN} \
+ --localedir=/usr/share/locale
+}
+
+src_install() {
+ default
+ insinto /usr/share/${PN}
+ doins -r ../scourge_data/*
+ doicon assets/scourge.png
+ make_desktop_entry scourge S.C.O.U.R.G.E.
+}