summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-08-05 16:29:47 -0500
committerAustin English <wizardedit@gentoo.org>2016-08-05 16:31:13 -0500
commit55658331efb82830f3b60f393fcb92d322cd74d1 (patch)
tree0f27780a3169954e8b3ad8d59ed05c6f882849e7 /games-roguelike/wrogue
parentgames-roguelike/crossfire-client: remove deprecated games eclass (diff)
downloadgentoo-55658331efb82830f3b60f393fcb92d322cd74d1.tar.gz
gentoo-55658331efb82830f3b60f393fcb92d322cd74d1.tar.bz2
gentoo-55658331efb82830f3b60f393fcb92d322cd74d1.zip
games-roguelike/wrogue: 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/wrogue')
-rw-r--r--games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch4
-rw-r--r--games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild49
2 files changed, 51 insertions, 2 deletions
diff --git a/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch b/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
index 3341965e5184..d3ec216b4c13 100644
--- a/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
+++ b/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
@@ -1,5 +1,5 @@
---- src/linux.mak.old 2010-10-14 11:07:22.000000000 +0200
-+++ src/linux.mak 2010-10-14 11:08:00.000000000 +0200
+--- a/src/linux.mak 2010-10-14 11:07:22.000000000 +0200
++++ b/src/linux.mak 2010-10-14 11:08:00.000000000 +0200
@@ -19,7 +19,7 @@
# common compiler/linker flags
#
diff --git a/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild b/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild
new file mode 100644
index 000000000000..39e0c087cb74
--- /dev/null
+++ b/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Gothic science fantasy roguelike game"
+HOMEPAGE="https://freecode.com/projects/wrogue"
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[video]"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ldflags.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/AppData\[0\]/ s:AppData.*:strcpy(AppData, \"/usr/share/${PN}/\");:" \
+ src/lib/appdir.c \
+ || die "sed failed"
+}
+
+src_compile() {
+ local myCPPFLAGS="-std=c99 -Iinclude -Ilib -Iui -Igenerate"
+ local myCFLAGS="$(sdl-config --cflags) ${CFLAGS}"
+ emake -C src -f linux.mak STRIP_BINARY=NO \
+ CFLAGS="${myCPPFLAGS} ${myCFLAGS}" release
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r data
+ dodoc changes.txt
+
+ newicon data/ui/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} "Warp Rogue" /usr/share/pixmaps/${PN}.bmp
+}