summaryrefslogtreecommitdiff
path: root/games-roguelike/scourge
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike/scourge')
-rw-r--r--games-roguelike/scourge/Manifest9
-rw-r--r--games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch11
-rw-r--r--games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch12
-rw-r--r--games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch34
-rw-r--r--games-roguelike/scourge/metadata.xml11
-rw-r--r--games-roguelike/scourge/scourge-0.21.1-r1.ebuild64
6 files changed, 141 insertions, 0 deletions
diff --git a/games-roguelike/scourge/Manifest b/games-roguelike/scourge/Manifest
new file mode 100644
index 000000000000..cc0ea945b561
--- /dev/null
+++ b/games-roguelike/scourge/Manifest
@@ -0,0 +1,9 @@
+AUX scourge-0.21.1-automake-1.13.patch 288 SHA256 55cca71fe677da2a390f02d0519a94ad27dffc3c368aed67e7326321b1f39672 SHA512 24b212c1053fa3445507cc6808abd37cabf43997275f003eb929d7c0671663919b984c2491dc33083d20a09cd67d8e695140ff6957e662ba66f43ddbaf167394 WHIRLPOOL d9719c2ec9551e4405ee74cf77c573b62d037b1e4b287ce8b1a1e84f80802ea9712f18bcea8bc57135b8bdb6a9cb0625209a316eb22650ee660c367996abf8f8
+AUX scourge-0.21.1-gcc47.patch 517 SHA256 f5d79de0000ec23e85ebade985900c306628d47b46c2bc1d1e58a8bd1ab76608 SHA512 69bca46c3bfad70e42736119da38d7dafba6c589231bdac5ef2591e617ea516337ebf4ed8a547e8da52412711d0eb84f2abae5652ffc19a882fea69f48a4b880 WHIRLPOOL 577b145ec08f4c745f092e63ce6dd9207197ab58ae3d37342be3f9ff39ec4ad2dc9331b2d87926cafa135f732efd7533ba5d105036ccd49cf9ead9d113ebd0cb
+AUX scourge-0.21.1-gcc6.patch 601 SHA256 a4d6534967cbbaa366a22c256bcb6d64af278f27e6eb90931a8517d5c4467011 SHA512 521f5ab76423925cef7f2ead25c947fb042bda67d82c6ccdcf55757d9412c017a8eb3ca7ecb09ffd369cd69fcac919c5ed6928b5c1d16149d64b0b03a70a2104 WHIRLPOOL a8e7cbd0353a22ce9658e0decf1840dbc15a8214df94279a7bae046003f64f1dd27685ca63d0a4b35390fa2565f61856bc2f99da2011be9afef0243ef5f47cab
+DIST scourge-0.21.1.data.tar.gz 142093436 SHA256 13f33735ff814eb465d95355dcaaf2cdd16a3329f85aeab1a97ad40919cd1f12 SHA512 3701aba0f70d71aeb0e185e808e34cea62a637809a9b4c14fd19bdfbf91d36cf8dafa2a4cfddc3ee493827b40eea657fcdddc8277c57a635bc8ca8e3286376be WHIRLPOOL 7764cc3f01fd8083db243e96de8b2c9aad778d64442aa81a7e4bfb2e7f4dd17faa7cb6ec97b2329e37145342b56af931c64514f4e661be5a2243d6980586cf42
+DIST scourge-0.21.1.src.tar.gz 8146157 SHA256 e5d3dc784bc117a3fe2f4449c74cb896310760ae5a82a50f8c1045705416cef3 SHA512 e530a8f7bddc1969a02a8b9a8b272f6f60d2c4830d23d96fc671cb79a2c4097fb9c5c0c262004a8157448b601bf58f9bbff95dd6d98275a28d3d404c339ce2ad WHIRLPOOL 58f275515dd1e345059ab79a920ee974733009c26d862ddaa20e29353fb059ba54bf282dda582f05fb66c77bcbcdeb3d3d70975a274550ba2817e1ea996a0ab0
+EBUILD scourge-0.21.1-r1.ebuild 1321 SHA256 f9362d106ab705a389b831df81eb5198924922d38321b62e3ecc559f45a21b61 SHA512 4b496aef4b8cf800efb9b7213001176157ea7e9639677000ecbe1e5dec7b83699c7e4a94f1fe6fb5217ce24c45a60dc0afa4f3b8a3e2f1a14e81cde7b16edd8b WHIRLPOOL 9f406223b986af856642f99650ad8c1297e76b6710845d0c9d0aa354ce90a951d7564417157dec6225d87037c0019511b7a1e4aeeb95d40f19ebf8e6e34662f7
+MISC ChangeLog 3095 SHA256 dea4775de9e6722119d8f706476cdf4839a2bab3301fe435a9d73643c90984f8 SHA512 94ff96fa534c55ad5811ae969d3b3f067ea6dfc8818f8dc73a37a7b2d0fc7c2a3e0e33f4eaf3e2832018283d7f7b318022c3d9883563b634fdd95ed67743dc4d WHIRLPOOL d82d0c08747648b13976c51d6d84a829fb47de43af854da2b4e3bf879fe1a722789984b310899587277c41a47878fb8825bdf81d6765273c7bece5b83723a636
+MISC ChangeLog-2015 5028 SHA256 914fa16bca5ba91b15b4a18c7aca8aa3b68f010111f01635881c69cd4cb914e0 SHA512 903a272f4d6852df25bdc79637417d8778b819af6f895f1fd0e4dd41b6355a586ae98789cf45beb00219aa3dc58ce471ae392bbce700289564a6cba70ccf02d4 WHIRLPOOL 1abe7af24c2f98ee9ccd56ee399c1f14d7cf3ca79265b707edcf7db8e446e28093d2ecc326caf089e55fc6d6a2bc622a979f65d6c33ae5c760154694ef10f3ae
+MISC metadata.xml 330 SHA256 b5620aecf7acff520badf1216556eba0aa5f910eee9fe4cbdef01715381c51da SHA512 d47d4afa0adafc93aa43d05190f0a65ac486b6ad4aee54bac96b2f99da7c4a55c6df99b512e4c113c2b4232b8ae294f58966b06081eb89d31fc20b8d9de2e07b WHIRLPOOL 191d8e20097dfa9442753071cdebeb32fe75def0ccb57d67380514e24108a550639bb08ce1b72699641e86edc268b91e3148598c0b556ed84916c2efdeb61fba
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
new file mode 100644
index 000000000000..5c2bc202f384
--- /dev/null
+++ b/games-roguelike/scourge/files/scourge-0.21.1-automake-1.13.patch
@@ -0,0 +1,11 @@
+--- 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)
+ AM_INIT_AUTOMAKE(scourge, "0.21")
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ dnl internationalization macros
+ AC_GNU_SOURCE
diff --git a/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch b/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch
new file mode 100644
index 000000000000..6f3f7b3e2a65
--- /dev/null
+++ b/games-roguelike/scourge/files/scourge-0.21.1-gcc47.patch
@@ -0,0 +1,12 @@
+--- 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);
+
++void *sq_vm_realloc(void *p,SQUnsignedInteger oldsize,SQUnsignedInteger size);
++void sq_vm_free(void *p,SQUnsignedInteger size);
++
+ //sqvector mini vector class, supports objects by value
+ template<typename T> class sqvector
+ {
diff --git a/games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch b/games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch
new file mode 100644
index 000000000000..fed15f45ed7e
--- /dev/null
+++ b/games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch
@@ -0,0 +1,34 @@
+Bug: https://bugs.gentoo.org/610492
+Upstream ticket: https://sourceforge.net/p/scourge/patches/3/
+
+--- a/src/equip.cpp
++++ b/src/equip.cpp
+@@ -595,7 +595,7 @@
+ }
+ }
+ if ( !found ) {
+- specialSkill = false;
++ specialSkill = NULL;
+ canvas->setTooltip( "" );
+ }
+ glDisable( GL_BLEND );
+--- a/src/render/map.cpp
++++ b/src/render/map.cpp
+@@ -3154,7 +3154,7 @@
+ if ( shape )
+ return shape;
+ }
+- return false;
++ return NULL;
+ }
+ if ( y1 == y2 ) {
+ if ( x1 > x2 ) SWAP( x1, x2 );
+@@ -3163,7 +3163,7 @@
+ if ( shape )
+ return shape;
+ }
+- return false;
++ return NULL;
+ }
+
+
diff --git a/games-roguelike/scourge/metadata.xml b/games-roguelike/scourge/metadata.xml
new file mode 100644
index 000000000000..ea7a44ebb6c5
--- /dev/null
+++ b/games-roguelike/scourge/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scourge</remote-id>
+ </upstream>
+</pkgmetadata>
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..b0b6aa2a6784
--- /dev/null
+++ b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 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}-gcc6.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.
+}