summaryrefslogtreecommitdiff
path: root/games-rpg/egoboo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg/egoboo
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/egoboo')
-rw-r--r--games-rpg/egoboo/Manifest7
-rw-r--r--games-rpg/egoboo/egoboo-2.8.1-r1.ebuild59
-rw-r--r--games-rpg/egoboo/egoboo-2.8.1.ebuild56
-rw-r--r--games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch56
-rw-r--r--games-rpg/egoboo/metadata.xml11
5 files changed, 189 insertions, 0 deletions
diff --git a/games-rpg/egoboo/Manifest b/games-rpg/egoboo/Manifest
new file mode 100644
index 000000000000..e3b2361577ad
--- /dev/null
+++ b/games-rpg/egoboo/Manifest
@@ -0,0 +1,7 @@
+AUX egoboo-2.8.1-gentoo.patch 2233 SHA256 c56a194e325b78633ae2078a6225643ab5c7f869d7bb6a5913db0dd042cbdaf1 SHA512 277e453c95ee908b064987eae732b37a6ee9c2d903532017eb8a8951458a16b5195694f8165ba7146b1ca609be6155e4df20212b8c3cb3b056c4249bc4f3e1f3 WHIRLPOOL 119697d2812c08f2f0ab43cbafb3e243687149c7523fdff29de6a91c763b06a59b70a930586b85d15686fc04902f7d642fc1347a0c224b3cd8ed4e4bf48f8b13
+DIST egoboo-2.8.1.tar.gz 150029960 SHA256 a2694187d28a7aadf4ca3b9b7a6c6dcd3bb03ec8f145435c744bb77afb5f4c26 SHA512 5793a63ba90f461ae99bcb81bf4ddf287b203bc2d401e1f697f1f4f93e1d681954e09b23938eb1a36e7dd535e2d12b8882efd77572cc63392cad5f9462ac3054 WHIRLPOOL a4aa29244a43c974f7109ba4a3be40d2438a01c05ac032c4f74e01c2ca407ab3b6033f5133164e853bc50c8b0c59320ac076d21c93ea26ca7089fe8e603a4f6c
+EBUILD egoboo-2.8.1-r1.ebuild 1254 SHA256 79d5c2e700eee31396ae2bc352172bf90a9e3a139eea0087acd1e43051f7e7ad SHA512 3ba98b1a1ed0a4af22dff6726ebc58e12c5cfca79575bc3f553ee9d196122803f5d870d0c7a93433ed46b6bf9733e4a553d82e9a44b98bf94e2e8d9e41ad5c01 WHIRLPOOL 636a9a5dbaef9ee8f8d4feaf5d450c51b38e852b368ced27de02877883ea2f5467f5a07063093054e3038151e6664e44397a1de07295a91823694538209a83a9
+EBUILD egoboo-2.8.1.ebuild 1308 SHA256 2b2153ca79ea030531cd6cac3cc6a7c254af568ef533cbcebdb64acf5bf50798 SHA512 2f3db37dc8ad211951a2ac91759d3381e10b7c24173ab0647257b8d2b6b9345df34a275f2a9b054ec386546c1b04c47d7813be67d9b18fb58e11a117dda26a76 WHIRLPOOL 36ea24a72dfac24cb718cd62d5462ca62e3aeb60e4757a6756402a36429cb8c539999bbebe9f071580730e053a49025bd7adabe14cba37719110d20b513355a8
+MISC ChangeLog 2870 SHA256 776de30c73f5e4f3fc391207568e17260ede7c4f9d4579d2c1108da216086cad SHA512 f2532ec41ae606fe4b3a8dbf7f8ea2ef8f3c8641a451660ecab5ad906c54e3a5c37490e51b38d03f628222a1fb2c921f2b57107f829af7bfd2afddd258c88645 WHIRLPOOL 42f8fa3489fe2f15a77ba5bd8561dfcd2f500e021fdd56bcdb9297d8768b03a73e5650d72e8aaea7e52ac9c4e88b62761b1aa83cf32e9c4c013cbaa1b3c4850c
+MISC ChangeLog-2015 5126 SHA256 13048aafd98367979277229979b67e1bb50eea91b520c86d2bfcf30ce0143f8a SHA512 0ebbbbb28e39ccb7e55da3dd745dc478724a81456d4235f44fa60246bd1f27cdaa293638a7103a5d3e461c95587fc977fe124c06849ffcae8aac58d3aae3bfe5 WHIRLPOOL 8a289e17647dfbd7b9d82d972745aee82baf4b45acc35375dfeafab710b61fb2c8a8c959d0c431181f978f303998ae3d87346b85bdb0674faba774cddc58440d
+MISC metadata.xml 329 SHA256 a1a8a1fe2a8d92b986d673fb39e14d175d7c7f33a007d25522bbfd528b505237 SHA512 c3152f5db54eb4ae254c36981adb9556ff0eb37b267cd1dd25efc1428249d826e4c37b6166034acf98229f6f3ac681d7edb9681c69fd2f88e9394dff04fbd5fb WHIRLPOOL 48484bbd073388f486c17d10a92b8835cadd60749ef561006096625a80f503d47d8af20abb4e472e3decd3b667aea5f1ae1352ab1eba7099a99aa7a485ca80cd
diff --git a/games-rpg/egoboo/egoboo-2.8.1-r1.ebuild b/games-rpg/egoboo/egoboo-2.8.1-r1.ebuild
new file mode 100644
index 000000000000..108aefdfcecc
--- /dev/null
+++ b/games-rpg/egoboo/egoboo-2.8.1-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A 3d dungeon crawling adventure in the spirit of NetHack"
+HOMEPAGE="http://egoboo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-games/physfs
+ media-libs/libsdl[joystick,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ net-libs/enet:0
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+ edos2unix src/game/platform/file_linux.c \
+ src/game/network.c \
+ src/game/Makefile
+ default
+ sed -i \
+ -e "s:@GENTOO_CONFDIR@:/etc/${PN}:" \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ src/game/platform/file_linux.c || die "sed failed"
+ rm -rf src/enet || die
+}
+
+src_compile() {
+ emake -C src/game PROJ_NAME=egoboo-2.x
+}
+
+src_install() {
+ dodoc BUGS.txt Changelog.txt doc/*.txt doc/*.pdf
+
+ insinto /usr/share/${PN}
+ doins -r basicdat modules
+ insinto /etc/${PN}
+ doins -r controls.txt setup.txt
+
+ newbin src/game/egoboo-2.x ${PN}
+
+ newicon basicdat/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Egoboo /usr/share/pixmaps/${PN}.bmp
+}
diff --git a/games-rpg/egoboo/egoboo-2.8.1.ebuild b/games-rpg/egoboo/egoboo-2.8.1.ebuild
new file mode 100644
index 000000000000..c5e80cc1a359
--- /dev/null
+++ b/games-rpg/egoboo/egoboo-2.8.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A 3d dungeon crawling adventure in the spirit of NetHack"
+HOMEPAGE="http://egoboo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[joystick,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ net-libs/enet:0
+ dev-games/physfs"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ edos2unix src/game/platform/file_linux.c \
+ src/game/network.c \
+ src/game/Makefile
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ -e "s:@GENTOO_CONFDIR@:${GAMES_SYSCONFDIR}/${PN}:" \
+ src/game/platform/file_linux.c || die "sed failed"
+ rm -rf src/enet || die
+}
+
+src_compile() {
+ emake -C src/game PROJ_NAME=egoboo-2.x
+}
+
+src_install() {
+ dodoc BUGS.txt Changelog.txt doc/*.txt doc/*.pdf
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r basicdat modules
+ insinto "${GAMES_SYSCONFDIR}/${PN}"
+ doins -r controls.txt setup.txt
+
+ newgamesbin src/game/egoboo-2.x ${PN}
+
+ newicon basicdat/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Egoboo /usr/share/pixmaps/${PN}.bmp
+
+ prepgamesdirs
+}
diff --git a/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch b/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch
new file mode 100644
index 000000000000..2f1205a45118
--- /dev/null
+++ b/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch
@@ -0,0 +1,56 @@
+--- a/src/game/platform/file_linux.c 2012-04-29 21:45:29.627419281 +0200
++++ b/src/game/platform/file_linux.c 2012-04-29 21:45:29.628419211 +0200
+@@ -79,9 +79,9 @@
+ strncpy( linux_dataPath, PREFIX "/share/games/egoboo-2.x", SDL_arraysize( linux_dataPath ) );
+ #else
+ // these are read-only directories
+- strncpy( linux_configPath, "/etc/egoboo-2.x/", SDL_arraysize( linux_configPath ) );
++ strncpy( linux_configPath, "@GENTOO_CONFDIR@", SDL_arraysize( linux_configPath ) );
+ strncpy( linux_binaryPath, "/games/", SDL_arraysize( linux_binaryPath ) );
+- strncpy( linux_dataPath, "/share/games/egoboo-2.x/", SDL_arraysize( linux_dataPath ) );
++ strncpy( linux_dataPath, "@GENTOO_DATADIR@", SDL_arraysize( linux_dataPath ) );
+ #endif
+
+ // the log file cannot be started until there is a user data path to dump the file into
+--- a/src/game/network.c 2012-04-29 20:14:31.482179973 +0200
++++ b/src/game/network.c 2012-04-29 20:14:52.077730184 +0200
+@@ -37,7 +37,7 @@
+ #include "egoboo_setup.h"
+ #include "egoboo.h"
+
+-#include "enet/enet.h"
++#include <enet/enet.h>
+ #include "file_common.h"
+
+ #include <stdarg.h>
+--- a/src/game/Makefile 2012-04-29 20:17:09.303070070 +0200
++++ b/src/game/Makefile 2012-04-29 20:18:21.047023847 +0200
+@@ -33,8 +33,7 @@
+ # the compiler options
+
+-CC := gcc
+-INC := -I. -I.. -I../enet/include ${SDLCONF_I} -I./extensions -I./file_formats -I./platform
+-LDFLAGS := ${SDLCONF_L} -L../enet/lib -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet
++INC := -I. -I.. ${SDLCONF_I} -I./extensions -I./file_formats -I./platform
++LDLIBS := ${SDLCONF_L} -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet -lm
+
+ # use different options if the environmental variable PREFIX is defined
+ ifdef ($(PREFIX),"")
+@@ -43,7 +43,7 @@
+ OPT := -Os -Wall -DPREFIX=\"${PREFIX}\" -D_NIX_PREFIX
+ endif
+
+-CFLAGS := ${OPT} ${INC}
++CFLAGS += ${INC} -DENET11
+
+ #------------------------------------
+ # definitions of the target projects
+@@ -52,7 +52,7 @@
+ all: ${EGO_BIN}
+
+ ${EGO_BIN}: ${EGO_OBJ}
+- ${CC} -o $@ $^ ${LDFLAGS} ${CFLAGS}
++ ${CC} -o $@ $^ ${LDFLAGS} ${CFLAGS} ${LDLIBS}
+
+ clean:
+ rm -f ${ENET_OBJ} ${EGO_OBJ} ${EGO_BIN}
diff --git a/games-rpg/egoboo/metadata.xml b/games-rpg/egoboo/metadata.xml
new file mode 100644
index 000000000000..d8a2d5fe278b
--- /dev/null
+++ b/games-rpg/egoboo/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">egoboo</remote-id>
+ </upstream>
+</pkgmetadata>