diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-rpg | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-rpg')
219 files changed, 8859 insertions, 0 deletions
diff --git a/games-rpg/a-bird-story/Manifest b/games-rpg/a-bird-story/Manifest new file mode 100644 index 000000000000..d8e81a6a9588 --- /dev/null +++ b/games-rpg/a-bird-story/Manifest @@ -0,0 +1 @@ +DIST ABirdStory-2014-11-06.sh 163620225 SHA256 b8d390c8325d31b287a87ee9f3475a2e454473196247a17fef1ede80744da30e SHA512 1787d3267fb4ed71845cc614842fb6bfa6713c3d9ebeb4b3bac922776243bfc3ae3d3dd94e3a5ab871d67489fda8c87c3a3fb71dcac4066c49cecc702a81bbd9 WHIRLPOOL 90bc002b38ae16482b8849b38db58b20dc5863aca841b02322c4f3abf279a785625454ade7daef5525a720d88a68cf5627613b75118d1b254fdb249a800ecfc5 diff --git a/games-rpg/a-bird-story/a-bird-story-20141106.ebuild b/games-rpg/a-bird-story/a-bird-story-20141106.ebuild new file mode 100644 index 000000000000..0ece9a80d5d0 --- /dev/null +++ b/games-rpg/a-bird-story/a-bird-story-20141106.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils unpacker multilib gnome2-utils games +MY_PN=ABirdStory +DESCRIPTION="Indie adventure short of a boy's memories, dream, and imagination" +HOMEPAGE="http://freebirdgames.com/games/a-bird-story/" +SRC_URI="${MY_PN}-${PV:0:4}-${PV:4:2}-${PV:6:2}.sh" + +# missing: SIL, Xiph +# physfs ZLIB +# sdl-sound LGPL-2.1 +LICENSE="all-rights-reserved BSD OFL-1.1 LGPL-2.1 ZLIB bundled-libs? ( FTL GPL-2 MIT ( || ( Ruby-BSD BSD-2 ) ) )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bundled-libs" +RESTRICT="fetch bindist splitdebug" + +QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin*" +if [[ ${ARCH} == "amd64" ]] ; then + QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib64/*" +else + QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib/*" +fi + +RDEPEND=" + !bundled-libs? ( + dev-games/physfs + dev-lang/ruby:2.1 + dev-libs/libsigc++:2 + >=media-libs/libsdl2-2.0.1[X,joystick,opengl,sound,threads,video] + media-libs/libvorbis + media-libs/openal + media-libs/sdl2-image[png] + media-libs/sdl2-ttf + sys-libs/zlib + x11-libs/pixman + ) + virtual/opengl" + +S=${WORKDIR}/data + +pkg_nofetch() { + einfo + einfo "Please buy & download \"${SRC_URI}\" from:" + einfo " ${HOMEPAGE}" + einfo "and move/link it to \"${DISTDIR}\"" + einfo +} + +src_unpack() { + # mojo stuff inside makeself archive, unpack_makeself fails + local lastline=$(( $(grep -a -h -n -m 1 -F -e "Extra newline, because in very rare cases (OpenSolaris) stub is directly added after script" "${DISTDIR}/${A}" | cut -d':' -f1) + 1 )) + [[ ${lastline} ]] || die "no last line" + local offset=$(head -n ${lastline} "${DISTDIR}/${A}" | wc -c) + [[ ${offset} ]] || die "no offset" + dd ibs=${offset} skip=1 if="${DISTDIR}/${A}" of="${T}"/bird.zip || die + unpack_zip "${T}"/bird.zip +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + local arch=$(usex amd64 "x86_64" "x86") + + insinto "${dir}" + doins -r noarch/* + + exeinto "${dir}" + doexe ${arch}/${MY_PN}.$(usex amd64 "amd64" "x86") + + exeinto "${dir}/$(get_libdir)" + if use bundled-libs ; then + doexe ${arch}/$(get_libdir)/* + else + doexe ${arch}/$(get_libdir)/{libsteam_api.so,libphysfs.so.1,libSDL_sound-1.0.so.1} + fi + + games_make_wrapper ${PN} \ + "./${MY_PN}.$(usex amd64 "amd64" "x86")" \ + "${dir}" "${dir}/$(get_libdir)" + make_desktop_entry ${PN} "A bird story" + newicon -s 48 noarch/icon.png ${PN}.png + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/a-bird-story/metadata.xml b/games-rpg/a-bird-story/metadata.xml new file mode 100644 index 000000000000..ef31c088e796 --- /dev/null +++ b/games-rpg/a-bird-story/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='bundled-libs'>Use bundled libraries</flag> + </use> +</pkgmetadata> diff --git a/games-rpg/adonthell/Manifest b/games-rpg/adonthell/Manifest new file mode 100644 index 000000000000..9a321fdf802e --- /dev/null +++ b/games-rpg/adonthell/Manifest @@ -0,0 +1 @@ +DIST adonthell-src-0.3.5.tar.gz 877439 SHA256 b1b24f26b9f32782793b222c687943442be83fc0d7f5dbb4928a61074be36dd7 SHA512 bf970b809b22a8563b196d6817553dd58dc9cb09b3bd99eb99d5c8e6f0828cf59965633acd4fdf7835dd9cb732cbb3290d3663521201ece7569cad2f494fb15d WHIRLPOOL 4db4d959879e36b1ed3003cbb200c02de18432d19fd6576132c7b54a3efee1c19290003254fe59db181800e0186aafe532c7c9427102c64b7e0cb4a84c078347 diff --git a/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild b/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild new file mode 100644 index 000000000000..c49474b5e45a --- /dev/null +++ b/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils python-single-r1 games + +DESCRIPTION="roleplaying game engine" +HOMEPAGE="http://adonthell.linuxgames.com/" +SRC_URI="http://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/sdl-ttf + media-libs/sdl-mixer[vorbis] + media-libs/libsdl:0[X,video,sound] + sys-libs/zlib + media-libs/freetype + media-libs/libogg + media-libs/libvorbis + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + dev-lang/swig + doc? ( + media-gfx/graphviz + app-doc/doxygen + ) + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${PN}-${PV/a/} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-configure.in.patch \ + "${FILESDIR}"/${P}-glibc-2.10.patch \ + "${FILESDIR}"/${P}-format.patch \ + "${FILESDIR}"/${P}-gcc46.patch + sed -i \ + -e "/AC_PATH_PROGS/s:python:${EPYTHON}:" \ + configure.in || die "sed failed" + rm -f ac{local,include}.m4 + eautoreconf +} + +src_configure() { + egamesconf \ + --disable-dependency-tracking \ + --disable-py-debug \ + $(use_enable nls) \ + $(use_enable doc) +} + +src_install() { + emake DESTDIR="${D}" install + keepdir "${GAMES_DATADIR}"/${PN}/games + dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README + prepgamesdirs +} diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch b/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch new file mode 100644 index 000000000000..903bd9a5f67d --- /dev/null +++ b/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch @@ -0,0 +1,92 @@ +--- configure.in ++++ configure.in +@@ -13,7 +13,7 @@ + AM_INIT_AUTOMAKE([]) + AM_CONFIG_HEADER(config.h) + +-CFLAGS="-g -Wall -fno-exceptions" ++CXXFLAGS="$CXXFLAGS -Wall -fno-exceptions" + CPPFLAGS="" + DEFS="" + +@@ -163,10 +163,8 @@ + + dnl Extract the version using Python, check against 2.2+ + +- changequote(<<, >>) +- PYTHON_VERSION=`$PYPACKAGE -c 'import sys ; print (int(sys.version[0]) * 10 + int(sys.version[2]))'` +- PY_VERSION=`$PYPACKAGE -c 'import sys ; print sys.version[0:3]'` +- changequote([, ]) ++ PYTHON_VERSION=`$PYPACKAGE -c 'import sys ; print (int(sys.version@<:@0@:>@) * 10 + int(sys.version@<:@2@:>@))'` ++ PY_VERSION=`$PYPACKAGE -c 'import sys ; print sys.version@<:@0:3@:>@'` + + if test $PYTHON_VERSION -lt 22; then + echo "Sorry, you need to have Python 2.2+ installed - update your version!" +@@ -176,9 +174,7 @@ + dnl Find the Python.h header file + + AC_MSG_CHECKING(for Python header files) +- changequote(<<, >>) +- PYINCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[:3])'` +- changequote([, ]) ++ PYINCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version@<:@:3@:>@)'` + + if test -r "$PYINCLUDE/Python.h"; then + PY_CFLAGS="-I$PYINCLUDE" +@@ -191,10 +187,8 @@ + dnl Find the Python library + AC_MSG_CHECKING(for Python library) + PYLIB="" +- changequote(<<, >>) + PYPREFIX=`$PYPACKAGE -c 'import sys; print sys.prefix'` +- PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version[:3]'` +- changequote([, ]) ++ PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version@<:@:3@:>@'` + + dnl look for a framework build of python first + fw=`echo "$PYPREFIX" | sed 's/.*\(Python\.framework\).*/\1/;'` +@@ -233,19 +227,9 @@ + fi + dnl Get the libraries that python depends on + +- AC_PATH_PROG(haveldd, ldd) + AC_MSG_CHECKING(for Python's dependencies) + +- if test x$haveldd != x ; then +- changequote(<<, >>) +- py_deps=`ldd $PYPACKAGE | sed 's/\( *.*lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d' | grep -v 'stdc++'` +- for py_lib in $py_deps ; do +- if test "$py_lib" != "-lm" && test "$py_lib" != "-lc" ; then +- PY_DEPS="$PY_DEPS $py_lib" +- fi +- done +- changequote([, ]) +- fi ++ PY_DEPS="$PY_DEPS `python-config --libs` -lutil" + + case $target in + *-sun-solaris*) +@@ -293,11 +277,9 @@ + if test "$P_SWIG" != "no" ; then + $P_SWIG -version &> swig.ver + +- changequote(<<, >>) +- swig_major_ver=`more swig.ver | sed 's/.* \([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/p; d'` +- swig_minor_ver=`more swig.ver | sed 's/.* [0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/p; d'` +- swig_micro_ver=`more swig.ver | sed 's/.* [0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p; d'` +- changequote([, ]) ++ swig_major_ver=`more swig.ver | sed 's/.* \(@<:@0-9@:>@*\)\.@<:@0-9@:>@*\.@<:@0-9@:>@*.*/\1/p; d'` ++ swig_minor_ver=`more swig.ver | sed 's/.* @<:@0-9@:>@*\.\(@<:@0-9@:>@*\)\.@<:@0-9@:>@*.*/\1/p; d'` ++ swig_micro_ver=`more swig.ver | sed 's/.* @<:@0-9@:>@*\.@<:@0-9@:>@*\.\(@<:@0-9@:>@*\).*/\1/p; d'` + + rm -f swig.ver + +@@ -387,7 +369,7 @@ + dnl Generate our compiler arguements + dnl ******************************** + +-CXXFLAGS="$CFLAGS $DEFS $INCLUDES" ++CXXFLAGS="$CXXFLAGS $DEFS $INCLUDES" + + AC_SUBST(CXX) + AC_SUBST(CXXFLAGS) diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-format.patch b/games-rpg/adonthell/files/adonthell-0.3.5-format.patch new file mode 100644 index 000000000000..f66cc50e16db --- /dev/null +++ b/games-rpg/adonthell/files/adonthell-0.3.5-format.patch @@ -0,0 +1,11 @@ +--- 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 +@@ -867,7 +867,7 @@ + Py_DECREF(old_str); + Py_DECREF(value); + } else { +- PyErr_Format(PyExc_RuntimeError, mesg); ++ PyErr_Format(PyExc_RuntimeError, "%s", mesg); + } + } + diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch b/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch new file mode 100644 index 000000000000..f4d07e867e48 --- /dev/null +++ b/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch @@ -0,0 +1,13 @@ +--- 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 +@@ -34,8 +34,9 @@ + + case DESTROY: + { ++ Functor0wRet<bool> func0ret; + set_callback_destroy ( +- makeFunctor (&Functor0wRet<bool>(), *callback, &py_callback::callback_func0ret)); ++ makeFunctor (&func0ret, *callback, &py_callback::callback_func0ret)); + break; + } + diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch b/games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch new file mode 100644 index 000000000000..7aec808cd5f1 --- /dev/null +++ b/games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch @@ -0,0 +1,22 @@ +diff -Naurp adonthell-0.3.4-orig/src/dialog.cc adonthell-0.3.4/src/dialog.cc +--- adonthell-0.3.4-orig/src/dialog.cc 2005-03-10 12:39:41.000000000 -0600 ++++ adonthell-0.3.4/src/dialog.cc 2009-07-26 15:57:01.410882131 -0600 +@@ -265,7 +265,8 @@ string dialog::scan_string (const char * + { + u_int32 begin, end, len; + PyObject *result; +- char *tmp, *start, *mid, *str = NULL; ++ const char *start; ++ char *tmp, *mid, *str = NULL; + character *the_player = data::the_player; + string newstr (s); + +@@ -318,7 +319,7 @@ string dialog::scan_string (const char * + + // Error! + cout << "\n*** Error, unknown macro " << start << flush; +- start[0] = ' '; ++ newstr[newstr.length () - strlen (start)] = ' '; + } + + // execute python functions diff --git a/games-rpg/adonthell/metadata.xml b/games-rpg/adonthell/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/adonthell/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/arx-fatalis-data/Manifest b/games-rpg/arx-fatalis-data/Manifest new file mode 100644 index 000000000000..02cf79bef022 --- /dev/null +++ b/games-rpg/arx-fatalis-data/Manifest @@ -0,0 +1,2 @@ +DIST ArxFatalis_1.21_MULTILANG.exe 9064611 SHA256 97c3483a5db7ca99f5ae8001c148517eda3be4cb96d41cc4c1e42f5741456cf3 SHA512 885260c6173ee5f2d6d6072bcfd14d085f11b997a0ce45cbdee9a347612e96da13477ef7d71b9c015fb02f2e47bdfb968a2aa89b0c92e9327abbd75b724e47c2 WHIRLPOOL 1dc785f3b3e28aca928668f7bb7056db0a7ef39f803e50502f1eaf138248a2321011331366c33b4d90791265ece9a114ad7f4c090352940036c8a5bc74b15c56 +DIST setup_arx_fatalis.exe 547521812 SHA256 dc8f62e1ca731844f84f6e80efd28272708ca4c7d4085b0f0125d1f56e50d462 SHA512 4f2021657bd1c5b89d40a29fca0f77a7755e191b8b3e297bb614e557b18ad943a76eb6670f66fb7f0ae1ad92353f1988c0f3bd0c27e220a35fa38a9cdffe0970 WHIRLPOOL 6d456314751e1a2b06f3effd02c50b498e0b3966851253f338c21e2de6e221bc338e4204d13e7d77158b3cbf3dafcef4f8c4cdabcd68abe21ad3758bc149320f diff --git a/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r1.ebuild b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r1.ebuild new file mode 100644 index 000000000000..53eca8c5b2a2 --- /dev/null +++ b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils cdrom check-reqs games + +DESCRIPTION="Arx Fatalis data files" +HOMEPAGE="http://www.arkane-studios.com/uk/arx.php" +SRC_URI="http://download.zenimax.com/arxfatalis/patches/1.21/ArxFatalis_1.21_MULTILANG.exe" + +LICENSE="ArxFatalis-EULA-JoWooD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="mirror" + +RDEPEND="games-rpg/arx-libertatis" +DEPEND="app-arch/cabextract + app-arch/innoextract" + +LANGS="linguas_de +linguas_en linguas_es linguas_fr linguas_it linguas_ru" +IUSE="$IUSE $LANGS" +REQUIRED_USE="^^ ( ${LANGS//+/} )" + +CHECKREQS_DISK_BUILD="621M" +CHECKREQS_DISK_USR="617M" + +S=${WORKDIR} + +src_unpack() { + cdrom_get_cds bin/Arx.ttf + + local mylang + case ${LINGUAS} in + de) mylang="german" ;; + en) mylang="english" ;; + es) mylang="spanish" ;; + fr) mylang="french" ;; + it) mylang="italian" ;; + ru) mylang="russian" ;; + esac + elog "Chosen language is ${mylang}" + + find "${CDROM_ROOT}" -iname "setup*.cab" -exec cabextract '{}' \; + innoextract --lowercase --language=${mylang} \ + "${DISTDIR}"/ArxFatalis_1.21_MULTILANG.exe || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/arx + doins -r app/{graph,misc} + find . -iname "*.pak" -exec doins '{}' \; + + dodoc app/{manual,map}.pdf + + # convert to lowercase + cd "${D}" + find . -type f -exec sh -c 'echo "${1}" + lower="`echo "${1}" | tr [:upper:] [:lower:]`" + [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; + + prepgamesdirs +} + +pkg_postinst() { + elog "You need Arx Fatalis in the chosen language, otherwise set it in package.use!" + games_pkg_postinst +} diff --git a/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild new file mode 100644 index 000000000000..722fb3dd9d99 --- /dev/null +++ b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CDROM_OPTIONAL="yes" +inherit eutils cdrom check-reqs games + +DESCRIPTION="Arx Fatalis data files" +HOMEPAGE="http://www.arkane-studios.com/uk/arx.php" +SRC_URI="cdinstall? ( http://download.zenimax.com/arxfatalis/patches/1.21/ArxFatalis_1.21_MULTILANG.exe ) + gog? ( setup_arx_fatalis.exe )" + +LICENSE="cdinstall? ( ArxFatalis-EULA-JoWooD ) gog? ( GOG-EULA )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="gog" +REQUIRED_USE="^^ ( cdinstall gog )" +RESTRICT="binchecks mirror gog? ( fetch )" + +RDEPEND="games-rpg/arx-libertatis" +DEPEND="app-arch/innoextract + cdinstall? ( app-arch/cabextract )" + +CHECKREQS_DISK_BUILD="621M" +CHECKREQS_DISK_USR="617M" + +S=${WORKDIR} + +detect_language() { + speech_checksum=$(find '.' -iname "speech.pak" \ + -exec md5sum -b '{}' \; | sed "s/ .*//g") + if [[ -z $speech_checksum ]] ; then + speech_checksum=$(find '.' -iname "speech_default.pak" \ + -exec md5sum -b '{}' \; | sed "s/ .*//g") + fi + + # check if the checksum is of a known localisation and set data_lang to + # the language string to be used with the 1.21 patch installer + case "$speech_checksum" in + '4c3fdb1f702700255924afde49081b6e') data_lang='german' ;; + # Bundled version of AF included with NVIDIA card + 'ab8a93161688d793a7c78fbefd7d133e') data_lang='german' ;; + '4e8f962d8204bcfd79ce6f3226d6d6de') data_lang='english' ;; + '2f88c67ae1537919e69386d27583125b') data_lang='spanish' ;; + '4edf9f8c799190590b4cd52cfa5f91b1') data_lang='french' ;; + '81f05dea47c52d43f01c9b44dd8fe962') data_lang='italian' ;; + '677163bc319cd1e9aa1b53b5fb3e9402') data_lang='russian' ;; + '') eerror "speech*.pak not found" + die "speech*.pak not found" ;; + *) eerror "unsupported data language - speech*.pak checksum:" \ + "$speech_checksum" \ + "please file a gentoo bug" + die "unsupported data language, file a gentoo bug" ;; + esac +} + +pkg_nofetch() { + einfo "Please download ${A} from your GOG.com account after buying Arx Fatalis" + einfo "and put it into ${DISTDIR}." +} + +src_unpack() { + local data_lang + + if use cdinstall ; then + cdrom_get_cds bin/Arx.ttf + find "${CDROM_ROOT}" -iname "setup*.cab" -exec cabextract '{}' \; + detect_language + else + # gog only offers english + data_lang="english" + fi + + einfo "Data language: $data_lang" + innoextract --lowercase --language=${data_lang} \ + "${DISTDIR}"/${A} || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/arx + doins -r app/{graph,misc} + find . -iname "*.pak" -exec doins '{}' \; + + dodoc app/{manual,map}.pdf + + # convert to lowercase + cd "${D}" + find . -type f -exec sh -c 'echo "${1}" + lower="`echo "${1}" | tr [:upper:] [:lower:]`" + [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; + + prepgamesdirs +} diff --git a/games-rpg/arx-fatalis-data/metadata.xml b/games-rpg/arx-fatalis-data/metadata.xml new file mode 100644 index 000000000000..a43d9736c5d3 --- /dev/null +++ b/games-rpg/arx-fatalis-data/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <herd>proxy-maintainers</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <maintainer> + <email>daniel@constexpr.org</email> + <name>Daniel Scharrer</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> + <use> + <flag name='gog'>Extract the data from the GOG.com installer.</flag> + </use> +</pkgmetadata> + diff --git a/games-rpg/arx-fatalis-demo/Manifest b/games-rpg/arx-fatalis-demo/Manifest new file mode 100644 index 000000000000..3ee0d4855c5d --- /dev/null +++ b/games-rpg/arx-fatalis-demo/Manifest @@ -0,0 +1 @@ +DIST arx_demo_english.zip 160545354 SHA256 9e85d4bfa081a4ccc40a1f3722b32c23cd9fa95e91f47d32be76aa62c9fd7187 SHA512 0cbf0d6da1a373ed29edc49c65ed431117c868ec7bcab04166abd59f5d799460faec506baf191c83fa7c61372888009abb260d8a50e28507a5ec8ab7913a9ad7 WHIRLPOOL 2ef662feac747fc7da44c224d46bd2bc9ab48c01c572912df3464dbef04cd47c4c3768e09f26dde27104e62e3c7c9f4ffe828ec2dac53a80467b31533bcc6731 diff --git a/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild new file mode 100644 index 000000000000..c81dca874d0b --- /dev/null +++ b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils games + +DESCRIPTION="Arx Fatalis demo" +HOMEPAGE="http://www.arkane-studios.com/uk/arx.php" +SRC_URI="arx_demo_english.zip" + +LICENSE="ArxFatalisDemo" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="fetch" + +RDEPEND="games-rpg/arx-libertatis" +DEPEND="app-arch/cabextract + app-arch/unzip" + +S=${WORKDIR} + +pkg_nofetch() { + einfo "Please find and download ${SRC_URI} and put it into ${DISTDIR}." + einfo "There is a list of possible download locations at" + einfo "http://wiki.arx-libertatis.org/Getting_the_game_data#Demo" +} + +src_unpack() { + unpack ${A} + cabextract Setup1.cab || die "cabextract failed" + cabextract Setup2.cab || die "cabextract failed" + cabextract Setup3.cab || die "cabextract failed" +} + +src_install() { + insinto "${GAMES_DATADIR}/${PN}" + doins -r *.pak bin/*.pak + insinto "${GAMES_DATADIR}/${PN}/misc" + doins bin/Logo.bmp bin/Arx.ttf + + # convert to lowercase + cd "${D}" + find . -type f -exec sh -c 'echo "${1}" + lower="`echo "${1}" | tr [:upper:] [:lower:]`" + [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; + + make_desktop_entry "arx --data-dir=${GAMES_DATADIR}/arx-fatalis-demo" \ + "Arx Fatalis Demo" arx-libertatis + + prepgamesdirs +} diff --git a/games-rpg/arx-fatalis-demo/metadata.xml b/games-rpg/arx-fatalis-demo/metadata.xml new file mode 100644 index 000000000000..2b3659406eb8 --- /dev/null +++ b/games-rpg/arx-fatalis-demo/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <herd>proxy-maintainers</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <maintainer> + <email>daniel@constexpr.org</email> + <name>Daniel Scharrer</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> +</pkgmetadata> + diff --git a/games-rpg/arx-libertatis/Manifest b/games-rpg/arx-libertatis/Manifest new file mode 100644 index 000000000000..0e606a1c540c --- /dev/null +++ b/games-rpg/arx-libertatis/Manifest @@ -0,0 +1,3 @@ +DIST arx-libertatis-1.0.3.tar.xz 912288 SHA256 5719e1602051f6a6dc13ac0366ff03804f914ffbd855e7e06fdeb0d065fb6d32 SHA512 e1e8d581b6a7928911abad124a6f9670c28f2a56bc7f7f3bae965f717977a0e9a3953514a663c3f7eb4a802cca8e5607feec829a3b7ffeccc83a835fd77a74b6 WHIRLPOOL 321ec489a474b9a63a762756d929371bd8c05ea5d2fa7994c597a86dc20009f385c5f8d23c1da5f978e9f358949a96bf23bf218245633fd5f4393294fbecee75 +DIST arx-libertatis-1.1.1.tar.xz 970544 SHA256 d405047a78c520015f724b0b907ede55aadc787b5da91cf9967c08e70414d6c4 SHA512 9d6f2cdf029e0bfe19a6794ddbfe57f1cb88c4085d55f8b43cad740ef219d37dba3d47bd4a6bfd0cf0d5a58eabcb3304038430fe743e87d585e6d9620b1ce42c WHIRLPOOL 728f42a4a503dbe16e19cdc19551d224fd0a23aabeb56554947baa5fd40653d9779854a30cceff9094cf59d90d77c136bb15e4bb3d236da21897889168a3735a +DIST arx-libertatis-1.1.2.tar.xz 970608 SHA256 82adb440a9c86673e74b84abd480cae968e1296d625b6d40c69ca35b35ed4e42 SHA512 d4cb8187e7f63934408e38a51a44b7da03c8628820d43139507ff97ebd463b9cd7baf6cc4e85a3d4191d6e5f56850d77d07cfffc33d8f5a51378dfb41f719fb8 WHIRLPOOL 8408189dd184ce692962fb157e89048e96f9a29f47cd16163f0194e5ccb5c8a3c8bbac33fabd253d11eb07fd74b5598ccf98a94383c656c0686aff5485f4bb0e diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild new file mode 100644 index 000000000000..2107716dce43 --- /dev/null +++ b/games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game" +HOMEPAGE="http://arx-libertatis.org/" +SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug unity-build crash-reporter tools" + +COMMON_DEPEND=">=dev-libs/boost-1.39 + media-libs/devil[jpeg] + media-libs/freetype + media-libs/glew + media-libs/libsdl[opengl] + media-libs/openal + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + crash-reporter? ( + dev-qt/qtcore:4[ssl] + dev-qt/qtgui:4 + )" +RDEPEND="${COMMON_DEPEND} + crash-reporter? ( sys-devel/gdb )" +DEPEND="${COMMON_DEPEND}" + +DOCS=( README.md AUTHORS CHANGELOG ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-{gentoo,cmake2.8}.patch +} + +src_configure() { + use debug && CMAKE_BUILD_TYPE=Debug + + # editor does not build + local mycmakeargs=( + $(cmake-utils_use unity-build UNITY_BUILD) + $(cmake-utils_use_build tools TOOLS) + $(cmake-utils_use_build crash-reporter CRASHREPORTER) + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + -DGAMESBINDIR="${GAMES_BINDIR}" + -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}" + -DICONDIR=/usr/share/icons/hicolor/128x128/apps + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + dogamesbin "${FILESDIR}"/arx-data-copy + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "optional dependencies:" + elog " games-rpg/arx-fatalis-data (from CD or GOG)" + elog " games-rpg/arx-fatalis-demo (free demo)" + elog + elog "This package only installs the game binary." + elog "You need the demo or full game data. Also see:" + elog "http://wiki.arx-libertatis.org/Getting_the_game_data" + elog + elog "If you have already installed the game or use the STEAM version," + elog "run \"${GAMES_BINDIR}/arx-data-copy /path/to/installed-arx /usr/local/share/games/arx\"." + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.1.1.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.1.1.ebuild new file mode 100644 index 000000000000..d238e63a52fe --- /dev/null +++ b/games-rpg/arx-libertatis/arx-libertatis-1.1.1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CMAKE_WARN_UNUSED_CLI=yes +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game" +HOMEPAGE="http://arx-libertatis.org/" +SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="c++0x debug +unity-build crash-reporter static tools" + +COMMON_DEPEND=" + media-libs/freetype + media-libs/libsdl[X,video,opengl] + media-libs/openal + sys-libs/zlib + virtual/opengl + crash-reporter? ( + dev-qt/qtcore:4[ssl] + dev-qt/qtgui:4 + ) + !static? ( media-libs/glew )" +RDEPEND="${COMMON_DEPEND} + crash-reporter? ( sys-devel/gdb )" +DEPEND="${COMMON_DEPEND} + dev-libs/boost + virtual/pkgconfig + static? ( media-libs/glew[static-libs] )" + +DOCS=( README.md AUTHORS CHANGELOG ) + +src_configure() { + # editor does not build + local mycmakeargs=( + $(cmake-utils_use_build crash-reporter CRASHREPORTER) + -DBUILD_EDITOR=OFF + $(cmake-utils_use_build tools TOOLS) + -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}" + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + $(cmake-utils_use debug DEBUG) + -DGAMESBINDIR="${GAMES_BINDIR}" + -DICONDIR=/usr/share/icons/hicolor/128x128/apps + -DINSTALL_SCRIPTS=ON + -DSET_OPTIMIZATION_FLAGS=OFF + -DSTRICT_USE=ON + $(cmake-utils_use unity-build UNITY_BUILD) + $(cmake-utils_use_use c++0x CXX11) + -DUSE_NATIVE_FS=ON + -DUSE_OPENAL=ON + -DUSE_OPENGL=ON + -DUSE_SDL=ON + $(usex crash-reporter "-DUSE_QT5=OFF" "") + $(cmake-utils_use_use static STATIC_LIBS) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "optional dependencies:" + elog " games-rpg/arx-fatalis-data (from CD or GOG)" + elog " games-rpg/arx-fatalis-demo (free demo)" + elog + elog "This package only installs the game binary." + elog "You need the demo or full game data. Also see:" + elog "http://wiki.arx-libertatis.org/Getting_the_game_data" + elog + elog "If you have already installed the game or use the STEAM version," + elog "run \"${GAMES_BINDIR}/arx-install-data\"" + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild new file mode 100644 index 000000000000..d238e63a52fe --- /dev/null +++ b/games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CMAKE_WARN_UNUSED_CLI=yes +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game" +HOMEPAGE="http://arx-libertatis.org/" +SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="c++0x debug +unity-build crash-reporter static tools" + +COMMON_DEPEND=" + media-libs/freetype + media-libs/libsdl[X,video,opengl] + media-libs/openal + sys-libs/zlib + virtual/opengl + crash-reporter? ( + dev-qt/qtcore:4[ssl] + dev-qt/qtgui:4 + ) + !static? ( media-libs/glew )" +RDEPEND="${COMMON_DEPEND} + crash-reporter? ( sys-devel/gdb )" +DEPEND="${COMMON_DEPEND} + dev-libs/boost + virtual/pkgconfig + static? ( media-libs/glew[static-libs] )" + +DOCS=( README.md AUTHORS CHANGELOG ) + +src_configure() { + # editor does not build + local mycmakeargs=( + $(cmake-utils_use_build crash-reporter CRASHREPORTER) + -DBUILD_EDITOR=OFF + $(cmake-utils_use_build tools TOOLS) + -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}" + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + $(cmake-utils_use debug DEBUG) + -DGAMESBINDIR="${GAMES_BINDIR}" + -DICONDIR=/usr/share/icons/hicolor/128x128/apps + -DINSTALL_SCRIPTS=ON + -DSET_OPTIMIZATION_FLAGS=OFF + -DSTRICT_USE=ON + $(cmake-utils_use unity-build UNITY_BUILD) + $(cmake-utils_use_use c++0x CXX11) + -DUSE_NATIVE_FS=ON + -DUSE_OPENAL=ON + -DUSE_OPENGL=ON + -DUSE_SDL=ON + $(usex crash-reporter "-DUSE_QT5=OFF" "") + $(cmake-utils_use_use static STATIC_LIBS) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "optional dependencies:" + elog " games-rpg/arx-fatalis-data (from CD or GOG)" + elog " games-rpg/arx-fatalis-demo (free demo)" + elog + elog "This package only installs the game binary." + elog "You need the demo or full game data. Also see:" + elog "http://wiki.arx-libertatis.org/Getting_the_game_data" + elog + elog "If you have already installed the game or use the STEAM version," + elog "run \"${GAMES_BINDIR}/arx-install-data\"" + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/arx-libertatis/files/arx-data-copy b/games-rpg/arx-libertatis/files/arx-data-copy new file mode 100644 index 000000000000..f11fc05eb2c1 --- /dev/null +++ b/games-rpg/arx-libertatis/files/arx-data-copy @@ -0,0 +1,108 @@ +#!/bin/sh + +die() { + echo "$@" >&2 + exit 1 +} + +# Handle arguments +if [ "$1" != "--help" ] && [ "$1" != "-h" ] ; then + SOURCE="$(readlink -f "$1")" +else + die "\ +Usage: arx-data-copy path/to/ArxFatalis/ [output_dir] + +This script can be used to copy the game data from a fully patched +Arx Fatalis 1.21 install (for example a Steam download). +Files will be renamed as needed by Arx Libertatis. + +You can get the 1.21 patch from http://www.arkane-studios.com/uk/arx_downloads.php" +fi + +if [ "$2" = "" ] ; then + DESTDIR="$(pwd)" +else + DESTDIR="$(readlink -f "$2")" +fi + +cd "$(dirname "$0")" + +echo "Installing Arx Fatalis data from \"$SOURCE\" to \"$DESTDIR\". +" + +# Check for required files +[ -d "$SOURCE" ] || die "$SOURCE does not exist" + +# files +set -- \ + "data2.pak" \ + "graph/interface/misc/arkane.bmp" \ + "graph/interface/misc/quit1.bmp" \ + "graph/obj3d/textures/fixinter_barrel.jpg" \ + "graph/obj3d/textures/fixinter_bell.bmp" \ + "graph/obj3d/textures/fixinter_metal_door.jpg" \ + "graph/obj3d/textures/fixinter_public_notice.bmp" \ + "graph/obj3d/textures/item_bread.bmp" \ + "graph/obj3d/textures/item_club.jpg" \ + "graph/obj3d/textures/item_long_sword.jpg" \ + "graph/obj3d/textures/item_mauld_sabre.jpg" \ + "graph/obj3d/textures/item_mauldsword.jpg" \ + "graph/obj3d/textures/item_mirror.jpg" \ + "graph/obj3d/textures/item_ring_casting.bmp" \ + "graph/obj3d/textures/item_rope.bmp" \ + "graph/obj3d/textures/item_spell_sheet.jpg" \ + "graph/obj3d/textures/item_torch2.jpg" \ + "graph/obj3d/textures/item_torch.jpg" \ + "graph/obj3d/textures/item_zohark.bmp" \ + "graph/obj3d/textures/l7_dwarf_[wood]_board08.jpg" \ + "graph/obj3d/textures/l7_dwarf_[wood]_board80.jpg" \ + "graph/obj3d/textures/npc_dog.bmp" \ + "graph/obj3d/textures/npc_pig.bmp" \ + "graph/obj3d/textures/npc_pig_dirty.bmp" \ + "graph/obj3d/textures/npc_rat_base.bmp" \ + "graph/obj3d/textures/npc_rat_base_cm.bmp" \ + "graph/obj3d/textures/npc_worm_body_part1.jpg" \ + "graph/obj3d/textures/npc_worm_body_part2.bmp" \ + "graph/obj3d/textures/[wood]_light_door.jpg" \ + "manual.pdf" \ + "map.pdf" \ + "misc/arx_default.ttf" \ + "misc/arx_russian.ttf" \ + "misc/arx_taiwanese.ttf" \ + "misc/logo.avi" \ + "misc/logo.bmp" \ + "sfx.pak" \ + "data.pak" \ + "loc.pak" \ + "speech.pak" + +# Install required files +ret=0 +for f in "$@" ; do + DEST="$DESTDIR/$f" + DIRNAME="$(dirname "$f")" + FILE="$(basename "$f" | sed 's/[^[:alnum:]_-]/\\&/g')" + FILE_DEFAULT="$(echo "$FILE" | sed 's/^\(.*\)\(\.[^.]*\)$/\1_default\2/g')" + + # don't screw permissions on existent folders + [ -e "$DESTDIR/$DIRNAME" ] || { mkdir -pv "$DESTDIR/$DIRNAME" + chmod 755 "$DESTDIR/$DIRNAME" ; } + + find "$SOURCE" -iname "$FILE" -exec cp -fv '{}' "$DEST" \; + find "$SOURCE" -iname "$FILE_DEFAULT" -exec cp -fv '{}' "$DEST" \; + + chmod 644 "$DEST" || { missing_files="$missing_files + $f" ; return 1 ; } + + ret="$(($ret + $?))" +done + +[ "$ret" = "0" ] || die " +$ret errors and following files not installed:$missing_files + +You either have incorrect permissions on \"${DESTDIR}\" +or don't have patch 1.21 installed. Fix it and rerun this script." + +echo +echo "Now run: + arx --data-dir \"$DESTDIR\"" diff --git a/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-cmake2.8.patch b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-cmake2.8.patch new file mode 100644 index 000000000000..b44dce2570c5 --- /dev/null +++ b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-cmake2.8.patch @@ -0,0 +1,36 @@ +From 1cd224fe2933edf33fa1fe7003fc6580e38217fa Mon Sep 17 00:00:00 2001 +From: Daniel Scharrer <daniel@constexpr.org> +Date: Sat, 3 Nov 2012 04:43:42 +0100 +Subject: [PATCH] Fix build with CMake 2.8.10 + +Previously we checked for SDL by using + find_package(SDL 1.2 EXACT) + +This worked with earlier CMake versions as the find script for SDL +didn't provide any version, so CMake just ignored the '1.2 EXACT' part. + +In CMake 2.8.10, FindSDL.cmake reports the SDL version number as +major.minor.patch, which is never exactly equal to 1.2. + +This commit relaxes the check by removing the 'EXACT' requirement. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 14ec2fe..5690176 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -145,7 +145,7 @@ if(USE_SDL) + # due to the need to have NSApplication correctly setup by SDLmain. + set(SDL_BUILDING_LIBRARY 1) + endif() +- find_package(SDL 1.2 EXACT) ++ find_package(SDL 1.2) + endif() + + if(MSVC) +-- +1.7.10 + + diff --git a/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-gentoo.patch b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-gentoo.patch new file mode 100644 index 000000000000..c1da7f7136d1 --- /dev/null +++ b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-gentoo.patch @@ -0,0 +1,74 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Jun 27 22:04:32 UTC 2012 +Subject: build system + +respect flags + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -365,21 +365,6 @@ + + endif() + +- # Warning level +- add_cxxflag("-Wall") +- add_cxxflag("-Wextra") +- add_cxxflag("-Wformat=2") +- add_cxxflag("-Wundef") +- add_cxxflag("-Wpointer-arith") +- add_cxxflag("-Wcast-qual") +- add_cxxflag("-Woverloaded-virtual") +- add_cxxflag("-Wlogical-op") +- +- add_cxxflag("-Wliteral-conversion") +- add_cxxflag("-Wshift-overflow") +- add_cxxflag("-Woverflow") +- add_cxxflag("-Wbool-conversions") +- + # TODO enable: + # add_cxxflag("-Wconversion") # very noisy + # add_cxxflag("-Wsign-conversion") # very noisy +@@ -391,27 +376,12 @@ + endif() + + if(CMAKE_BUILD_TYPE STREQUAL "Debug") +- +- #Debug + add_definitions(-D_DEBUG) +- +- check_compiler_flag(RESULT "-g3") +- if(NOT RESULT STREQUAL "") +- string(REGEX REPLACE "-g(|[0-9]|gdb)" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") +- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}") +- endif() +- +- check_compiler_flag(RESULT "-O0") +- string(REGEX REPLACE "-O[0-9]" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") +- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}") +- + elseif(CMAKE_BUILD_TYPE STREQUAL "Release") +- + if((NOT CMAKE_CXX_FLAGS MATCHES "-g(|[0-9]|gdb)") + AND (NOT CMAKE_CXX_FLAGS_RELEASE MATCHES "-g(|[0-9]|gdb)")) + add_cxxflag("-g2") + endif() +- + endif() + + if(DEBUG_EXTRA) +@@ -419,15 +389,7 @@ + add_cxxflag("-fbounds-checking") + add_cxxflag("-fcatch-undefined-behavior") + add_cxxflag("-Wstrict-aliasing=1") +- else() +- # -Wuninitialized causes too many false positives +- add_cxxflag("-Wno-uninitialized") +- # (clang only) Conflicts with using const variables for configuration. +- add_cxxflag("-Wno-constant-logical-operand") + endif() +- +- # Because we are lazy +- add_ldflag("-Wl,--as-needed") + + # Xcode does not support -isystem yet + if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") diff --git a/games-rpg/arx-libertatis/metadata.xml b/games-rpg/arx-libertatis/metadata.xml new file mode 100644 index 000000000000..13a0ce0c0740 --- /dev/null +++ b/games-rpg/arx-libertatis/metadata.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='c++0x'>Build ROOT using the C++11 standard.</flag> + <flag name='crash-reporter'>Build a <pkg>dev-qt/qtgui</pkg>-based + tool that allows to submit crash information to the upstream + backtracker.</flag> + <flag name='debug'>Enable asserts and debug logging.</flag> + <flag name='static'>Link libraries statically, currently only + <pkg>media-libs/glew</pkg></flag> + <flag name='tools'>Build tools that can extract the game's data and + save files.</flag> + <flag name='unity-build'>Build everything in one big source file, + allowing for faster build times and better optimizations at + the cost of higher memory usage.</flag> + </use> + <longdescription lang='en'> + Arx Libertatis is a cross-platform, open source port of + Arx Fatalis, a 2002 first-person role-playing game/dungeon crawler + developed by Arkane Studios. + Arx Fatalis features crafting, melee and ranged combat, as well + as a unique casting system where the player draws runes in real + time to effect the desired spell. + Arx Libertatis updates and improves Arx Fatalis by supporting + modern systems, porting the game to new systems as well as + eliminating bugs and limitations. + </longdescription> + <longdescription lang='de'> + Arx Libertatis ist eine cross-platform, open source Portierung + von Arx Fatalis, ein Rollenspiel/Dungeon Crawler in Ego-Perspektive + aus dem Jahr 2002, entwickelt von Arkane Studios. + Arx Fatalist umfasst das Herstellen von Gegenständen, + Nah- und Fernkampf, sowie ein einzigartiges Magiesystem, + in dem der Spieler Runen in Echtzeit zeichnen muss, um einen + Zauberspruch auszusprechen. + Arx Libertatis aktualisiert und verbessert Arx Fatalis, indem + es moderne Systeme unterstützt, das Spiel auch zu neuen Systemen + portiert und bugs und Beschränkungen behebt. + </longdescription> + <upstream> + <maintainer status='active'> + <email>daniel@constexpr.org</email> + <name>Daniel Scharrer</name> + </maintainer> + <bugs-to>https://bugs.arx-libertatis.org/</bugs-to> + <changelog> + http://wiki.arx-libertatis.org/Changelog + </changelog> + <doc lang='en'>http://wiki.arx-libertatis.org/</doc> + <remote-id type='github'>arx/ArxLibertatis</remote-id> + <remote-id type='sourceforge'>arx</remote-id> + <remote-id type='freecode'>arx-libertatis</remote-id> + </upstream> +</pkgmetadata> + diff --git a/games-rpg/avadon/Manifest b/games-rpg/avadon/Manifest new file mode 100644 index 000000000000..dc8d0b5c6ffa --- /dev/null +++ b/games-rpg/avadon/Manifest @@ -0,0 +1 @@ +DIST avadon-black-fortress_1.0.4_all.run 109767395 SHA256 1619401aa42abe055b3eabf8b63d4ada3ce55affb054d0d6a6da09affe1c76fe SHA512 7c1acbb1ce3bbfb33052454c9b93060fa97b13fbf4202ee2bb0d70fb59423efc05dfe0bca07cce1e711af9f2757b79c590f237dea5f92aa11aa5979c35d018a7 WHIRLPOOL 751b5ce976a0dcb23065786d5078a32468c0f9a7a1df8eac6884923ad244996c43b7ad25044ee5fd7f680bcaa78982add53b9e248c5794f1c647309c5dbf2afc diff --git a/games-rpg/avadon/avadon-1.0.4.ebuild b/games-rpg/avadon/avadon-1.0.4.ebuild new file mode 100644 index 000000000000..fc0c87348246 --- /dev/null +++ b/games-rpg/avadon/avadon-1.0.4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils unpacker games + +DESCRIPTION="Epic fantasy role-playing adventure in an enormous and unique world" +HOMEPAGE="http://www.spiderwebsoftware.com/avadon/index.html" +SRC_URI="avadon-black-fortress_${PV}_all.run" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="fetch bindist" + +QA_PREBUILT="${GAMES_PREFIX_OPT#/}/${PN}/Avadon*" + +RDEPEND="media-libs/libsdl[X,opengl,video] + media-libs/openal" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/data + +pkg_nofetch() { + einfo + einfo "Please buy & download \"${SRC_URI}\" from:" + einfo " ${HOMEPAGE}" + einfo "and move/link it to \"${DISTDIR}\"" + einfo +} + +src_unpack() { + unpack_zip ${A} +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + local arch=$(usex amd64 "amd64" "x86") + + insinto "${dir}" + doins -r "avadon files" icon.bmp + + exeinto "${dir}" + doexe Avadon-${arch} + + newicon Avadon.png ${PN}.png + games_make_wrapper ${PN} "./Avadon-${arch}" "${dir}" + make_desktop_entry ${PN} "Avadon: The Black Fortress" + + dodoc README-linux.txt + + prepgamesdirs +} diff --git a/games-rpg/avadon/metadata.xml b/games-rpg/avadon/metadata.xml new file mode 100644 index 000000000000..ee67c3092f58 --- /dev/null +++ b/games-rpg/avadon/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> +</pkgmetadata> diff --git a/games-rpg/bass/Manifest b/games-rpg/bass/Manifest new file mode 100644 index 000000000000..b72a8e4af017 --- /dev/null +++ b/games-rpg/bass/Manifest @@ -0,0 +1,2 @@ +DIST bass-cd-1.2.zip 69377781 SHA256 53209b9400eab6fd7fa71518b2f357c8de75cfeaa5ba57024575ab79cc974593 SHA512 ff896e723b4dbf2cc52851ee1260c1006aa285b768a727974719d63509bdac1c65be9ea565eb037d5e9e1c8fd8fd76a8c04776bcde46616ca9ccce18ea498d64 WHIRLPOOL 61fe423bd4738eaa41a7cbae2dce8408798b9ffd8c8e1ff19164190fb799f999d1d41f549ab52f162bb36d168b5c5b2c54d6d501ae8eb0b76e163b122ae5286b +DIST bass.png 27613 SHA256 cd27b33772c967bb2c248dcfaa187adc0ee4436d03899c8a57ccc4c6fd92e92c SHA512 c0f62257f025970f51f32a7f3284cf117a091d40bbcd6c7503e8f0e8e98954cf96e35a04a4e633a04a721ff01beb7a6e0f4c883e286e477c3e065d411db4c87e WHIRLPOOL 09e062628507e98e6365615dad4f88d66dfeb8ed6553b2ad0041c9fb7cfa461a7fa8e18f856c9dbd986740824b0016c34eb9dfa0c964dd3a9b5d761e06ea6f16 diff --git a/games-rpg/bass/bass-1.2-r1.ebuild b/games-rpg/bass/bass-1.2-r1.ebuild new file mode 100644 index 000000000000..613072cc94c4 --- /dev/null +++ b/games-rpg/bass/bass-1.2-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit eutils games + +DESCRIPTION="Beneath a Steel Sky: a science fiction thriller set in a bleak vision of the future" +#HOMEPAGE="http://www.revgames.com/_display.php?id=16" +HOMEPAGE="http://en.wikipedia.org/wiki/Beneath_a_Steel_Sky" +SRC_URI="mirror://sourceforge/scummvm/bass-cd-${PV}.zip + mirror://gentoo/${PN}.png" + +LICENSE="bass" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="" + +RDEPEND=">=games-engines/scummvm-0.5.0" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/bass-cd-${PV} + +src_install() { + games_make_wrapper bass "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" -q\$(scummvmGetLang.sh) sky" . + dogamesbin "${FILESDIR}"/scummvmGetLang.sh + insinto "${GAMES_DATADIR}"/${PN} + doins sky.* + dodoc readme.txt + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} "Beneath a Steel Sky" + prepgamesdirs +} diff --git a/games-rpg/bass/files/scummvmGetLang.sh b/games-rpg/bass/files/scummvmGetLang.sh new file mode 100755 index 000000000000..b313cc7d81da --- /dev/null +++ b/games-rpg/bass/files/scummvmGetLang.sh @@ -0,0 +1,19 @@ +tmplang="$LANG" +test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES" +test "$LC_ALL" != "" && tmplang="$LC_ALL" +test "$LANGUAGE" != "" && tmplang="$LANGUAGE" + +lang=`echo $tmplang|cut -d "_" -f 1` + +case $lang in + en) + lang=gb + echo $tmplang | grep en_US &>/dev/null && lang=en + ;; + de|fr|it|pt|es|se) + ;; + *) + lang=gb + ;; +esac +echo $lang diff --git a/games-rpg/bass/metadata.xml b/games-rpg/bass/metadata.xml new file mode 100644 index 000000000000..f325c8eea004 --- /dev/null +++ b/games-rpg/bass/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/bastion/Manifest b/games-rpg/bastion/Manifest new file mode 100644 index 000000000000..350d44e061f2 --- /dev/null +++ b/games-rpg/bastion/Manifest @@ -0,0 +1 @@ +DIST Bastion-HIB-2012-06-20.sh 1055161705 SHA256 f1e67f8e8dd0ba823cab0f16f2269dc8d9230ebca7a304927ff540320169c431 SHA512 e81b5dfa6f61ec2b35b30693c156a612cd3242c2169f4414b6d66839b7d8cc2e6ea8776f55baae67fa8131ee96bc221e1a15004410612eecaa9f7204dcc673ad WHIRLPOOL 2ec712724f263d9cbd181a128a0adc22f38465447db03f1d382aa231bad98e637b27ec2e73b2acf66a5775f53b0406c82cf0cd36befdc13f6afc5434887ac040 diff --git a/games-rpg/bastion/bastion-20120620-r1.ebuild b/games-rpg/bastion/bastion-20120620-r1.ebuild new file mode 100644 index 000000000000..3bc473de6962 --- /dev/null +++ b/games-rpg/bastion/bastion-20120620-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils check-reqs unpacker games + +TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2} +DESCRIPTION="An original action role-playing game set in a lush imaginative world" +HOMEPAGE="http://supergiantgames.com/?page_id=242" +SRC_URI="Bastion-HIB-${TIMESTAMP}.sh" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/Bastion.bin* + ${MYGAMEDIR#/}/lib/* + ${MYGAMEDIR#/}/lib64/*" + +# mono shit: vague dependencies +RDEPEND=" + virtual/opengl + media-libs/freealut + media-libs/openal + media-libs/sdl-gfx + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + media-libs/smpeg + x11-libs/libX11 + x11-libs/libXft" + +CHECKREQS_DISK_BUILD="2400M" + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" +} + +src_unpack() { + myarch=$(usex amd64 "x86_64" "x86") + + unpack_makeself + + mv instarchive_all{,.tar.lzma} || die + mv instarchive_linux_${myarch}{,.tar.lzma} || die + + mkdir ${P} || die + cd ${P} || die + + unpack ./../instarchive_{all,linux_${myarch}}.tar.lzma +} + +src_install() { + insinto "${MYGAMEDIR}" + doins -r * + + newicon -s 256 Bastion.png ${PN}.png + make_desktop_entry ${PN} + games_make_wrapper ${PN} "./Bastion.bin.${myarch}" "${MYGAMEDIR}" "${MYGAMEDIR}/$(get_libdir)" + + fperms +x "${MYGAMEDIR}"/Bastion.bin.${myarch} + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + + elog "If you are using opensource drivers you should consider installing:" + elog " media-libs/libtxc_dxtn" + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/bastion/metadata.xml b/games-rpg/bastion/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/games-rpg/bastion/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/games-rpg/coe2/Manifest b/games-rpg/coe2/Manifest new file mode 100644 index 000000000000..2b2a32886de0 --- /dev/null +++ b/games-rpg/coe2/Manifest @@ -0,0 +1 @@ +DIST coe2_2007.zip 4937222 SHA256 7b7c281454f3c83ba510d4223ccfb6af77fd760fcb507d7e71cf633cd86aa3bb SHA512 db0d4ee2016ef3cf7159c227c494346fa0a0e9f9b20a6b520b67899570e3135a4286d6ada2f85d7ea7b55a1baeada41654d4fab29f5996357608f0d2d654b2ed WHIRLPOOL a9c1d989dc48dc43d5c2125f4420de9bdfe23dca9758d0f8eeac5bc19eef4aab124075530bbf04da1fc80f022718564e21d4a464b49306d3d104a733c50e7259 diff --git a/games-rpg/coe2/coe2-2007-r1.ebuild b/games-rpg/coe2/coe2-2007-r1.ebuild new file mode 100644 index 000000000000..8d8aefe83bcc --- /dev/null +++ b/games-rpg/coe2/coe2-2007-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Precursor to the Dominions series" +HOMEPAGE="http://www.shrapnelgames.com/Illwinter/CoE2/" +SRC_URI="http://download.shrapnelgames.com/downloads/${PN}_${PV}.zip" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="mirror bindist" + +RDEPEND="media-libs/libsdl" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/coe + +# bug #430026 +QA_PREBUILT="/opt/coe2/coe_linux" + +src_prepare() { + rm -r *.{dll,exe} old || die + if use amd64 ; then + mv -f coe_linux64bit coe_linux || die + fi +} + +src_install() { + insinto "${GAMES_PREFIX_OPT}/${PN}" + doins *.{bgm,smp,trp,trs,wrl} + dodoc history.txt manual.txt readme.txt + exeinto "${GAMES_PREFIX_OPT}/${PN}" + doexe coe_linux + + games_make_wrapper ${PN} "./coe_linux" "${GAMES_PREFIX_OPT}/${PN}" + make_desktop_entry ${PN} "Conquest of Elysium 2" + + # Slots for saved games. + # The game shows e.g. "EMPTY SLOT 0?", but it works. + local f slot state_dir=${GAMES_STATEDIR}/${PN} + dodir "${state_dir}" + for slot in {0..4} ; do + f=save${slot} + dosym "${state_dir}/save${slot}" "${dir}/${f}" + echo "empty slot ${slot}" > "${D}${state_dir}/${f}" || die "echo" + fperms 660 "${state_dir}/${f}" + done + + prepgamesdirs +} diff --git a/games-rpg/coe2/metadata.xml b/games-rpg/coe2/metadata.xml new file mode 100644 index 000000000000..3592b6562bab --- /dev/null +++ b/games-rpg/coe2/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Originally released in 1997, Conquest of Elysium II is a turn-based fantasy +strategy game, and the precursor to the wildly popular Dominions series. As one +of up to eight players (human, computer controlled, or a mixture) your goal, as +suggested in the title, is very simple: total subjugation of all that do not fly +your banner! + +Choose your leader from twenty distinct character classes, including brutal +barbarians, insane necromancers, mighty maharajas, sinister shamans, and even +the Agarthan king from Dominions 3! Each character allows new strategies for the +player to explore. The Priestess of Baal can summon demonic creatures, change +the weather, and sacrifice the innocent. An Enchanter can create constructs out +of corpses, lakes, forests, and more. Barons can build siege towers, raise +levies, and keep his subjects in line, even in times of high taxation. +</longdescription> +</pkgmetadata> diff --git a/games-rpg/daimonin-client/Manifest b/games-rpg/daimonin-client/Manifest new file mode 100644 index 000000000000..2c32333321b9 --- /dev/null +++ b/games-rpg/daimonin-client/Manifest @@ -0,0 +1,2 @@ +DIST daimonin-client-0.10.5.tar.gz 15554328 SHA256 07bc94207dc77e0cae2bc949fd9df92da853f70343927d39f31e439d2d7ea3c9 SHA512 7f961105f368d7b4279c03e90028581a0efe998311f334f87d4ca6ff22df1a62f9b5911adf20822a282d7ed3796d8cb0643ab458cc51fb46cf3b90815164ac04 WHIRLPOOL e5141b02cb581f391609031b18626cd37eb2ed69dcfc7dc2e53d7b019747a5e63bf9f2cbcb7751b936c8c9e7f1637fe92151ac0370fb6dab3511fca0e8ea2dc4 +DIST daimonin-client-AllMusic-20100827.zip 86844919 SHA256 0732fde7f39b34057d72ab65b00ddefc1c84fcf8ef8fdf00d72fb67f2144d867 SHA512 50ec9524bd934a715271ddef1ea2cec855e93607e5befd1b18b74493400c9e1b2e6e5d829f3b21088b28c67635c0d1479eec53e1626c680f1d34081292607c9f WHIRLPOOL 91d485e1b816c6ee06cca9c18185b2a58f1da1f4231139dbb183a14a2ce3a12bab1891a9506bfe7ee2d9ff91d63801b160a4b67a52be8d2f2c4615d2568edd93 diff --git a/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild b/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild new file mode 100644 index 000000000000..6b71aae8bc04 --- /dev/null +++ b/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +MY_P=${PN}-${PV} +DESCRIPTION="a graphical 2D tile-based MMORPG" +HOMEPAGE="http://daimonin.sourceforge.net/" +SRC_URI="http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=6021 + -> daimonin-client-0.10.5.tar.gz + music? ( mirror://sourceforge/daimonin/Addon%20packs/Music/AllMusic.zip + -> daimonin-client-AllMusic-20100827.zip )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="music debug" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-image[png] + dev-games/physfs + net-misc/curl" +DEPEND="${RDEPEND} + music? ( app-arch/unzip )" + +S=${WORKDIR}/client/make/linux + +src_unpack() { + unpack ${MY_P}.tar.gz + if use music ; then + cd client/media + rm -f * + unpack ${PN}-AllMusic-20100827.zip + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-nozlib.patch + rm ../../src/include/z{lib,conf}.h + sed -i \ + -e 's:$(d_datadir):$(DESTDIR)$(d_datadir):' \ + -e '/PROGRAMS/s:daimonin-updater::' \ + Makefile.am \ + || die "sed failed" + eautoreconf + cd ../../src + epatch "${FILESDIR}"/${P}-datadir.patch +} + +src_configure() { + egamesconf \ + --disable-simplelayout \ + $(use_enable debug) +} + +src_install() { + default + cd ../.. + dodoc README* + newicon bitmaps/pentagram.png ${PN}.png + make_desktop_entry daimonin Daimonin + prepgamesdirs +} diff --git a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch new file mode 100644 index 000000000000..ea79f7595910 --- /dev/null +++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch @@ -0,0 +1,28 @@ +--- main.c.old 2010-08-24 19:32:55.000000000 +0200 ++++ main.c 2010-09-19 18:49:54.000000000 +0200 +@@ -2386,7 +2386,7 @@ + + /* Add the base dir to the search path. The base dir is where all the + * defaults are (or should be). */ +- if (!PHYSFS_addToSearchPath(PHYSFS_getBaseDir(), 1)) ++ if (!PHYSFS_addToSearchPath(SYSPATH, 1)) + { + LOG(LOG_MSG, "%s\n", PHYSFS_getLastError()); + } +@@ -2545,13 +2545,13 @@ + + /* Prepend the user dir to the search path. This means files are read from + * this location in preference to the defaults. */ +- if (strcmp(PHYSFS_getBaseDir(), home)) +- { ++ /*if (strcmp(PHYSFS_getBaseDir(), home)) ++ {*/ + if (!PHYSFS_addToSearchPath(home, 0)) + { + LOG(LOG_ERROR, "%s\n", PHYSFS_getLastError()); + } +- } ++ //} + + /* Prepend any add-on packs to the search path. This means files are read + * from these locations in preference to the defaults and the user dir. */ diff --git a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch new file mode 100644 index 000000000000..c342cc3c3850 --- /dev/null +++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch @@ -0,0 +1,40 @@ +--- Makefile.am.old 2010-12-01 14:39:11.605648458 -0500 ++++ Makefile.am 2010-12-01 14:41:59.875915880 -0500 +@@ -2,23 +2,18 @@ + daimonin_PROGRAMS = daimonin daimonin-updater + + daimonin_SOURCES = \ +- ../../src/adler32.c \ + ../../src/anim.c \ + ../../src/book.c \ + ../../src/buddy.c \ + ../../src/chatfilter.c \ + ../../src/client.c \ + ../../src/commands.c \ +- ../../src/crc32.c \ + ../../src/dialog.c \ + ../../src/event.c \ + ../../src/filewrap.c \ + ../../src/font.c \ + ../../src/group.c \ + ../../src/ignore.c \ +- ../../src/inffast.c \ +- ../../src/inflate.c \ +- ../../src/inftrees.c \ + ../../src/interface.c \ + ../../src/inventory.c \ + ../../src/item.c \ +@@ -35,11 +30,9 @@ + ../../src/sprite.c \ + ../../src/textwin.c \ + ../../src/tile_stretcher.c \ +- ../../src/uncompr.c \ + ../../src/wrapper.c \ +- ../../src/widget.c \ +- ../../src/zutil.c +-daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@ ++ ../../src/widget.c ++daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@ -lz + daimonin_OBJDIR = objs + + daimonin_updater_SOURCES = \ diff --git a/games-rpg/daimonin-client/metadata.xml b/games-rpg/daimonin-client/metadata.xml new file mode 100644 index 000000000000..576ef5e3dea4 --- /dev/null +++ b/games-rpg/daimonin-client/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="music">Install extra music</flag> + </use> + <upstream> + <remote-id type="sourceforge">daimonin</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/dear-esther/Manifest b/games-rpg/dear-esther/Manifest new file mode 100644 index 000000000000..f4ce83570062 --- /dev/null +++ b/games-rpg/dear-esther/Manifest @@ -0,0 +1 @@ +DIST dearesther-linux-06082013-bin 1007461686 SHA256 4b3368e9cd83f371b6ea63814ce1ec5db733d5ef3229e3f78bdc530c268076a4 SHA512 c66a2b068b4caaebfb63e4617102af4a5df153dfe76854d1fa94305fb95b15e4362c9ca5e715ea4b29966916a9a585fa71bfc2b2b33b878f26e3785b7d93722e WHIRLPOOL 022d2fe66dfb2f4bea71898afd6f011ffe5870c5af27e3adb04fe5caa76a41bce75ee931408edda41dc24956ddae4f2399719f3938d72fe9cf94b2a9e2e703ea diff --git a/games-rpg/dear-esther/dear-esther-20130608.ebuild b/games-rpg/dear-esther/dear-esther-20130608.ebuild new file mode 100644 index 000000000000..2443f5a1454c --- /dev/null +++ b/games-rpg/dear-esther/dear-esther-20130608.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: unbundle libSDL2 + +EAPI=5 +inherit eutils gnome2-utils unpacker games + +TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}" +DESCRIPTION="Ghost story, told using first-person gaming technologies" +HOMEPAGE="http://dear-esther.com/" +SRC_URI="dearesther-linux-${TIMESTAMP}-bin" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/dearesther_linux + ${MYGAMEDIR#/}/bin/*.so*" + +DEPEND="app-arch/unzip" +RDEPEND=" + >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)] + >=media-libs/openal-1.15.1[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR}/data + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_unpack() { + unpack_zip ${A} +} + +src_install() { + insinto "${MYGAMEDIR}" + doins -r bin dearesther platform dearesther_linux + + doicon -s 256 dearesther.png + make_desktop_entry "${PN}" "Dear Esther" dearesther + games_make_wrapper ${PN} "./dearesther_linux -game dearesther" "${MYGAMEDIR}" "${MYGAMEDIR}/bin" + + dodoc README-linux.txt + + fperms +x "${MYGAMEDIR}"/dearesther_linux + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/dear-esther/metadata.xml b/games-rpg/dear-esther/metadata.xml new file mode 100644 index 000000000000..cad5a2aa1773 --- /dev/null +++ b/games-rpg/dear-esther/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/draci-historie/Manifest b/games-rpg/draci-historie/Manifest new file mode 100644 index 000000000000..f94cb4c1e544 --- /dev/null +++ b/games-rpg/draci-historie/Manifest @@ -0,0 +1,4 @@ +DIST dh-cz-2012.zip 29293879 SHA256 3aa876f50d8345bad8766b7c7f22a320497988868c48822c2eba0ac72b8cb0ff SHA512 1c7691fe275f662a3a22bdb824965c1e0079a44ddfed5a75596f71dcd32cf3e34d2107480a5df392a2a28aae01cccca6eedf615f362af11bbac30c30dfd89cd2 WHIRLPOOL 6ece1f7515db0c5f5ee7240cf83b7127118a32b9bb0f5511c05460713e12fbdd78fcf86d20f96ad0b01c1ad16834cdc7ec6a28fbdfdb2c31e5b000e75b4a6997 +DIST dh-de-2012.zip 3316443 SHA256 c8013237fec7718fb2769ff3c8b08dd7f78fd6420311ec79c1a262cb337cb1a5 SHA512 088f372e8de59cb52555a70cb7918ec14bb4abbb712a3867b40ce9eef80dc3f03b6c28402b9e0c9ee7e02f1938ee5f140abc02aef801716e38af84d66dafd5aa WHIRLPOOL 63c5e055e4b9e75386477bc1e1aec5ab25b854a9970d2b6d221210c0f236b3f0b485914ecfd9764c1d8e6a3d57ab860e168fac91b70239f0f0dac5fb3549854a +DIST dh-en-2012.zip 3310860 SHA256 807c625902051639a35871da2c5138615ae2c327c5f12eebb8dd22628874ae23 SHA512 a9b5ff15305c961f288fdf915f56ca204a2ebe5370dcf56c20a0057cf721c45445a20479a39fe1f5443e79e7c95bd5771abef2115396c418442d2e5e400ce10a WHIRLPOOL 8bf76bf3ce43848ae87e2f75b2e2a1f43bf041d6f2567f2be0268d87f92ec3c051b87c7bd2e89f061186285ca6da8678c8f65a2ae2ad02f70b21c71ea6b244b2 +DIST dh-pl-2012.zip 36041498 SHA256 c2034462ed4c1d6abf129e4144a2e21c193aff694943dc3f6ea565d9aa9aeafe SHA512 627f85a14362e032e00ed36275df696b6a468965734db7c8bb459d689b548c05033fe387ffee9855a83fe634f14b98a5c5ea51aefdf169c7243e9282fa1c19a5 WHIRLPOOL 9d0fe742d5779ab0a96712c2940fab7865ac889a15aff2def92ca35e8e7a4fe6c7ede57666ee8f330292e44f58309d37da4f206e168d4577d64765e85920590f diff --git a/games-rpg/draci-historie/draci-historie-2012.ebuild b/games-rpg/draci-historie/draci-historie-2012.ebuild new file mode 100644 index 000000000000..c0f53b54e6a3 --- /dev/null +++ b/games-rpg/draci-historie/draci-historie-2012.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker eutils games + +DESCRIPTION="Bert the little dragon searches for his father" +HOMEPAGE="http://www.ucw.cz/draci-historie/index-en.html" +BASE_URL="http://www.ucw.cz/draci-historie/binary/dh" +SRC_URI="linguas_cs? ( ${BASE_URL}-cz-${PV}.zip ) + linguas_de? ( ${BASE_URL}-de-${PV}.zip ) + linguas_en? ( ${BASE_URL}-en-${PV}.zip ) + linguas_pl? ( ${BASE_URL}-pl-${PV}.zip ) + !linguas_cs? ( !linguas_de? ( !linguas_en? ( !linguas_pl? ( ${BASE_URL}-en-${PV}.zip ) ) ) )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="linguas_cs linguas_de linguas_en linguas_pl" + +RDEPEND=">=games-engines/scummvm-1.1" +DEPEND="$(unpacker_src_uri_depends)" + +S=${WORKDIR} + +src_unpack() { + if use linguas_en || ( ! use linguas_cs && ! use linguas_de && ! use linguas_en && ! use linguas_pl ) ; then + mkdir en || die + unpacker dh-en-${PV}.zip + mv *.{dfw,fon,mid,sam} en/ || die + fi + if use linguas_cs ; then + mkdir cs || die + unpacker dh-cz-${PV}.zip + mv *.{dfw,fon,mid,sam,zzz} cs/ || die + fi + if use linguas_de ; then + mkdir de || die + unpacker dh-de-${PV}.zip + mv *.{dfw,fon,mid,sam} de/ || die + fi + if use linguas_pl ; then + mkdir pl || die + unpacker dh-pl-${PV}.zip + mv *.{dfw,fon,mid,sam,zzz} pl/ || die + fi +} + +src_prepare() { + rm -f *.{bat,exe,ins} readme.* || die +} + +src_install() { + newicon bert.ico draci-historie.ico + insinto "${GAMES_DATADIR}"/${PN} + for lingua in $(find * -type d); do + doins -r ${lingua} + done + if use linguas_en || ( ! use linguas_cs && ! use linguas_de && ! use linguas_en && ! use linguas_pl ) ; then + games_make_wrapper draci-historie-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" draci" . + make_desktop_entry ${PN}-en "Dračí Historie (English)" /usr/share/pixmaps/draci-historie.ico + fi + if use linguas_cs ; then + games_make_wrapper draci-historie-cs "scummvm -f -p \"${GAMES_DATADIR}/${PN}/cs\" draci" . + make_desktop_entry ${PN}-cs "Dračí Historie (Čeština)" /usr/share/pixmaps/draci-historie.ico + fi + if use linguas_de ; then + games_make_wrapper draci-historie-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" draci" . + make_desktop_entry ${PN}-de "Dračí Historie (Deutsch)" /usr/share/pixmaps/draci-historie.ico + fi + if use linguas_pl ; then + games_make_wrapper draci-historie-pl "scummvm -f -p \"${GAMES_DATADIR}/${PN}/pl\" draci" . + make_desktop_entry ${PN}-pl "Dračí Historie (Polski)" /usr/share/pixmaps/draci-historie.ico + fi + prepgamesdirs +} diff --git a/games-rpg/draci-historie/metadata.xml b/games-rpg/draci-historie/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/draci-historie/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/dragonhunt/Manifest b/games-rpg/dragonhunt/Manifest new file mode 100644 index 000000000000..8d9951e45552 --- /dev/null +++ b/games-rpg/dragonhunt/Manifest @@ -0,0 +1 @@ +DIST Dragon_Hunt-3.56.tar.gz 2170718 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9 SHA512 86ca32436088e8cda8993e21ebe6180f8361eb8bf5e052b3744a1db50073826118d1db657d713c7d75cd78c50c78c940caaf7adc5d31ad895d02a44f82b1e72a WHIRLPOOL c19fb4fedaeb62a65d8bf3938f8f629394ab4b1d8d0ccb1c88ebeac280a596ae7a93f34741d2e2c998d863e37bfebe95fe070f3d017202bf3b3eb35712a6598b diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild new file mode 100644 index 000000000000..9065e388ee50 --- /dev/null +++ b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +MY_P="Dragon_Hunt-${PV}" +DESCRIPTION="A simple graphical RPG" +HOMEPAGE="http://emhsoft.com/dh.html" +SRC_URI="http://emhsoft.com/dh/${MY_P}.tar.gz" + +LICENSE="GPL-2 CC-SA-1.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/pygame[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + # Where to look for modules to load. + sed -i "s:\.\./modules/:${GAMES_DATADIR}/${PN}/:" \ + code/g.py \ + code/map_editor.py \ + code/rpg.py || die + + # Where to look for keybinding + sed -i "s:\.\./settings:${GAMES_SYSCONFDIR}/${PN}/settings:" \ + code/g.py || die + + # Save games in ~/.${PN}/. + sed -i \ + -e "s:^\(from os import.*\):\1\, environ:" \ + -e "s:g.mod_dir.*\"/saves/\?\":environ[\"HOME\"] + \"/.${PN}/\":" \ + code/g.py code/loadgame.py || die + + # Save maps in ~/. + sed -i \ + -e "s:^\(from os import.*\):\1\, environ:" \ + -e "s:g.mod_dir.*\"map\.txt\":environ[\"HOME\"]\ +\ \"/dh_map.txt\":" \ + code/map_editor.py || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r modules/* + + insinto "${GAMES_SYSCONFDIR}"/${PN} + doins settings.txt + + insinto "$(games_get_libdir)"/${PN} + doins code/*.py + + games_make_wrapper ${PN} "${EPYTHON} ./rpg.py" "$(games_get_libdir)"/${PN} + games_make_wrapper ${PN}-mapeditor "${EPYTHON} ./map_editor.py" \ + "$(games_get_libdir)"/${PN} + + newicon modules/default/images/buttons/icon.png ${PN}.png + make_desktop_entry ${PN} "Dragon Hunt" + make_desktop_entry ${PN}-mapeditor "Dragon Hunt - Editor" + + dodoc README.txt docs/{Changelog,Items.txt,example_map.txt,tiles.txt} + dohtml docs/*.html + + python_optimize "${ED}$(games_get_libdir)"/${PN} \ + "${ED}${GAMES_DATADIR}/${PN}/Dark Ages/data/make_map.py" + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "If you use the map editor then note that maps will be saved as" + elog "~/dh_map.txt and must be move to the correct module directory" + elog "(within ${GAMES_DATADIR}/${PN}) by hand." + echo +} diff --git a/games-rpg/dragonhunt/metadata.xml b/games-rpg/dragonhunt/metadata.xml new file mode 100644 index 000000000000..7466967699ad --- /dev/null +++ b/games-rpg/dragonhunt/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> + diff --git a/games-rpg/drascula/Manifest b/games-rpg/drascula/Manifest new file mode 100644 index 000000000000..b34cbe601917 --- /dev/null +++ b/games-rpg/drascula/Manifest @@ -0,0 +1,4 @@ +DIST drascula-1.0.zip 32842993 SHA256 b731f6cb5a22ba8b4c3b3362f570b9a10a67b6cb0b395394b19a94b36e4e42de SHA512 74ca773264e1ed611456b230d6265dade8d745a3adb736f3d6583d43ed6820a25f481ec65612b31d4b3076418f6bc696c82fa0f5085ec43edc91761e95361d11 WHIRLPOOL 7e155b83d4075ad2d096c5e8997f24ed7d1c726a46baa962f8287b8bf411cc8fd749debf0188b58416822d15ad1301321bc5b33bb787f57e32a29cdf1c21370d +DIST drascula-1.5.0.dat 219267 SHA256 8f060ad18574aa7f2730dfab72eab110256db85fb9a2937a3361e059843eef32 SHA512 0d788887f0cbe95f7008920d7929831d928497040ae0a2e2869c677363b693aafcf839df20ae192ec4a902f98a95771c9c45d3ec63c5a4bb1961e5f56d20fc53 WHIRLPOOL e880d0c3b5f2f84a1ef9a99572de5d3d18fb43b6870699100391662ae78d6549f19412b63938688888a453215d00819711c18f3f0e2f011d7271d7f04dc54d22 +DIST drascula-audio-2.0.zip 36531704 SHA256 7e6afba36eed13dd02e0360119e9a6a8d0e7b334ddc11d7c46ab7faceb8fe401 SHA512 09018bcfa062e720db6af7b38fa582f1b3674a25e7bb323d894ad767f8bcd449739fc592a10d848f6cac90a8bb51b5148c5c39558f70d29e2a5116b0b196274e WHIRLPOOL d2e5b9e367eb29f9bc7a2578f9b73488fa61ceac025b82c1f319e708226cd89c3652dc9265fea00222147acfbb2ee23d59f5faff11b1e8dab5bf5a5bbc3a0f64 +DIST drascula-int-1.1.zip 34855203 SHA256 24d894925c02993d0cd59013cd228b5e5c68c77d0dc57045a2aa2aba4e344388 SHA512 f8127d09e19dec9abf75b9129792c67f3d36ea80fa69c70eeaa536f7a76f8f29072c21f041a0f9467d595f214392541c09c7a75caca0318e8d1b587db9d099cf WHIRLPOOL 2cb3c9f13163d061b57dc01df9d160b8380813ff4af3385d68066b0d299ae39ba96b123c897b2160dd486a1e439e82c6ab0f28b183409970fbc11e8ef6ac25fd diff --git a/games-rpg/drascula/drascula-1.0-r2.ebuild b/games-rpg/drascula/drascula-1.0-r2.ebuild new file mode 100644 index 000000000000..3eda74a23b49 --- /dev/null +++ b/games-rpg/drascula/drascula-1.0-r2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +INT_PV=1.1 +INT_URI="mirror://sourceforge/scummvm/drascula-int-${INT_PV}.zip" +DAT_PV=1.5.0 +AUD_PV=2.0 +DESCRIPTION="Drascula: The Vampire Strikes Back" +HOMEPAGE="http://www.alcachofasoft.com/" +SRC_URI="mirror://sourceforge/scummvm/drascula-${PV}.zip + https://github.com/scummvm/scummvm/raw/v1.5.0/dists/engine-data/drascula.dat -> drascula-${DAT_PV}.dat + sound? ( mirror://sourceforge/scummvm/drascula-audio-${AUD_PV}.zip ) + linguas_es? ( ${INT_URI} ) + linguas_de? ( ${INT_URI} ) + linguas_fr? ( ${INT_URI} ) + linguas_it? ( ${INT_URI} )" + +LICENSE="drascula" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="linguas_es linguas_de linguas_fr linguas_it +sound" +RESTRICT="mirror" + +RDEPEND=">=games-engines/scummvm-0.13.1" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_unpack() { + if use linguas_es || use linguas_de || use linguas_fr || use linguas_it; then + unpack drascula-int-${INT_PV}.zip + fi + if use sound; then + unpack drascula-audio-${AUD_PV}.zip + fi + unpack drascula-${PV}.zip +} + +src_install() { + local lang + + games_make_wrapper ${PN} "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" drascula" . + for lang in es de fr it + do + if use linguas_${lang} ; then + games_make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"${GAMES_DATADIR}/${PN}\" drascula" . + make_desktop_entry ${PN}-${lang} "Drascula: The Vampire Strikes Back (${lang})" ${PN} + fi + done + insinto "${GAMES_DATADIR}"/${PN} + find . -name "P*.*" -execdir doins '{}' + + newins "${DISTDIR}"/drascula-${DAT_PV}.dat drascula.dat + if use sound; then + doins audio/* + fi + dodoc readme.txt drascula.doc + make_desktop_entry ${PN} "Drascula: The Vampire Strikes Back" + prepgamesdirs +} diff --git a/games-rpg/drascula/metadata.xml b/games-rpg/drascula/metadata.xml new file mode 100644 index 000000000000..ccee03feeca9 --- /dev/null +++ b/games-rpg/drascula/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="sound">Install optional audio files</flag> + </use> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + <remote-id type="github">scummvm/scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/dreamweb/Manifest b/games-rpg/dreamweb/Manifest new file mode 100644 index 000000000000..e44c8fbc2482 --- /dev/null +++ b/games-rpg/dreamweb/Manifest @@ -0,0 +1,8 @@ +DIST cat-dreamweb.png 1088 SHA256 1b559ef8d8294a35089aad1bb1b02408ad66681e0d28ed04fce23dd101c58b26 SHA512 fb2b70e36fc975ca18b77e368bd35b54d5db80a39accc0f4529c6ddd9d556d17bda84f72ad2b5d4621270fffef3218e7f6f4e8f38130d6b45ed3e68f90bdd140 WHIRLPOOL 1d4e9d91a7cb446330c7f20ed9437792fb2647da4578a36a21cad3636c49fe8ba20864e5768b69f3453137783bfc5a1800a521c7367dd7f9023bee220af5ade9 +DIST dreamweb-cd-de-1.1.zip 243874867 SHA256 2d42fbf5dd3a58ea98ebb5c9bb33f3d5b70e92a936013248f67c33f1b82ac74b SHA512 30b64b68b22574f29b1b7685ce0df822871e1e641d76d0527d50cc53c4a928a5266033239e44162c30474dd30e5179be88b504c0d820eac5de936145e04c0e9c WHIRLPOOL 70715ee12f3e537cbd1e1e7b0f715d0f90c2d29078965a93130182cd1068983ba408f38047bf9769dc389f7073afff17bb918b4af14c34b4cafff7e4dc8549a7 +DIST dreamweb-cd-es-1.1.zip 171154186 SHA256 1f10045952d2348d2775c05c0b95ff4f35c60d6e9be109893157ef63d4444803 SHA512 67f6d3c2755c39d1f4c268a5f3a011395de6abdb14d798bdd45116200b1d9ee6597c75004268dd142f3341148b81250f464d271589c52fae3ad3b7a0e8e50af2 WHIRLPOOL 7036cd2622e9a34f81824770e39ada91d60abdb2b289a69596dc8514533f2e937b4281f28a6b2994ad5f79437f9cd0715ad73e4090dff96f7bd65e4ed6568bff +DIST dreamweb-cd-fr-1.1.zip 166468360 SHA256 76fff0ba67f5bcf2dde9c3fb3f5d3d5c017bb0e7368d98d9deee83d1b4182d54 SHA512 77183bcb2477c5dd8bcabb0a16d18b23d48b884d452721e49032c9e7e8ac48df3af18a63aa9765d7b0a138bcf6a116d7dabbce147bcff79c37fab39721fc6456 WHIRLPOOL fe85f7bcc1ab6ce368bd6df2c081263a8d1a9153f1ddcdb16fd347887f79aedc39e6f6f96c57f102733261cd03da6ce11d9175bbbf342cb29d732cbf0fe919b6 +DIST dreamweb-cd-it-1.1.zip 225726238 SHA256 7363d5f6b5aa380862d185980f50e7ac7c661cccdc3f1132f525d92bf4c47f51 SHA512 0a9d0227f0ef1e204e447fc3b43ce81bd50fe2999f3b0a79141e8f1b9dfe08161cdee0ce917728d183c99aaea884cf8fa4808ee007bc9bb3062436a7b65fe052 WHIRLPOOL af037b801227ca232d4be0d05e7402616abfbfba37cd6f73362fb723459ab6ede6d89d11c66390c6d5b03573dbf51f9d7c46a8145a6fe04f1f71b7056b406ea4 +DIST dreamweb-cd-uk-1.1.zip 226067188 SHA256 4a6f13911ce67d62c526e41048ec067b279f1b378c9210f39e0ce8d3f2b80142 SHA512 5e3c11f06ab0518a18cf1feffbc7b016363bc258e6e4d282bbdb5aa88f9540d5fdc10e4d59571d626aeab61a4ab6c4266620c73b2944b9c6963c1e5b66eecd9d WHIRLPOOL 49846418fb6f02419a14231a3804bc9808a957f70b1f187e79029a9a4e7aadccbea577aa4cd0c9b52c6173ba0ae64edc20e4a8b3e2e2f0c4a84715825cdfde54 +DIST dreamweb-cd-us-1.1.zip 226360597 SHA256 f403d95e847b0fe2cde9b86cd2cf835826c6b759c3691f0ee456cacb0948dc94 SHA512 cca33b2f4fd373eb0bc6d12df9ad3ba8417e0fd27cc09e1e0a3201ab4567ddeea127529aa1d1742060225888870c892f8dc983078017c5ae9253b6e028171cb8 WHIRLPOOL ebeef1fec38df99a1fccd56d8445ff9ec466efbe406ce0c4110def481c32fe84eb74c4f1afb3a18680161b784b07be43e68b8b95f0f9f018102bc86a78e2475f +DIST dreamweb-manuals-en-highres.zip 186406397 SHA256 6d26dbc9c032dfe00211065c31d738a2135aefdf561934722e1ca6e3416ff769 SHA512 a67d3eadeb2ea7579d23315cd9c9fbb31d9e7aa88fdd3c4bc8656801e4b064ad94356167cfbf0ee6e18ad02316297dad0d07616b34080aae68467868de421305 WHIRLPOOL c51d22d09bdafd07e95ebdf6d1c6911c348585572f9050624b16eaa61d5cf704782846929173a242425970a32527f978483fc2d59a078a62e49150338f4a0efc diff --git a/games-rpg/dreamweb/dreamweb-1.1.ebuild b/games-rpg/dreamweb/dreamweb-1.1.ebuild new file mode 100644 index 000000000000..b7dc6e810684 --- /dev/null +++ b/games-rpg/dreamweb/dreamweb-1.1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker eutils games + +DESCRIPTION="Top-down adventure game set in a gritty futuristic/dystopian city" +HOMEPAGE="http://wiki.scummvm.org/index.php/Dreamweb" +SRC_URI="doc? ( mirror://sourceforge/scummvm/${PN}-manuals-en-highres.zip ) + linguas_de? ( mirror://sourceforge/scummvm/${PN}-cd-de-${PV}.zip ) + linguas_en? ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip ) + linguas_en_GB? ( mirror://sourceforge/scummvm/${PN}-cd-uk-${PV}.zip ) + linguas_en_US? ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip ) + linguas_es? ( mirror://sourceforge/scummvm/${PN}-cd-es-${PV}.zip ) + linguas_fr? ( mirror://sourceforge/scummvm/${PN}-cd-fr-${PV}.zip ) + linguas_it? ( mirror://sourceforge/scummvm/${PN}-cd-it-${PV}.zip ) + !linguas_de? ( !linguas_en? ( !linguas_en_GB? ( !linguas_en_US? ( !linguas_es? ( !linguas_fr? ( !linguas_it? \ + ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip ) ) ) ) ) ) ) + http://www.scummvm.org/images/cat-dreamweb.png" + +LICENSE="Dreamweb" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc linguas_de linguas_en linguas_en_GB linguas_en_US linguas_es linguas_fr linguas_it" + +RDEPEND=">=games-engines/scummvm-1.7[flac]" +DEPEND="$(unpacker_src_uri_depends)" + +S=${WORKDIR} + +src_unpack() { + if use linguas_de ; then + mkdir -p "${S}"/de || die + cd "${S}"/de || die + unpacker ${PN}-cd-de-${PV}.zip + fi + if use linguas_en || use linguas_en_US || ( ! use linguas_de && ! use linguas_en && ! use linguas_en_GB && \ + ! use linguas_en_US && ! use linguas_es && ! use linguas_fr && ! use linguas_it ) ; then + mkdir -p "${S}"/en_US || die + cd "${S}"/en_US || die + unpacker ${PN}-cd-us-${PV}.zip + fi + if use linguas_en_GB ; then + mkdir -p "${S}"/en_GB || die + cd "${S}"/en_GB || die + unpacker ${PN}-cd-uk-${PV}.zip + fi + if use linguas_es ; then + mkdir -p "${S}"/es || die + cd "${S}"/es || die + unpacker ${PN}-cd-es-${PV}.zip + fi + if use linguas_fr ; then + mkdir -p "${S}"/fr || die + cd "${S}"/fr || die + unpacker ${PN}-cd-fr-${PV}.zip + fi + if use linguas_it ; then + mkdir -p "${S}"/it || die + cd "${S}"/it || die + unpacker ${PN}-cd-it-${PV}.zip + fi + if use doc ; then + mkdir -p "${S}"/doc || die + cd "${S}"/doc || die + unpacker ${PN}-manuals-en-highres.zip + fi +} + +src_prepare() { + rm -rf */license.txt */*.EXE || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + newicon "${DISTDIR}"/cat-dreamweb.png dreamweb.png + if use linguas_de ; then + doins -r de + games_make_wrapper dreamweb-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" dreamweb" . + make_desktop_entry ${PN}-de "Dreamweb (Deutsch)" dreamweb + fi + if use linguas_en || use linguas_en_US || ( ! use linguas_de && ! use linguas_en && ! use linguas_en_GB && \ + ! use linguas_en_US && ! use linguas_es && ! use linguas_fr && ! use linguas_it ) ; then + doins -r en_US + games_make_wrapper dreamweb-en_US "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_US\" dreamweb" . + make_desktop_entry ${PN}-en_US "Dreamweb (US English)" dreamweb + fi + if use linguas_en_GB ; then + doins -r en_GB + games_make_wrapper dreamweb-en_GB "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_GB\" dreamweb" . + make_desktop_entry ${PN}-en_GB "Dreamweb (UK English)" dreamweb + fi + if use linguas_es ; then + doins -r es + games_make_wrapper dreamweb-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" dreamweb" . + make_desktop_entry ${PN}-es "Dreamweb (Español)" dreamweb + fi + if use linguas_fr ; then + doins -r fr + games_make_wrapper dreamweb-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" dreamweb" . + make_desktop_entry ${PN}-fr "Dreamweb (Français)" dreamweb + fi + if use linguas_it ; then + doins -r it + games_make_wrapper dreamweb-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" dreamweb" . + make_desktop_entry ${PN}-it "Dreamweb (Italiano)" dreamweb + fi + use doc && dodoc -r doc/* + prepgamesdirs +} diff --git a/games-rpg/dreamweb/metadata.xml b/games-rpg/dreamweb/metadata.xml new file mode 100644 index 000000000000..fdb1b91cb616 --- /dev/null +++ b/games-rpg/dreamweb/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="doc">High-resolution scans of the written material in the original UK game box</flag> + </use> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/dungeon-defenders/Manifest b/games-rpg/dungeon-defenders/Manifest new file mode 100644 index 000000000000..f09fc5970a84 --- /dev/null +++ b/games-rpg/dungeon-defenders/Manifest @@ -0,0 +1 @@ +DIST dundef-linux-03052013.mojo.run 5384683543 SHA256 bc81021859871169285111ef7b1806952dcc17b128f3e387d9b5072918490c61 SHA512 911d1691411d870cee62d08b0c559ac80588edc9ba0c9d622c7528f7f8635d86eae962f7a2b1bfed27be1d780c033216374f69072ed7828e8624855e9b0b9aca WHIRLPOOL a5d75261ad542cf182829d6bd9cb053696d2228e44a6560a400e26f0697d9993037410cb9a2311e882b5076aefc612ba4b490d709ee281a6422b122e2a644402 diff --git a/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild b/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild new file mode 100644 index 000000000000..d196226f1db3 --- /dev/null +++ b/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: unbundle SDL-2 when it gets released + +EAPI=5 +inherit check-reqs eutils gnome2-utils unpacker games + +TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}" +MY_PN="DungeonDefenders" +DESCRIPTION="A hybrid of two hot genres: Tower Defense and cooperative online Action-RPG" +HOMEPAGE="http://dungeondefenders.com/" +SRC_URI="dundef-linux-${TIMESTAMP}.mojo.run" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="bundled-libs" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/UDKGame/Binaries/${MY_PN}-x86 + ${MYGAMEDIR#/}/UDKGame/Binaries/libSDL2-2.0.so.0" +CHECKREQS_DISK_BUILD="5916M" + +# linked against pulseaudio +# without SDL-2 only linkage: opengl, openal +DEPEND="app-arch/unzip" +RDEPEND=" + x11-misc/xdg-utils + >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] + >=media-sound/pulseaudio-5.0[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXScrnSaver[abi_x86_32(-)] + x11-libs/libXcursor[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXi[abi_x86_32(-)] + x11-libs/libXinerama[abi_x86_32(-)] + x11-libs/libXrandr[abi_x86_32(-)] + x11-libs/libXxf86vm[abi_x86_32(-)] + !bundled-libs? ( >=media-libs/openal-1.15.1[abi_x86_32(-)] )" + +S=${WORKDIR}/data + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_unpack() { + unpack_zip ${A} +} + +src_prepare() { + # https://bugzilla.icculus.org/show_bug.cgi?id=5894 + sed -i \ + -e 's/LobbyLevel_Valentines2013.udk/LobbyLevel.udk/' \ + UDKGame/Config/DefaultDunDef.ini || die + + # Remove the binaries that we're unbundling and unnecessary stuff + rm -v UDKGame/Binaries/xdg-open || die + if ! use bundled-libs ; then + einfo "Removing bundled libs..." + rm -v UDKGame/Binaries/libopenal.so.1 || die + fi +} + +src_install() { + # Move the data rather than copying. The game consumes over 5GB so + # a needless copy should really be avoided! + dodir "${MYGAMEDIR}" + mv -v Engine UDKGame "${D}${MYGAMEDIR}" || die + + # use system xdg-open script, location is hardcoded + dosym /usr/bin/xdg-open "${MYGAMEDIR}"/UDKGame/Binaries/xdg-open + + newicon -s 48 DunDefIcon.png ${PN}.png + make_desktop_entry "${PN}" "Dungeon Defenders" + games_make_wrapper ${PN} "./${MY_PN}-x86" "${MYGAMEDIR}/UDKGame/Binaries" + + dodoc README-linux.txt + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/dungeon-defenders/metadata.xml b/games-rpg/dungeon-defenders/metadata.xml new file mode 100644 index 000000000000..d13413d31d91 --- /dev/null +++ b/games-rpg/dungeon-defenders/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name='bundled-libs'> + Use the upstream provided bundled libraries. + </flag> + </use> +</pkgmetadata> + diff --git a/games-rpg/egoboo/Manifest b/games-rpg/egoboo/Manifest new file mode 100644 index 000000000000..8a9fdae00bab --- /dev/null +++ b/games-rpg/egoboo/Manifest @@ -0,0 +1 @@ +DIST egoboo-2.8.1.tar.gz 150029960 SHA256 a2694187d28a7aadf4ca3b9b7a6c6dcd3bb03ec8f145435c744bb77afb5f4c26 SHA512 5793a63ba90f461ae99bcb81bf4ddf287b203bc2d401e1f697f1f4f93e1d681954e09b23938eb1a36e7dd535e2d12b8882efd77572cc63392cad5f9462ac3054 WHIRLPOOL a4aa29244a43c974f7109ba4a3be40d2438a01c05ac032c4f74e01c2ca407ab3b6033f5133164e853bc50c8b0c59320ac076d21c93ea26ca7089fe8e603a4f6c 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..7bdee75374f0 --- /dev/null +++ b/games-rpg/egoboo/egoboo-2.8.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ppc 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" + +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 "failed removing enet" +} + +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..36cb33b55c54 --- /dev/null +++ b/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch @@ -0,0 +1,56 @@ +--- src/game/platform/file_linux.c.old 2012-04-29 21:45:29.627419281 +0200 ++++ 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 +--- src/game/network.c.old 2012-04-29 20:14:31.482179973 +0200 ++++ 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> +--- src/game/Makefile.old 2012-04-29 20:17:09.303070070 +0200 ++++ 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..1b59e3704af2 --- /dev/null +++ b/games-rpg/egoboo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">egoboo</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/eschalon-book-1-demo/Manifest b/games-rpg/eschalon-book-1-demo/Manifest new file mode 100644 index 000000000000..c1f9531b44a4 --- /dev/null +++ b/games-rpg/eschalon-book-1-demo/Manifest @@ -0,0 +1 @@ +DIST eschalon-book-1-demo-106.tar.gz 83157919 SHA256 172d66826ad8a1c6fe8b8d9feddeff6fff36f4da07edcf5a12264b17d9d61eea SHA512 7229cb48ad02b1842ac71fec03f5ea3e0df8f895409222a764c8505586a1ceb350dc4b57b4c9eed528ef0984bb60d406f41df26d5b7e8157d0f22b8ded590d66 WHIRLPOOL 7e5e0c2c4abdcc7d44bf0e87eb1ac121bd90dca9cfea9dddc5afef1e3e84f556f949ff4446945eb2f48250783e45d38bfd6dd414d5632ba6c441be00c0d9a708 diff --git a/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild b/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild new file mode 100644 index 000000000000..774599e8677b --- /dev/null +++ b/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A classic role-playing game" +HOMEPAGE="http://basiliskgames.com/eschalon-book-i" +SRC_URI="http://dev.gentoo.org/~calchan/distfiles/${P}.tar.gz" + +LICENSE="eschalon-book-1-demo" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="strip" +QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/Eschalon Book I Demo" + +RDEPEND=" + >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXxf86vm[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S="${WORKDIR}/Eschalon Book I Demo" + +src_install() { + insinto "${GAMES_PREFIX_OPT}/${PN}" + doins -r data music sound *pdf *pak help.txt + + exeinto "${GAMES_PREFIX_OPT}/${PN}" + doexe "Eschalon Book I Demo" + + make_desktop_entry ${PN} "Eschalon: Book I (Demo)" + games_make_wrapper ${PN} "\"./Eschalon Book I Demo\"" "${GAMES_PREFIX_OPT}/${PN}" + prepgamesdirs +} diff --git a/games-rpg/eschalon-book-1-demo/metadata.xml b/games-rpg/eschalon-book-1-demo/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/eschalon-book-1-demo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/eternal-lands-bloodsucker/Manifest b/games-rpg/eternal-lands-bloodsucker/Manifest new file mode 100644 index 000000000000..4d7cc8a50807 --- /dev/null +++ b/games-rpg/eternal-lands-bloodsucker/Manifest @@ -0,0 +1,2 @@ +DIST eternal-lands-bloodsucker-3.0.zip 56684190 SHA256 656e00bdb5910d17de81547ef359a0b1bca3246f08efbf1e3072079b84a9e886 +DIST eternal-lands-bloodsucker-3.0_p20110618.tar.bz2 48324713 SHA256 bfc347a9b17c9673ef7ae225ec690e3c55e07b33a57e484415baf88ea4e15730 SHA512 951083ae5170929d64efa79962a19ab2481df956c316aecc32179478c4d56dd4d23282fa428974865216877b493a8729bdbedb0396b6c11670f6ee094c334fe4 WHIRLPOOL 96fe24a740b3fa6e9ec6a6052edd940bb98042beda6344b4d5614938d03e11c5661c79ebb5bb7a7b8f0e55c31758d1bfb4418e5fdcca03b568ebd58b25512521 diff --git a/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild new file mode 100644 index 000000000000..aa2d28d9db5c --- /dev/null +++ b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils games + +DESCRIPTION="Non-official map pack for Eternal Lands" +HOMEPAGE="http://maps.el-pl.org/" +SRC_URI="mirror://gentoo/${P}.zip" +LICENSE="CC-BY-NC-SA-3.0" +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~x86-fbsd" + +IUSE="" + +DEPEND="games-rpg/eternal-lands-data[bloodsuckermaps]" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_install() { + insopts -m 0660 + insinto "${GAMES_DATADIR}/eternal-lands" + doins -r maps || die "doins failed" + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Note that the Bloodsucker Maps are not official maps and are not" + elog "supported by the Eternal Lands team." + elog "Please do not bother Eternal Lands staff about bugs with the maps." +} diff --git a/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild new file mode 100644 index 000000000000..2043fa1b9350 --- /dev/null +++ b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils games + +DESCRIPTION="Non-official map pack for Eternal Lands" +HOMEPAGE="http://maps.el-pl.org/" +SRC_URI="http://dev.gentoo.org/~rich0/distfiles/${P}.tar.bz2" +LICENSE="CC-BY-NC-SA-3.0" +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~x86-fbsd" + +IUSE="" + +DEPEND="games-rpg/eternal-lands-data[bloodsuckermaps]" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_install() { + insopts -m 0660 + insinto "${GAMES_DATADIR}/eternal-lands" + doins -r maps + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Note that the Bloodsucker Maps are not official maps and are not" + elog "supported by the Eternal Lands team." + elog "Please do not bother Eternal Lands staff about bugs with the maps." +} diff --git a/games-rpg/eternal-lands-bloodsucker/metadata.xml b/games-rpg/eternal-lands-bloodsucker/metadata.xml new file mode 100644 index 000000000000..3c1375215bd6 --- /dev/null +++ b/games-rpg/eternal-lands-bloodsucker/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>rich0@gentoo.org</email> + <name>Rich Freeman</name> +</maintainer> +<longdescription>The Bloodsucker Maps are an add-on for Eternal Lands and provide enhanced non-official maps for the game.</longdescription> +</pkgmetadata> diff --git a/games-rpg/eternal-lands-data/Manifest b/games-rpg/eternal-lands-data/Manifest new file mode 100644 index 000000000000..fe65cf18a5b9 --- /dev/null +++ b/games-rpg/eternal-lands-data/Manifest @@ -0,0 +1,4 @@ +DIST EL_sound_191.zip 43002046 SHA256 407a8220a7e2e9dc9a176e8868de2734565bf9bc83cb59a5a5c12571f29e157c SHA512 cc4103d6cdafffcf3926f0e90ca2555b09b22d9e00947f9e1790cfa5b7c945cff16f935ede886b498ac86028b77e8f1ead6eecab2d59848100233eed373c1310 WHIRLPOOL dbe4219e5702abb446cc62b9c33789126a96c575cbce3e26f3e134a8be3de7cbdd5ab34f4bb70e6428823d910bdbac8009fbbafbccd29f2f0d616a82e265e09d +DIST el_linux_192.zip 65888714 SHA256 bd700258110b8ac7b540cce1517777ca718c22cb5330989e097206adf962b8e9 +DIST el_linux_193.zip 67104165 SHA256 32881313e48bf9a6520dc77b55ef1f4ede3b8922383c4976ca38d0aceeea628a SHA512 95de984998bfc27525b7986895d1154a74c6e4dbffb9bf115c1284213acf56a470967b55e0507ed6aacd67f972bce4689aa7cffb9acd16d92bf448f195dc4f0c WHIRLPOOL 43206d9b6e349fb2419d53c53d8169750044dc577d19d1fa30daa93adccee08180dea32faf8e4aeef7a0e0c9d8f7bdd3cdc88e4f06c59876350ffa29b4f1cdf8 +DIST el_music_full-20060803.zip 65511882 SHA256 1ea4de25081034ac684aaebf127ab6ca8524ba5367532863d84d63837dd631ec SHA512 dbd24cb20331d3640b3a5891faaf88aa0e71ba0564dfde347f2ea0fcb7e0f2700f1324ee8e988c551efb943183bbc823d4ee0373ed2b1f6d0300df76e25a524c WHIRLPOOL 3ab2a25cfab24a0e621dcb47db4a2e5edef96ae50b4cbc8d5e2e8c081453cf20ad7db5c5520d7cc859b1340fe8b52fde45c4bf02edb3f267ca0eaa113b0c596c diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild new file mode 100644 index 000000000000..3f5c9bc03285 --- /dev/null +++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit games + +MUSIC_DATE="20060803" + +MY_PV="${PV//_/}" +MY_PV="${MY_PV//./}" +MY_PN="${PN%*-data}" +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="http://www.eternal-lands.com/el_linux_192.zip + music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip ) + sound? ( http://www.eternallands.co.uk/EL_sound_191.zip )" +# WARNING: The music file is held at +# http://www.eternal-lands.com/page/music.php +# We only mirror it so that it is versioned by the date we mirrored it +# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will +# version their music, maybe not. + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="music sound bloodsuckermaps" + +DEPEND="app-arch/unzip + !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )" + +PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )" + +# Maybe one day upstream will do things in a consistent way. +S="${WORKDIR}/el_linux" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Move our music files to the correct directory + if use music ; then + mkdir music + mv ../*.ogg ../*.pll music || die + fi +} + +src_install() { + # These are provided by eternal-lands ebuild + + rm license.txt + rm commands.lst + + # don't install maps if using alternate maps + if use bloodsuckermaps ; then + rm maps/anitora.dds maps/cave1.dds maps/cont2map10.dds + rm maps/cont2map11.dds maps/cont2map12.dds maps/cont2map13.dds + rm maps/cont2map14.dds maps/cont2map15.dds maps/cont2map16.dds + rm maps/cont2map17.dds maps/cont2map18.dds maps/cont2map19.dds + rm maps/cont2map1.dds maps/cont2map20.dds maps/cont2map21.dds + rm maps/cont2map22.dds maps/cont2map23.dds maps/cont2map24.dds + rm maps/cont2map2.dds maps/cont2map3.dds maps/cont2map4.dds + rm maps/cont2map5.dds maps/cont2map6.dds maps/cont2map7.dds + rm maps/cont2map8.dds maps/cont2map9.dds maps/irilion.dds + rm maps/legend.dds maps/map11.dds maps/map12.dds + rm maps/map13.dds maps/map14f.dds maps/map15f.dds + rm maps/map2.dds maps/map3.dds maps/map4f.dds + rm maps/map5nf.dds maps/map6nf.dds maps/map7.dds + rm maps/map8.dds maps/map9f.dds maps/seridia.dds + rm maps/startmap.dds + fi + + insopts -m 0660 + insinto "${GAMES_DATADIR}/${MY_PN}" + doins -r 2dobjects 3dobjects actor_defs animations maps meshes \ + particles skeletons shaders textures languages shaders skybox \ + *.lst 3dobjects.txt *.xml \ + || die "doins failed" + + if use music ; then + doins -r music || die "doins music failed" + fi + + # Removed sound from above - need to handle sound support + + cd "${WORKDIR}" + if use sound ; then + doins -r sound || die "doins sound failed" + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \; +} diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild new file mode 100644 index 000000000000..ad57e38d6753 --- /dev/null +++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit games + +MUSIC_DATE="20060803" + +MY_PV="${PV//_/}" +MY_PV="${MY_PV//./}" +MY_PN="${PN%*-data}" +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="http://www.eternal-lands.com/el_linux_193.zip + music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip ) + sound? ( http://www.eternallands.co.uk/EL_sound_191.zip )" +# WARNING: The music file is held at +# http://www.eternal-lands.com/page/music.php +# We only mirror it so that it is versioned by the date we mirrored it +# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will +# version their music, maybe not. + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="music sound bloodsuckermaps" + +DEPEND="app-arch/unzip + !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )" + +PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )" + +# Maybe one day upstream will do things in a consistent way. +S="${WORKDIR}/el_linux" + +src_prepare() { + # Move our music files to the correct directory + if use music ; then + mkdir music + mv ../*.ogg ../*.pll music || die + fi + + # Fix assertion error with >=libxml2-2.9 (see bug #449352) + xmllint --noent actor_defs/actor_defs.xml > actor_defs.xml || die "Failed parsing actor_defs.xml" + mv actor_defs.xml actor_defs +} + +src_install() { + # These are provided by eternal-lands ebuild + + rm license.txt + rm commands.lst + + # don't install maps if using alternate maps + if use bloodsuckermaps ; then + rm maps/anitora.dds maps/cave1.dds maps/cont2map10.dds + rm maps/cont2map11.dds maps/cont2map12.dds maps/cont2map13.dds + rm maps/cont2map14.dds maps/cont2map15.dds maps/cont2map16.dds + rm maps/cont2map17.dds maps/cont2map18.dds maps/cont2map19.dds + rm maps/cont2map1.dds maps/cont2map20.dds maps/cont2map21.dds + rm maps/cont2map22.dds maps/cont2map23.dds maps/cont2map24.dds + rm maps/cont2map2.dds maps/cont2map3.dds maps/cont2map4.dds + rm maps/cont2map5.dds maps/cont2map6.dds maps/cont2map7.dds + rm maps/cont2map8.dds maps/cont2map9.dds maps/irilion.dds + rm maps/legend.dds maps/map11.dds maps/map12.dds + rm maps/map13.dds maps/map14f.dds maps/map15f.dds + rm maps/map2.dds maps/map3.dds maps/map4f.dds + rm maps/map5nf.dds maps/map6nf.dds maps/map7.dds + rm maps/map8.dds maps/map9f.dds maps/seridia.dds + rm maps/startmap.dds + fi + + insopts -m 0660 + insinto "${GAMES_DATADIR}/${MY_PN}" + doins -r 2dobjects 3dobjects actor_defs animations maps meshes \ + particles skeletons shaders textures languages shaders skybox \ + *.lst 3dobjects.txt *.xml \ + || die "doins failed" + + if use music ; then + doins -r music || die "doins music failed" + fi + + # Removed sound from above - need to handle sound support + + cd "${WORKDIR}" + if use sound ; then + doins -r sound || die "doins sound failed" + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \; +} diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild new file mode 100644 index 000000000000..cf6d07080feb --- /dev/null +++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit games + +MUSIC_DATE="20060803" + +MY_PV="${PV//_/}" +MY_PV="${MY_PV//./}" +MY_PN="${PN%*-data}" +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="http://www.eternal-lands.com/el_linux_193.zip + music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip ) + sound? ( http://www.eternallands.co.uk/EL_sound_191.zip )" +# WARNING: The music file is held at +# http://www.eternal-lands.com/page/music.php +# We only mirror it so that it is versioned by the date we mirrored it +# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will +# version their music, maybe not. + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="music sound bloodsuckermaps" + +DEPEND="app-arch/unzip + !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )" + +PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )" + +# Maybe one day upstream will do things in a consistent way. +S="${WORKDIR}/el_linux" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Move our music files to the correct directory + if use music ; then + mkdir music + mv ../*.ogg ../*.pll music || die + fi +} + +src_install() { + # These are provided by eternal-lands ebuild + + rm license.txt + rm commands.lst + + # don't install maps if using alternate maps + if use bloodsuckermaps ; then + rm maps/anitora.dds maps/cave1.dds maps/cont2map10.dds + rm maps/cont2map11.dds maps/cont2map12.dds maps/cont2map13.dds + rm maps/cont2map14.dds maps/cont2map15.dds maps/cont2map16.dds + rm maps/cont2map17.dds maps/cont2map18.dds maps/cont2map19.dds + rm maps/cont2map1.dds maps/cont2map20.dds maps/cont2map21.dds + rm maps/cont2map22.dds maps/cont2map23.dds maps/cont2map24.dds + rm maps/cont2map2.dds maps/cont2map3.dds maps/cont2map4.dds + rm maps/cont2map5.dds maps/cont2map6.dds maps/cont2map7.dds + rm maps/cont2map8.dds maps/cont2map9.dds maps/irilion.dds + rm maps/legend.dds maps/map11.dds maps/map12.dds + rm maps/map13.dds maps/map14f.dds maps/map15f.dds + rm maps/map2.dds maps/map3.dds maps/map4f.dds + rm maps/map5nf.dds maps/map6nf.dds maps/map7.dds + rm maps/map8.dds maps/map9f.dds maps/seridia.dds + rm maps/startmap.dds + fi + + insopts -m 0660 + insinto "${GAMES_DATADIR}/${MY_PN}" + doins -r 2dobjects 3dobjects actor_defs animations maps meshes \ + particles skeletons shaders textures languages shaders skybox \ + *.lst 3dobjects.txt *.xml \ + || die "doins failed" + + if use music ; then + doins -r music || die "doins music failed" + fi + + # Removed sound from above - need to handle sound support + + cd "${WORKDIR}" + if use sound ; then + doins -r sound || die "doins sound failed" + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \; +} diff --git a/games-rpg/eternal-lands-data/metadata.xml b/games-rpg/eternal-lands-data/metadata.xml new file mode 100644 index 000000000000..5bb4bb3bf309 --- /dev/null +++ b/games-rpg/eternal-lands-data/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>rich0@gentoo.org</email> + <name>Rich Freeman</name> +</maintainer> +<longdescription>Eternal Lands is a FREE MMORPG (massively multiplayer online + role playing game)</longdescription> +<use> + <flag name='bloodsuckermaps'>Will install Bloodsucker's Maps in place of the official map files.</flag> + <flag name='music'>Adds in-game music.</flag> + <flag name='sound'>Adds in-game sound effects.</flag> +</use> +</pkgmetadata> diff --git a/games-rpg/eternal-lands/Manifest b/games-rpg/eternal-lands/Manifest new file mode 100644 index 000000000000..f04cd7529783 --- /dev/null +++ b/games-rpg/eternal-lands/Manifest @@ -0,0 +1,3 @@ +DIST elc_1.9.2-20110618.tar.bz2 2164208 SHA256 0226c95dc9e0a93713d2d8efcba7f75fbb97efe9b2b4f3b527e2851db69a0fad +DIST elc_1.9.3-20120213.tar.bz2 2401172 SHA256 b5ca11a2fc8db72003c6719ed031f9a7536865647a0278fa45ad8426ce88599e SHA512 3580d3ceb94094443ef25f6e4880c9ffe3fff256c8d8e6657b4e0683a05184da9e6a76264557d2065a8187e3d36febd9d30ff5adff83a17607b1e478be90fabc WHIRLPOOL 12461eb7c4e453c7f9e3b607ce6f0c935e78c37e04a5736dcbf59775324e9280fc7f6302792d35984a7ae21ad4e48e35854568400df279714131de4a39b0a075 +DIST eternal-lands.png 9955 SHA256 dd7d45cd9948fe7875ebd0bfcd1925d9b34e7606a223faf61d37a6dd2cd433fb SHA512 c77571c949bb43fa7f95ae58f863ed972cfc76e184de5d0fa0a3599e4f7539f6334b843233b61fc807c90ef270d87cd57494510ce559427b592d255c198729bf WHIRLPOOL 760a339efeda97dd517ebc6dc4e222a77d35fb936002ff4f3ec571b9845ba53ce677dc3ce1a2206bb49a0b33efda231f5677fff25aadb700c191d9f7e17a778f diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild new file mode 100644 index 000000000000..6638d71fadb2 --- /dev/null +++ b/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils flag-o-matic games + +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="http://dev.gentoo.org/~rich0/distfiles/elc_1.9.2-20110618.tar.bz2 + http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png" + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="debug doc kernel_linux" + +RDEPEND="x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + virtual/opengl + virtual/glu + media-libs/libsdl[X] + media-libs/sdl-net + media-libs/sdl-image + media-libs/openal + media-libs/freealut + media-libs/libvorbis + dev-libs/libxml2 + media-libs/cal3d[-16bit-indices] + media-libs/libpng + >=games-rpg/eternal-lands-data-1.9.2" + +DEPEND="${RDEPEND} + >=app-eselect/eselect-opengl-1.0.6-r1 + app-arch/unzip + doc? ( app-doc/doxygen + media-gfx/graphviz )" + +#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc" +#ECVS_MODULE="elc" +#ECVS_USER="anonymous" +#ECVS_LOCALNAME="elc" +#ECVS_PASS="" +#ECVS_CVS_OPTIONS="-dP -z3" +#ECVS_BRANCH="elc_1_8_0" + +#S="${WORKDIR}/${ECVS_MODULE}" +S="${WORKDIR}/elc" + +src_unpack() { +# cvs_src_unpack + OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\""" + S_CLIENT="${WORKDIR}/elc" + BROWSER="firefox" + unpack ${A} + cd "${S}" +} + +src_prepare() { + # Add debugging options + if use debug ; then + OPTIONS="${OPTIONS} -DMEMORY_DEBUG" + append-flags -ggdb + fi + + # Clean compile flags (make Gentoo friendly) + sed -i \ + -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \ + -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \ + -e 's/lopenal/lopenal -l alut/' \ + Makefile.linux || die "sed failed" + + sed -i \ + -e 's/#browser/browser/g' \ + -e "s/browser = mozilla/#browser = ${BROWSER}/g" \ + -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ + el.ini || die "sed failed" + + # Support BSD in the Linux makefile - it's easier + use kernel_linux || sed -i \ + -e 's/^CFLAGS=.*/& -DBSD/' \ + Makefile.linux || die "sed failed" + + # Clean up library flag order for --as-needed +# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux + + # Finally, update the server + sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \ + el.ini || die "sed failed" + + sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults + sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux + + if use debug; then + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux + fi + + cp Makefile.linux Makefile + + epatch "${FILESDIR}/${PN}-1.9.2-glext.patch" +# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch" + +# Fix for Gentoo zlib OF redefine + + sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed" +} + +src_compile() { + emake || die "make failed" + + if use doc; then + emake docs || die "Failed to create documentation, try with USE=-doc" + mv ./docs/html/ ../client || die "Failed to move documentation directory" + fi +} + +src_install() { + doicon "${DISTDIR}/eternal-lands.png" ${PN}.png + + newgamesbin el.x86.linux.bin el \ + || die "newgamesbin failed" + make_desktop_entry el "Eternal Lands" \ + || die "make_desktop_entry failed" + insopts -m 0660 + insinto "${GAMES_DATADIR}/${PN}" + + doins -r *.ini *.txt commands.lst \ + || die "doins failed" + + if use doc ; then + dohtml -r client/* + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Auto Update is now enabled in Eternal Lands" + elog "If an update occurs then the client will suddenly exit" + elog "Updates only happen when the game first loads" + elog "Please don't report this behaviour as a bug" + + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \; + +} diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild new file mode 100644 index 000000000000..94f2b1774a37 --- /dev/null +++ b/games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils flag-o-matic games + +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="http://dev.gentoo.org/~rich0/distfiles/elc_1.9.2-20110618.tar.bz2 + http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png" + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="debug doc kernel_linux" + +RDEPEND="x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + virtual/opengl + virtual/glu + media-libs/libsdl[X] + media-libs/sdl-net + media-libs/sdl-image + media-libs/openal + media-libs/freealut + media-libs/libvorbis + dev-libs/libxml2 + media-libs/cal3d[-16bit-indices] + media-libs/libpng + >=games-rpg/eternal-lands-data-1.9.2" + +DEPEND="${RDEPEND} + >=app-eselect/eselect-opengl-1.0.6-r1 + app-arch/unzip + doc? ( app-doc/doxygen + media-gfx/graphviz )" + +#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc" +#ECVS_MODULE="elc" +#ECVS_USER="anonymous" +#ECVS_LOCALNAME="elc" +#ECVS_PASS="" +#ECVS_CVS_OPTIONS="-dP -z3" +#ECVS_BRANCH="elc_1_8_0" + +#S="${WORKDIR}/${ECVS_MODULE}" +S="${WORKDIR}/elc" + +src_unpack() { +# cvs_src_unpack + OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\""" + S_CLIENT="${WORKDIR}/elc" + BROWSER="firefox" + unpack ${A} + cd "${S}" +} + +src_prepare() { + # Add debugging options + if use debug ; then + OPTIONS="${OPTIONS} -DMEMORY_DEBUG" + append-flags -ggdb + fi + + # Clean compile flags (make Gentoo friendly) + sed -i \ + -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \ + -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \ + -e 's/lopenal/lopenal -l alut/' \ + Makefile.linux || die "sed failed" + + sed -i \ + -e 's/#browser/browser/g' \ + -e "s/browser = mozilla/#browser = ${BROWSER}/g" \ + -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ + el.ini || die "sed failed" + + # Support BSD in the Linux makefile - it's easier + use kernel_linux || sed -i \ + -e 's/^CFLAGS=.*/& -DBSD/' \ + Makefile.linux || die "sed failed" + + # Clean up library flag order for --as-needed +# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux + + # Finally, update the server + sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \ + el.ini || die "sed failed" + + sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults + sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux + + if use debug; then + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux + fi + + cp Makefile.linux Makefile + + epatch "${FILESDIR}/${PN}-1.9.2-glext.patch" +# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch" +} + +src_compile() { + emake || die "make failed" + + if use doc; then + emake docs || die "Failed to create documentation, try with USE=-doc" + mv ./docs/html/ ../client || die "Failed to move documentation directory" + fi +} + +src_install() { + doicon "${DISTDIR}/eternal-lands.png" ${PN}.png + + newgamesbin el.x86.linux.bin el \ + || die "newgamesbin failed" + make_desktop_entry el "Eternal Lands" \ + || die "make_desktop_entry failed" + insopts -m 0660 + insinto "${GAMES_DATADIR}/${PN}" + + doins -r *.ini *.txt commands.lst \ + || die "doins failed" + + if use doc ; then + dohtml -r client/* + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Auto Update is now enabled in Eternal Lands" + elog "If an update occurs then the client will suddenly exit" + elog "Updates only happen when the game first loads" + elog "Please don't report this behaviour as a bug" + + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \; + +} diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild new file mode 100644 index 000000000000..8b131e9c0e7d --- /dev/null +++ b/games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils flag-o-matic gnome2-utils games + +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2 + http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png" + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="debug doc kernel_linux" + +RDEPEND="x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + virtual/opengl + virtual/glu + media-libs/libsdl[X] + media-libs/sdl-net + media-libs/sdl-image + media-libs/openal + media-libs/freealut + media-libs/libvorbis + dev-libs/libxml2 + media-libs/cal3d[-16bit-indices] + media-libs/libpng + >=games-rpg/eternal-lands-data-1.9.3" + +DEPEND="${RDEPEND} + >=app-eselect/eselect-opengl-1.0.6-r1 + app-arch/unzip + doc? ( app-doc/doxygen + media-gfx/graphviz )" + +#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc" +#ECVS_MODULE="elc" +#ECVS_USER="anonymous" +#ECVS_LOCALNAME="elc" +#ECVS_PASS="" +#ECVS_CVS_OPTIONS="-dP -z3" +#ECVS_BRANCH="elc_1_8_0" + +#S="${WORKDIR}/${ECVS_MODULE}" +S="${WORKDIR}/elc" + +src_unpack() { +# cvs_src_unpack + OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\""" + S_CLIENT="${WORKDIR}/elc" + BROWSER="firefox" + unpack ${A} + cd "${S}" +} + +src_prepare() { + # Add debugging options + if use debug ; then + OPTIONS="${OPTIONS} -DMEMORY_DEBUG" + append-flags -ggdb + fi + + # Clean compile flags (make Gentoo friendly) + sed -i \ + -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \ + -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \ + -e 's/lopenal/lopenal -l alut/' \ + Makefile.linux || die "sed failed" + + sed -i \ + -e 's/#browser/browser/g' \ + -e "s/browser = mozilla/#browser = ${BROWSER}/g" \ + -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ + el.ini || die "sed failed" + + # Support BSD in the Linux makefile - it's easier + use kernel_linux || sed -i \ + -e 's/^CFLAGS=.*/& -DBSD/' \ + Makefile.linux || die "sed failed" + + # Clean up library flag order for --as-needed +# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux + + # Finally, update the server + sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \ + el.ini || die "sed failed" + + sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults + sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux + + if use debug; then + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux + fi + + cp Makefile.linux Makefile + + epatch "${FILESDIR}/${PN}-1.9.2-glext.patch" +# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch" + +# Fix for Gentoo zlib OF redefine + + sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed" +} + +src_compile() { + emake || die "make failed" + + if use doc; then + emake docs || die "Failed to create documentation, try with USE=-doc" + mv ./docs/html/ ../client || die "Failed to move documentation directory" + fi +} + +src_install() { + newicon -s 64 "${DISTDIR}/eternal-lands.png" ${PN}.png + + newgamesbin el.x86.linux.bin el \ + || die "newgamesbin failed" + make_desktop_entry el "Eternal Lands" \ + || die "make_desktop_entry failed" + insopts -m 0660 + insinto "${GAMES_DATADIR}/${PN}" + + doins -r *.ini *.txt commands.lst \ + || die "doins failed" + + if use doc ; then + dohtml -r client/* + fi + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + elog "Auto Update is now enabled in Eternal Lands" + elog "If an update occurs then the client will suddenly exit" + elog "Updates only happen when the game first loads" + elog "Please don't report this behaviour as a bug" + + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \; +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild new file mode 100644 index 000000000000..588d23fe8294 --- /dev/null +++ b/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic gnome2-utils games + +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2 + http://dev.gentoo.org/~rich0/distfiles/${PN}.png" + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="debug doc kernel_linux" + +RDEPEND="dev-libs/libxml2:= + media-libs/cal3d:=[-16bit-indices] + media-libs/freealut + media-libs/libpng:0= + media-libs/libsdl:=[X,opengl,video] + media-libs/libvorbis:= + media-libs/openal:= + media-libs/sdl-image:= + media-libs/sdl-net:= + >=games-rpg/eternal-lands-data-1.9.3 + sys-libs/zlib:=[minizip] + virtual/glu + virtual/opengl + x11-libs/libX11:= + x11-libs/libXau:= + x11-libs/libXdmcp:= + x11-libs/libXext:=" +DEPEND="${RDEPEND} + >=app-eselect/eselect-opengl-1.0.6-r1 + app-arch/unzip + virtual/pkgconfig + doc? ( app-doc/doxygen + media-gfx/graphviz ) + media-libs/glew" + +S="${WORKDIR}/elc" + +src_prepare() { + local BROWSER="firefox" + + sed -i \ + -e 's/#browser/browser/g' \ + -e "s/browser = mozilla/#browser = ${BROWSER}/g" \ + -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ + el.ini || die "sed failed" + + # Finally, update the server + sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \ + el.ini || die "sed failed" + + epatch "${FILESDIR}/${PN}-1.9.3-glbuild.patch" + epatch "${FILESDIR}/${PN}-1.9.3-build.patch" + epatch "${FILESDIR}/${PN}-1.9.3-minizip.patch" + + # remove bundled minizip + rm io/{crypt,ioapi,unzip,zip}.h || die + rm io/{ioapi,unzip,zip}.c || die + + cp Makefile.linux Makefile +} + +src_compile() { + emake \ + DEBUG="$(usex debug)" \ + BSD_KERNEL="$(usex !kernel_linux)" \ + DATADIR="${GAMES_DATADIR}/${PN}/" + + if use doc; then + emake docs + mv ./docs/html/ ../client || die "Failed to move documentation directory" + fi +} + +src_install() { + dogamesbin el + make_desktop_entry el "Eternal Lands" + + insopts -m 0660 + insinto "${GAMES_DATADIR}/${PN}" + + doins -r *.ini *.txt commands.lst + + if use doc ; then + dohtml -r "${WORKDIR}"/client/* + fi + + doicon -s 64 "${DISTDIR}/${PN}.png" + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + elog "Auto Update is now enabled in Eternal Lands" + elog "If an update occurs then the client will suddenly exit" + elog "Updates only happen when the game first loads" + elog "Please don't report this behaviour as a bug" + + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \; +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild new file mode 100644 index 000000000000..cf86f7bdb3f3 --- /dev/null +++ b/games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils flag-o-matic games + +DESCRIPTION="An online MMORPG written in C and SDL" +HOMEPAGE="http://www.eternal-lands.com" +SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2 + http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png" + +LICENSE="eternal_lands" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="debug doc kernel_linux" + +RDEPEND="x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + virtual/opengl + virtual/glu + media-libs/libsdl[X] + media-libs/sdl-net + media-libs/sdl-image + media-libs/openal + media-libs/freealut + media-libs/libvorbis + dev-libs/libxml2 + media-libs/cal3d[-16bit-indices] + media-libs/libpng + >=games-rpg/eternal-lands-data-1.9.2" + +DEPEND="${RDEPEND} + >=app-eselect/eselect-opengl-1.0.6-r1 + app-arch/unzip + doc? ( app-doc/doxygen + media-gfx/graphviz )" + +#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc" +#ECVS_MODULE="elc" +#ECVS_USER="anonymous" +#ECVS_LOCALNAME="elc" +#ECVS_PASS="" +#ECVS_CVS_OPTIONS="-dP -z3" +#ECVS_BRANCH="elc_1_8_0" + +#S="${WORKDIR}/${ECVS_MODULE}" +S="${WORKDIR}/elc" + +src_unpack() { +# cvs_src_unpack + OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\""" + S_CLIENT="${WORKDIR}/elc" + BROWSER="firefox" + unpack ${A} + cd "${S}" +} + +src_prepare() { + # Add debugging options + if use debug ; then + OPTIONS="${OPTIONS} -DMEMORY_DEBUG" + append-flags -ggdb + fi + + # Clean compile flags (make Gentoo friendly) + sed -i \ + -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \ + -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \ + -e 's/lopenal/lopenal -l alut/' \ + Makefile.linux || die "sed failed" + + sed -i \ + -e 's/#browser/browser/g' \ + -e "s/browser = mozilla/#browser = ${BROWSER}/g" \ + -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \ + el.ini || die "sed failed" + + # Support BSD in the Linux makefile - it's easier + use kernel_linux || sed -i \ + -e 's/^CFLAGS=.*/& -DBSD/' \ + Makefile.linux || die "sed failed" + + # Clean up library flag order for --as-needed +# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux + + # Finally, update the server + sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \ + el.ini || die "sed failed" + + sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults + sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux + + if use debug; then + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults + sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux + fi + + cp Makefile.linux Makefile + + epatch "${FILESDIR}/${PN}-1.9.2-glext.patch" +# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch" + +# Fix for Gentoo zlib OF redefine + + sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed" +} + +src_compile() { + emake || die "make failed" + + if use doc; then + emake docs || die "Failed to create documentation, try with USE=-doc" + mv ./docs/html/ ../client || die "Failed to move documentation directory" + fi +} + +src_install() { + doicon "${DISTDIR}/eternal-lands.png" ${PN}.png + + newgamesbin el.x86.linux.bin el \ + || die "newgamesbin failed" + make_desktop_entry el "Eternal Lands" \ + || die "make_desktop_entry failed" + insopts -m 0660 + insinto "${GAMES_DATADIR}/${PN}" + + doins -r *.ini *.txt commands.lst \ + || die "doins failed" + + if use doc ; then + dohtml -r client/* + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Auto Update is now enabled in Eternal Lands" + elog "If an update occurs then the client will suddenly exit" + elog "Updates only happen when the game first loads" + elog "Please don't report this behaviour as a bug" + + # Ensure that the files are writable by the game group for auto + # updating. + chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}" + + # Make sure new files stay in games group + find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \; + +} diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.0-glext.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.0-glext.patch new file mode 100644 index 000000000000..a41db54c0f37 --- /dev/null +++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.0-glext.patch @@ -0,0 +1,11 @@ +--- platform.h.orig 2010-02-03 13:21:41.300205559 -0500 ++++ platform.h 2010-02-03 13:22:25.704049074 -0500 +@@ -79,7 +79,7 @@ + #define GL_GLEXT_LEGACY + #include <GL/gl.h> + #include <GL/glu.h> +- #include "glext.h" ++ #include <GL/glext.h> + #endif + + // Inlucde the plaform specific location sound libs diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch new file mode 100644 index 000000000000..953ab8ffefd7 --- /dev/null +++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch @@ -0,0 +1,23 @@ +--- elc.orig/misc.c ++++ elc/misc.c +@@ -311,7 +311,7 @@ int IMG_SavePNG_RW (SDL_Surface *face, S + } + + /* Set error handling. */ +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + /* If we get here, we had a problem reading the file */ + IMG_SetError("Error writing the PNG file"); +@@ -360,10 +360,7 @@ done: + if (row_pointers != NULL) + free (row_pointers); + +- if (info_ptr != NULL && info_ptr->palette != NULL) +- free (info_ptr->palette); +- +- png_destroy_write_struct (&png_ptr, (png_infopp)NULL); ++ png_destroy_write_struct (&png_ptr, &info_ptr); + + return result; + } diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch new file mode 100644 index 000000000000..f096d2fc4253 --- /dev/null +++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch @@ -0,0 +1,11 @@ +--- platform.h.orig 2011-06-18 13:55:09.704489907 -0400 ++++ platform.h 2011-06-18 13:55:41.675544567 -0400 +@@ -79,7 +79,7 @@ + #define GL_GLEXT_LEGACY + #include <GL/gl.h> + #include <GL/glu.h> +- #include "glext.h" ++ #include <GL/glext.h> + #else // BSD + #include <GL/gl.h> + #include <GL/glu.h> diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch new file mode 100644 index 000000000000..989bf2700d88 --- /dev/null +++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch @@ -0,0 +1,314 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Jun 24 13:32:38 UTC 2012 +Subject: build system + +respect all flags +respect compiler +add options for DATADIR, BSD_KERNEL and DEBUG +use proper pkgconfig calls +remove needless build types +rename EXE to "el" + +--- elc/Makefile.linux ++++ elc/Makefile.linux +@@ -3,16 +3,54 @@ + -include make.conf + + # basic compiling and linking - rarely changed +-OPTIONS = -DLINUX -DELC $(foreach FEATURE, $(FEATURES), -D$(FEATURE)) -D_7ZIP_ST +-CFLAGS=$(PLATFORM) $(CWARN) -O0 -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES) +-_CFLAGS=$(PLATFORM) -O2 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES) +-CXXFLAGS=$(PLATFORM) $(CXXWARN) -O0 -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES) +-_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES) +- +-PNG_SCREENSHOT_LIBS = -lpng +-LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lGL -lGLU -lcal3d -lm $(EXTRA_LIBS) -lz -lpng -lvorbis -lvorbisfile \ +- $(foreach FEATURE, $(FEATURES), $($(FEATURE)_LIBS)) +-_LDFLAGS=$(XDIR) -lGL -lpthread -lstdc++ ++CC ?= gcc ++CXX ?= g++ ++ ++# some options ++DATADIR ?= /usr/share/games/eternal-lands ++ ++CPPFLAGS += -DDATA_DIR=\"$(DATADIR)\" \ ++ -DLINUX \ ++ -DELC \ ++ $(foreach FEATURE, $(EL_FEATURES), -D$(FEATURE)) \ ++ -D_7ZIP_ST ++ ++ifeq ($(BSD_KERNEL),yes) ++CPPFLAGS += -DBSD ++endif ++ ++ifeq ($(DEBUG),yes) ++CPPFLAGS += -DMEMORY_DEBUG ++endif ++ ++CFLAGS += $(shell sdl-config --cflags) \ ++ $(shell xml2-config --cflags) \ ++ -fno-strict-aliasing \ ++ $(EXTRA_INCLUDES) ++ ++CXXFLAGS += $(shell sdl-config --cflags) \ ++ $(shell xml2-config --cflags) \ ++ -fno-strict-aliasing \ ++ $(EXTRA_INCLUDES) ++ ++LIBS += $(shell pkg-config --libs x11) \ ++ $(shell sdl-config --libs) \ ++ $(shell xml2-config --libs) \ ++ $(shell pkg-config --libs SDL_net) \ ++ $(shell pkg-config --libs SDL_image) \ ++ $(shell pkg-config --libs openal) \ ++ $(shell pkg-config --libs freealut) \ ++ $(shell pkg-config --libs gl) \ ++ $(shell pkg-config --libs glu) \ ++ $(shell pkg-config --libs cal3d) \ ++ $(shell pkg-config --libs libpng) \ ++ $(shell pkg-config --libs vorbis) \ ++ $(shell pkg-config --libs vorbisfile) \ ++ $(shell pkg-config --libs zlib) \ ++ -lm \ ++ $(EXTRA_LIBS) \ ++ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_LIBS)) \ ++ -lstdc++ + + # This works on Ubuntu 8.04 (LTS) at least + # Install these packages in addition to those required for a standard build +@@ -59,7 +97,7 @@ + xz/CpuArch.o xz/Delta.o xz/LzFind.o xz/Lzma2Dec.o xz/Lzma2Enc.o \ + xz/LzmaDec.o xz/LzmaEnc.o xz/Sha256.o xz/Xz.o xz/XzCrc64.o xz/XzDec.o \ + xz/XzEnc.o \ +- $(foreach FEATURE, $(FEATURES), $($(FEATURE)_COBJ)) ++ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_COBJ)) + + CXXOBJS=actor_init.o cal3d_wrapper.o context_menu.o optimizer.o sendvideoinfo.o \ + exceptions/extendedexception.o xml/xmlhelper.o quest_log.o \ +@@ -80,7 +118,7 @@ + eye_candy/effect_mines.o eye_candy/effect_missile.o \ + eye_candy/orbital_mover.o eye_candy/kepler_orbit.o \ + eye_candy/effect_staff.o \ +- $(foreach FEATURE, $(FEATURES), $($(FEATURE)_CXXOBJ)) ++ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_CXXOBJ)) + + OBJS=$(COBJS) $(CXXOBJS) + HEADER_DIRS = . books eye_candy io pawn fsaa engine xz +@@ -89,24 +127,13 @@ + DEP_FILES=$(foreach OBJ, $(COBJS), .deps/$(OBJ).P) $(foreach OBJ, $(CXXOBJS), .deps/$(OBJ).P) + #(shell echo $OBJ |sed s/\.o/\.P/)) + +-EXE=el.x86.linux.bin +- +-ifndef CC +-CC=gcc +-endif +-ifndef CXX +-CXX=g++ +-endif +-ifndef LINK +-LINK=gcc +-endif ++EXE=el + + all: $(EXE) + + # the compile targets + $(EXE): $(OBJS) +- @echo " LINK $(EXE)" +- @$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS) ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS) $(LIBS) + + #recompile on Makefile or conf change + #.depend $(OBJS): Makefile.linux make.conf +@@ -114,25 +141,19 @@ + DEPS_MAGIC := $(shell mkdir .deps .deps/io .deps/shader .deps/eye_candy .deps/exceptions .deps/xz .deps/xml .deps/fsaa .deps/engine > /dev/null 2>&1 || :) + + $(COBJS): %.o: %.c Makefile.linux make.conf +- @echo " CC $@" +- @if $(CC) $(CFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \ ++ @echo "$(CC) $(CFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@" ++ @if $(CC) $(CFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \ + mv ".deps/$@.pp" ".deps/$@.P"; \ + else rm -f ".deps/$@.pp"; exit 1; \ + fi + + $(CXXOBJS): %.o: %.cpp Makefile.linux make.conf +- @echo " CXX $@" +- @if $(CXX) $(CXXFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \ ++ @echo "$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@" ++ @if $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \ + mv ".deps/$@.pp" ".deps/$@.P"; \ + else rm -f ".deps/$@.pp"; exit 1; \ + fi + +-release: +- @$(MAKE) -f Makefile.linux 'CFLAGS=$(_CFLAGS)' 'CXXFLAGS=$(_CXXFLAGS)' +- +-static: +- @$(MAKE) -f Makefile.linux 'CFLAGS=$(_CFLAGS)' 'CXXFLAGS=$(_CXXFLAGS)' 'LDFLAGS=$(_LDFLAGS)' 'OBJS=$(OBJS) $(STATICLIBS)' +- + clean: + rm -f $(OBJS) $(EXE) + +@@ -140,8 +161,8 @@ + cd docs && doxygen Doxyfile + + .depend: $(foreach HEADER_DIR, $(HEADER_DIRS), $(wildcard $(HEADER_DIR)/*.h)) +- $(CC) $(CFLAGS) -MM $(patsubst %.o, %.c, $(COBJS)) >.depend +- $(CXX) $(CXXFLAGS) -MM $(patsubst %.o, %.cpp, $(CXXOBJS)) >>.depend ++ $(CC) $(CFLAGS) $(CPPFLAGS) -MM $(patsubst %.o, %.c, $(COBJS)) >.depend ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(patsubst %.o, %.cpp, $(CXXOBJS)) >>.depend + + make.conf: make.defaults + @if (test -f $@ -a '$(UPDATE_CONF)' != 'yes'); \ +@@ -161,7 +182,7 @@ + echo "\t#endinput" >> $@; \ + echo "#endif" >> $@; \ + echo "#define _features_included" >> $@; \ +- for feature in $(FEATURES); do \ ++ for feature in $(EL_FEATURES); do \ + echo "#define $$feature" >> $@; \ + done + +--- elc/make.defaults ++++ elc/make.defaults +@@ -1,71 +1,82 @@ + # set this to "no" if you don't want this file to be overwritten + UPDATE_CONF=yes + ++# set to 'yes' for BSD support ++BSD_KERNEL=no ++ ++# set to 'yes' to enable debug support ++DEBUG=no ++ + # tune these for your setup & compile options + # IMPORTANT: if you are using a linker that needs libraries in correct order, make sure you list EYE_CANDY before PNG_SCREENSHOT if you use both + + ### Current release default options ### +-FEATURES += CLUSTER_INSIDES # Group objects into separate clusters for clipping on inside maps +-FEATURES += CUSTOM_LOOK # allows you to customize your look. +-FEATURES += CUSTOM_UPDATE # allows autoupdating of custom look information +-FEATURES += FUZZY_PATHS # Makes Tab Map walking not always follow exaclty the same path +-FEATURES += NEW_SOUND # Enables extended sound effects system +-FEATURES += PNG_SCREENSHOT # make screenshots in W3C's PNG format in game, requires libpng +-FEATURES += TEXT_ALIASES # Text aliases +-FEATURES += USE_INLINE # enable some optimizations to use inline functions instead of pure function calls ++EL_FEATURES += CLUSTER_INSIDES # Group objects into separate clusters for clipping on inside maps ++EL_FEATURES += CUSTOM_LOOK # allows you to customize your look. ++EL_FEATURES += CUSTOM_UPDATE # allows autoupdating of custom look information ++EL_FEATURES += FUZZY_PATHS # Makes Tab Map walking not always follow exaclty the same path ++EL_FEATURES += NEW_SOUND # Enables extended sound effects system ++EL_FEATURES += PNG_SCREENSHOT # make screenshots in W3C's PNG format in game, requires libpng ++EL_FEATURES += TEXT_ALIASES # Text aliases ++EL_FEATURES += USE_INLINE # enable some optimizations to use inline functions instead of pure function calls + # new for 1.9.0 release +-FEATURES += BANDWIDTH_SAVINGS # enable bandwidth saving changes for message protocol ++EL_FEATURES += BANDWIDTH_SAVINGS # enable bandwidth saving changes for message protocol + # new for 1.9.2 release +-FEATURES += ANIMATION_SCALING # Adds support for animation scaling, depending on the number of animation commands in the actor queue. +-FEATURES += ENCYCL_NAVIGATION # Adds context menus to encyclopedia windows with search and bookmark functions +-FEATURES += FSAA # Adds support for full screen anti-aliasing using OpenGL multisampling. +-FEATURES += NEW_NEW_CHAR_WINDOW # Use the new character creation window; controls always on-screen +-FEATURES += NEW_TEXTURES # Enables the new texture loading and caching system (http://www.eternal-lands.com/forum/index.php?showtopic=54756) ++EL_FEATURES += ANIMATION_SCALING # Adds support for animation scaling, depending on the number of animation commands in the actor queue. ++EL_FEATURES += ENCYCL_NAVIGATION # Adds context menus to encyclopedia windows with search and bookmark functions ++EL_FEATURES += FSAA # Adds support for full screen anti-aliasing using OpenGL multisampling. ++EL_FEATURES += NEW_NEW_CHAR_WINDOW # Use the new character creation window; controls always on-screen ++EL_FEATURES += NEW_TEXTURES # Enables the new texture loading and caching system (http://www.eternal-lands.com/forum/index.php?showtopic=54756) + # new for 1.9.3 release +-FEATURES += FASTER_MAP_LOAD # Enables optimizations to speed up the process of switching between maps +-FEATURES += FASTER_STARTUP # An attempt to reduce the startup time of EL somewhat +-FEATURES += MIDDLE_MOUSE_PASTE # Paste using the middle mouse button from the primary buffer on X systems ++EL_FEATURES += FASTER_MAP_LOAD # Enables optimizations to speed up the process of switching between maps ++EL_FEATURES += FASTER_STARTUP # An attempt to reduce the startup time of EL somewhat ++EL_FEATURES += MIDDLE_MOUSE_PASTE # Paste using the middle mouse button from the primary buffer on X systems + + ### Testing options (these options are possible for the next release and should be tested) ### +-#FEATURES += ANTI_ALIAS # allows to enable/disable anti-aliasing in el.ini +-#FEATURES += DYNAMIC_ANIMATIONS # (appears broken) Synchronizes animation to FPS instead of a fixed timer +-#FEATURES += EXT_ACTOR_DICT # Removes remaining hard-coded actor def dictionaries - requires updated actor defs files (http://el.grug.redirectme.net/actor_defs.zip) +-#FEATURES += NEW_ALPHA # (undocumented) +-#FEATURES += USE_SIMD # Enables usage of simd instructions ++#EL_FEATURES += ANTI_ALIAS # allows to enable/disable anti-aliasing in el.ini ++#EL_FEATURES += DYNAMIC_ANIMATIONS # (appears broken) Synchronizes animation to FPS instead of a fixed timer ++#EL_FEATURES += EXT_ACTOR_DICT # Removes remaining hard-coded actor def dictionaries - requires updated actor defs files (http://el.grug.redirectme.net/actor_defs.zip) ++#EL_FEATURES += NEW_ALPHA # (undocumented) ++#EL_FEATURES += USE_SIMD # Enables usage of simd instructions + + ### Machine specific options (fixes or performance enhancements) ### +-#FEATURES += EL_BIG_ENDIAN # Enable big-endian code (automatically detected for OSX) +-#FEATURES += NO_PF_MACRO # Use a function instead of a macro for pf_get_tile() +-#FEATURES += SIMPLE_LOD # enable a simplistic distance culling to improve performance ++#EL_FEATURES += EL_BIG_ENDIAN # Enable big-endian code (automatically detected for OSX) ++#EL_FEATURES += NO_PF_MACRO # Use a function instead of a macro for pf_get_tile() ++#EL_FEATURES += SIMPLE_LOD # enable a simplistic distance culling to improve performance + + + ### Debug options ### +-#FEATURES += CONTEXT_MENUS_TEST # Enable "#cmtest" command to help test/demo the context menu code +-#FEATURES += DEBUG # (undocumented) +-#FEATURES += DEBUG_XML # Enables missing (optional) XML string property messages +-#FEATURES += DEBUG_POINT_PARTICLES # (undocumented) +-#FEATURES += DEBUG_TIME # Fakes the acceleration of time for use in debugging shadows and the like. +-#FEATURES += DEBUG_MAP_SOUND # Adds (some??) map boundary areas to tab maps and additional logging to stdout +-#FEATURES += ECDEBUGWIN # press ctrl-alt-c to open the Eye Candy debug window: trigger most effects without casting spells or server side events +-#FEATURES += EXTRA_DEBUG # (undocumented) +-#FEATURES += MEMORY_DEBUG # gather information about memory allocation and freeing +-#FEATURES += MISSILES_DEBUG # Enables debug for missiles feature. It will create a file missiles_log.txt file in your settings directory. +-#FEATURES += MUTEX_DEBUG # (undocumented) +-#FEATURES += OPENGL_TRACE # make far more frequent checks for OpenGL errors (requires -DDEBUG to be of any use). Will make error_log.txt a lot larger. +-#FEATURES += TIMER_CHECK # (undocumented) +-#FEATURES += _EXTRA_SOUND_DEBUG # Enable debug for sound effects ++#EL_FEATURES += CONTEXT_MENUS_TEST # Enable "#cmtest" command to help test/demo the context menu code ++#EL_FEATURES += DEBUG # (undocumented) ++#EL_FEATURES += DEBUG_XML # Enables missing (optional) XML string property messages ++#EL_FEATURES += DEBUG_POINT_PARTICLES # (undocumented) ++#EL_FEATURES += DEBUG_TIME # Fakes the acceleration of time for use in debugging shadows and the like. ++#EL_FEATURES += DEBUG_MAP_SOUND # Adds (some??) map boundary areas to tab maps and additional logging to stdout ++#EL_FEATURES += ECDEBUGWIN # press ctrl-alt-c to open the Eye Candy debug window: trigger most effects without casting spells or server side events ++#EL_FEATURES += EXTRA_DEBUG # (undocumented) ++ ++# gather information about memory allocation and freeing ++ifeq ($(DEBUG),yes) ++EL_FEATURES += MEMORY_DEBUG ++endif ++ ++#EL_FEATURES += MISSILES_DEBUG # Enables debug for missiles feature. It will create a file missiles_log.txt file in your settings directory. ++#EL_FEATURES += MUTEX_DEBUG # (undocumented) ++#EL_FEATURES += OPENGL_TRACE # make far more frequent checks for OpenGL errors (requires -DDEBUG to be of any use). Will make error_log.txt a lot larger. ++#EL_FEATURES += TIMER_CHECK # (undocumented) ++#EL_FEATURES += _EXTRA_SOUND_DEBUG # Enable debug for sound effects + + + ### Other options (Experimental, unfinished, defunct or otherwise unknown) ### +-#FEATURES += NEW_CURSOR # New coloured cursors made by Emajekral (Experimental) Extract http://users.on.net/~gingerman/sky_cursor-textures.zip into datadir/textures/ +-#FEATURES += PAWN # Experimental, not for release, will need server support to function properly. This *will* eat your cat. You've been warned. Enables the Pawn abstract machine. +-#FEATURES += UID # use unique ID sent from server for custom looks. (INCOMPLETE) +-#FEATURES += USE_ACTORS_OPTIMIZER # Enables actor optimizations +-#FEATURES += USE_BOOST +-#FEATURES += USE_TR1 # Needs tr1 version of c++ stl, used for NEW_FILE_IO +-#FEATURES += WRITE_XML # dangerous to use, will wipe out some XML files that are part of the main game download +-#FEATURES += ZLIBW # Enables being able to write gzip compressed files, requires -lzlib/-lz needed for map_editor +-#FEATURES += OLD_MISC_OBJ_DIR # if not defined, ./3dobjects/misc_objects/ paths becomes ./3dobjects/ ++#EL_FEATURES += NEW_CURSOR # New coloured cursors made by Emajekral (Experimental) Extract http://users.on.net/~gingerman/sky_cursor-textures.zip into datadir/textures/ ++#EL_FEATURES += PAWN # Experimental, not for release, will need server support to function properly. This *will* eat your cat. You've been warned. Enables the Pawn abstract machine. ++#EL_FEATURES += UID # use unique ID sent from server for custom looks. (INCOMPLETE) ++#EL_FEATURES += USE_ACTORS_OPTIMIZER # Enables actor optimizations ++#EL_FEATURES += USE_BOOST ++#EL_FEATURES += USE_TR1 # Needs tr1 version of c++ stl, used for NEW_FILE_IO ++#EL_FEATURES += WRITE_XML # dangerous to use, will wipe out some XML files that are part of the main game download ++#EL_FEATURES += ZLIBW # Enables being able to write gzip compressed files, requires -lzlib/-lz needed for map_editor ++#EL_FEATURES += OLD_MISC_OBJ_DIR # if not defined, ./3dobjects/misc_objects/ paths becomes ./3dobjects/ + + + +@@ -86,7 +97,3 @@ + #EXTRA_INCLUDES=-IC:\\Programme\\Dev-Cpp\\Include + #EXTRA_LIBS=-lz + #EXTRA_STATICLIBS=libs/zlib.a +- +-CC=gcc +-CXX=g++ +-LINK=gcc diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch new file mode 100644 index 000000000000..972abd9b0d2b --- /dev/null +++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch @@ -0,0 +1,25 @@ +--- gl_init.c 2012-02-13 22:01:54.000000000 -0500 ++++ gl_init.c 2012-12-02 18:09:41.274014922 -0500 +@@ -27,6 +27,8 @@ + #include "fsaa/fsaa.h" + #endif /* FSAA */ + ++#define APIENTRY ++ + Uint32 flags; + + int window_width=640; +--- platform.h 2012-02-13 22:01:54.000000000 -0500 ++++ platform.h 2012-12-02 17:32:46.017627957 -0500 +@@ -87,9 +87,10 @@ + #define APIENTRYP * + #elif !defined(BSD) + #define GL_GLEXT_LEGACY ++ #include <GL/glew.h> + #include <GL/gl.h> + #include <GL/glu.h> +- #include "glext.h" ++ #include <GL/glext.h> + #else // BSD + #include <GL/gl.h> + #include <GL/glu.h> diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch new file mode 100644 index 000000000000..9edb22254502 --- /dev/null +++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch @@ -0,0 +1,75 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Jun 24 16:33:08 UTC 2012 +Subject: unbundle minizip + +https://bugs.gentoo.org/show_bug.cgi?id=423327 +applied on top of eternal-lands-1.9.3-build.patch + +--- elc/new_update.c ++++ elc/new_update.c +@@ -5,8 +5,8 @@ + #include <string.h> + #include "md5.h" + #include "elc_private.h" +-#include "io/zip.h" +-#include "io/unzip.h" ++#include <zip.h> ++#include <unzip.h> + #include "io/ziputil.h" + #include "io/fileutil.h" + #include "io/elfilewrapper.h" +--- elc/io/ziputil.h ++++ elc/io/ziputil.h +@@ -8,8 +8,8 @@ + + #include <SDL.h> + #include "../md5.h" +-#include "zip.h" +-#include "unzip.h" ++#include <zip.h> ++#include <unzip.h> + + #ifdef __cplusplus + extern "C" +--- elc/io/elfilewrapper.c ++++ elc/io/elfilewrapper.c +@@ -1,5 +1,5 @@ + #include "elfilewrapper.h" +-#include "unzip.h" ++#include <unzip.h> + #include "elpathwrapper.h" + #include "fileutil.h" + #include <sys/stat.h> +--- elc/Makefile.linux ++++ elc/Makefile.linux +@@ -25,11 +25,13 @@ + + CFLAGS += $(shell sdl-config --cflags) \ + $(shell xml2-config --cflags) \ ++ $(shell pkg-config --cflags minizip) \ + -fno-strict-aliasing \ + $(EXTRA_INCLUDES) + + CXXFLAGS += $(shell sdl-config --cflags) \ + $(shell xml2-config --cflags) \ ++ $(shell pkg-config --cflags minizip) \ + -fno-strict-aliasing \ + $(EXTRA_INCLUDES) + +@@ -47,6 +49,7 @@ + $(shell pkg-config --libs vorbis) \ + $(shell pkg-config --libs vorbisfile) \ + $(shell pkg-config --libs zlib) \ ++ $(shell pkg-config --libs minizip) \ + -lm \ + $(EXTRA_LIBS) \ + $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_LIBS)) \ +@@ -80,7 +83,7 @@ + gamewin.o gl_init.o hud.o help.o highlight.o \ + ignore.o init.o interface.o items.o io/fileutil.o \ + io/e3d_io.o io/elc_io.o io/map_io.o io/elpathwrapper.o io/xmlcallbacks.o \ +- io/half.o io/normal.o io/elfilewrapper.o io/unzip.o io/ioapi.o io/zip.o io/ziputil.o \ ++ io/half.o io/normal.o io/elfilewrapper.o io/ziputil.o \ + keys.o knowledge.o langselwin.o lights.o list.o load_gl_extensions.o loginwin.o loading_win.o \ + main.o manufacture.o map.o mapwin.o memory.o \ + md5.o mines.o minimap.o misc.o missiles.o multiplayer.o \ diff --git a/games-rpg/eternal-lands/metadata.xml b/games-rpg/eternal-lands/metadata.xml new file mode 100644 index 000000000000..858d2d50857b --- /dev/null +++ b/games-rpg/eternal-lands/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>rich0@gentoo.org</email> + <name>Richard Freeman</name> +</maintainer> +<longdescription>Eternal Lands is a FREE MMORPG (massively multiplayer online + role playing game)</longdescription> +</pkgmetadata> diff --git a/games-rpg/freedink-data/Manifest b/games-rpg/freedink-data/Manifest new file mode 100644 index 000000000000..63ea754e6d6e --- /dev/null +++ b/games-rpg/freedink-data/Manifest @@ -0,0 +1 @@ +DIST freedink-data-1.08.20140901.tar.gz 51303165 SHA256 5797a6e3a8d407cc46080206a0f18265231d6cf912b2b3dfc4607cf79052c111 SHA512 cdaa50610ed7e365967f6a84f6d540295ccc85bf4d11b882b49c6b97abe2b375be9880afc1e8ea31cdf22a24365d09861b9f4d1d522cc1ae685f7a8b6b4cad82 WHIRLPOOL 6db5f0f0b14f19f66f3142f168e065aea1f19d19a83de6f1e198654fdc197e4a456b1e18b8858bf2d28c76e76ca685708a5800894c5c797c6dda080b8f7ca5fc diff --git a/games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild b/games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild new file mode 100644 index 000000000000..44a1d4298a09 --- /dev/null +++ b/games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit games + +DESCRIPTION="Freedink game data" +HOMEPAGE="http://www.freedink.org/" +SRC_URI="mirror://gnu/freedink/${P}.tar.gz" + +LICENSE="ZLIB + CC-BY-SA-3.0 + CC-BY-3.0 + FreeArt + GPL-2 + GPL-3 + WTFPL-2 + OAL-1.0.1 + public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +src_install() { + emake DESTDIR="${D}" DATADIR="${GAMES_DATADIR}" install + dodoc README.txt README-REPLACEMENTS.txt + prepgamesdirs +} diff --git a/games-rpg/freedink-data/metadata.xml b/games-rpg/freedink-data/metadata.xml new file mode 100644 index 000000000000..cad5a2aa1773 --- /dev/null +++ b/games-rpg/freedink-data/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/freedink/Manifest b/games-rpg/freedink/Manifest new file mode 100644 index 000000000000..7fb176ecbfde --- /dev/null +++ b/games-rpg/freedink/Manifest @@ -0,0 +1 @@ +DIST freedink-108.4.tar.gz 1897701 SHA256 82cfb2e019e78b6849395dc4750662b67087d14f406d004f6d9e39e96a0c8521 SHA512 1496b6a7826bf694a2919add22a8b4b08a4967d8a7fdebf2d599bd99c7a7ce67de6c2b11124423c7aa1f0feb2e7c03ce1cf00252070182936e7481791dafee61 WHIRLPOOL 487f82adc1c36631220f23c6ac6aebaaafb3788bfdfbbf8a4e30d0c77d2a1ff97a9c43d5017fa5d50bfc7c3c36042521f3f7e194c4faa77f836ad45cff845d75 diff --git a/games-rpg/freedink/freedink-108.4.ebuild b/games-rpg/freedink/freedink-108.4.ebuild new file mode 100644 index 000000000000..8d47573110d9 --- /dev/null +++ b/games-rpg/freedink/freedink-108.4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Dink Smallwood is an adventure/role-playing game, similar to Zelda (2D top view)" +HOMEPAGE="http://www.freedink.org/" +SRC_URI="mirror://gnu/freedink/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=" + >=media-libs/fontconfig-2.4 + >=media-libs/libsdl-1.2[X,sound,joystick,video] + >=media-libs/sdl-gfx-2.0 + >=media-libs/sdl-image-1.2 + >=media-libs/sdl-mixer-1.2[midi,vorbis,wav] + >=media-libs/sdl-ttf-2.0.9" +RDEPEND="${DEPEND} + ~games-rpg/freedink-data-1.08.20140901" +DEPEND="${DEPEND} + dev-libs/check + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + sed -i \ + -e 's#^datarootdir =.*$#datarootdir = /usr/share#' \ + share/Makefile.in || die +} + +src_configure() { + egamesconf \ + --disable-embedded-resources \ + --localedir="/usr/share/locale" +} + +src_install() { + default + dodoc TROUBLESHOOTING + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + einfo + elog "optional dependencies:" + elog " games-util/dfarc (dmod installer and frontend)" + einfo +} diff --git a/games-rpg/freedink/metadata.xml b/games-rpg/freedink/metadata.xml new file mode 100644 index 000000000000..cad5a2aa1773 --- /dev/null +++ b/games-rpg/freedink/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/freedroid/Manifest b/games-rpg/freedroid/Manifest new file mode 100644 index 000000000000..0d56e5a61233 --- /dev/null +++ b/games-rpg/freedroid/Manifest @@ -0,0 +1 @@ +DIST freedroid-1.0.2.tar.gz 4819173 SHA256 0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3 SHA512 cfafa4af86a2007fcf761b51e6c7dcc6dc40f4513057413901fede41b7a436b9c8cf7c3e5c29130e5410fab640ffbdc8100043a442555e862acffe9f33086be1 WHIRLPOOL fc44018e71586ca294796771e263b8f7064db0619b534f4cd8407b1e2c7ddbb8b510090e4fc62f940387efa721231423e5b4e8a3caf958de9a2ee176c4d13010 diff --git a/games-rpg/freedroid/freedroid-1.0.2.ebuild b/games-rpg/freedroid/freedroid-1.0.2.ebuild new file mode 100644 index 000000000000..dde856f82f4a --- /dev/null +++ b/games-rpg/freedroid/freedroid-1.0.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Freedroid - a Paradroid clone" +HOMEPAGE="http://freedroid.sourceforge.net/" +SRC_URI="mirror://sourceforge/freedroid/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[joystick,sound,video] + virtual/jpeg + sys-libs/zlib + media-libs/libpng:0 + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[mod,vorbis] + media-libs/libvorbis" + +src_install() { + default + find "${D}" -name "Makefile*" -exec rm -f '{}' + + rm -rf "${D}${GAMES_DATADIR}/${PN}/"{freedroid.6,mac-osx} || die + newicon graphics/paraicon.bmp ${PN}.bmp + make_desktop_entry freedroid Freedroid /usr/share/pixmaps/${PN}.bmp + prepgamesdirs +} diff --git a/games-rpg/freedroid/metadata.xml b/games-rpg/freedroid/metadata.xml new file mode 100644 index 000000000000..147897093d17 --- /dev/null +++ b/games-rpg/freedroid/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">freedroid</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/freedroidrpg/Manifest b/games-rpg/freedroidrpg/Manifest new file mode 100644 index 000000000000..d37f49a2a359 --- /dev/null +++ b/games-rpg/freedroidrpg/Manifest @@ -0,0 +1 @@ +DIST freedroidRPG-0.15.1.tar.gz 209427247 SHA256 3e0e0e901f05386f49b8dfa1a8b3582ea82347deb7fb8e94fc15bf8ad058ba08 SHA512 3e38753a040e507229b87235e449fc77db2457a4eb0129f8866a58e3863baa08304feb846828be95183a0b9e46f11761c706571ea68500203c953e1467e108a4 WHIRLPOOL 42f0d6e5ae48437ad0fb00d38966904601de80f2d7dbf6d93d40da5cf4897cc12fc82ec1b9ce500947ed4f1f583eb736fbfc2cdf7619f22999c0e28a007b0aac diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.ebuild b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.ebuild new file mode 100644 index 000000000000..0d8c99541907 --- /dev/null +++ b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils gnome2-utils python-any-r1 games + +DESCRIPTION="A modification of the classical Freedroid engine into an RPG" +HOMEPAGE="http://freedroid.sourceforge.net/" +SRC_URI="mirror://sourceforge/freedroid/freedroidRPG-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="opengl vorbis" + +RDEPEND="media-libs/libsdl[opengl?,video] + dev-lang/lua + virtual/jpeg + media-libs/libpng:0 + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis?] + >=media-libs/sdl-gfx-2.0.21 + vorbis? ( media-libs/libogg media-libs/libvorbis ) + x11-libs/libX11 + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS}" + +pkg_setup() { + python-any-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + # No need for executable game resources + find sound graphics -type f -execdir chmod -c a-x '{}' + +} + +src_configure() { + egamesconf \ + --disable-dependency-tracking \ + --disable-fastmath \ + $(use_enable opengl) \ + $(use_enable vorbis) +} + +src_install() { + emake DESTDIR="${D}" install || die + rm -f "${D}/${GAMES_BINDIR}/"{croppy,pngtoico,*glue*,explode*,make_atlas} + newicon -s 64 win32/w32icon2_64x64.png ${PN}.png + make_desktop_entry freedroidRPG "Freedroid RPG" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/freedroidrpg/metadata.xml b/games-rpg/freedroidrpg/metadata.xml new file mode 100644 index 000000000000..145798144713 --- /dev/null +++ b/games-rpg/freedroidrpg/metadata.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +Hello, and welcome to the Freedroid page. + +THE CLASSICAL FREEDROID: Freedroid is a clone of the classic game +"Paradroid" on Commodore 64 with some improvements and extensions to +the classic version. + +In this game, you control a robot, depicted by a small white ball with +a few numbers within an interstellar spaceship consisting of several +decks connected by elevators. + +The aim of the game is to destroy all enemy robots, depicted by small +black balls with a few numbers, by either shooting them or seizing +control over them by creating connections in a short subgame of +electric circuits. + +Development of this game is now complete. The final version came out +in august 2003 and runs on Linux, Mac OSX, Sharp Zaurus and even that +strange Windows wannabe of an operating system. Thanks to all who +helped. +Minor fixes and maintainance will of course still continue though... + +FREEDROID RPG: The Freedroid RPG is an extension/modification of the +classical freedroid engine into an RPG. The main differences to the +classical version are as follows: +* The Tux is the main character of the rpg. He is not displayed as a + ball like in Freedroid but rather as an animated character, while + other droids and humans in the game are still represented as the balls + with some number or code in them. +* Dialogs and chatting with friendly droids and humans: + Multiple-choice menus and voice samples (with subtitles for those + without sound). +* Melee weapons, armour and other items to be equipped have been + added. +* An automap feature was added. +* Saving and loading of games. +* A shop to trade things. +* Controls are different: Mouse can be used to do everything. + Joystick is not supported for moving around any more. +* The archive size (including sound samples) is about 10 times as big + as for the classical version. I'd like to appologize to all 56K modem + owners at this point. +</longdescription> + <upstream> + <remote-id type="sourceforge">freedroid</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/grimrock/Manifest b/games-rpg/grimrock/Manifest new file mode 100644 index 000000000000..cbdc76e9b94f --- /dev/null +++ b/games-rpg/grimrock/Manifest @@ -0,0 +1 @@ +DIST LegendOfGrimrock-Linux-2013-05-15.sh 316846010 SHA256 005066be6ce12ba342e499369070113c6b66a9bea03c6ecb1e5fd0758eb0c39d SHA512 e4907ddfba9a6923f81f188d1452a1bf37e4bbaab4fb9b4befabe167b5159d35acd6c1939b98dd66e3a8f96775d12703206432f60a86c7b4d070acc3a9392f9c WHIRLPOOL a7a5c70c6622737f9904962b248578261137b0c098e7175e309d3470b798b7297dc8aeb42e36b00f809c20f5f105fdfeb75edecca33e94f0d06650f564f02487 diff --git a/games-rpg/grimrock/grimrock-20130515.ebuild b/games-rpg/grimrock/grimrock-20130515.ebuild new file mode 100644 index 000000000000..595eaef37489 --- /dev/null +++ b/games-rpg/grimrock/grimrock-20130515.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib gnome2-utils unpacker games + +TIMESTAMP="${PV:0:4}-${PV:4:2}-${PV:6:2}" +MY_PN="Grimrock" +DESCRIPTION="Legend of Grimrock: The Ultimate dungeon crawling RPG + modding engine" +HOMEPAGE="http://www.grimrock.net/" +SRC_URI="LegendOfGrimrock-Linux-${TIMESTAMP}.sh" + +SLOT="0" +LICENSE="all-rights-reserved" +KEYWORDS="-* amd64 x86" +IUSE="bundled-libs" +RESTRICT="fetch bindist splitdebug" + +QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin.* + ${GAMES_PREFIX_OPT}/${PN}/lib.*" + +RDEPEND=" + app-arch/bzip2 + media-libs/freetype:2 + media-libs/ilmbase + media-libs/lcms + =media-libs/libpng-1.6* + media-libs/libraw + media-libs/jasper + media-libs/openexr + media-libs/openjpeg:0 + media-libs/tiff + sys-libs/zlib + virtual/jpeg:62 + virtual/opengl + x11-libs/libX11 + x11-libs/libXau + x11-libs/libxcb + x11-libs/libXdmcp + x11-libs/libXext + !bundled-libs? ( + media-libs/freeimage[png] + media-libs/libogg + media-libs/libvorbis + media-libs/openal + sys-libs/zlib[minizip] + )" +DEPEND="app-arch/xz-utils" + +S=${WORKDIR} + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_unpack() { + use amd64 && myarch=x86_64 || myarch=x86 + + local archivelist=( + subarch + instarchive_all + instarchive_linux_${myarch} + deps/SDL2/SDL2_files_linux_${myarch} + deps/FreeImage/FreeImage_files_linux_${myarch} + deps/libogg/libogg_files_linux_${myarch} + deps/minizip/minizip_files_linux_${myarch} + deps/openal/openal_files_linux_${myarch} + deps/vorbis/vorbis_files_linux_${myarch} + ) + + unpack_makeself + + local i + for i in $(if use bundled-libs ; then echo ${archivelist[@]} ; else echo ${archivelist[@]:0:4} ; fi) ; do + mv "${i}" "${i}.tar.xz" || die + unpack ./"${i}.tar.xz" + done +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + insinto "${dir}" + doins ${PN}.{dat,png} + + exeinto "${dir}" + doexe "${MY_PN}.bin.${myarch}" + + exeinto "${dir}"/lib + doexe $(get_libdir)/libSDL2-2.0.so.0 + use bundled-libs && { + doexe $(get_libdir)/lib{freeimage.so.3,minizip.so.1,ogg.so.0,openal.so.1,vorbisfile.so.3,vorbis.so.0} + } + + games_make_wrapper "${PN}" "./${MY_PN}.bin.${myarch}" "${dir}" "${dir}"/lib + doicon -s 256 ${PN}.png + newicon -s 64 ${MY_PN}.png ${PN}.png + make_desktop_entry "${PN}" "Legend of ${MY_PN}" + + dodoc README.linux + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + + elog "If you are using opensource drivers you should consider installing:" + elog " media-libs/libtxc_dxtn" + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/grimrock/metadata.xml b/games-rpg/grimrock/metadata.xml new file mode 100644 index 000000000000..c5c7aae21ba7 --- /dev/null +++ b/games-rpg/grimrock/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name='bundled-libs'>Use bundled libraries.</flag> + </use> +</pkgmetadata> + diff --git a/games-rpg/gwiz/Manifest b/games-rpg/gwiz/Manifest new file mode 100644 index 000000000000..5da8ff0543d2 --- /dev/null +++ b/games-rpg/gwiz/Manifest @@ -0,0 +1 @@ +DIST gwiz-0.8.tar.bz2 1141667 SHA256 8b19a5523460068a0e3ed4d9b7ec51de0dfb28418d75ccb00afcd4e13eae4f08 SHA512 3c18cc7e905dd87eab7dbf332b985600bbcc8c2992fbc79d992fb0f00c3095c502f416166f0e3320f18b9e011c26675c42e79375f44225b61aba415509837f20 WHIRLPOOL 2831b664a7b2083a477e80873f31fc6b3d07c60f6a9b1ec27068b32774c69fac03c0e5bcaf2bbf02bd03e8fcfa1c401d5036bbc43309dd4d7c8e454c57af66dd diff --git a/games-rpg/gwiz/files/gwiz-0.8-buffer.patch b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch new file mode 100644 index 000000000000..7c9eb02cf503 --- /dev/null +++ b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch @@ -0,0 +1,23 @@ +--- src/equip.c.orig ++++ src/equip.c +@@ -120,7 +120,7 @@ + return (i); + + /* if we get this far, there are no equippable items before the current */ +- for (i = 8; i > offset; i--) ++ for (i = 7; i > offset; i--) + if (pawn->item[i].usage & USAGE_EQUIPPABLE) + return (i); + return (-1); +--- src/shop.c.orig ++++ src/shop.c +@@ -290,8 +290,7 @@ + + SDL_BlitSurface (name, NULL, area, &dest); + +- snprintf (price, sizeof(char)*8, "%d", pawn->item[i].sellfor); +- price[9] = '\0'; ++ snprintf (price, sizeof(price), "%d", pawn->item[i].sellfor); + profit = GwizRenderText (price); + dest.x = area->w - profit->w; + dest.w = profit->w; diff --git a/games-rpg/gwiz/gwiz-0.8.ebuild b/games-rpg/gwiz/gwiz-0.8.ebuild new file mode 100644 index 000000000000..bcdc52ddc4e6 --- /dev/null +++ b/games-rpg/gwiz/gwiz-0.8.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="clone of old-school Wizardry(tm) games by SirTech" +HOMEPAGE="http://icculus.org/gwiz/" +SRC_URI="http://icculus.org/gwiz/${P}.tar.bz2" + +KEYWORDS="~alpha amd64 ppc x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +DEPEND=">=media-libs/libsdl-1.2.3[joystick,video] + >=media-libs/sdl-image-1.2.1-r1[png] + >=media-libs/sdl-ttf-2.0.4" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${P}-buffer.patch +} + +src_install() { + DOCS="AUTHORS ChangeLog README doc/HOWTO-PLAY" \ + default + newicon pixmaps/gwiz_icon.xpm ${PN}.xpm + make_desktop_entry gwiz Gwiz +} diff --git a/games-rpg/gwiz/metadata.xml b/games-rpg/gwiz/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/gwiz/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/kqlives/Manifest b/games-rpg/kqlives/Manifest new file mode 100644 index 000000000000..bedfa4460fcf --- /dev/null +++ b/games-rpg/kqlives/Manifest @@ -0,0 +1 @@ +DIST kq-0.99.tar.gz 3642143 SHA256 a8742d0a8781bd3626aef17ae382525b0abb4ab194004c9acf9f136b7be2b6fd SHA512 fa343561679baf2201fb7107153ca07b715c1e56c9a4cb17db0f04759dd859436e8daa6a364d62ad57d138dbb5d8c680e35cafecea1a8f7f217ec190bfdd7918 WHIRLPOOL d69cab79f537928ee159e4bb50e87a54fe614996305e98f755d7deda40b9ea74ff4984e63838a0b52e1af0ab2b885481907e11f0e46b760332931136ff6e994c diff --git a/games-rpg/kqlives/files/kqlives.xpm b/games-rpg/kqlives/files/kqlives.xpm new file mode 100644 index 000000000000..58baadb615ed --- /dev/null +++ b/games-rpg/kqlives/files/kqlives.xpm @@ -0,0 +1,48 @@ +/* XPM */ +static char *kq__[] = { +/* columns rows colors chars-per-pixel */ +"32 32 10 1", +" c #000000", +". c #800000", +"X c #808000", +"o c #000080", +"O c #0000FF", +"+ c #008080", +"@ c #00FFFF", +"# c #808080", +"$ c #C0C0C0", +"% c None", +/* pixels */ +"%%$$%%%%%%%%%%%%%%%%%%%%%%%%%%%%", +"%%$$$%%%%%%%%%%%%%%%%%%%%%%%%$#%", +"%%%#$$$%%%%%%%%%%%%%%%%%%%%$$#$%", +"%%%%$$$#$%%%%%%%%%%%%%%%%$$$$%%%", +"%%%%%#$$$#$%%%%%%%%%%%%$$$$#$%%%", +"%%%%%%$$$$#$$%%%%%%%%%$$$$$%%%%%", +"%%%%%%%##$$##$$$$$$%$##$$#$%%%%%", +"%%%%%%%%$####$$$$$$######%%%%%%%", +"%%%%%%%%%##$%$$####$$###$%%%%%%%", +"%%%%%%%%%%$%$oOOOOO##$#%%%%%%%%%", +"%%%%%%%%%#$##OO+++OOo$#%%%%%%%%%", +"%%%%%%%%%%%oo++++++OO$$%%%%%%%%%", +"%%%%%%%%%$$OO++@@++OO$$%%%%%%%%%", +"%%%%%%%%%$$OO++@@++OO%$%%%%%%%%%", +"%%%%%%%%%#$ooO+++++Oo%%%%%%%%%%%", +"%%%%%%%%%##$#OOOOOOo#%$%%%%%%%%%", +"%%%%%%%%%##$$##ooo#%%#$%%%%%%%%%", +"%%%%%%%$$####$$$$$%%$$$$$%%%%%%%", +"%%%%%%%##$%%%###$$$#$$###%%%%%%%", +"%%%%%$#$$%%%%##$#$$#$%%$##$%%%%%", +"%%%%%$$%%%%%%###$###$%%%%##%%%%%", +"%%%%%%%%%%%%%##$$$##$%%%%%%%%%%%", +"%%%%%%%%%%%%%##$$$$ #%%%%%%%%%%%", +"%%%%%%%%%%%%%##$$$$ #%%%%%%%%%%%", +"%%%%%%%%%%%%%##$$$# #%%%%%%%%%%%", +"%%%%%%%%%%%%%$#XXXX$%%%%%%%%%%%%", +"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%", +"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%", +"%%%%%%%%%%%%%%$.XXX%%%%%%%%%%%%%", +"%%%%%%%%%%%%%%$.XXX%%%%%%%%%%%%%", +"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%", +"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%" +}; diff --git a/games-rpg/kqlives/kqlives-0.99.ebuild b/games-rpg/kqlives/kqlives-0.99.ebuild new file mode 100644 index 000000000000..18a3f40b419a --- /dev/null +++ b/games-rpg/kqlives/kqlives-0.99.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P=${P/lives} + +DESCRIPTION="A console-style role playing game" +HOMEPAGE="http://kqlives.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cheats nls" + +RDEPEND=">=x11-libs/gtk+-2.8:2 + >=gnome-base/libglade-2.4 + media-libs/allegro:0 + media-libs/aldumb + dev-lang/lua + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${MY_P} + +src_configure() { + egamesconf \ + $(use_enable nls) \ + $(use_enable cheats) +} + +src_install() { + default + + local x + for x in diff draw draw2 dump; do + mv -vf "${D}${GAMES_BINDIR}"/map${x} "${D}${GAMES_BINDIR}"/kq-map${x} + done + + doicon "${FILESDIR}"/${PN}.xpm + make_desktop_entry kq KqLives ${PN} + + prepgamesdirs +} diff --git a/games-rpg/kqlives/metadata.xml b/games-rpg/kqlives/metadata.xml new file mode 100644 index 000000000000..b512c0089710 --- /dev/null +++ b/games-rpg/kqlives/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="cheats">Enable cheating mode</flag> + </use> + <upstream> + <remote-id type="sourceforge">kqlives</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/lure/Manifest b/games-rpg/lure/Manifest new file mode 100644 index 000000000000..fbffafa93a27 --- /dev/null +++ b/games-rpg/lure/Manifest @@ -0,0 +1,6 @@ +DIST lure-0.13.1.dat 637824 SHA256 ea047bca769ca8515ec70727ba45a1c494ed0bea5943023d330ab55f592fcd10 SHA512 2e9c3f049a0d77d94ec1f6b231cf2ee04df148115dd2daa8bc8faf717d509843949964bbed990b804bde5788ab20460ce109f166a936ed176797a093b8973f73 WHIRLPOOL 1ff6e966a2f7ecf4f719de5df7a0122f2374de7ebd33fe16ecf4faa7304b0d35217f2b9d80ccbe4bda56c441e0e8fea48d306172580e02de0b07cbcce254b53d +DIST lure-de-1.1.zip 3717138 SHA256 5e83a6a8646629c55cfd84932b10231af2ff16d96e815ed0ce86564a0b3c186b +DIST lure-en-1.1.zip 5678861 SHA256 f3178245a1483da1168c3a11e70b65d33c389f1f5df63d4f3a356886c1890108 SHA512 9c178b0df178cf70c3d912300911972589e3ecd44ad478393d423f646da79a6084dc76496dfef740f961ff0d6991d7e5cfb6d9c39e2cf1920c9276386403e281 WHIRLPOOL 369317b34771049b0a913d98302bb047fdc44fee3bdba194250bada15c898b45367d4f5fa0b89cafcf9a9f806432bda262957ed0d204286528ac3f107b4e8ff8 +DIST lure-es-1.1.zip 2176970 SHA256 9306b9faad8c0a8189d3cbbfead511fc4d993655cc845cb8e15369baed2f7bb7 +DIST lure-fr-1.1.zip 3583274 SHA256 2983149f9912a72761b1225e834a41d19aa565689b9027061a0220779694a1f8 +DIST lure-it-1.1.zip 4718011 SHA256 524270b2fb3f1caef621acf4379e3dbb69aed3c8ec1a98b38e94b290d3b046cf SHA512 1af90c8867f6426983fd3eb22651f0f2ab425b1a74110bda0277339ad82c7cffcc9ba9d9790909f5120f8a4d5c2cd82ed1ef9555511fc4c4064dd1563ec75abf WHIRLPOOL 7939a1ced2e98afef93a2ae8ca6cdc02eb1ed56bc259e7b9f7d4b2a6f0338fb6cfba2be7c993de6a5fc552b7ae54df46516b8a1e24f4c4cc05062aea586858db diff --git a/games-rpg/lure/lure-1.1.ebuild b/games-rpg/lure/lure-1.1.ebuild new file mode 100644 index 000000000000..1ccdc406214b --- /dev/null +++ b/games-rpg/lure/lure-1.1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DAT_PV=0.13.1 +DESCRIPTION="Lure of the Temptress" +HOMEPAGE="http://www.revolution.co.uk/_display.php?id=10" +SRC_URI=" + http://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-0-13-1/dists/engine-data/lure.dat -> lure-${DAT_PV}.dat + !linguas_en? ( !linguas_es? ( !linguas_fr? ( !linguas_de? ( !linguas_it? + ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) ) ) ) ) + linguas_en? ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) + linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-${PV}.zip ) + linguas_fr? ( mirror://sourceforge/scummvm/${PN}-fr-${PV}.zip ) + linguas_de? ( mirror://sourceforge/scummvm/${PN}-de-${PV}.zip ) + linguas_it? ( mirror://sourceforge/scummvm/${PN}-it-${PV}.zip )" + +LICENSE="lure" +SLOT="0" +KEYWORDS="amd64 x86" +LANGS_IUSE="linguas_en linguas_es linguas_de linguas_fr linguas_it" +IUSE=${LANGS_IUSE} +RESTRICT="mirror" + +RDEPEND=">=games-engines/scummvm-0.13.1" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +any_linguas() { + use linguas_en || use linguas_es || use linguas_de || use linguas_fr || use linguas_it +} + +src_unpack() { + local lang + + if any_linguas ; then + for lang in ${LANGS_IUSE} + do + use ${lang} && unpack ${PN}-${lang/linguas_}-${PV}.zip + done + mv lure lure-en 2> /dev/null + else + unpack ${PN}-en-${PV}.zip + fi +} + +src_prepare() { + local lang f + + find . \ + \( -iname "*exe" \ + -o -iname "*ega" \ + -o -iname LICENSE.txt \) \ + -exec rm -f '{}' + + mkdir docs + if any_linguas ; then + for lang in ${LANGS_IUSE} + do + mkdir docs/${lang} + find lure-${lang/linguas_} \ + \( -iname "*pdf" \ + -o -iname README \ + -o -iname "*txt" \) \ + -exec mv '{}' docs/${lang} \; 2> /dev/null + done + else + find lure \ + \( -iname "*pdf" \ + -o -iname README \ + -o -iname "*txt" \) \ + -exec mv '{}' docs \; 2> /dev/null + fi + for f in $(find docs -type f) + do + mv ${f} ${f%.*}.$(echo ${f#*.} | tr '[[:upper:]]' '[[:lower:]]') 2> /dev/null + done +} + +src_install() { + local lang + + if any_linguas ; then + for lang in ${LANGS_IUSE} + do + if use ${lang} ; then + lang=${lang/linguas_} + insinto "${GAMES_DATADIR}"/${PN}-${lang} + newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat + doins -r ${PN}-${lang}/* + games_make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"${GAMES_DATADIR}/${PN}-${lang}\" lure" . + make_desktop_entry ${PN}-${lang} "Lure of the Temptress (${lang})" ${PN} + docinto linguas_${lang} + dodoc docs/linguas_${lang}/* + fi + done + else + insinto "${GAMES_DATADIR}"/${PN} + newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat + doins -r ${PN}/* + games_make_wrapper ${PN} "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" lure" . + make_desktop_entry ${PN} "Lure of the Temptress" + fi + prepgamesdirs +} diff --git a/games-rpg/lure/metadata.xml b/games-rpg/lure/metadata.xml new file mode 100644 index 000000000000..f325c8eea004 --- /dev/null +++ b/games-rpg/lure/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/mana/Manifest b/games-rpg/mana/Manifest new file mode 100644 index 000000000000..d4932cf91949 --- /dev/null +++ b/games-rpg/mana/Manifest @@ -0,0 +1 @@ +DIST mana-0.6.1.tar.gz 4651447 SHA256 b945cd3e32489dfa5b8e82d571cc11e0e5308576307fca4d8dd7cf3cf6ed8c55 SHA512 d3cd66409f6eca274ee24c9d6f6355d2406b3f29fb6efdce82ef99dcc9a6945ff6dca39d3f4cbe031b8684d8e46c8d5c89937ed2e9eebfb2831f2ed8d02a6919 WHIRLPOOL 5b812dc7a2ff63ab3ace820f13fdea0df44685e9bfa0ed4a6aaefaea8c3889cda8b79678369a70e1f1fe855f0de973455cb37b1bbea7fc589a8741f3ae19d2bc diff --git a/games-rpg/mana/files/mana-0.6.1-Fix-missing-virtual-destructors-and-guichan-use.patch b/games-rpg/mana/files/mana-0.6.1-Fix-missing-virtual-destructors-and-guichan-use.patch new file mode 100644 index 000000000000..6cd99bf4262c --- /dev/null +++ b/games-rpg/mana/files/mana-0.6.1-Fix-missing-virtual-destructors-and-guichan-use.patch @@ -0,0 +1,53 @@ +From b5dc2de418d6d06cce31d786862c5f548171a097 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 28 Jul 2012 15:52:35 +0200 +Subject: [PATCH 1/3] Fix missing virtual destructors and guichan use. + +--- + src/gui/widgets/tabbedarea.h | 3 ++- + src/gui/widgets/textfield.h | 1 + + src/resources/itemdb.h | 2 +- + 3 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h +index 45b092a..b43078a 100644 +--- a/src/gui/widgets/tabbedarea.h ++++ b/src/gui/widgets/tabbedarea.h +@@ -98,7 +98,8 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener + int getContainerHeight() const + { return mWidgetContainer->getHeight(); } + +- using gcn::TabbedArea::setSelectedTab; ++ void setSelectedTab(unsigned int index) ++ { gcn::TabbedArea::setSelectedTab(index); } + + void setSelectedTab(gcn::Tab *tab); + +diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h +index 2865403..94cada4 100644 +--- a/src/gui/widgets/textfield.h ++++ b/src/gui/widgets/textfield.h +@@ -63,6 +63,7 @@ struct TextHistory { + + class AutoCompleteLister { + public: ++ virtual ~AutoCompleteLister() {} + virtual void getAutoCompleteList(std::vector<std::string>&) const {} + }; + +diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h +index 1531108..d7859ad 100644 +--- a/src/resources/itemdb.h ++++ b/src/resources/itemdb.h +@@ -78,7 +78,7 @@ class ItemDB + mLoaded(false) + {} + +- ~ItemDB() ++ virtual ~ItemDB() + {} + + /** +-- +1.7.11.1 + diff --git a/games-rpg/mana/files/mana-0.6.1-Import-cstdint-for-int64_t.patch b/games-rpg/mana/files/mana-0.6.1-Import-cstdint-for-int64_t.patch new file mode 100644 index 000000000000..b7ab39d05cdc --- /dev/null +++ b/games-rpg/mana/files/mana-0.6.1-Import-cstdint-for-int64_t.patch @@ -0,0 +1,24 @@ +From dfd304e93bb9010ef8226ee4d026d45c9bf9d2f5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 28 Jul 2012 15:54:57 +0200 +Subject: [PATCH 3/3] Import cstdint for int64_t. + +--- + src/net/download.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/net/download.h b/src/net/download.h +index c0bdf20..b9ad17e 100644 +--- a/src/net/download.h ++++ b/src/net/download.h +@@ -18,6 +18,7 @@ + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + ++#include <cstdint> + #include <cstdio> + #include <string> + +-- +1.7.11.1 + diff --git a/games-rpg/mana/files/mana-0.6.1-Trick-gcc-into-importing-C99-stdint.h-when-C-11-is-n.patch b/games-rpg/mana/files/mana-0.6.1-Trick-gcc-into-importing-C99-stdint.h-when-C-11-is-n.patch new file mode 100644 index 000000000000..fa752383c38a --- /dev/null +++ b/games-rpg/mana/files/mana-0.6.1-Trick-gcc-into-importing-C99-stdint.h-when-C-11-is-n.patch @@ -0,0 +1,26 @@ +From bb92108fed0242f1a3509384faeb2234d007c05e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 28 Jul 2012 15:54:10 +0200 +Subject: [PATCH 2/3] Trick gcc into importing C99 stdint.h when C++11 is not + used. + +--- + src/cpp0x_compat/cstdint | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/cpp0x_compat/cstdint b/src/cpp0x_compat/cstdint +index d8d71d9..d430649 100644 +--- a/src/cpp0x_compat/cstdint ++++ b/src/cpp0x_compat/cstdint +@@ -5,3 +5,8 @@ + * compiles Mana fine so it apparently understands types like uint16_t by + * default. + */ ++ ++extern "C" ++{ ++#include <stdint.h> ++}; +-- +1.7.11.1 + diff --git a/games-rpg/mana/files/mana-0.6.1-gentoo.patch b/games-rpg/mana/files/mana-0.6.1-gentoo.patch new file mode 100644 index 000000000000..561336e421c5 --- /dev/null +++ b/games-rpg/mana/files/mana-0.6.1-gentoo.patch @@ -0,0 +1,71 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat Jun 30 20:48:23 UTC 2012 +Subject: build system + +use system fonts + +make datadir and bindir paths modifiable +https://github.com/mana/mana/commit/02a7b2aa739cd0cf5a855f0a78b91d9fd5ad4385 +don't overwrite system/environment CXXFLAGS +https://github.com/mana/mana/commit/2305ca095bee6b32c930f71b99d4c1205ceb561b +add option to use system enet headers +https://github.com/mana/mana/commit/d754a64e3839b3888d489046546195792e4ecc34 + +--- data/CMakeLists.txt.old 2011-08-02 12:15:38.520030381 +0200 ++++ data/CMakeLists.txt 2011-08-02 12:15:44.971029615 +0200 +@@ -1,6 +1,5 @@ + SET(DATA_DIR ${PKG_DATADIR}/data) + +-ADD_SUBDIRECTORY(fonts) + ADD_SUBDIRECTORY(graphics) + ADD_SUBDIRECTORY(help) + ADD_SUBDIRECTORY(icons) +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -42,9 +42,9 @@ + IF (NOT OSX AND NOT BEOS) + OPTION(USE_X11 "Use X11 Clipboard functionality" ON) + ENDIF () +- SET(PKG_DATADIR ${CMAKE_INSTALL_PREFIX}/share/mana) ++ SET(PKG_DATADIR ${CMAKE_INSTALL_PREFIX}/share/mana CACHE PATH "Mana datadir") + SET(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale) +- SET(PKG_BINDIR ${CMAKE_INSTALL_PREFIX}/bin) ++ SET(PKG_BINDIR ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "Mana bindir") + ENDIF (WIN32) + + ADD_SUBDIRECTORY(data) +--- src/CMakeLists.txt ++++ src/CMakeLists.txt +@@ -12,7 +12,7 @@ + + IF (CMAKE_COMPILER_IS_GNUCXX) + # Help getting compilation warnings +- SET(CMAKE_CXX_FLAGS "-Wall") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") + IF (WIN32) + # This includes enough debug information to get something useful + # from Dr. Mingw while keeping binary size down. Almost useless +--- libs/enet/CMakeLists.txt ++++ libs/enet/CMakeLists.txt +@@ -1,3 +1,7 @@ ++INCLUDE(FindPkgConfig) ++ ++OPTION(WITH_BUNDLEDHEADERS "Use bundled enet headers" ON) ++ + INCLUDE(CheckFunctionExists) + CHECK_FUNCTION_EXISTS(gethostbyaddr_r HAS_GETHOSTBYNAME_R) + IF(HAS_GETHOSTBYNAME_R EQUAL 1) +@@ -49,7 +53,12 @@ + win32.c + ) + +-INCLUDE_DIRECTORIES("include") ++IF (WITH_BUNDLEDHEADERS) ++ INCLUDE_DIRECTORIES("include") ++ELSE (WITH_BUNDLEDHEADERS) ++ PKG_CHECK_MODULES(ENET REQUIRED libenet) ++ INCLUDE_DIRECTORIES("${ENET_INCLUDEDIR}") ++ENDIF() + + ADD_LIBRARY(enet STATIC ${SRCS}) + IF (BEOS) diff --git a/games-rpg/mana/mana-0.6.1.ebuild b/games-rpg/mana/mana-0.6.1.ebuild new file mode 100644 index 000000000000..35833ae71d7b --- /dev/null +++ b/games-rpg/mana/mana-0.6.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils cmake-utils games + +DESCRIPTION="A fully free and open source MMORPG game client" +HOMEPAGE="http://manasource.org/" +SRC_URI="http://manasource.org/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="nls opengl" + +RDEPEND="!=games-rpg/tmw-0.5.2 + >=dev-games/physfs-1.0.0 + dev-libs/libxml2 + media-libs/sdl-mixer[vorbis] + media-libs/sdl-image[png] + media-libs/sdl-net + media-libs/sdl-ttf + net-misc/curl + sys-libs/zlib + media-libs/libpng:0 + media-fonts/dejavu + >=dev-games/guichan-0.8.1[sdl] + media-libs/libsdl[X,opengl?,video] + media-libs/sdl-gfx + x11-libs/libX11 + nls? ( virtual/libintl ) + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +DOCS=( AUTHORS ChangeLog NEWS README ) +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-Fix-missing-virtual-destructors-and-guichan-use.patch + "${FILESDIR}"/${P}-Trick-gcc-into-importing-C99-stdint.h-when-C-11-is-n.patch + "${FILESDIR}"/${P}-Import-cstdint-for-int64_t.patch + ) + +src_prepare() { + epatch ${PATCHES[@]} + epatch_user + + if [[ ${LINGUAS+set} ]]; then + for lang in $(grep -v ^# po/LINGUAS); do + has $lang $LINGUAS || sed -i "s:^${lang}:#${lang}:" po/LINGUAS + done + fi +} + +src_compile() { + cmake-utils_src_compile +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_with opengl) + $(cmake-utils_use_enable nls) + -DPKG_DATADIR="${GAMES_DATADIR}/${PN}" + -DPKG_BINDIR="${GAMES_BINDIR}" + -DWITH_BUNDLEDHEADERS=OFF + -DENABLE_CPP0X=OFF + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-mono.ttf + insinto "${GAMES_DATADIR}"/${PN}/data + prepgamesdirs +} diff --git a/games-rpg/mana/metadata.xml b/games-rpg/mana/metadata.xml new file mode 100644 index 000000000000..f533fcb35a13 --- /dev/null +++ b/games-rpg/mana/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <changelog>http://bugs.manasource.org/changelog_page.php</changelog> + <doc lang="en">http://doc.manasource.org/</doc> + <bugs-to>http://bugs.manasource.org/my_view_page.php</bugs-to> + </upstream> +</pkgmetadata> + diff --git a/games-rpg/manaplus/Manifest b/games-rpg/manaplus/Manifest new file mode 100644 index 000000000000..67a375185cbf --- /dev/null +++ b/games-rpg/manaplus/Manifest @@ -0,0 +1,3 @@ +DIST manaplus-1.3.9.29.tar.xz 7206052 SHA256 adf3bbd3761086d66d1d5cf22369dfadcf5839f382c564bd7d6337ad1e3933c3 SHA512 4ae13254b9ee5d06fc8e2f287fa3cde5076a55bcac0f57398acffc70a5d0b3820d712771def6b8f8ce1ef8f48d1ad8ffc222c8821ec43920aff071a24c4a3a6e WHIRLPOOL db33166b184f9ae018a675b6a3d76b8e296530e02550b9dd6803b3249d8b454a1475a5f8020d976ef3153a68532b86f408f5f3af2ca0f9ea34386db8586abb7c +DIST manaplus-1.5.6.20.tar.xz 9376348 SHA256 cee7ce82c730c3e2254bc335023eb5531a3bcb4434a926f8685e16a2651f5b7e SHA512 bec1a2f9e0c034f234ce66836454df7296ce366a55d635713f4ba6103b4ab12d5a0dfd5d00b6b67a935499226e50ed1d1750f37ac70f06017d047015ba3a3627 WHIRLPOOL 728621e395fdb6ba4491e35d25897346cd70676a459c729cb56d258aeb6b413e144e57f5f306a7084511f5c0cbe3425ac25b921f3c5367d7db3696e43e869365 +DIST manaplus-1.5.7.18.tar.xz 9374420 SHA256 e59dfc714992308fb9576074d76858fe5375941e7b2b05118cc7599a2695f574 SHA512 aa6e9e0b8e2be81213d995754d9b4b653bf4efb3a2082234c69dd272060b9a9d2de593b4b1281fad80ac9d6b5fa069785ea0b78b9c96215e96984a30bc2cd1d8 WHIRLPOOL 3a1301a594cd46d664ecb7d59e32c4f6977d73ed20814a5285ddb676caf5a20d95a71c3b11b2b4c68a3034b4650c88d83457b92a869e7e0f8fb568efed3a0707 diff --git a/games-rpg/manaplus/manaplus-1.3.9.29.ebuild b/games-rpg/manaplus/manaplus-1.3.9.29.ebuild new file mode 100644 index 000000000000..b875c24cb19c --- /dev/null +++ b/games-rpg/manaplus/manaplus-1.3.9.29.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# REMINDER: check sdl2 support on version bump + +EAPI=5 + +inherit games + +DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World" +HOMEPAGE="http://manaplus.evolonline.org" +SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/manaplus-${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls opengl" + +RDEPEND=" + >=dev-games/guichan-0.8.1[sdl] + >=dev-games/physfs-1.0.0 + dev-libs/libxml2 + media-fonts/dejavu + media-libs/libpng:0 + media-libs/libsdl[X,opengl?,video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + net-misc/curl + sys-libs/zlib + x11-libs/libX11 + x11-misc/xdg-utils + x11-apps/xmessage + x11-misc/xsel + nls? ( virtual/libintl ) + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e '/^SUBDIRS/s/fonts//' \ + data/Makefile.in || die + + rm -r src/guichan || die +} + +src_configure() { + egamesconf \ + --without-internalguichan \ + --localedir=/usr/share/locale \ + --disable-manaserv \ + --disable-eathena \ + $(use_with opengl) \ + $(use_enable nls) \ + --prefix="/usr" \ + --bindir="${GAMES_BINDIR}" +} + +src_install() { + default + + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-mono.ttf + + prepgamesdirs +} diff --git a/games-rpg/manaplus/manaplus-1.5.6.20.ebuild b/games-rpg/manaplus/manaplus-1.5.6.20.ebuild new file mode 100644 index 000000000000..6ed88b420044 --- /dev/null +++ b/games-rpg/manaplus/manaplus-1.5.6.20.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World" +HOMEPAGE="http://manaplus.evolonline.org" +SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/manaplus-${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls opengl" + +RDEPEND=" + >=dev-games/physfs-1.0.0 + dev-libs/libxml2 + media-libs/libpng:0= + media-libs/libsdl2[X,opengl?,video] + media-libs/sdl2-gfx + media-libs/sdl2-image[png] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-net + media-libs/sdl2-ttf + net-misc/curl + sys-libs/zlib + x11-libs/libX11 + x11-misc/xdg-utils + x11-apps/xmessage + media-fonts/dejavu + media-fonts/wqy-microhei + media-fonts/liberation-fonts + media-fonts/mplus-outline-fonts + nls? ( virtual/libintl ) + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e '/^SUBDIRS/s/fonts//' \ + data/Makefile.in || die +} + +src_configure() { + CONFIG_SHELL=/bin/bash \ + egamesconf \ + --with-sdl2 \ + --without-internalsdlgfx \ + --localedir=/usr/share/locale \ + --prefix="/usr" \ + --bindir="${GAMES_BINDIR}" \ + $(use_with opengl) \ + $(use_enable nls) +} + +src_install() { + default + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusansmono-bold.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusansmono.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsans-bold.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsansmono-bold.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsansmono.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsans.ttf + dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${GAMES_DATADIR}"/${PN}/data/fonts/wqy-microhei.ttf + dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/mplus-1p-bold.ttf + dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/mplus-1p-regular.ttf + + prepgamesdirs +} diff --git a/games-rpg/manaplus/manaplus-1.5.7.18.ebuild b/games-rpg/manaplus/manaplus-1.5.7.18.ebuild new file mode 100644 index 000000000000..f2ed73b4c199 --- /dev/null +++ b/games-rpg/manaplus/manaplus-1.5.7.18.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World" +HOMEPAGE="http://manaplus.evolonline.org" +SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/manaplus-${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls opengl" + +RDEPEND=" + >=dev-games/physfs-1.0.0 + dev-libs/libxml2 + media-libs/libpng:0= + media-libs/libsdl2[X,opengl?,video] + media-libs/sdl2-gfx + media-libs/sdl2-image[png] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-net + media-libs/sdl2-ttf + net-misc/curl + sys-libs/zlib + x11-libs/libX11 + x11-misc/xdg-utils + x11-apps/xmessage + media-fonts/dejavu + media-fonts/wqy-microhei + media-fonts/liberation-fonts + media-fonts/mplus-outline-fonts + nls? ( virtual/libintl ) + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e '/^SUBDIRS/s/fonts//' \ + data/Makefile.in || die +} + +src_configure() { + CONFIG_SHELL=/bin/bash \ + egamesconf \ + --with-sdl2 \ + --without-internalsdlgfx \ + --localedir=/usr/share/locale \ + --prefix="/usr" \ + --bindir="${GAMES_BINDIR}" \ + $(use_with opengl) \ + $(use_enable nls) +} + +src_install() { + default + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusansmono-bold.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusansmono.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsans-bold.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsansmono-bold.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsansmono.ttf + dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/liberationsans.ttf + dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${GAMES_DATADIR}"/${PN}/data/fonts/wqy-microhei.ttf + dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/mplus-1p-bold.ttf + dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/mplus-1p-regular.ttf + + prepgamesdirs +} diff --git a/games-rpg/manaplus/metadata.xml b/games-rpg/manaplus/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/games-rpg/manaplus/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/games-rpg/metadata.xml b/games-rpg/metadata.xml new file mode 100644 index 000000000000..69a2c2a773bf --- /dev/null +++ b/games-rpg/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The games-rpg category contains role-playing games. + </longdescription> + <longdescription lang="de"> + Die Kategorie games-rpg enthält Rollenspiele. + </longdescription> + <longdescription lang="es"> + La categoría games-rpg contiene juegos de rol. + </longdescription> + <longdescription lang="ja"> + games-rpgカテゴリーにはロール・プレイング・ゲームが含まれています。 + </longdescription> + <longdescription lang="nl"> + De games-rpg categorie bevat rollenspellen (Role-Playing Games). + </longdescription> + <longdescription lang="vi"> + Nhóm games-rpg chứa các trò chơi dạng chơi theo lượt (role-playing - RPG). + </longdescription> + <longdescription lang="it"> + La categoria games-rpg contiene giochi di ruolo. + </longdescription> + <longdescription lang="pt"> + A categoria games-rpg contém jogos de RPG (Role-Playing Games). + </longdescription> + <longdescription lang="pl"> + Kategoria games-rpg zawiera gry RPG. + </longdescription> +</catmetadata> + diff --git a/games-rpg/nwmouse/Manifest b/games-rpg/nwmouse/Manifest new file mode 100644 index 000000000000..cd90ade2d236 --- /dev/null +++ b/games-rpg/nwmouse/Manifest @@ -0,0 +1 @@ +DIST nwmouse-20090906.183839.tar.bz2 86611 SHA256 a0f0f5b897a1281d4c2a2e416404aa9387ad5b69dcd0445393ca8f341b5b4d88 SHA512 a9e9cd31e572ce3722bdd30002616600b7c36931001b7dbae7ee9b0dca5f6fd57e8771d31e70f0f3ea28e454f43fbe2a490d54409de4b24762a8802a286ddbbf WHIRLPOOL b2d5d0321b7167c52842e137650c2feaced477df8d4e40e2e9d21d94566dc98d058d2a56f34dea5ced5dc582fdbe3df196bb7a0c3151b7c54f9eeb6561d4e21e diff --git a/games-rpg/nwmouse/metadata.xml b/games-rpg/nwmouse/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/nwmouse/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/nwmouse/nwmouse-20090906.183839.ebuild b/games-rpg/nwmouse/nwmouse-20090906.183839.ebuild new file mode 100644 index 000000000000..3b27c80b1275 --- /dev/null +++ b/games-rpg/nwmouse/nwmouse-20090906.183839.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Hardware mouse cursors for Neverwinter Nights" +HOMEPAGE="http://home.roadrunner.com/~nwmovies/" +SRC_URI="http://dev.gentoo.org/~calchan/distfiles/${P}.tar.bz2 + mirror://gentoo/${P}.tar.bz2" + +LICENSE="nwmovies Artistic" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="strip" + +RDEPEND=" + >=games-rpg/nwn-1.68-r4 + games-rpg/nwn-data + sys-libs/glibc + >=dev-libs/elfutils-0.155-r1[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXcursor[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)]" + +# I've looked at this stuff, and I can't find the problem myself, so I'm just +# removing the warnings. If someone feels like finding the patch, that would be +# great and I'll gladly include it. +dir="${GAMES_PREFIX_OPT}/nwn" +QA_PREBUILT="${dir:1}/nwmouse.so + ${dir:1}/nwmouse/libdis/libdisasm.so" + +src_install() { + # libelf moved to games-rpg/nwn, see bug #210562 + exeinto "${dir}" + doexe "${PN}.so" + exeinto "${dir}/${PN}/libdis" + doexe "libdisasm.so" + insinto "${dir}/${PN}/cursors" + doins -r cursors/* + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "When starting nwn the next time, nwmouse will scan the nwmain" + elog "binary for its hooks, store this information in:" + elog " ${dir}/nwmouse.ini" + elog "and exit. This is normal." + elog + elog "You will have to remove this file whenever you update nwn." +} diff --git a/games-rpg/nwmovies/Manifest b/games-rpg/nwmovies/Manifest new file mode 100644 index 000000000000..3d0d3ee5897a --- /dev/null +++ b/games-rpg/nwmovies/Manifest @@ -0,0 +1 @@ +DIST nwmovies-v4-public.20090223.080954.tar.gz 137697 SHA256 4ce60791183a0623d09b37c9f00ba42a2f7e7d953eba35b090a96cc891254f14 SHA512 35b3697f593e74e2c507c745f5b03da11c65789d2cb6378988bb5f810c1768af7299bd0dd8197a91c928f4438582107300bad8de8d69ede8cb81200ea5d21f0e WHIRLPOOL 896c935ea9b8a8eb6befec4c99406763c17e33aa5b767d20dab7f46938e9009e202f6d1afb5d25e7f4ceec628a50be7e0fcf87d823d06d4e1163f46dfb763bb9 diff --git a/games-rpg/nwmovies/metadata.xml b/games-rpg/nwmovies/metadata.xml new file mode 100644 index 000000000000..0a7563a794f3 --- /dev/null +++ b/games-rpg/nwmovies/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> +</maintainer> +</pkgmetadata> diff --git a/games-rpg/nwmovies/nwmovies-20090223.080954.ebuild b/games-rpg/nwmovies/nwmovies-20090223.080954.ebuild new file mode 100644 index 000000000000..a875545fa637 --- /dev/null +++ b/games-rpg/nwmovies/nwmovies-20090223.080954.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils games + +DESCRIPTION="Play Neverwinter Nights movies inside the Linux client" +HOMEPAGE="http://home.roadrunner.com/~nwmovies/" + +SRC_URI="${HOMEPAGE}/${PN}/${PN}-v4-public.${PV}.tar.gz" + +LICENSE="nwmovies Artistic" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=">=games-rpg/nwn-data-1.29-r3[videos]" +RDEPEND="${DEPEND} + >=games-rpg/nwn-1.68-r4 + media-video/binkplayer" + +S="${WORKDIR}" +DESTDIR="${GAMES_PREFIX_OPT}/nwn" + +QA_TEXTRELS="opt/nwn/nwmovies/binklib.so opt/nwn/nwmovies.so" +QA_WX_LOAD="opt/nwn/nwmovies.so" +QA_EXECSTACK="opt/nwn/nwmovies.so" +QA_FLAGS_IGNORED="opt/nwn/nwmovies/binklib.so opt/nwn/nwmovies/libdis/libdisasm.so opt/nwn/nwmovies.so" + +src_install() { + exeinto "${DESTDIR}" + doexe nwmovies.so nwmovies.pl || die "Installation failed" + exeinto "${DESTDIR}/nwmovies" + doexe nwmovies/binklib.so || die "Installation failed" + exeinto "${DESTDIR}/nwmovies/libdis" + doexe nwmovies/libdis/libdisasm.so || die "Installation failed" + insinto "${DESTDIR}" + doins nwmovies/*.txt + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "When starting nwn the next time, nwmovies will scan the nwmain" + elog "binary for its hooks, store this information in:" + elog " \${HOME}/.nwn/\${LANG}/nwmovies.ini" + elog "and exit. This is normal." + elog + elog "You will have to remove this file whenever you update nwn." + elog + elog "If you have sound issues in NWN only when using nwmovies, then" + elog "you may need to properly setup /etc/asound.conf or the equivalent" + elog "per-user \${HOME}/.asound.conf, see comment #31 in bug #106789." +} diff --git a/games-rpg/nwn-cep/Manifest b/games-rpg/nwn-cep/Manifest new file mode 100644 index 000000000000..bada388da6c1 --- /dev/null +++ b/games-rpg/nwn-cep/Manifest @@ -0,0 +1,3 @@ +DIST CEP168.rar 1022033 SHA256 925f52ca60553c1120c707c302c4adc4ae8040ace8d10a263c8e55f2f85aac2c SHA512 04c1c1bbfeeaab7118d256be30f4b599e0e066174c0c8f525b7621f767724a5262400ac1cf2ca47861feb7963524d5433c5dcd192f76cae798e0d0e0afd15980 WHIRLPOOL 82f03f128e53f162860ac2ab62ac5d6c7fe73a3a3d8c2164f1cb48a917cf851878df1971d7a786c0a8ce6d1c3ea2affee89af51d884514b447a519a189cd5d9b +DIST CEPv2_full.rar 409636694 SHA256 27a0523b5a36e047e84ad10ebd26326f91ec63a2faf0893fe9252799b35ff500 SHA512 ea008717dfa56944aabf4f33698f06dbfaa87c8aab9414ca9ffa1c39990160e41eee1f8be8fb766ccc97ed8709aa7773017dc1c29f14683117de28b0bc30becb WHIRLPOOL f9382d1d956b3cd6f6b6cfc97f535e0a66c3b88debd1179bd4c65679a5ebfc1bbd70d7ec5b7d4a45c1d174fdbecb13d16a776c9dd5b3a0a54b8c81ea84ffb460 +DIST cepv152_man.rar 167701243 SHA256 e98a202cac83e290cd0223bb01168c65dc1a88b8397ccc018f1883f18d99b707 SHA512 d0d6b780c0a62c3d5fd741145fdadf6936407d7f1fea103a2b08419bae85633f6fe8d84c84e5d4bf559379037afda06a55b260ccdb6f6857fa303acd593b5e57 WHIRLPOOL d0c87988d83d8386e6536b2f47e6cdc8a9a19fb893dfc653977b16cb6408b4ecce49dd3f948150af0b4ca9a1c7a34181739bf82f94bb2703f61aaa515a314693 diff --git a/games-rpg/nwn-cep/metadata.xml b/games-rpg/nwn-cep/metadata.xml new file mode 100644 index 000000000000..c01a252e1b30 --- /dev/null +++ b/games-rpg/nwn-cep/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + <description>maintainer</description> + </maintainer> +</pkgmetadata> diff --git a/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild b/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild new file mode 100644 index 000000000000..ce2a788c0da4 --- /dev/null +++ b/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit games unpacker + +DESCRIPTION="The Community Expansion Pack for Neverwinter Nights" +HOMEPAGE="http://nwn.bioware.com/players/cep.html" +SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/6057/cepv152_man.rar + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/6974/CEP168.rar" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="mirror bindist" + +DEPEND="" +RDEPEND=">=games-rpg/nwn-1.68" + +pkg_setup() { + games_pkg_setup + if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then + eerror "${P} requires NWN v1.68, Shadows of Undrentide, and Hordes of" + eerror "the Underdark. Please make sure you have all three before using" + eerror "this patch." + die "Requirements not met" + fi +} + +src_install() { + dodir "${GAMES_PREFIX_OPT}"/nwn/{hak,tlk,texturepacks,modules,cep} + + # Using mv below instead of doins due to large file sizes + mv *.hak HotU/*.hak "${D}/${GAMES_PREFIX_OPT}"/nwn/hak/ || die "Installing hak files failed" + mv *.tlk "${D}/${GAMES_PREFIX_OPT}"/nwn/tlk/ || die "Installing tlk files failed" + mv *.erf "${D}/${GAMES_PREFIX_OPT}"/nwn/texturepacks/ || die "Installing erf files failed" + mv *.mod "${D}/${GAMES_PREFIX_OPT}"/nwn/modules/ || die "Installing mod files failed" + mv *.pdf *.txt "${D}/${GAMES_PREFIX_OPT}"/nwn/cep/ || die "Installing documentation failed" + prepgamesdirs +} diff --git a/games-rpg/nwn-cep/nwn-cep-2.0.ebuild b/games-rpg/nwn-cep/nwn-cep-2.0.ebuild new file mode 100644 index 000000000000..320c28866408 --- /dev/null +++ b/games-rpg/nwn-cep/nwn-cep-2.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils games unpacker + +DESCRIPTION="High quality custom content addon for Neverwinter Nights" +HOMEPAGE="http://nwvault.ign.com/cep/" +SRC_URI="http://vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/7000/CEPv2_full.rar" + +LICENSE="all-rights-reserved" +SLOT="2" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="mirror bindist" + +DEPEND="" +RDEPEND=">=games-rpg/nwn-1.68" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/nwn + +pkg_setup() { + games_pkg_setup + if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then + eerror "${P} requires NWN v1.68, Shadows of Undrentide, and Hordes of" + eerror "the Underdark. Please make sure you have all three before using" + eerror "this patch." + die "Requirements not met" + fi +} + +src_install() { + local i + for i in hak tlk erf + do + insinto "${dir}"/${i} + doins *.${i} || die "${i} failed" + done + insinto "${dir}"/modules + doins *.mod || die "mod failed" + insinto "${dir}"/cep + doins *.pdf || die "pdf failed" + prepgamesdirs +} diff --git a/games-rpg/nwn-data/Manifest b/games-rpg/nwn-data/Manifest new file mode 100644 index 000000000000..3ba18783ae56 --- /dev/null +++ b/games-rpg/nwn-data/Manifest @@ -0,0 +1,7 @@ +DIST nwclient129.tar.gz 5504342 SHA256 3d75e07f4d44fde789481240d02c07a7a7e0599bc2300d8a73f98f4c752da80e SHA512 79329eb6ed552008170a0306be224dd7c8db7a2b67f4c9749c2fbbc5977a0b058ab7a90a7a063301e9b410d0f5bbb5f91a4ae2f58a8c13586c2881afe2053d43 WHIRLPOOL 00edbec2d0087ed13ae241f78d82ec1f21deb32f61fbd677c03456474f6001e6c7cd3b797a258ef0e201731f25fa786a1bf0581005b4b0a825753a289a4f9799 +DIST nwfrench129.tar.gz 357777520 SHA256 9a5ddcbc8ca443cb5bbcacb76587b171d37441906a1319155bba35f1bfffa9e0 +DIST nwgerman129.tar.gz 381832822 SHA256 950f730121a90fef2fd5a0810c329a04d1697a7b5f859e240e3307d31050e6e0 +DIST nwitalian129.tar.gz 3926804 SHA256 7a57c45ce2d0a712198dba40ddc2ab4788c817b79c20a6e99733ea842a13f974 +DIST nwn.png 4296 SHA256 9703cb47b32d6bf0202198ab490395046d2ef4ffdde22dca91748a966134e139 SHA512 a79cc5e66317b3b0afa190c66d0dab15edf94a8da238e12eb2cbdbfcafa91d950519ad4209f1cb60cc2507120f6c363db18788226d70a77441412567f9b798c6 WHIRLPOOL 2d457ecf6fe85b0fa651f5d4d3bcf8c686aa00113f962cab1dc62cf62789affbd5192fdd0084f7a1cdfdb427a1e8e49aebd18daf8baf76172afe8135d193cd8b +DIST nwresources129.tar.gz 1212356127 SHA256 4da35c38c63d7cbe40047833103fe0d56f417d1895fb572d52c23a873619f537 +DIST nwspanish129.tar.gz 3912516 SHA256 100833e91e3f729a473de3372019e1086aac444f3c90c799af43d16833b7a1ed diff --git a/games-rpg/nwn-data/metadata.xml b/games-rpg/nwn-data/metadata.xml new file mode 100644 index 000000000000..cd2ae65bb1ed --- /dev/null +++ b/games-rpg/nwn-data/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + </maintainer> + <use> + <flag name="hou">Install the Hordes of the Underdark expansion pack</flag> + <flag name="nowin">For those people who cant grab the 1.2 gigs of data files from a windows partition</flag> + <flag name="sou">Installs the Shadows of Undrentide expension pack</flag> + </use> +</pkgmetadata> diff --git a/games-rpg/nwn-data/nwn-data-1.29-r5.ebuild b/games-rpg/nwn-data/nwn-data-1.29-r5.ebuild new file mode 100644 index 000000000000..354db651d87c --- /dev/null +++ b/games-rpg/nwn-data/nwn-data-1.29-r5.ebuild @@ -0,0 +1,655 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CDROM_OPTIONAL="yes" +inherit eutils cdrom games + +# 3-in-1 DVD - NWN, SoU, HotU (1 disk) +# Diamond DVD - NWN, SoU, HotU (1 disk) +# Platinum CD/DVD - NWN, SoU, HotU (4 disks/1 disk) +# Deluxe CD - NWN, SoU, HotU (5 disks) +# Gold CD - NWN, SoU (4 disks) +# Original CD - NWN (1 disk) + +LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en" + +MY_PV=${PV//.} +CLIENT_BASEURL="http://nwdownloads.bioware.com/neverwinternights/linux" +UPDATE_BASEURL="http://files.bioware.com/neverwinternights/updates/linux" + +NOWIN_SRC_URI="${UPDATE_BASEURL}/nwresources${MY_PV}.tar.gz + http://bsd.mikulas.com/nwresources${MY_PV}.tar.gz + http://163.22.12.40/FreeBSD/distfiles/nwresources${MY_PV}.tar.gz" + +LINGUAS_SRC_URI="linguas_fr? ( + ${UPDATE_BASEURL}/nwfrench${MY_PV}.tar.gz ) + linguas_it? ( + ${UPDATE_BASEURL}/nwitalian${MY_PV}.tar.gz ) + linguas_es? ( + ${UPDATE_BASEURL}/nwspanish${MY_PV}.tar.gz ) + linguas_de? ( + ${UPDATE_BASEURL}/nwgerman${MY_PV}.tar.gz )" + +DESCRIPTION="Neverwinter Nights Data Files" +HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html" +SRC_URI="${CLIENT_BASEURL}/${MY_PV}/nwclient${MY_PV}.tar.gz + nowin? ( ${NOWIN_SRC_URI} ${LINGUAS_SRC_URI} ) + !nowin? ( cdinstall? ( ${LINGUAS_SRC_URI} ) ) + mirror://gentoo/nwn.png" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cdinstall hou nowin sou videos ${LANGUAGES}" +RESTRICT="strip mirror" + +RDEPEND="" +DEPEND="cdinstall? ( + games-util/biounzip + app-arch/unshield ) + app-arch/unzip + app-arch/p7zip +" + +QA_PREBUILT="${GAMES_PREFIX_OPT:1}/nwn/lib/libSDL-1.2.so.0.0.5 + ${GAMES_PREFIX_OPT:1}/nwn/miles/msssoft.m3d + ${GAMES_PREFIX_OPT:1}/nwn/miles/libmss.so.6.5.2 + ${GAMES_PREFIX_OPT:1}/nwn/miles/mssmp3.asi + ${GAMES_PREFIX_OPT:1}/nwn/miles/mssdsp.flt" + +S=${WORKDIR}/nwn + +dir=${GAMES_PREFIX_OPT}/nwn +Ddir=${D}/${dir} + +NWN_SET= + +# This is my fun section where I try to determine which CD/DVD set we have. +# Expect this to be very messy and ugly, and hopefully it all works as we want +# it to on all of the various media. +get_nwn_set() { + # First we check to see if we have CD_ROOT defined already. If we do, + # this will make our lives so much easier. + if [[ -n "${CD_ROOT}" ]] + then + if [[ -f "${CD_ROOT}"/data5.cab ]] + then + NWN_SET="3in1_dvd" + einfo "Neverwinter Nights 3-in-1 DVD found..." + elif [[ -f "${CD_ROOT}"/KingmakerSetup.exe ]] + then + NWN_SET="diamond_dvd" + einfo "Neverwinter Nights Diamond DVD found..." + elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP213f.EXE ]] + then + NWN_SET="platinum_cd" + einfo "Neverwinter Nights Platinum DVD/CD set found..." + elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP1_12d.EXE ]] + then + NWN_SET="gold_cd" + einfo "Neverwinter Nights Gold CD set found..." + elif [[ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]] + then + NWN_SET="original_cd" + einfo "Neverwinter Nights Original/Deluxe CD set found..." + fi + # Now we check to see if we have CD_ROOT_1 set, which means we have a CD + # set, or even a DVD set. + elif [[ -n "${CD_ROOT_1}" ]] + then + if [[ -f "${CD_ROOT_1}"/data5.cab ]] + then + NWN_SET="3in1_dvd" + einfo "Neverwinter Nights 3-in-1 DVD found..." + elif [[ -f "${CD_ROOT_1}"/KingmakerSetup.exe ]] + then + NWN_SET="diamond_dvd" + einfo "Neverwinter Nights Diamond DVD found..." + elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP213f.EXE ]] + then + NWN_SET="platinum_cd" + einfo "Neverwinter Nights Platinum DVD/CD set found..." + elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP1_12d.EXE ]] + then + NWN_SET="gold_cd" + einfo "Neverwinter Nights Gold CD set found..." + elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]] + then + NWN_SET="original_cd" + einfo "Neverwinter Nights Original/Deluxe CD set found..." + fi + # OK. Neither were set, so now we're going to start our detection and try + # to figure out what we have to work from. + else + local mline= + for mline in $(cat /etc/mtab | egrep -e '(iso|cdrom|udf)' | awk '{print $2}') + do + if [[ -f "${mline}"/data5.cab ]] + then + NWN_SET="3in1_dvd" + einfo "Neverwinter Nights 3-in-1 DVD found..." + elif [[ -f "${mline}"/KingmakerSetup.exe ]] + then + NWN_SET="diamond_dvd" + einfo "Neverwinter Nights Diamond DVD found..." + elif [[ -f "${mline}"/ArcadeInstallNWNXP213f.EXE ]] + then + NWN_SET="platinum_cd" + einfo "Neverwinter Nights Platinum DVD/CD set found..." + elif [[ -f "${mline}"/ArcadeInstallNWNXP1_12d.EXE ]] + then + NWN_SET="gold_cd" + einfo "Neverwinter Nights Gold CD set found..." + elif [[ -f "${mline}"/ArcadeInstallNWN109.exe ]] + then + NWN_SET="original_cd" + einfo "Neverwinter Nights Original/Original CD set found..." + fi + done + fi +} + +get_cd_set() { + while `[[ -z "${NWN_SET}" ]]` + do + echo "Please insert your first Neverwinter Nights CD/DVD into your drive and" + echo "press any key to continue" + read -n 1 + get_nwn_set + done + # Here is where we start our CD/DVD detection for changing disks. + export CDROM_NAME_1="CD1" CDROM_NAME_2="CD2" CDROM_NAME_3="CD3" + case "${NWN_SET}" in + 3in1_dvd) + einfo "Both Shadows of Undrentide and Hordes of the Underdark will" + einfo "be installed from your DVD along with Neverwinter Nights." + touch .metadata/sou || die "touch sou" + touch .metadata/hou || die "touch hou" + touch .metadata/orig || die "touch orig" + cdrom_get_cds data5.cab + ;; + diamond_dvd) + einfo "Both Shadows of Undrentide and Hordes of the Underdark will" + einfo "be installed from your DVD along with Neverwinter Nights." + touch .metadata/sou || die "touch sou" + touch .metadata/hou || die "touch hou" + touch .metadata/orig || die "touch orig" + cdrom_get_cds KingmakerSetup.exe + ;; + platinum_cd) + einfo "Both Shadows of Undrentide and Hordes of the Underdark will" + einfo "be installed from your CDs along with Neverwinter Nights." + touch .metadata/orig || die "touch orig" + touch .metadata/sou || die "touch sou" + touch .metadata/hou || die "touching hou" + export CDROM_NAME_4="CD4" + cdrom_get_cds ArcadeInstallNWNXP213f.EXE \ + disk2.zip disk3.zip disk4.zip + ;; + gold_cd) + einfo "Shadow of Undrentide will be installed from your CDs along" + einfo "with the original Neverwinter Nights. If you have the" + einfo "Hordes of the Underdark expansion, it will be installed after." + touch .metadata/orig || die "touch orig" + touch .metadata/sou || die "touch sou" + export CDROM_NAME_4="CD4" + if use hou + then + einfo "You will also need the HoU CD for this installation." + export CDROM_NAME_5="HoU" + cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \ + disk3.zip disk4.zip ArcadeInstallNWNXP213f.EXE + else + cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \ + disk3.zip disk4.zip + fi + ;; + original_cd) + einfo "We will be installing the original Neverwinter Nights. If" + einfo "you also have the Shadows of Undrentide or Hordes of the" + einfo "Underdark expansions, they will be installed afterwards." + touch .metadata/orig || die "touch orig" + if use sou && use hou + then + einfo "You will also need the SoU and HoU CDs for this installation." + export CDROM_NAME_4="SoU" CDROM_NAME_5="HoU" + cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \ + movies/NWNintro.bik NWNSoUInstallGuide.rtf \ + ArcadeInstallNWNXP213f.EXE + elif use sou + then + einfo "You will also need the SoU CD for this installation." + export CDROM_NAME_4="SoU" + cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \ + movies/NWNintro.bik NWNSoUInstallGuide.rtf + elif use hou + then + einfo "You will also need the HoU CD for this installation." + export CDROM_NAME_4="HoU" + cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \ + movies/NWNintro.bik ArcadeInstallNWNXP213f.EXE + else + cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \ + movies/NWNintro.bik + fi + ;; + esac +} + +src_unpack() { + mkdir -p "${S}" + cd "${S}" + # We create this .metadata directory so we can keep track of what we have + # installed without needing to keep all of these multiple USE flags in all + # of the ebuilds. + mkdir -p .metadata || die "Creating .metadata" + # Since we don't *always* want to do this, we check for USE=cdinstall + if use cdinstall + then + # Here, we determine which CD/DVD set that we have. This will seem a + # bit odd, since we'll be doing the detection a few times. + get_nwn_set + # Now that we know what we're looking for, let's look for the media. + get_cd_set + + case ${NWN_SET} in + 3in1_dvd) + mkdir -p "${S}" + cd "${S}" + einfo "Unpacking files..." + # We don't give the user the option to install SoU/HotU. While some + # people might complain about this, most newer NWN stuff requires + # them both anyway, so it makes no sense not to install them. + unshield x "${CDROM_ROOT}"/data1.hdr || die "unpacking" + # We have to adjust the files after unpacking the cab file. + rm -rf _* + + mv -f App_Executables/{ambient,data,modules,music,texturepacks} . + mv -f App_Executables/{dm,local}vault . + mv -f App_Executables/*.key . + mv -f App_Executables/nwm . + if use videos + then + mv -f App_Executables/movies . + fi + mkdir -p utils/nwupdateskins/ + mv -f App_Executables/utils/nwupdateskins/*.bmp utils/nwupdateskins/ + rm -rf App_Executables/ + ;; + diamond_dvd) + # This is probably the simplest NWN to install. + mkdir -p "${S}" + cd "${S}" + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + # I think these are not needed. Can someone verify this? +# unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" +# unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Data_linux.zip || die "unpacking" + # We don't give the user the option to install SoU/HotU. While some + # people might complain about this, most newer NWN stuff requires + # them both anyway, so it makes no sense not to install them. + unzip -qo "${CDROM_ROOT}"/data/XP1.zip + unzip -qo "${CDROM_ROOT}"/data/XP2.zip + 7z x "${CDROM_ROOT}/KingmakerSetup.exe" -xr0\!*PLUGINSDIR* -xr\!*.exe -xr\!*.dat &> /dev/null || die "unpacking" + use videos || rm -rf \$0/movies + cp -rf \$0/* ./ + rm -rf \$0 + ;; + platinum_cd) + # This one isn't too bad, either. Luckily, everything is in a ZIP. + mkdir -p "${S}" + cd "${S}" + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + unshield x "${CDROM_ROOT}"/data2.cab || die "unpacking" + # We have to adjust the files after unpacking the cab file. + mkdir -p miles/ + mkdir -p ambient/ + mkdir -p utils/nwupdateskins/ + mv -f NWN_Platinum/Miles/* miles/ + mv -f NWN_Platinum/ambient/*.wav ambient/ + mv -f NWN_Platinum/docs . + mv -f NWN_Platinum/modules . + mv -f NWN_Platinum/nwm . + mv -f NWN_Platinum/utils/nwupdateskins/*.bmp utils/nwupdateskins/ + rm -rf NWN_Platinum/ + rm -rf _* + # If we have the DVD, we're done. If not, we need to switch CDs and + # unpack the files on them. + if [[ $(du -b "${CDROM_ROOT}"/Data_Shared.zip | awk '{print $1}') -lt 700000000 ]] + then + cdrom_load_next_cd + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/disk2.zip || die "unpacking" + cdrom_load_next_cd + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/disk3.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Data_Linux.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/language_data.zip || die "unpacking" + cdrom_load_next_cd + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/disk4.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/xp1.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/xp1_data.zip || die "unpacking" + fi + ;; + gold_cd) + # Variety of ZIP's off 4 CD's + mkdir -p "${S}" + cd "${S}" + einfo "Unpacking files..." + einfo "Copying files from CD1" + cp "${CDROM_ROOT}"/Data_Shared.zip . || die "unpacking" + cp "${CDROM_ROOT}"/Language_data.zip . || die "unpacking" + cp "${CDROM_ROOT}"/Language_update.zip . || die "unpacking" + # Yay cd switching + cdrom_load_next_cd + unzip -qo "${CDROM_ROOT}"/disk2.zip || die "unpacking" + cdrom_load_next_cd + unzip -qo "${CDROM_ROOT}"/disk3.zip || die "unpacking" + cdrom_load_next_cd + unzip -qo "${CDROM_ROOT}"/disk4.zip || die "unpacking" + # Amazingly enough, the order of operations matter. + unzip -qo "${S}"/Data_Shared.zip || die "unpacking" + unzip -qo "${S}"/Language_data.zip || die "unpacking" + unzip -qo "${S}"/Language_update.zip || die "unpacking" + rm -f Data_Shared.zip + rm -f Language_data.zip + rm -f Language_update.zip + # Expansion pack + if use hou + then + rm -f xp1patch.key data/xp1patch.bif override/* + cdrom_load_next_cd + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + touch .metadata/hou || die "touching hou" + fi + ;; + original_cd) + # Now, we need to create our directories, since we know we'll end up + # needing them for our install. + mkdir -p ambient data dmvault docs lib localvault miles modules \ + music nwm override texturepacks scripttemplates + + # Handle NWN CD1 + mkdir "${S}"/disc1_tmp + cd "${S}"/disc1_tmp + einfo "Unpacking files..." + unshield x ${CDROM_ROOT}/data1.cab || die "unpacking files" + rm -f miles/Mss32.dll + mv -f */* . + cd "${S}" + + mv -f disc1_tmp/*.bif data + mv -f disc1_tmp/dungeonmaster.bic dmvault + mv -f disc1_tmp/*.bic localvault + mv -f disc1_tmp/*.{pdf,txt} docs + mv -f disc1_tmp/*.erf texturepacks + mv -f disc1_tmp/chitin.key . + rm -rf disc1_tmp + + # NWN CD2 + cdrom_load_next_cd + biounzip ${CDROM_ROOT}/disk2.bzf . || die "unpacking files" + + # NWN CD3 + cdrom_load_next_cd + einfo "Copying files from cd..." + for i in ambient data music + do + cp ${CDROM_ROOT}/${i}/* "${S}"/${i} || die "error copying data" + chmod -x "${S}"/${i}/* + done + if use videos + then + mkdir -p "${S}"/movies + cp ${CDROM_ROOT}/movies/* "${S}"/movies || die "error copying data" + chmod -x "${S}"/movies/* + fi + + # Now, we install HoU and SoU, if necessary + if use sou + then + cdrom_load_next_cd + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Data_Linux.zip || die "unpacking" + touch .metadata/sou || die "touching sou" + fi + if use hou + then + cdrom_load_next_cd + if use sou && use hou + then + rm -f xp1patch.key data/xp1patch.bif override/* + fi + einfo "Unpacking files..." + unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking" + unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking" + touch .metadata/hou || die "touching hou" + fi + ;; + esac + fi + # We unpack this for all media sets. + unpack nwclient${MY_PV}.tar.gz + if use nowin + then + if (use sou || use hou) && ! use cdinstall ; then + ewarn "If you really want to install SoU and/or HoU, you must" + ewarn "emerge with USE=cdinstall." + die "SoU and/or HoU require USE=cdinstall." + fi + cd "${WORKDIR}" + unpack nwresources${MY_PV}.tar.gz \ + || die "unpacking nwresources${MY_PV}.tar.gz" + cd "${S}" + fi + + rm -rf override/* + for a in ${A} + do + currentlocale="" + if [[ -z ${a/*german*/} ]] + then + currentlocale=de + elif [[ -z ${a/*spanish*/} ]] + then + currentlocale=es + elif [[ -z ${a/*italian*/} ]] + then + currentlocale=it + elif [[ -z ${a/*french*/} ]] + then + currentlocale=fr + fi + if [[ -n "$currentlocale" ]] + then + touch ".metadata/linguas_$currentlocale" + mkdir -p $currentlocale + cd ${currentlocale} + unpack ${a} || die "unpacking ${a}" + cd .. + fi + done + if use linguas_en + then + touch ".metadata/linguas_en" + fi + # These files aren't needed and come from the patches (games-rpg/nwn) + rm -f data/patch.bif patch.key + rm -f data/xp1patch.bif xp1patch.key + + # Rename nwn.ini to avoid overwriting it every time + mv nwn.ini nwn.ini.default + + sed -i -e 's,/bin/sh,/bin/bash,g' -e '\:^./nwmain .*:i \ +'"dir='${dir}';LINGUAS='${LINGUAS}'"';LANG="${LANG/_*}" \ +die() { \ + echo "$*" 1>&2 \ + exit 1 \ +} \ +cd "${dir}" || die "cd ${dir}" \ +if [[ -d "$LANG" ]] \ +then \ + p=${HOME}/.nwn/${LANG} \ +elif [[ -d "en" ]] \ +then \ + LANG=en \ + p=${HOME}/.nwn/${LANG} \ +else \ + LANG="" \ + p=${HOME}/.nwn \ + for i in ${LINGUAS} \ + do \ + if [ -z "${LANG}" -a -r ".metadata/linguas_$i" -a -d "$i" ] \ + then \ + LANG=$i \ + p=${HOME}/.nwn \ + fi \ + done \ +fi \ +mkdir -p "${p}" \ +find "${p}" -type l -delete \ +for i in * ; do \ + if [[ ! -f ".metadata/linguas_${i}" && ${i: -4} != ".ini" ]] \ + then \ + cp -rfs ${dir}/${i} ${p}/. || die "copy ${i}" \ + fi \ +done \ +if [[ -n "$LANG" ]] \ +then \ + cd "${LANG}" || die "cd ${LANG}" \ + for i in * ; do \ + cp -rfs ${dir}/${LANG}/${i} ${p}/. || die "copy ${LANG}/${i}" \ + done \ +fi \ +cd "${p}" || die "cd ${p}" \ +if [[ -r ./nwmovies.so ]]; then \ + export LD_PRELOAD=./nwmovies.so:$LD_PRELOAD \ + export SDL_AUDIODRIVER=alsa \ +fi \ +if [[ -r ./nwmouse.so ]]; then \ + export XCURSOR_PATH="$(pwd)" \ + export XCURSOR_THEME=nwmouse \ + export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD \ +fi \ + ' "${S}"/nwn || die "sed nwn" +} + +src_install() { + dodir "${dir}" + mkdir -p "${S}"/dmvault "${S}"/hak "${S}"/portraits "${S}"/localvault + rm -rf "${S}"/dialog*.{tlk,TLK} "${S}"/*/dialog*.{tlk,TLK} \ + "${S}"/dmclient "${S}"/nwmain "${S}"/nwserver \ + "${S}"/SDL-1.2.5 "${S}"/fixinstall + # Remove the softlink to the built-in SDL library so that we don't have to re-install + # this whole thing whenever we need to update to a different custom SDL + rm "${S}"/lib/libSDL-1.2.so.0 + if ! use videos + then + rm -rf "${S}"/movies/* + fi + mv "${S}"/* "${Ddir}" + mv "${S}"/.metadata "${Ddir}" + keepdir "${dir}"/servervault + keepdir "${dir}"/scripttemplates + keepdir "${dir}"/saves + keepdir "${dir}"/portraits + keepdir "${dir}"/hak + cd "${Ddir}" + for d in ambient data dmvault hak localvault movies music override portraits + do + if [[ -d ${d} ]] + then + ( cd ${d} + for f in $(find . -name '*.*') ; do + lcf=$(echo ${f} | tr [:upper:] [:lower:]) + if [[ ${f} != ${lcf} ]] && [[ -f ${f} ]] + then + mv ${f} ${lcf} + fi + done ) + fi + done + + doicon "${DISTDIR}"/nwn.png + + prepgamesdirs + chmod -R g+rwX "${Ddir}/saves" "${Ddir}/localvault" "${Ddir}/dmvault" \ + 2>&1 > /dev/null || die "could not chmod" + chmod g+rwX "${Ddir}" || die "could not chmod" +} + +pkg_postinst() { + games_pkg_postinst + if ! use cdinstall && ! use nowin ; then + elog "The NWN linux client data is now installed." + elog "Proceed with the following steps in order to get it working:" + elog "1) Copy the following directories/files from your installed and" + elog " patched (1.68) Neverwinter Nights to ${dir}:" + elog " ambient/" + elog " data/" + elog " dmvault/" + elog " hak/" + elog " localvault/" + elog " modules/" + if use videos + then + elog " movies/" + fi + elog " music/" + elog " portraits/" + elog " saves/" + elog " servervault/" + elog " texturepacks/" + elog " chitin.key" + elog "2) Remove some files to make way for the patch" + elog " rm ${dir}/music/mus_dd_{kingmaker,shadowgua,witchwake}.bmu" + elog " rm ${dir}/override/iit_medkit_001.tga" + elog " rm ${dir}/data/patch.bif" + if use sou + then + elog " rm ${dir}/xp1patch.key ${dir}/data/xp1patch.bif" + fi + if use hou + then + elog " rm ${dir}/xp2patch.key ${dir}/data/xp2patch.bif" + fi + elog "3) Chown and chmod the files with the following commands" + elog " chown -R ${GAMES_USER}:${GAMES_GROUP} ${dir}" + elog " chmod -R g+rwX ${dir}" + echo + elog "Or try emerging with USE=nowin and/or USE=cdinstall." + echo + else + einfo "The NWN linux client data is now installed." + echo + fi + if use cdinstall && ! use nowin ; then + ewarn "Some/all demo modules will be missing. You can copy them manually into :" + ewarn "${dir}/modules" + ewarn "or emerge with USE=nowin." + fi + if ! use cdinstall && use nowin && use videos + then + ewarn "Some/all movies will be missing. You can copy them manually into :" + ewarn "${dir}/movies" + ewarn "or emerge with USE=cdinstall and/or USE=-nowin." + fi + elog "This is only the data portion, you will also need games-rpg/nwn to" + elog "play Neverwinter Nights." + echo +} diff --git a/games-rpg/nwn-penultima/Manifest b/games-rpg/nwn-penultima/Manifest new file mode 100644 index 000000000000..aba92a6f13f6 --- /dev/null +++ b/games-rpg/nwn-penultima/Manifest @@ -0,0 +1,6 @@ +DIST Penultima_0_Penultima_City.zip 328125 SHA256 6040fc52ccd9ab21f2e3fc8aa596357c325c264932d7a4776ed2edb1424f23aa SHA512 2b2f9e7e72642baa6784bd010cee5aed947ee69670a18fe574a2bb458c890b3145f10417b6df9393b9cb715cac8e34673c75359b9a3e97b1c7b596f2ff8796da WHIRLPOOL a4ccfcb93db827dac6062e4a3aa02829920e2b0a600598e2997ed34a33fb77f7d5b71581bd564292957bde9e4505657e90777b38995b8dc3ceb269ed23fd409f +DIST Penultima_1_Pest_Control.zip 175522 SHA256 46cd4c3c3ffc4797fc17f5a22ac15ce848d2f339ae41e6b19eee2cd0fcb9974f SHA512 fe6937846ec190a6decb68040d485565e184e6725399491385a03f538db89ae1f653669dbeb7594dbf82d938375f41d56e4540d564a5d87781843c1971f121e9 WHIRLPOOL 54b71dac89e16de23f164dfa4c6463941155ecc46c6cd364665f43af19b9f0a59469611b8d5de11a224d6770c6f2d7b5c3215644d52f026faa845ae054f30d89 +DIST Penultima_2_Deweys_Decimal.zip 372994 SHA256 2331bf16cd927048ee159aac869601aa5cd4e9465d3dc8562e6fff0b72f93537 SHA512 7bdd96bc7013a903ae1e098156436b6fe342fc14ffc620c94055cfc40640fa4494ba2e759fa91ec2dc96c5ea4c86aa4d01298c5f153039ea56485d86f4859659 WHIRLPOOL 42fe175dd832eebf4ad60cec76cd99323dd9da172602b092ca1fbb9782cc3a98374a0b8b816e25222727ea2fcb0918504532ceb1f7694c3ac20966b714c0c337 +DIST Penultima_3_Hazard_Pay.zip 385090 SHA256 3907374ad0bbf57acd8239bcfa4b3676c23ba8b63c0b743076d697ccc83c7e0a SHA512 9650683713b7fa07a9397ba3f0c2279852266d0d93692968ace90385dc079df8d302951dc60ad140712bfb742886d7eb773d9034ace884d48fc837ff86e15602 WHIRLPOOL 9d3a8714d2289535c82b027b49301844e7491a619f8f89c1b6f0f253c2d1708ec011ee5c6a69a76c4a72883f41d1811e25291fc90e505af08ebb26b190057ac1 +DIST Penultima_4_Clucking_Hositle.zip 309353 SHA256 c58b61a7bfff5961a583aeca13f5823d68f96f3828dafae6bc391a60191a7edb SHA512 57919023bf6ab4041976f2517b56a2eb94ab1b09d3de5cff133d3b3943e09501be8170a94c8e61d74dacbf25971153ef2478cacde23a6f1a1285b35e0461adef WHIRLPOOL 46faff5dea5eb11fb9b27f5f372310137f96718dd2b9950bc6ad8b18a8d7e967ad1389de67cc8138e541f4d17ea85b509e8e3a577d5519bed7f2d50abfe8299b +DIST Penultima_5_Home_Sweet_Home.zip 418774 SHA256 220c2275446bb796931b9c4828e34ff419b5667c99656fd5f12cf16b06322e87 SHA512 6aa0dcef9ae572daba480a723d9de6eca4f282b6ab15dd5198177dbe105db0f361f54854ac2bf89e73167f15c5c8d3c4890e5bb22b878178c28bd4372cb790ff WHIRLPOOL 0498ec1e8eb47d888df22a99ec8c93e861edad0eef2bc6eafe45e0c09bd66c90ea9e33d7062fd4f7780542c4784a8898e857bd3ce81e51433e82f40d19bb7367 diff --git a/games-rpg/nwn-penultima/metadata.xml b/games-rpg/nwn-penultima/metadata.xml new file mode 100644 index 000000000000..95d7ea2ffa6e --- /dev/null +++ b/games-rpg/nwn-penultima/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + </maintainer> +</pkgmetadata> diff --git a/games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild b/games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild new file mode 100644 index 000000000000..336640ec7250 --- /dev/null +++ b/games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit games + +DESCRIPTION="A parodic fantasy module for Neverwinter Nights" +HOMEPAGE="http://pixelscapes.com/penultima" +SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1661/Penultima_0_Penultima_City.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1665/Penultima_1_Pest_Control.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1667/Penultima_2_Deweys_Decimal.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1669/Penultima_3_Hazard_Pay.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1671/Penultima_4_Clucking_Hositle.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1673/Penultima_5_Home_Sweet_Home.zip" + +# redistributable per http://stefangagne.com/penultima/modules.html +LICENSE="freedist" +SLOT="0" +KEYWORDS="-* ~amd64 x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="games-rpg/nwn" + +src_install() { + insinto "${GAMES_PREFIX_OPT}"/nwn/modules + doins *.mod + + insinto "${GAMES_PREFIX_OPT}"/nwn/penultima + doins *.txt + + prepgamesdirs +} diff --git a/games-rpg/nwn-penultima/nwn-penultima-1.ebuild b/games-rpg/nwn-penultima/nwn-penultima-1.ebuild new file mode 100644 index 000000000000..96143a082725 --- /dev/null +++ b/games-rpg/nwn-penultima/nwn-penultima-1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit games + +DESCRIPTION="A parodic fantasy module for Neverwinter Nights" +HOMEPAGE="http://pixelscapes.com/penultima" +SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1661/Penultima_0_Penultima_City.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1665/Penultima_1_Pest_Control.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1667/Penultima_2_Deweys_Decimal.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1669/Penultima_3_Hazard_Pay.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1671/Penultima_4_Clucking_Hositle.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1673/Penultima_5_Home_Sweet_Home.zip" + +# redistributable per http://stefangagne.com/penultima/modules.html +LICENSE="freedist" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="games-rpg/nwn" + +src_install() { + insinto "${GAMES_PREFIX_OPT}"/nwn/modules + newins "Penultima City.mod" "Penultima 0 (Penultima City).mod" + newins "Pest Control.mod" "Penultima 1 (Pest Control).mod" + newins "Dewey's Decimal.mod" "Penultima 2 (Dewey's Decimal).mod" + newins "Hazard Pay.mod" "Penultima 3 (Hazard Pay).mod" + newins "Clucking Hostile.mod" "Penultima 4 (Clucking Hostile).mod" + newins "Home Sweet Home.mod" "Penultima 5 (Home Sweet Home).mod" + + insinto "${GAMES_PREFIX_OPT}"/nwn/penultima + doins *.txt + + prepgamesdirs +} diff --git a/games-rpg/nwn-penultimarerolled/Manifest b/games-rpg/nwn-penultimarerolled/Manifest new file mode 100644 index 000000000000..303ad758ea37 --- /dev/null +++ b/games-rpg/nwn-penultimarerolled/Manifest @@ -0,0 +1,5 @@ +DIST PR0_and_PR1_Penultima_ReRolled_Starter_Pack_v1.4.zip 3020678 SHA256 6e0ef8e3be1ca628fc0e6c29b1a0082a970623308fa3f72064dedfba490f432a +DIST PR2_Below_the_R00t.v1.zip 433938 SHA256 58744d9a07eb0ebe4909f8b6be7be699d132dea62a20ee99ab227bae65061d1b +DIST PR3_Homeland_Security.v1.4.zip 479645 SHA256 6f79f5ae168db226b60661fa0e26e94db6bf9e5aae1a478eddeee32fba0f8804 +DIST PR4_Pastor_of_Muppets.v1.1.zip 1719811 SHA256 216df86a743557997e32425e84ab058f10e0e28424a46127e5c8c244eb71d203 +DIST PR5_The_Saving_Throw.v1.1.zip 3813986 SHA256 f6a4dafb669cbec4e5c840b0f7492223e80708cfa6e0e0ad5334ced38a3e52d8 diff --git a/games-rpg/nwn-penultimarerolled/metadata.xml b/games-rpg/nwn-penultimarerolled/metadata.xml new file mode 100644 index 000000000000..95d7ea2ffa6e --- /dev/null +++ b/games-rpg/nwn-penultimarerolled/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + </maintainer> +</pkgmetadata> diff --git a/games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild b/games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild new file mode 100644 index 000000000000..12d03afc71e6 --- /dev/null +++ b/games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit games + +DESCRIPTION="A parodic fantasy module for Neverwinter Nights" +HOMEPAGE="http://pixelscapes.com/penultima" +SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1674/PR0_and_PR1_Penultima_ReRolled_Starter_Pack_v1.4.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1675/PR2_Below_the_R00t.v1.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1676/PR3_Homeland_Security.v1.4.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1677/PR4_Pastor_of_Muppets.v1.1.zip + http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1678/PR5_The_Saving_Throw.v1.1.zip" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="games-rpg/nwn" + +src_install() { + insinto "${GAMES_PREFIX_OPT}"/nwn/modules + doins *.mod || die "Installing modules failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/hak + doins *.hak || die "Installing hak files failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/music + doins *.bmu || die "Installing music failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/movies + doins *.bik || die "Installing movies failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/penultima_rerolled + doins *.html *.jpg || die "Installing documentation failed" + + prepgamesdirs +} diff --git a/games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest b/games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest new file mode 100644 index 000000000000..623b744f9bf9 --- /dev/null +++ b/games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest @@ -0,0 +1 @@ +DIST ShadowlordsDreamcatcherDemon.exe 157055254 SHA256 6f1197ae79da447e72d1d894d51265c534f5406583e1e8905907396a488cf62c SHA512 8ac3b47df35c2ee3baba6ca27e027cf5f8f83e7583e342725741a4721462621bf6b8f65d8337cfefc51cc0420d0d0d8d2acc2255793a7705f35b3d56d3a933dd WHIRLPOOL e23fb9ff3112e0514d36d59ee9405f6d635facfd206db86ee9bb668333b2a9ac68fe2a7ab766dce6d3987fac4a6696173abb33583cff8c7cf49a75c1af2908e1 diff --git a/games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml b/games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml new file mode 100644 index 000000000000..95d7ea2ffa6e --- /dev/null +++ b/games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + </maintainer> +</pkgmetadata> diff --git a/games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild b/games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild new file mode 100644 index 000000000000..04ba9e842462 --- /dev/null +++ b/games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit games + +DESCRIPTION="The bundled Shadowlords, Dreamcatcher, and Demon campaigns by Hall-of-Famer Adam Miller" +HOMEPAGE="http://www.adamandjamie.com/mod/nwn_campaign.aspx" +SRC_URI="http://vnfiles.ign.com/nwvault.ign.com/fms/files/modules/4273/ShadowlordsDreamcatcherDemon.exe" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="mirror bindist" + +DEPEND="app-arch/p7zip" +RDEPEND="games-rpg/nwn" + +src_unpack() { + 7z x "${DISTDIR}/ShadowlordsDreamcatcherDemon.exe" || die "Unpacking failed" +} + +src_install() { + insinto "${GAMES_PREFIX_OPT}"/nwn/modules + doins *.mod || die "Installing modules failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/hak + doins *.hak || die "Installing hak files failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/music + doins *.bmu || die "Installing music failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/movies + doins *.bik || die "Installing movies failed" + + insinto "${GAMES_PREFIX_OPT}"/nwn/shadowlords_dreamcatcher_demon + doins *.txt || die "Installing documentation failed" + + prepgamesdirs +} diff --git a/games-rpg/nwn/Manifest b/games-rpg/nwn/Manifest new file mode 100644 index 000000000000..3f30eb40f7e4 --- /dev/null +++ b/games-rpg/nwn/Manifest @@ -0,0 +1,19 @@ +DIST English_linuxclient168_orig.tar.gz 130569338 SHA256 03687bff0469cb08a7e5a14316e076a6bfe698121ccee4e2116f0bf119988092 +DIST English_linuxclient168_xp1.tar.gz 134673662 SHA256 e78716a83add4980674f86fd648d374b6086365620bde478b678edfdd4e7e82c +DIST English_linuxclient168_xp2.tar.gz 120144829 SHA256 b8d69ad68c3e3ddf2332176ffd1494682bd9f9d254531720327a62be44e1ac2c +DIST English_linuxclient169_orig.tar.gz 473297170 SHA256 50932f9647ea7968dbb8f7ab1fc6478035fff0826379a45762c1de8e46d1d2b0 SHA512 e24c0a44e41c97e313aeae1f001ee9ab15d97432b754246bc38b79d8adb7b372f5063a45c378fcf2ea07835f46ed20d02cca727bd7f9ce3800ab36e0ccc4b30c WHIRLPOOL 098a9d80f923971e19f036b93b0bc3ad550c7bb72e1efb1fd850ceacfc61a8159c9cabbf74ce91c9c3435a346e8aa5a80020427d1abd83f02b948616cbb753dd +DIST English_linuxclient169_xp1.tar.gz 477419208 SHA256 678254a1dbc52c5c3fa628410e3231b05afa3a612433729e7ef12d41bea8fc16 +DIST English_linuxclient169_xp2.tar.gz 506025948 SHA256 09715e2b95c025ef7f00d218deec1b1edce501530d8cba51d61097c69699763f +DIST French_linuxclient168_orig.tar.gz 131090499 SHA256 f32ed5a759a0a6b49d8f9ef39e313d49a8931725c0d5a61d3a8737d125902315 +DIST French_linuxclient168_xp1.tar.gz 151199720 SHA256 b9f8fe388519bc824bd2b0198a6c51b93d8a3534d16718b164b6c983fea08f9a +DIST French_linuxclient168_xp2.tar.gz 133316339 SHA256 7cc11a8cc7a613714c8d01c42b061baad874001da479db1d26903f494894e98a +DIST German_linuxclient168_orig.tar.gz 131790824 SHA256 d0850968fe68cdabfa3138810387dd4be0bf4338173dc02a46cd5ed7c4348b45 +DIST German_linuxclient168_xp1.tar.gz 152951618 SHA256 11e0b929547860309007298e1851d368d445b7dc8ceab17cece33d51342bfdd8 +DIST German_linuxclient168_xp2.tar.gz 134425276 SHA256 5d8fe43b751dd9372f45a1193cbf21da04b99fa5c735e5286d7306cf325f796d +DIST Italian_linuxclient168_orig.tar.gz 132705873 SHA256 650235b4ac464f7bdc873aaf8404ec51deef6e8a7c780a9bb237782c1575f95b +DIST Italian_linuxclient168_xp1.tar.gz 143425395 SHA256 52da3063290f564c64905b0806201ad9623a62d99f38adae39e3eb0f5970eb94 +DIST Italian_linuxclient168_xp2.tar.gz 133867117 SHA256 8a8f87034ccda517e2c69dea61f6fe799a0e1ef5ced6eab2081980da988f49d8 +DIST Spanish_linuxclient168_orig.tar.gz 132704890 SHA256 01bfd907735a69112fc1847e82269ed2a3d00760a9906dd24819269e53173f13 +DIST Spanish_linuxclient168_xp1.tar.gz 143415370 SHA256 c74faed185b87a0f187f4e1bcf873ec3810a1fd8dba026b81bcf421e1ca121d9 +DIST Spanish_linuxclient168_xp2.tar.gz 133862305 SHA256 b4d4efb0eb5d3395e42e665b518f3cec19c690b0f7f57783ecaa2e6aa8b70a5e +DIST nwn-libs-1.tar.bz2 250395 SHA256 8cf73b69f5c254125713b0bf8dcb89e3320eee5a3339df11d6d18d8381b36f31 SHA512 9a1941f232a0d2cf890660b8e383068f37cb573023c751e57e77cd803290425d9169844c9c550fa7f2a242ba7e7fe499d0f07a618acde9d2d02eab57495e948f WHIRLPOOL 740ce19b2292f961feab1d8829f1128f9e81613885fad5bab014dff7f975563265e4bfecc405b69a409472281cee213e0675696f3173ffd8f48e32a15c40b0ee diff --git a/games-rpg/nwn/files/fixinstall b/games-rpg/nwn/files/fixinstall new file mode 100755 index 000000000000..c324b61bf89e --- /dev/null +++ b/games-rpg/nwn/files/fixinstall @@ -0,0 +1,107 @@ +#!/bin/bash +# Initial version by Bioware +# Modified to match the gentoo setup +# 03/27/2003 phoen][x <phoenix@gentoo.org> + +cd GENTOO_DIR/nwn || exit 1 + +aRequiredDirs=(ambient data music override miles nwm) +aRequiredFiles=(chitin.key dialog.tlk nwmain) +aLCDirs=(ambient data dmvault hak localvault music override portraits) +aProblemFiles=() +aWritables=(nwn.ini nwnplayer.ini nwncdkey.ini saves localvault tempclient currentgame dmvault) + +printf "Checking for required files\n\n" + +for d in ${aRequiredDirs[@]} ; do + if [[ -d $d ]] ; then + printf "PASSED: $d directory exists\n" + else + printf "FAILED: $d directory missing\n" + exit 1 + fi +done + +for f in ${aRequiredFiles[@]} ; do + if [[ -f $f ]] ; then + printf "PASSED: $f exists\n" + else + printf "FAILED: $f missing\n" + exit 1 + fi +done + +printf "\nFixing case\n\n" + +if [[ -f dialog.TLK ]] ; then + mv dialog.TLK dialog.tlk +fi + +if [[ -f dialogF.TLK ]] ; then + mv dialogF.TLK dialogf.tlk +fi + +for d in ${aLCDirs[@]} ; do + if [[ -d $d ]] ; then + printf "$d\n" + cd $d + + for f in $(find . -name '*.*') ; do + lcf=$(echo $f | tr [:upper:] [:lower:]) + if [[ $f != $lcf ]] && [[ -f $f ]] ; then + mv $f $(echo $f | tr [:upper:] [:lower:]) + fi + printf . + done + + cd .. + printf "\n" + fi +done + +defIFS=$IFS +IFS='|' + +if [[ -d saves ]] ; then + cd saves + for d in $(find . -name '* - *' -type d -printf "%f|") ; do + printf "saves/$d\n" + cd "$d" + + [[ -f Portrait.tga ]] && mv Portrait.tga portrait.tga + [[ -f Screen.tga ]] && mv Screen.tga screen.tga + + cd .. + done + cd .. +fi + +IFS=$defIFS + +printf "\nChecking for problem files\n\n" + +for f in ${aProblemFiles[@]} ; do + if [[ -e $f ]] ; then + printf "WARNING: $f exists, deleting this file is recommended\n" + fi +done + +printf "\nFixing permissions\n\n" + +chown GENTOO_USER:GENTOO_GROUP GENTOO_DIR/nwn/ -R +chmod g+rwX GENTOO_DIR/nwn/ -R + +# 1.65-specific fixes to permissions +[ -e GENTOO_DIR/nwn/data/patch.bif ] && \ + chmod a-x GENTOO_DIR/nwn/data/patch.bif 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Chapter1.nwm 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Chapter1E.nwm 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Chapter2.nwm 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Chapter2E.nwm 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Chapter3.nwm 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Chapter4.nwm 2>&1 > /dev/null +chmod a-x GENTOO_DIR/nwn/nwm/Prelude.nwm 2>&1 > /dev/null +[ -e GENTOO_DIR/nwn/patch.key ] && \ + chmod a-x GENTOO_DIR/nwn/patch.key 2>&1 > /dev/null + +printf "\nYou are ready to run Neverwinter Nights.\n\n" diff --git a/games-rpg/nwn/metadata.xml b/games-rpg/nwn/metadata.xml new file mode 100644 index 000000000000..b725b9d02028 --- /dev/null +++ b/games-rpg/nwn/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + </maintainer> + <use> + <flag name="hou">Install the Hordes of the Underdark expansion pack</flag> + <flag name="sou">Installs the Shadows of Undrentide expension pack</flag> + </use> +</pkgmetadata> diff --git a/games-rpg/nwn/nwn-1.68-r5.ebuild b/games-rpg/nwn/nwn-1.68-r5.ebuild new file mode 100644 index 000000000000..769c24bdd002 --- /dev/null +++ b/games-rpg/nwn/nwn-1.68-r5.ebuild @@ -0,0 +1,249 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils games + +LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en" + +MY_PV=${PV//.} +PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV} +PACKAGE_NAME=_linuxclient${MY_PV}_orig.tar.gz +SOU_NAME=_linuxclient${MY_PV}_xp1.tar.gz +HOU_NAME=_linuxclient${MY_PV}_xp2.tar.gz + +DESCRIPTION="Epic role-playing game set in a huge medieval fantasy world of Dungeons and Dragons" +HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html" +SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libs-1.tar.bz2 + linguas_fr? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/French${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/French${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/French${HOU_NAME} ) ) + linguas_it? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/Italian${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/Italian${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/Italian${HOU_NAME} ) ) + linguas_en? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) + linguas_es? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/Spanish${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/Spanish${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/Spanish${HOU_NAME} ) ) + linguas_de? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/German${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/German${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/German${HOU_NAME} ) ) + !linguas_en? ( + !linguas_es? ( + !linguas_de? ( + !linguas_fr? ( + !linguas_it? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) ) ) ) )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="sou hou ${LANGUAGES}" +# nowin USE flag not used anymore by pkg_setup() +RESTRICT="mirror strip" + +RDEPEND=" + >=games-rpg/nwn-data-1.29-r3 + !<games-rpg/nwmouse-0.1-r1 + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] +" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/nwn + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +die_from_busted_nwn-data() { + local use=$* + ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this" + ewarn "by doing the following:" + echo + elog "mkdir -p /etc/portage" + elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use" + elog "emerge --oneshot games-rpg/nwn-data" + die "nwn-data requires USE=$use" +} + +die_from_busted_linguas_nwn-data() { + local use=$* + ewarn "You must emerge games-rpg/nwn-data with LINGUAS=${use/linguas_/}." + ewarn "You can fix this by doing the following:" + echo + elog "mkdir -p /etc/portage" + elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use" + elog "emerge --oneshot games-rpg/nwn-data" + die "nwn-data requires LINGUAS='$use'" +} + +pkg_setup() { + games_pkg_setup + if use sou + then + built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou + fi + if use hou + then + built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou + fi + + strip-linguas de en es fr it +} + +src_unpack() { + mkdir -p "${S}" + cd "${S}" + mkdir -p .metadata + for a in ${A} + do + if [ -z "${a/*libs*}" ] + then + unpack "${a}" || die "unpack ${a}" + fi + + if [ -z "${a/*orig*}" ] + then + currentlocale="" + if [ -z "${a/*German*/}" ] + then + currentlocale=de + elif [ -z "${a/*English*/}" ] + then + currentlocale=en + elif [ -z "${a/*Spanish*/}" ] + then + currentlocale=es + elif [ -z "${a/*Italian*/}" ] + then + currentlocale=it + elif [ -z "${a/*French*/}" ] + then + currentlocale=fr + fi + if [ -n "$currentlocale" ] + then + mkdir -p "${currentlocale}" + cd "${currentlocale}" + unpack "${a}" || die "unpack ${a}" + cd .. + fi + fi + done + use sou && ( + for a in ${A} + do + if [ -z "${a/*$SOU_NAME}" ] + then + currentlocale="" + if [ -z "${a/*German*/}" ] + then + currentlocale=de + elif [ -z "${a/*English*/}" ] + then + currentlocale=en + elif [ -z "${a/*Spanish*/}" ] + then + currentlocale=es + elif [ -z "${a/*Italian*/}" ] + then + currentlocale=it + elif [ -z "${a/*French*/}" ] + then + currentlocale=fr + fi + if [ -n "$currentlocale" ] + then + mkdir -p "${currentlocale}" + cd "${currentlocale}" + rm -f data/patch.bif patch.key + unpack "${a}" || die "unpack ${a}" + cd .. + fi + fi + done ) + use hou && ( + for a in ${A} + do + if [ -z "${a/*$HOU_NAME}" ] + then + currentlocale="" + if [ -z "${a/*German*/}" ] + then + currentlocale=de + elif [ -z "${a/*English*/}" ] + then + currentlocale=en + elif [ -z "${a/*Spanish*/}" ] + then + currentlocale=es + elif [ -z "${a/*Italian*/}" ] + then + currentlocale=it + elif [ -z "${a/*French*/}" ] + then + currentlocale=fr + fi + if [ -n "$currentlocale" ] + then + mkdir -p "${currentlocale}" + cd "${currentlocale}" + rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key override/* + unpack "${a}" || die "unpack ${a}" + cd .. + fi + fi + done ) +} + +src_install() { + dodir "${dir}" + exeinto "${dir}" + doexe "${FILESDIR}"/fixinstall + sed -i \ + -e "s:GENTOO_USER:${GAMES_USER}:" \ + -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \ + -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \ + -e "s:override miles nwm:miles:" \ + -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \ + -e "s:^chmod a-x:#chmod a-x:" \ + "${Ddir}"/fixinstall || die "sed" + if use hou || use sou + then + sed -i \ + -e "s:chitin.key patch.key:chitin.key:" \ + "${Ddir}"/fixinstall || die "sed" + fi + fperms ug+x "${dir}"/fixinstall || die "perms" + mv "${S}"/* "${Ddir}" + mv "${S}"/.metadata "${Ddir}" + games_make_wrapper nwn ./nwn "${dir}" "${dir}" + make_desktop_entry nwn "Neverwinter Nights" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "The included custom libSDL is patched to enable the following key sequences:" + elog " * Left-Alt & Enter - Iconify Window" + elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed" + elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window" + elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window" + elog + elog "The NWN linux client is now installed." + elog "Proceed with the following step in order to get it working:" + elog "Run ${dir}/fixinstall as root" +} diff --git a/games-rpg/nwn/nwn-1.68-r6.ebuild b/games-rpg/nwn/nwn-1.68-r6.ebuild new file mode 100644 index 000000000000..8232df43ee3a --- /dev/null +++ b/games-rpg/nwn/nwn-1.68-r6.ebuild @@ -0,0 +1,236 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en" + +MY_PV=${PV//.} +PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV} +PACKAGE_NAME=_linuxclient${MY_PV}_orig.tar.gz +SOU_NAME=_linuxclient${MY_PV}_xp1.tar.gz +HOU_NAME=_linuxclient${MY_PV}_xp2.tar.gz + +DESCRIPTION="Epic role-playing game set in a huge medieval fantasy world of Dungeons and Dragons" +HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html" +SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libs-1.tar.bz2 + linguas_fr? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/French${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/French${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/French${HOU_NAME} ) ) + linguas_it? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/Italian${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/Italian${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/Italian${HOU_NAME} ) ) + linguas_en? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) + linguas_es? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/Spanish${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/Spanish${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/Spanish${HOU_NAME} ) ) + linguas_de? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/German${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/German${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/German${HOU_NAME} ) ) + !linguas_en? ( + !linguas_es? ( + !linguas_de? ( + !linguas_fr? ( + !linguas_it? ( + !sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) ) + sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} ) + hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) ) ) ) )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="sou hou ${LANGUAGES}" +RESTRICT="mirror strip" + +RDEPEND=" + >=games-rpg/nwn-data-1.29-r3 + !<games-rpg/nwmouse-0.1-r1 + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] +" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/nwn + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +die_from_busted_nwn-data() { + local use=$* + ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this" + ewarn "by doing the following:" + echo + elog "mkdir -p /etc/portage" + elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use" + elog "emerge --oneshot games-rpg/nwn-data" + die "nwn-data requires USE=$use" +} + +pkg_setup() { + games_pkg_setup + if use sou + then + has_version "games-rpg/nwn-data[sou]" || die_from_busted_nwn-data sou + fi + if use hou + then + has_version "games-rpg/nwn-data[hou]" || die_from_busted_nwn-data hou + fi + + strip-linguas de en es fr it +} + +src_unpack() { + mkdir -p "${S}" + cd "${S}" + mkdir -p .metadata + for a in ${A} + do + if [ -z "${a/*libs*}" ] + then + unpack "${a}" + fi + + if [ -z "${a/*orig*}" ] + then + currentlocale="" + if [ -z "${a/*German*/}" ] + then + currentlocale=de + elif [ -z "${a/*English*/}" ] + then + currentlocale=en + elif [ -z "${a/*Spanish*/}" ] + then + currentlocale=es + elif [ -z "${a/*Italian*/}" ] + then + currentlocale=it + elif [ -z "${a/*French*/}" ] + then + currentlocale=fr + fi + if [ -n "$currentlocale" ] + then + mkdir -p "${currentlocale}" + cd "${currentlocale}" + unpack "${a}" + cd .. + fi + fi + done + use sou && ( + for a in ${A} + do + if [ -z "${a/*$SOU_NAME}" ] + then + currentlocale="" + if [ -z "${a/*German*/}" ] + then + currentlocale=de + elif [ -z "${a/*English*/}" ] + then + currentlocale=en + elif [ -z "${a/*Spanish*/}" ] + then + currentlocale=es + elif [ -z "${a/*Italian*/}" ] + then + currentlocale=it + elif [ -z "${a/*French*/}" ] + then + currentlocale=fr + fi + if [ -n "$currentlocale" ] + then + mkdir -p "${currentlocale}" + cd "${currentlocale}" + rm -f data/patch.bif patch.key + unpack "${a}" + cd .. + fi + fi + done ) + use hou && ( + for a in ${A} + do + if [ -z "${a/*$HOU_NAME}" ] + then + currentlocale="" + if [ -z "${a/*German*/}" ] + then + currentlocale=de + elif [ -z "${a/*English*/}" ] + then + currentlocale=en + elif [ -z "${a/*Spanish*/}" ] + then + currentlocale=es + elif [ -z "${a/*Italian*/}" ] + then + currentlocale=it + elif [ -z "${a/*French*/}" ] + then + currentlocale=fr + fi + if [ -n "$currentlocale" ] + then + mkdir -p "${currentlocale}" + cd "${currentlocale}" + rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key override/* + unpack "${a}" + cd .. + fi + fi + done ) +} + +src_install() { + dodir "${dir}" + exeinto "${dir}" + doexe "${FILESDIR}"/fixinstall + sed -i \ + -e "s:GENTOO_USER:${GAMES_USER}:" \ + -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \ + -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \ + -e "s:override miles nwm:miles:" \ + -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \ + -e "s:^chmod a-x:#chmod a-x:" \ + "${Ddir}"/fixinstall || die + if use hou || use sou + then + sed -i \ + -e "s:chitin.key patch.key:chitin.key:" \ + "${Ddir}"/fixinstall || die + fi + fperms ug+x "${dir}"/fixinstall || die + mv "${S}"/* "${Ddir}" + mv "${S}"/.metadata "${Ddir}" + games_make_wrapper nwn ./nwn "${dir}" "${dir}" + make_desktop_entry nwn "Neverwinter Nights" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "The included custom libSDL is patched to enable the following key sequences:" + elog " * Left-Alt & Enter - Iconify Window" + elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed" + elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window" + elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window" + elog + elog "The NWN linux client is now installed." + elog "Proceed with the following step in order to get it working:" + elog "Run ${dir}/fixinstall as root" +} diff --git a/games-rpg/nwn/nwn-1.69-r1.ebuild b/games-rpg/nwn/nwn-1.69-r1.ebuild new file mode 100644 index 000000000000..91b26c804306 --- /dev/null +++ b/games-rpg/nwn/nwn-1.69-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_PV=${PV//.} +PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}/English_linuxclient${MY_PV}_ + +DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons" +HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html" +SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libs-1.tar.bz2 + !sou? ( !hou? ( ${PATCH_URL_BASE}orig.tar.gz ) ) + sou? ( !hou? ( ${PATCH_URL_BASE}xp1.tar.gz ) ) + hou? ( ${PATCH_URL_BASE}xp2.tar.gz )" + +LICENSE="NWN-EULA" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="sou hou" +RESTRICT="mirror strip" + +QA_FLAGS_IGNORED="/opt/nwn/en/nwserver /opt/nwn/en/nwmain /opt/nwn/lib/libSDL-1.2.so.0.11.2 /opt/nwn/lib/libelf.so.1" + +NWN_DATA=">=games-rpg/nwn-data-1.29-r3[sou?,hou?" + +# ${P} requires games-rpg/nwn-data emerged with at least LINGUAS=en or none at all +RDEPEND=" + || ( + ${NWN_DATA},linguas_en] + ${NWN_DATA},-linguas_fr,-linguas_de,-linguas_es,-linguas_it] + ) + !<games-rpg/nwmouse-0.1-r1 + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] +" +DEPEND="" + +S=${WORKDIR}/nwn + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +src_unpack() { + mkdir -p "${S}"/en + cd "${S}"/en + unpack ${A} + mv lib .. +} + +src_install() { + exeinto "${dir}" + doexe "${FILESDIR}"/fixinstall + sed -i \ + -e "s:GENTOO_USER:${GAMES_USER}:" \ + -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \ + -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \ + -e "s:override miles nwm:miles:" \ + -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \ + -e "s:^chmod a-x:#chmod a-x:" \ + "${Ddir}"/fixinstall || die "sed" + if use hou || use sou + then + sed -i \ + -e "s:chitin.key patch.key:chitin.key:" \ + "${Ddir}"/fixinstall || die "sed" + fi + fperms ug+x "${dir}"/fixinstall || die "perms" + mv "${S}"/* "${Ddir}" + games_make_wrapper nwn ./nwn "${dir}" "${dir}" + make_desktop_entry nwn "Neverwinter Nights" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "The included custom libSDL is patched to enable the following key sequences:" + elog " * Left-Alt & Enter - Iconify Window" + elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed" + elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window" + elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window" + elog + elog "The NWN linux client is now installed." + elog "Proceed with the following step in order to get it working:" + elog "Run ${dir}/fixinstall as root" + echo + ewarn "This version supports only english, see http://nwn.bioware.com/support/patch.html" + ewarn "If you were playing with a different language you may want to backup your ~/.nwn and do:" + ewarn " mv ~/.nwn/<language> ~/.nwn/en" + ewarn "If it does not work, try removing ~/.nwn, start nwn then quit, and re-import all you" + ewarn "need (saves, etc...) in ~/.nwn/en, but please do not file a bug." +} diff --git a/games-rpg/openglad/Manifest b/games-rpg/openglad/Manifest new file mode 100644 index 000000000000..7ba650631e52 --- /dev/null +++ b/games-rpg/openglad/Manifest @@ -0,0 +1,2 @@ +DIST openglad-0.98.tar.gz 724106 SHA256 a3df9f8ea8827f56a9b38611c3f5c3a11aaec865a95d37cef90617d6b6efb844 SHA512 3f9165fbf8fff081a862bfe81401a3b2ac227da58b84409beee8b0441f88b1a6deb3d24a1af6e71bd3a3484fc90de5574950fd54be82d837021a07f06302f0e1 WHIRLPOOL caa12af504bf4dc64a24b6512097c149d300e3be20845568c187ae70b8af85de2e523f4c1585cb6beb25e0fad80665794955564b5fe2634abc8322f5b61c8004 +DIST openglad.png 5593 SHA256 04fd6707bda5a7f42e11f1f441a6410709d38f5f6d5d124bf1ab0bb44fad5f1c SHA512 27419fcbbbf8640718968304a4824101860736c2091f494defcd111b5cc252856b5373c0e7a2bca1c79f9c7551012b0ba04577f9ed97769e436637ee25f5caeb WHIRLPOOL 2ac11719d1ac537d677e980bd5207a9c7b271f23ecdaa335d0e9cfbe8c855496ca3dd93d46d8ffe903f83c322a2c970291213448b411ded66d85eac95d747c7a diff --git a/games-rpg/openglad/files/0.98-gladpack.c.patch b/games-rpg/openglad/files/0.98-gladpack.c.patch new file mode 100644 index 000000000000..061ccbf36305 --- /dev/null +++ b/games-rpg/openglad/files/0.98-gladpack.c.patch @@ -0,0 +1,13 @@ +--- openglad-0.98.orig/util/gladpack.c 2002-09-14 18:37:50.000000000 +1000 ++++ openglad-0.98/util/gladpack.c 2003-12-06 12:42:31.393812945 +1100 +@@ -9,8 +9,8 @@ + + int main(int argc, char **argv) + { +- if (argc > 1 && !strcmp(argv[1], "p")) pack(argc, argv); +- else if (argc > 1 && !strcmp(argv[1], "u")) unpack(argc, argv); ++ if (argc > 1 && !strcmp(argv[1], "p")) return pack(argc, argv); ++ else if (argc > 1 && !strcmp(argv[1], "u")) return unpack(argc, argv); + else + { + printf("Usage: gladpack (p|u) ...\n"); diff --git a/games-rpg/openglad/files/openglad-0.98-gcc43.patch b/games-rpg/openglad/files/openglad-0.98-gcc43.patch new file mode 100644 index 000000000000..831bb53671d4 --- /dev/null +++ b/games-rpg/openglad/files/openglad-0.98-gcc43.patch @@ -0,0 +1,11 @@ +--- src/parser.cpp ++++ src/parser.cpp +@@ -23,6 +23,8 @@ + #include <iostream> + #include <fstream> + #include <string> ++#include <cstring> ++#include <cstdlib> + #include "parser.h" + + using namespace std; diff --git a/games-rpg/openglad/files/openglad-0.98-ovfl.patch b/games-rpg/openglad/files/openglad-0.98-ovfl.patch new file mode 100644 index 000000000000..14cd73cc53b0 --- /dev/null +++ b/games-rpg/openglad/files/openglad-0.98-ovfl.patch @@ -0,0 +1,11 @@ +--- src/screen.cpp.old 2011-07-23 21:35:34.385063301 +0200 ++++ src/screen.cpp 2011-07-23 21:35:59.948063312 +0200 +@@ -2383,7 +2383,7 @@ + short listsize; + short i; + walker * new_guy; +- char newgrid[12] = "grid.pix"; // default grid ++ char newgrid[13] = "grid.pix"; // default grid + char new_scen_type; // read the scenario type + char oneline[80]; + char numlines, tempwidth; diff --git a/games-rpg/openglad/metadata.xml b/games-rpg/openglad/metadata.xml new file mode 100644 index 000000000000..5bd973f0ebc7 --- /dev/null +++ b/games-rpg/openglad/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">snowstorm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/openglad/openglad-0.98.ebuild b/games-rpg/openglad/openglad-0.98.ebuild new file mode 100644 index 000000000000..b6e211269ed5 --- /dev/null +++ b/games-rpg/openglad/openglad-0.98.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="An SDL clone of Gladiator, a classic RPG game" +HOMEPAGE="http://snowstorm.sourceforge.net/" +SRC_URI="mirror://sourceforge/snowstorm/${P}.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="media-libs/sdl-mixer + media-libs/sdl-image + media-libs/libsdl[joystick,sound,video]" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PV}-gladpack.c.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-ovfl.patch +} + +src_configure() { + egamesconf \ + --prefix=/usr \ + --bindir="${GAMES_BINDIR}" \ + --datadir="${GAMES_DATADIR}/${PN}" +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + docdir="${D}"/usr/share/doc/${PF} + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry openglad OpenGladiator + prepgamesdirs +} diff --git a/games-rpg/pcgen/Manifest b/games-rpg/pcgen/Manifest new file mode 100644 index 000000000000..ee234a8b5ba7 --- /dev/null +++ b/games-rpg/pcgen/Manifest @@ -0,0 +1 @@ +DIST pcgen-6.04.01-full.zip 68679438 SHA256 0cdd57d6aca91c6c590bd1bfbadae8c0e85fd2f48c5855351dcd8777814011c2 SHA512 37e76e9bca3defe803459f898d3c51015cb4c4f69905c4179b78b1b26977b7d720ef413b3f5b2ef4252aa98f732075b9567c4f4822c61d169a5a0a6e2c78c0d4 WHIRLPOOL 04394868f9fc152ceef205e6b2fdc77d061b5b8437c56b105a1dedca96044c77e9f4a33535f750ca026b3387accea8fef2cb45ea146a7989102248721315d40f diff --git a/games-rpg/pcgen/metadata.xml b/games-rpg/pcgen/metadata.xml new file mode 100644 index 000000000000..7d65cacbecfc --- /dev/null +++ b/games-rpg/pcgen/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">pcgen</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/pcgen/pcgen-6.04.01.ebuild b/games-rpg/pcgen/pcgen-6.04.01.ebuild new file mode 100644 index 000000000000..121a1208f068 --- /dev/null +++ b/games-rpg/pcgen/pcgen-6.04.01.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit gnome2-utils games + +DESCRIPTION="D&D character generator" +HOMEPAGE="http://pcgen.sourceforge.net/" +SRC_URI="mirror://sourceforge/pcgen/${P}-full.zip" + +LICENSE="LGPL-2.1 OGL-1.0a" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.6" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/${PN} + +src_prepare() { + rm -vf *.bat + sed "/dirname/ c\cd \"${GAMES_DATADIR}\/${PN}\"" pcgen.sh > "${T}"/${PN} || die +} + +src_install() { + dogamesbin "${T}"/${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r * + newicon -s 128 system/sponsors/pcgen/pcgen_128x128.png ${PN}.png + make_desktop_entry ${PN} PCGen + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/penumbra-collection/Manifest b/games-rpg/penumbra-collection/Manifest new file mode 100644 index 000000000000..8dda9ab4884f --- /dev/null +++ b/games-rpg/penumbra-collection/Manifest @@ -0,0 +1 @@ +DIST PenumbraCollection-1.1.sh 949267761 SHA256 e0fdbdbb7e3766629cabd3903675a2f54f1a5206f67d590dd1553576338f3dab SHA512 9e9f604fffd4efd8ab21bdb56fb4f9dbeeee8e5375b83b88a24521a9bbb45ee7060c467aef47f06d551d51a4fdd0a51be5c5416060a87342ea281026ba24c7ae WHIRLPOOL 553034458f2d7e5584ed97ee4111a65cb789854ae1ff9ecb6651d8b66996198d9a869fa7455eaebf18ab1110973734f6f1e977d8187fb9d796407267253552d7 diff --git a/games-rpg/penumbra-collection/metadata.xml b/games-rpg/penumbra-collection/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/games-rpg/penumbra-collection/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild b/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild new file mode 100644 index 000000000000..2b1070a54dae --- /dev/null +++ b/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild @@ -0,0 +1,194 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils unpacker gnome2-utils games + +MY_PN="PenumbraCollection" + +DESCRIPTION="Scary first-person adventure game trilogy which focuses on story, immersion and puzzles" +HOMEPAGE="http://www.penumbragame.com/" +SRC_URI="${MY_PN}-${PV}.sh" + +LICENSE="PENUMBRA-COLLECTION" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="fetch" + +RDEPEND=" + x11-libs/fltk:1 + media-gfx/nvidia-cg-toolkit[abi_x86_32(-)] + >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] + >=media-libs/freealut-1.1.0-r3[abi_x86_32(-)] + >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] + >=media-libs/libogg-1.3.1[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r5[X,sound,video,opengl,abi_x86_32(-)] + >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)] + >=media-libs/sdl-image-1.2.12-r1[gif,jpeg,png,abi_x86_32(-)] + >=media-libs/sdl-ttf-2.0.11-r1[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXft[abi_x86_32(-)] + x11-libs/libXrender[abi_x86_32(-)]" +DEPEND="app-arch/xz-utils" + +gamedir=${GAMES_PREFIX_OPT}/${MY_PN} +INSTALL_KEY_FILE=${gamedir}/collectionkey + +QA_PREBUILT="${gamedir}/Overture/penumbra.bin + ${gamedir}/BlackPlague/requiem.bin + ${gamedir}/BlackPlague/blackplague.bin" + +if [[ $ARCH == amd64 ]] ; then + QA_PREBUILT="${QA_PREBUILT} + ${gamedir}/BlackPlague/lib/libfltk.so.1.1 + ${gamedir}/BlackPlague/lib/libCgGL.so + ${gamedir}/BlackPlague/lib/libCg.so + ${gamedir}/Overture/lib/libfltk.so.1.1 + ${gamedir}/Overture/lib/libCgGL.so + ${gamedir}/Overture/lib/libCg.so" +fi + +S=${WORKDIR}/${MY_PN} + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" + einfo +} + +src_unpack() { + unpack_makeself + + mv subarch subarch.tar.lzma || die + unpack ./subarch.tar.lzma + + mv instarchive_all instarchive_all.tar.lzma || die + unpack ./instarchive_all.tar.lzma +} + +src_install() { + local destDir episodeDir library directory + # perform instalation for each episode; note that Requiem is extension of + # Black Plague so it has no dedicated directory at this level + for episodeDir in Overture BlackPlague; do + destDir="${gamedir}/${episodeDir}" + + insinto "${destDir}" + + # install every directory recursively except lib + for directory in \ + $(find ${episodeDir}/* -maxdepth 0 -type d ! -name lib); do + doins -r "${directory}" + done + + # amd64 does not provide some libs, use bundled ones + if use amd64 ; then + exeinto "${gamedir}/${episodeDir}/lib" + for library in \ + libfltk.so.1.1 \ + libCgGL.so \ + libCg.so; do + doexe ${episodeDir}/lib/${library} + done + fi + + doins ${episodeDir}/*.cfg + + exeinto "${destDir}" + doexe ${episodeDir}/openurl.sh ${episodeDir}/*.bin + + # make sure that cache files are newer than models otherwise the game + # tries to regenerate them which sometimes causes a crash (as reported + # in bug #278326 comment #6) + touch "${D}/${destDir}"/core/*cache/* + done + + newicon -s 64 Overture/penumbra.png penumbra-overture.png + newicon -s 64 BlackPlague/penumbra.png penumbra-blackplague.png + newicon -s 64 BlackPlague/requiem.png penumbra-requiem.png + + games_make_wrapper penumbra-overture ./penumbra.bin \ + "${gamedir}/Overture" "${gamedir}/Overture/lib" + games_make_wrapper penumbra-blackplague ./blackplague.bin \ + "${gamedir}/BlackPlague" "${gamedir}/BlackPlague/lib" + games_make_wrapper penumbra-requiem ./requiem.bin \ + "${gamedir}/BlackPlague" "${gamedir}/BlackPlague/lib" + + make_desktop_entry penumbra-overture "Penumbra: Overture" \ + penumbra-overture + make_desktop_entry penumbra-blackplague "Penumbra: Black Plague" \ + penumbra-blackplague + make_desktop_entry penumbra-requiem "Penumbra: Requiem" \ + penumbra-requiem + + docinto Overture + dodoc Overture/CHANGELOG.txt Overture/Manual.pdf Overture/README.linux + docinto BlackPlague + dodoc BlackPlague/Manual.pdf BlackPlague/README.linux + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + if [[ -f "${INSTALL_KEY_FILE}" ]] ; then + einfo "The installation key file already exists: ${INSTALL_KEY_FILE}" + else + ewarn "You MUST run this before playing the game:" + ewarn " emerge --config ${PN}" + ewarn "To enter your installation key." + fi +} + +pkg_postrm() { + gnome2_icon_cache_update + einfo "If you uninstalled ${PN} you might want to remove the keyfile as well in" + einfo " ${INSTALL_KEY_FILE}" +} + +pkg_config() { + local key1 key2 + + ewarn "Your installation key is NOT checked for validity here." + ewarn "Make sure you type it in correctly." + ewarn "If you CTRL+C out of this, the game will not run!" + echo + einfo "The key format is: XXXX-XXXX-XXXX-XXXX" + while true ; do + einfo "Please enter your key:" + read key1 + if [[ -z "${key1}" ]] ; then + echo "You entered a blank key. Try again." + continue + fi + einfo "Please re-enter your key:" + read key2 + if [[ -z "${key2}" ]] ; then + echo "You entered a blank key. Try again." + continue + fi + + if [[ "${key1}" == "${key2}" ]] ; then + echo "${key1}" | tr '[:lower:]' '[:upper:]' > "${INSTALL_KEY_FILE}" + echo -e "// Do not give this file to ANYONE.\n// Frictional Games Support will NEVER ask for this file" \ + >> "${INSTALL_KEY_FILE}" + einfo "Created ${INSTALL_KEY_FILE}" + break + else + eerror "Your installation key entries do not match. Try again." + fi + done +} diff --git a/games-rpg/queen/Manifest b/games-rpg/queen/Manifest new file mode 100644 index 000000000000..77c2e1e694b5 --- /dev/null +++ b/games-rpg/queen/Manifest @@ -0,0 +1,8 @@ +DIST FOTAQ_Fr_Talkie_1.0.zip 64531589 SHA256 9e670686c538191a1acf3bd09ef83a11262d23247b9258ec1495b39931790543 SHA512 c53180eabb797e5a857ef97d0e70f880a0c729fbbf6443e67ea21ec6af36f69e7039b8341b21c1e998064cfdae916f6a799bce7b38038e83bc91aee16737f797 WHIRLPOOL 124c5d9181e20e80fcd599bf1d1efb287feeca1837c8ce55ab71e3c59d532929937aeaf04f17a4eb9926d590455fa62a8beb8ff9edea2a171f72659b58006071 +DIST FOTAQ_Ger_talkie-1.0.zip 75938507 SHA256 6e2826993a94864c1dd3d299369cb320a119cede4be14bf3f59b0471fa20768f SHA512 65b6ae3fec052d616b52efb9eb74017587e39c0aa27a96f46b733b5caf2039193e6e1a99b873cdd8efe9d67b70fb0c48067731ba2d146350ed2fcf4551963837 WHIRLPOOL ec4126a41e8f3ab6e74d74b3b3b10cf953875d186e53f2bb45b31d5e9fcaae8ca538a255642ae3488e6cfd597249010c3420ed87f1d785a19be66e3b26c64739 +DIST FOTAQ_Heb_talkie.zip 66213122 SHA256 18d00305642f7f426c95ff76fbf7f4a24e23d61f8144f9acdddcd0ff75f49f34 SHA512 497c4b9a08dbb1abb3eec69f540ec06a4b66c681fe9c032e58307e7fe1fb31391eb6f1001fe0e0b429542c512f43786e518d101912c97cef33d2deda35c1670e WHIRLPOOL 603d2756ec6ef8c6036f3142e40a5217e1b6074171bcb8b4411a08494ed81d2b7f267a752364f4666add7967f69cdc4aa283156cb60ceb802048ebec956f46bd +DIST FOTAQ_It_Talkie_1.0.zip 65091076 SHA256 8d6c1a0f3bf4fbdf943e39fdb54951d3434bccc896d851ea94eedf4cc1f1e6c0 SHA512 01ce230232d0288fed5af55c2cb7f06cf31e89cabcb6547ba6f284eee794beaafbeb3182bc391bf209ce5d58189b82afbca126d167a9f986db4b4816fc69b90e WHIRLPOOL 89cf269738b2fc4844075a59fbebf49f9fde5955e538d72cb6745c0e2d097fd910f1eb5c20d247b575399e732f7df5acb20d6441617511b29fb4d2894fee8950 +DIST FOTAQ_Talkie-1.1.zip 33744817 SHA256 a25cdd5e003a0a5e402af99b218cc7ea81ad032cb36b8c05df3bd1167038d8a8 SHA512 b543c863b557de24250adde78badc7b12a0de5aabb484f50d6b682c3ec7f710e991614254d2cfae960280f984ba2889703d42d51d20746080a9b7bb2996063b1 WHIRLPOOL 7cf5edd5486695019495aaf48b00718a1fed64c9bdd9c38ba09866c738dd545fd48ab026d570acffa8b47aebfdc358da65a76cb207cdc11022a0f78af92ecd16 +DIST cat-queen.png 1099 SHA256 227074e9b259a0c0bb95220d33fed26521433079b988c700db5348003a7c0829 SHA512 009f30e2f9abbc803cd47314d8ff53009898640c12a26cb155b7e0b29c0a2bdaa06cf97fca6ca6f8b428300d63ca8200f627695a3f0b71585374a4a2b63ed2df WHIRLPOOL dde73b1401f746a680fd473a66fd8b1afe3a3d94254e283e560bee6741bf6a8c2be69e5af7752f8de5fdd6e180f24be47256fa29d315864bc68387552a1a5429 +DIST queen-readme.txt 5351 SHA256 815ce5fe1f12f0c92dbe3b08e087e449ea7ed323dd16190c1161d75c7f691a03 SHA512 ed2b5bc18896f9eeadea7526a70ad0a115bda229d1074d8c3a5a64228a7089cc20c6e296d82dc482634ab9bde06a07635d10ee68f47420f00625e0f5c29ef6ad WHIRLPOOL 2ccc64ffebaee9e383c9f461e63bbb1d3c3fe4aca5001e0afd652ae786476b0daebc8fc1bb8d765f0503b7b24568ec5902c080059f1e1d003d771a046d356902 +DIST queen.1.bz2 90404210 SHA256 824e0ac315707bbf8d2c857771268ad961b45ecd3945e32c4706179823deaaf0 SHA512 f931584c141403019dcd91c43c8610c23cf39b37272440517c75cd4946da005d7fabcdd76fce2ec7504f35ec02727bede7d6a98381bd4f0c6a8d65b3c4363278 WHIRLPOOL df0d9fbedb98527e9a997431528150cbaedfc2c5d452aa144b783d7b8ad6508b801dbaa03f93a4d1eddc10f03340f6059b3c5e0254be98dd09b7abe4f59c6d1a diff --git a/games-rpg/queen/metadata.xml b/games-rpg/queen/metadata.xml new file mode 100644 index 000000000000..f325c8eea004 --- /dev/null +++ b/games-rpg/queen/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/queen/queen-1.ebuild b/games-rpg/queen/queen-1.ebuild new file mode 100644 index 000000000000..2259c18e96a4 --- /dev/null +++ b/games-rpg/queen/queen-1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="Flight of the Amazon Queen - a 2D point-and-click adventure game set in the 1940s" +HOMEPAGE="http://scummvm.sourceforge.net/" +SF_BASE_URL="mirror://sourceforge/scummvm/" +LYS_BASE_URL="http://www.lysator.liu.se/~zino/scummvm/queen/" +FILE_DE="FOTAQ_Ger_talkie-1.0.zip" +FILE_EN="FOTAQ_Talkie-1.1.zip" +FILE_FR="FOTAQ_Fr_Talkie_1.0.zip" +FILE_HE="FOTAQ_Heb_talkie.zip" +FILE_IT="FOTAQ_It_Talkie_1.0.zip" +SRC_URI=" + linguas_de? ( + ${SF_BASE_URL}${FILE_DE} + ${LYS_BASE_URL}readme.txt -> queen-readme.txt + ) + linguas_en? ( + mp3? ( ${SF_BASE_URL}${FILE_EN} ) + !mp3? ( + ${LYS_BASE_URL}queen.1.bz2 + ${LYS_BASE_URL}readme.txt -> queen-readme.txt + ) + ) + linguas_fr? ( ${SF_BASE_URL}${FILE_FR} ) + linguas_he? ( + ${SF_BASE_URL}${FILE_HE} + ${LYS_BASE_URL}readme.txt -> queen-readme.txt + ) + linguas_it? ( ${SF_BASE_URL}${FILE_IT} ) + http://www.scummvm.org/images/cat-queen.png +" + +LICENSE="queen" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="mp3 linguas_de +linguas_en linguas_fr linguas_he linguas_it" +REQUIRED_USE="|| ( linguas_de linguas_en linguas_fr linguas_he linguas_it )" + +RDEPEND=" + linguas_de? ( games-engines/scummvm[vorbis] ) + linguas_en? ( games-engines/scummvm[mp3?] ) + linguas_fr? ( games-engines/scummvm[vorbis] ) + linguas_he? ( games-engines/scummvm[vorbis] ) + linguas_it? ( games-engines/scummvm[vorbis] ) +" +DEPEND="${RDEPEND} + linguas_de? ( app-arch/unzip ) + linguas_en? ( mp3? ( app-arch/unzip ) ) + linguas_fr? ( app-arch/unzip ) + linguas_he? ( app-arch/unzip ) + linguas_it? ( app-arch/unzip ) +" + +S=${WORKDIR} + +src_unpack() { + if use linguas_de ; then + mkdir de + unpack ${FILE_DE} + mv queen.1c de/queen.1c + rm COPYING + cp "${DISTDIR}"/queen-readme.txt de/readme.txt + fi + if use linguas_en ; then + mkdir en + if use mp3 ; then + unpack ${FILE_EN} + mv queen.1c en/queen.1c + mv readme.txt en/readme.txt + else + unpack queen.1.bz2 + mv queen.1 en/queen.1 + cp "${DISTDIR}"/queen-readme.txt en/readme.txt + fi + fi + if use linguas_fr ; then + mkdir fr + unpack ${FILE_FR} + mv queen.1c fr/queen.1c + mv readme.txt fr/readme.txt + fi + if use linguas_he ; then + mkdir he + unpack ${FILE_HE} + mv queen.1c he/queen.1c + rm COPYING + cp "${DISTDIR}"/queen-readme.txt he/readme.txt + fi + if use linguas_it ; then + mkdir it + unpack ${FILE_IT} + mv queen.1c it/queen.1c + mv readme.txt it/readme.txt + fi +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r * + newicon "${DISTDIR}"/cat-queen.png queen.png + if use linguas_de ; then + games_make_wrapper queen-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" queen" . + make_desktop_entry ${PN}-de "Flight of the Amazon Queen (German)" queen + fi + if use linguas_en ; then + games_make_wrapper queen-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" queen" . + make_desktop_entry ${PN}-en "Flight of the Amazon Queen (English)" queen + fi + if use linguas_fr ; then + games_make_wrapper queen-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" queen" . + make_desktop_entry ${PN}-fr "Flight of the Amazon Queen (French)" queen + fi + if use linguas_he ; then + games_make_wrapper queen-he "scummvm -f -p \"${GAMES_DATADIR}/${PN}/he\" queen" . + make_desktop_entry ${PN}-he "Flight of the Amazon Queen (Hebrew)" queen + fi + if use linguas_it ; then + games_make_wrapper queen-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" queen" . + make_desktop_entry ${PN}-it "Flight of the Amazon Queen (Italian)" queen + fi + prepgamesdirs +} diff --git a/games-rpg/sacred-gold/Manifest b/games-rpg/sacred-gold/Manifest new file mode 100644 index 000000000000..c7f363d7fab7 --- /dev/null +++ b/games-rpg/sacred-gold/Manifest @@ -0,0 +1 @@ +DIST sacred-1.0-1.0.01-x86.run 1515954 SHA256 6355482463095e2cde2beaa912b5eb36969589a279131951fef3ac0efd1f587d diff --git a/games-rpg/sacred-gold/metadata.xml b/games-rpg/sacred-gold/metadata.xml new file mode 100644 index 000000000000..0a7563a794f3 --- /dev/null +++ b/games-rpg/sacred-gold/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> +</maintainer> +</pkgmetadata> diff --git a/games-rpg/sacred-gold/sacred-gold-1.0.01.ebuild b/games-rpg/sacred-gold/sacred-gold-1.0.01.ebuild new file mode 100644 index 000000000000..41389e0bdf25 --- /dev/null +++ b/games-rpg/sacred-gold/sacred-gold-1.0.01.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit versionator eutils cdrom unpacker games + +PV_MAJOR=$(get_version_component_range 1-2) +MY_P=sacred-${PV_MAJOR}-${PV} + +DESCRIPTION="Action role-playing game" +HOMEPAGE="http://linuxgamepublishing.com/info.php?id=sacred" +SRC_URI="http://updatefiles.linuxgamepublishing.com/sacred/${MY_P}-x86.run" + +LICENSE="all-rights-reserved GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="mirror bindist strip" + +RDEPEND=" + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXi[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] +" +DEPEND="" + +S=${WORKDIR} + +src_unpack() { + cdrom_get_cds .data/bin/Linux/x86/sacred + ln -sfn "${CDROM_ROOT}"/.data cd + unpack ./cd/data/data.tar.gz + rm -f cd + cp -f "${CDROM_ROOT}"/.data/bin/Linux/x86/sacred* . || die + cp -f "${CDROM_ROOT}"/README* . || die + cp -f "${CDROM_ROOT}"/manual.pdf . || die + + mkdir -p "patch" + cd "patch" + unpack_makeself ${MY_P}-x86.run + bin/Linux/x86/loki_patch patch.dat "${S}" || die "loki_patch failed" + cd "${S}" + rm -rf "patch" + + mv lib/lib{1,2}/* lib + rmdir lib/lib{1,2} +} + +src_install() { + dir=${GAMES_PREFIX_OPT}/${PN} + + insinto "${dir}" + mv * "${D}/${dir}" || die + + games_make_wrapper ${PN} ./sacred "${dir}" "${dir}"/lib + newicon "${CDROM_ROOT}"/.data/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Sacred - Gold" ${PN} + + prepgamesdirs +} diff --git a/games-rpg/sacred-gold/sacred-gold-1.0.ebuild b/games-rpg/sacred-gold/sacred-gold-1.0.ebuild new file mode 100644 index 000000000000..f4a154018cf6 --- /dev/null +++ b/games-rpg/sacred-gold/sacred-gold-1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cdrom games + +DESCRIPTION="Action role-playing game" +HOMEPAGE="http://linuxgamepublishing.com/info.php?id=sacred" +SRC_URI="" + +LICENSE="all-rights-reserved GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="bindist strip" + +RDEPEND=" + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXi[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] +" +DEPEND="" + +S=${WORKDIR} + +src_unpack() { + cdrom_get_cds .data/bin/Linux/x86/sacred + ln -sfn "${CDROM_ROOT}"/.data cd + unpack ./cd/data/data.tar.gz + rm -f cd + mv lib/lib{1,2}/* lib + rmdir lib/lib{1,2} + cp -f "${CDROM_ROOT}"/.data/bin/Linux/x86/sacred* . || die + cp -f "${CDROM_ROOT}"/README* . || die + cp -f "${CDROM_ROOT}"/manual.pdf . || die +} + +src_install() { + dir=${GAMES_PREFIX_OPT}/${PN} + + insinto "${dir}" + mv * "${D}/${dir}" || die + + games_make_wrapper ${PN} ./sacred "${dir}" "${dir}"/lib + newicon "${CDROM_ROOT}"/.data/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Sacred - Gold" ${PN} + + prepgamesdirs +} diff --git a/games-rpg/soltys/Manifest b/games-rpg/soltys/Manifest new file mode 100644 index 000000000000..ca97e2c35b7e --- /dev/null +++ b/games-rpg/soltys/Manifest @@ -0,0 +1,4 @@ +DIST cat-soltys.png 1917 SHA256 a10d0cc945fe15592744d65586cf359a6c571996a59341e1015f73a316b8e75a SHA512 c2df23275372582300d3d87d2b629548dabf61ad9d031cb352f4167d956d5126926efee41b24f48040390177b6f28e1b432ff5049bb66858316cce37106aaca8 WHIRLPOOL 869332a97160227613cb11419d64b4ffaac7de086147d6deda1821cab0defa56ec8990885ffa2a55d28eb80e90ab9d9a8fc970cbdc3786738b5cd9bcc282c7bf +DIST soltys-en-v1.0.zip 3484518 SHA256 87b89e654b8a5b8ebe342cb4c5c6049ab9a43a5efb474d9c49bafb77dcce48f6 SHA512 92637d760033c044b3979dfe21f617db0b2cf98c48587e058910f877b38e0887fed8102782f1dfac85bc8eefa68d3791d7ff2d6074396bea2728a128e37cee1d WHIRLPOOL 8993489ef8db9e0c16e240ae14e8c29a4ad56f5413d575ae947f9ba26a94a82cfc78e2a4371aebfea2ddebaed5f29a13838ad1eb8ee7218cb77c3c23f9d3416c +DIST soltys-es-v1.0.zip 3527349 SHA256 913db60d16a3c7faa2f8d02a09ea925792614bfebdc46c6df8f89ac277a35302 SHA512 eac3aa60e274720f65504ffe5bc18f99401a24c5775c3bc6eb893aef2af7e02055eb52e3da162f124babe5b611f93ff5444aca6e2ea26e5baa98a2131dd49da0 WHIRLPOOL 6870bd20f9064a80008ce192e4f4fc32431d513f43b65829a22421ae585331d99b9fa0c42f5cf86a85b5dfc106146278c484eafb7b68e41d4a5171ea39b7d4dc +DIST soltys-pl-v1.0.zip 3483638 SHA256 c865520e3752183cf5f0d062712b40dc21efc602eaa4c88952906b61979c81a7 SHA512 b8c04366d360eb4b7f296718ae46a2e417b676f9bddd6fb8555069d8972ae2ff1706c67fc473a52a5009cb433ff58db377e5f02ff6b27e68e35d2a89c8108f24 WHIRLPOOL 07429bd52db303e5e97fee67778b9086cf7c0633b17684807d0ccf07d63229bbafa1dc50fa73c47911fedd8fb3a605a5931feff4436eb5215d5b9febd0ad7987 diff --git a/games-rpg/soltys/metadata.xml b/games-rpg/soltys/metadata.xml new file mode 100644 index 000000000000..f325c8eea004 --- /dev/null +++ b/games-rpg/soltys/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/soltys/soltys-1.0-r1.ebuild b/games-rpg/soltys/soltys-1.0-r1.ebuild new file mode 100644 index 000000000000..e8b8abe36bf7 --- /dev/null +++ b/games-rpg/soltys/soltys-1.0-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker eutils games + +DESCRIPTION="Classic adventure game" +HOMEPAGE="http://wiki.scummvm.org/index.php/Soltys" +SRC_URI="linguas_en? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip ) + linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-v${PV}.zip ) + linguas_pl? ( mirror://sourceforge/scummvm/${PN}-pl-v${PV}.zip ) + !linguas_en? ( !linguas_es? ( !linguas_pl? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip ) ) ) + http://www.scummvm.org/images/cat-soltys.png" + +LICENSE="Soltys" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="linguas_en linguas_es linguas_pl" + +RDEPEND=">=games-engines/scummvm-1.5" +DEPEND="$(unpacker_src_uri_depends)" + +S=${WORKDIR} + +src_unpack() { + if use linguas_en || ( ! use linguas_en && ! use linguas_es && ! use linguas_pl ) ; then + mkdir -p en || die + unpacker ${PN}-en-v${PV}.zip + mv vol.{cat,dat} en/ || die + fi + if use linguas_es ; then + mkdir -p es || die + unpacker ${PN}-es-v${PV}.zip + mv soltys-es-v1-0/vol.{cat,dat} es/ || die + fi + if use linguas_pl ; then + mkdir -p pl || die + unpacker ${PN}-pl-v${PV}.zip + mv vol.{cat,dat} pl/ || die + fi +} + +src_prepare() { + rm -rf license.txt soltys-es-v1-0 +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r * + newicon "${DISTDIR}"/cat-soltys.png soltys.png + if use linguas_en || ( ! use linguas_en && ! use linguas_es && ! use linguas_pl ) ; then + games_make_wrapper soltys-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" soltys" . + make_desktop_entry ${PN}-en "Soltys (English)" soltys + fi + if use linguas_es ; then + games_make_wrapper soltys-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" soltys" . + make_desktop_entry ${PN}-es "Soltys (Español)" soltys + fi + if use linguas_pl ; then + games_make_wrapper soltys-pl "scummvm -f -p \"${GAMES_DATADIR}/${PN}/pl\" soltys" . + make_desktop_entry ${PN}-pl "Soltys (Polski)" soltys + fi + prepgamesdirs +} diff --git a/games-rpg/sumwars/Manifest b/games-rpg/sumwars/Manifest new file mode 100644 index 000000000000..f5f277e13b6e --- /dev/null +++ b/games-rpg/sumwars/Manifest @@ -0,0 +1 @@ +DIST sumwars-0.5.8-src.tar.bz2 107811288 SHA256 2f432d5f84708447507f6686b847b8538de373cd951f5842cfec5a09aba0aabf SHA512 ccf156f4484b0aeb8984631321d6691dc180ad63fdfa59d92aaa05ada3e871fc10656f32f9ba1b65abe7342e1481e14ca01f025ffc0ec5797cd8e91d97240cf1 WHIRLPOOL 18658095acc19856f5f70e992ec81e66e86fc52a4480dc0b3b161cab9ed589e12717394f1859682954b5a62edb2241d6c005170a1a6ac0cd6c558f0f29bc1723 diff --git a/games-rpg/sumwars/metadata.xml b/games-rpg/sumwars/metadata.xml new file mode 100644 index 000000000000..e35e8891bb2f --- /dev/null +++ b/games-rpg/sumwars/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <herd>proxy-maintainers</herd> + <maintainer> + <email>protogenes@web.de</email> + <name>Michael Kunz</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> + <longdescription lang="en"> + </longdescription> + <upstream> + <changelog>http://sumwars.org/mantis/changelog_page.php</changelog> + <bugs-to>https://sumwars.org/mantis/index.php</bugs-to> + <remote-id type="sourceforge">sumwars</remote-id> + </upstream> + <use> + <flag name="tools">Builds editor tools</flag> + </use> +</pkgmetadata> diff --git a/games-rpg/sumwars/sumwars-0.5.8.ebuild b/games-rpg/sumwars/sumwars-0.5.8.ebuild new file mode 100644 index 000000000000..ebfc09c717f0 --- /dev/null +++ b/games-rpg/sumwars/sumwars-0.5.8.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils eutils flag-o-matic gnome2-utils games + +DESCRIPTION="a multi-player, 3D action role-playing game" +HOMEPAGE="http://sumwars.org" +SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2" + +LICENSE="GPL-3 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+tools debug" + +LANGS="de en it pl pt ru uk" +for L in ${LANGS} ; do + IUSE="${IUSE} linguas_${L}" +done +unset L + +RDEPEND=" + >=dev-games/cegui-0.8[ogre] + >=dev-games/ogre-1.7.4-r1[freeimage,opengl] + dev-games/ois + dev-games/physfs + >=dev-lang/lua-5.1 + >=dev-libs/tinyxml-2.6.2-r2 + media-libs/freealut + media-libs/openal + media-libs/libogg + media-libs/libvorbis + >=net-libs/enet-1.3.0 + x11-libs/libX11 + x11-libs/libXrandr + tools? ( dev-libs/boost )" +DEPEND=${RDEPEND} + +S=${WORKDIR}/${PN}-${PV%_*} + +src_configure() { + # QA + append-flags -fno-strict-aliasing + + use debug && CMAKE_BUILD_TYPE=Debug + + local l langs + for l in ${LANGS}; do + if use linguas_${l}; then + langs="${langs} ${l}" + fi + done + + [[ -z "${langs}" ]] && langs="en" + + # configure sumwars with cmake + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="" + -DSUMWARS_LANGUAGES="${langs}" + -DSUMWARS_NO_TINYXML=ON + -DSUMWARS_NO_ENET=ON + -DSUMWARS_DOC_DIR="/usr/share/doc/${PF}" + -DSUMWARS_EXECUTABLE_DIR="${GAMES_BINDIR}" + -DSUMWARS_SHARE_DIR="${GAMES_DATADIR}/${PN}" + -DSUMWARS_STANDALONE_MODE=OFF + -DSUMWARS_POST_BUILD_COPY=OFF + -DSUMWARS_PORTABLE_MODE=OFF + -DSUMWARS_RANDOM_REGIONS=ON + $(cmake-utils_use tools SUMWARS_BUILD_TOOLS) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + newicon -s 128 share/icon/SumWarsIcon_128x128.png ${PN}.png + make_desktop_entry ${PN} "Summoning Wars" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/tmw/Manifest b/games-rpg/tmw/Manifest new file mode 100644 index 000000000000..7d2e81d92d37 --- /dev/null +++ b/games-rpg/tmw/Manifest @@ -0,0 +1 @@ +DIST tmw-branding-20130201.tar.gz 1146207 SHA256 251692f120c54fba4323191239a4a2022aa58a5de220531e06b634fc25097c69 SHA512 65ff615ef8a715192416b80393341d76423a8b2a27609e9388fcdec0b4e3552398857b33585690de5fded9f792c5dbfceb631cf834e68dcc8906d48097a21a99 WHIRLPOOL 87af806a49f2017149e8e84ad8c682a6ed72c5fd87ad8f0fa5c9ebc407ddc0400b89a9a0cc40ca33716a7a1e82daaec102007764848302a8c94d5c17182d2018 diff --git a/games-rpg/tmw/files/tmw-branding-20130201-gentoo.patch b/games-rpg/tmw/files/tmw-branding-20130201-gentoo.patch new file mode 100644 index 000000000000..b671d149a8c2 --- /dev/null +++ b/games-rpg/tmw/files/tmw-branding-20130201-gentoo.patch @@ -0,0 +1,20 @@ +--- tmw-branding-20130201/tmw ++++ tmw-branding-20130201/tmw +@@ -1,2 +1,2 @@ + #!/bin/sh +-exec manaplus /usr/share/tmw/tmw.mana "$@" ++exec manaplus @GENTOO_DATADIR@/tmw.mana "$@" +--- tmw-branding-20130201/tmw.desktop ++++ tmw-branding-20130201/tmw.desktop +@@ -8,9 +8,9 @@ + Comment[it]=Un gioco fantasy online + Comment[nl]=Een online role playing game + Comment[sv]=Ett fantasyrollspel online +-Exec=manaplus /usr/share/tmw/tmw.mana ++Exec=manaplus @GENTOO_DATADIR@/tmw.mana + StartupNotify=false + Terminal=false + Type=Application + Icon=tmw +-Categories=Application;Game; ++Categories=Game; diff --git a/games-rpg/tmw/metadata.xml b/games-rpg/tmw/metadata.xml new file mode 100644 index 000000000000..4304bc88a6fe --- /dev/null +++ b/games-rpg/tmw/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">themanaworld</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/tmw/tmw-20130201.ebuild b/games-rpg/tmw/tmw-20130201.ebuild new file mode 100644 index 000000000000..2119ddcf18b2 --- /dev/null +++ b/games-rpg/tmw/tmw-20130201.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +MY_PN=${PN}-branding +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Branding for the Mana client for server.themanaworld.org" +HOMEPAGE="http://themanaworld.org/" +SRC_URI="mirror://sourceforge/themanaworld/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="games-rpg/manaplus" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${MY_P}-gentoo.patch + + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + ${PN} ${PN}.desktop \ + || die "sed failed" +} + +src_install() { + dogamesbin ${PN} + + insinto "${GAMES_DATADIR}/${PN}/" + doins ${PN}.mana + doins -r data/ + + domenu ${PN}.desktop + + doicon -s 32 data/icons/${PN}.xpm + doicon data/icons/${PN}.png + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/to-the-moon/Manifest b/games-rpg/to-the-moon/Manifest new file mode 100644 index 000000000000..3b426e80395b --- /dev/null +++ b/games-rpg/to-the-moon/Manifest @@ -0,0 +1 @@ +DIST ToTheMoon_linux_1389114090.sh 75823678 SHA256 8272e4693dcf553f4285de4c46e89e1e2e4d5a59a088396b7ea188f935407970 SHA512 bed844f143ef9c3ff8fe93da186422e84d259229874c331315d8f1c7538fd6c417d6ca1aeecbe6c2a664fad98aff51f4723227d0ef07612acf29f86313f9aa1a WHIRLPOOL a3ebaed2e50636d2692ba1b893001cdb327c650d2b5336e928c6f6b74d3a382ed1c392b748e61d7037aa08f4029a524b5b83933f77da57177a9e1bc968385087 diff --git a/games-rpg/to-the-moon/metadata.xml b/games-rpg/to-the-moon/metadata.xml new file mode 100644 index 000000000000..66b6e3dea3ef --- /dev/null +++ b/games-rpg/to-the-moon/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name='bundled-libs'>Use bundled libraries</flag> + </use> +</pkgmetadata> diff --git a/games-rpg/to-the-moon/to-the-moon-0.ebuild b/games-rpg/to-the-moon/to-the-moon-0.ebuild new file mode 100644 index 000000000000..f278190a77f8 --- /dev/null +++ b/games-rpg/to-the-moon/to-the-moon-0.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: unbundling sdl-sound breaks the game + +EAPI=5 + +inherit eutils unpacker gnome2-utils games + +MY_PN=ToTheMoon +DESCRIPTION="Indie Adventure RPG, two doctors traversing the memories of a dying man to fulfill his last wish" +HOMEPAGE="http://freebirdgames.com/games/to-the-moon" +SRC_URI="${MY_PN}_linux_1389114090.sh" + +LICENSE="all-rights-reserved bundled-libs? ( LGPL-2 LGPL-2.1 ZLIB )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="bundled-libs" +RESTRICT="fetch bindist splitdebug" + +QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin*" +if [[ ${ARCH} == "amd64" ]] ; then + QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib64/*" +else + QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib/*" +fi + +RDEPEND=" + !bundled-libs? ( + dev-libs/libsigc++:2 + >=media-libs/libsdl2-2.0.1[X,joystick,opengl,sound,threads,video] + media-libs/openal + media-libs/sdl2-image[png] + media-libs/sdl2-ttf + ) + sys-libs/zlib + virtual/opengl" + +S=${WORKDIR}/data + +pkg_nofetch() { + einfo + einfo "Please buy & download \"${SRC_URI}\" from:" + einfo " ${HOMEPAGE}" + einfo "and move/link it to \"${DISTDIR}\"" + einfo +} + +src_unpack() { + # mojo stuff inside makeself archive, unpack_makeself fails + local lastline=$(( $(grep -a -h -n -m 1 -F -e "Extra newline, because in very rare cases (OpenSolaris) stub is directly added after script" "${DISTDIR}/${A}" | cut -d':' -f1) + 1 )) + [[ ${lastline} ]] || die "no last line" + local offset=$(head -n ${lastline} "${DISTDIR}/${A}" | wc -c) + [[ ${offset} ]] || die "no offset" + dd ibs=${offset} skip=1 if="${DISTDIR}/${A}" of="${T}"/moon.zip || die + unpack_zip "${T}"/moon.zip +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + local libsuffix=$(usex amd64 "64" "") + local arch=$(usex amd64 "x86_64" "x86") + + insinto "${dir}" + doins -r noarch/{Audio,Data,Fonts,Graphics,Game.ini,mkxp.conf,ToTheMoon.png} + + exeinto "${dir}" + doexe ${arch}/${MY_PN}.bin.${arch} + + exeinto "${dir}/lib${libsuffix}" + if use bundled-libs ; then + doexe ${arch}/lib${libsuffix}/* + else + doexe ${arch}/lib${libsuffix}/libSDL_sound-1.0.so.1 + fi + + games_make_wrapper ${PN} "./${MY_PN}.bin.${arch}" "${dir}" "${dir}/lib${libsuffix}" + make_desktop_entry ${PN} "To the Moon" + newicon -s 32 noarch/${MY_PN}.png ${PN}.png + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/twclone/Manifest b/games-rpg/twclone/Manifest new file mode 100644 index 000000000000..24dba1b973d5 --- /dev/null +++ b/games-rpg/twclone/Manifest @@ -0,0 +1 @@ +DIST twclone-source-0.14.tar.gz 163065 SHA256 3fa3bca53db9115555633a19671c89fdd7021a6b7f9061365386e131270b6cbc SHA512 66a63e2cc5fe82fb5a5b1f887c9eb3bf8b89044f7f7d489b67e5bb15a21426a5a0eb27b53ab59c05c784fc6fb7ffaadcfc5453fc55943959db859a053adb7843 WHIRLPOOL 660c8ac33f6f0315ccd6eca67f7f61bf2ebc160a1dbbec28f860dce37b51f662dfa45f3f61ab63f62e1ded5e4c1e32c35a105d70fc254e66c3cce70f9a462507 diff --git a/games-rpg/twclone/metadata.xml b/games-rpg/twclone/metadata.xml new file mode 100644 index 000000000000..27bc7ca62162 --- /dev/null +++ b/games-rpg/twclone/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +How many of you remeber the BBS days back in the late 80's and early 90's? +Back when you would call in play games and go on with your life? Well I'm +trying to duplicate one of those old games. It was called Trade Wars +2002(Created by Martech Software). So I decided to make a game similar to it +that runs in Linux. +</longdescription> + <upstream> + <remote-id type="sourceforge">twclone</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/twclone/twclone-0.14.ebuild b/games-rpg/twclone/twclone-0.14.ebuild new file mode 100644 index 000000000000..d06e68e6514e --- /dev/null +++ b/games-rpg/twclone/twclone-0.14.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +MY_P="${PN}-source-${PV}" +DESCRIPTION="Clone of BBS Door game Trade Wars 2002" +HOMEPAGE="http://twclone.sourceforge.net/" +SRC_URI="mirror://sourceforge/twclone/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_install() { + DOCS="AUTHORS ChangeLog PROTOCOL README TODO" \ + default + cd "${D}/${GAMES_BINDIR}" + for f in * ; do + mv {,${PN}-}${f} + done + prepgamesdirs +} diff --git a/games-rpg/valyriatear/Manifest b/games-rpg/valyriatear/Manifest new file mode 100644 index 000000000000..e21a9c781948 --- /dev/null +++ b/games-rpg/valyriatear/Manifest @@ -0,0 +1 @@ +DIST valyriatear-1.0.0.tar.gz 100847837 SHA256 cfb6fc1a1fb677de4c67d2092456cc453c6778905927408a97230d03cedc5a1e SHA512 5dc9b3f5dfc61b1d25271b8934f0089bec379d6060d7a7d3a13e4383262593232f87780096d4ecaf00a942c18422350370fd9c6418a3ff8b12e7839422b0ed95 WHIRLPOOL b1f7e26e6ce4297c860017439200d5b3a8333d41cff95ba1bf5c402ffdebce35e0131a053650b443d11b897dc7b00e9576a457c9750a12d53851cf1cbb2c4dc4 diff --git a/games-rpg/valyriatear/metadata.xml b/games-rpg/valyriatear/metadata.xml new file mode 100644 index 000000000000..6a16693e688b --- /dev/null +++ b/games-rpg/valyriatear/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name='editor'>Compile the Qt editor along with the game</flag> + </use> + <upstream> + <remote-id type='github'>Bertram25/ValyriaTear</remote-id> + </upstream> +</pkgmetadata> + diff --git a/games-rpg/valyriatear/valyriatear-1.0.0.ebuild b/games-rpg/valyriatear/valyriatear-1.0.0.ebuild new file mode 100644 index 000000000000..3610defcd813 --- /dev/null +++ b/games-rpg/valyriatear/valyriatear-1.0.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils games + +MY_P=ValyriaTear-${PV/_rc/-rc} + +DESCRIPTION="A free 2D J-RPG based on the Hero of Allacrost engine" +HOMEPAGE="http://valyriatear.blogspot.de/ + https://github.com/Bertram25/ValyriaTear" +SRC_URI="https://github.com/Bertram25/ValyriaTear/archive/${PV}/${P}.tar.gz" + +LICENSE="GPL-2 GPL-2+ GPL-3 CC-BY-SA-3.0 CC-BY-3.0 CC0-1.0 OFL-1.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug editor nls" + +RDEPEND=" + dev-cpp/luabind + dev-lang/lua + media-libs/libpng:0= + media-libs/libsdl[X,joystick,opengl,video] + media-libs/libvorbis + media-libs/openal + media-libs/sdl-image[png] + media-libs/sdl-ttf + virtual/glu + virtual/opengl + x11-libs/libX11 + editor? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + dev-libs/boost + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${MY_P} + +src_configure() { + local mycmakeargs=( + -DUSE_SYSTEM_LUABIND=ON + -DPKG_BINDIR="${GAMES_BINDIR}" + -DPKG_DATADIR="${GAMES_DATADIR}/${PN}" + $(cmake-utils_use editor EDITOR_SUPPORT) + $(cmake-utils_use !nls DISABLE_TRANSLATIONS) + $(cmake-utils_use debug DEBUG_FEATURES) + -DUSE_PCH_COMPILATION=OFF + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} diff --git a/games-rpg/vendetta-online-bin/Manifest b/games-rpg/vendetta-online-bin/Manifest new file mode 100644 index 000000000000..c8f9f8439ee1 --- /dev/null +++ b/games-rpg/vendetta-online-bin/Manifest @@ -0,0 +1,2 @@ +DIST vendetta-online-bin-1.8.296-amd64.sh 235822235 SHA256 fcd0e96d1e48f49289ef00d3e8a9f05013389916012c0c8d5ace18af83b348ab SHA512 f57b8da6b2364df7ca78c0a8df66cadbc568927376548f95b49da5d641d49a155315583d4323599f59e982b0569b972311fa4717e11dab48e4da95ab235d05a4 WHIRLPOOL 320aaaae6cdcbe799036ead0c50cc97e808eda018d4d5475c01c89eb499cf7adfb3ef704b1ce2eb0a90ba39dfabdf500c6685bdf36b6051d4ae4122468fb3009 +DIST vendetta-online-bin-1.8.296-x86.sh 235890404 SHA256 93693050c1431b6cd7ad77972b0995b76696d2e4ef3fd17246fa09a4ae764c20 SHA512 909e4960fe85c7bc71cf1530cd8fd9fa096b28c9ba621e3c16e14d1264858939e859fad182e76301322eb45b7c451bd21d87a90274eefb9e71e1fd1eb1f498b0 WHIRLPOOL fc85dfbd059773b68201d5294a30cc1b6a05d7be43c7497c05d07d84be8b9b245da7e6d584541f8a47231fbf975b1c550399e3fa80457c9475700410aa4b1fb7 diff --git a/games-rpg/vendetta-online-bin/files/vendetta b/games-rpg/vendetta-online-bin/files/vendetta new file mode 100755 index 000000000000..113f5d0925b1 --- /dev/null +++ b/games-rpg/vendetta-online-bin/files/vendetta @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ ! -e ~/.vendetta ] ; then + cp -vR "DATADIR"/install ~/.vendetta +fi + +exec "DATADIR"/vendetta "$@" diff --git a/games-rpg/vendetta-online-bin/metadata.xml b/games-rpg/vendetta-online-bin/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/vendetta-online-bin/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild b/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild new file mode 100644 index 000000000000..c0c3ac34b7bf --- /dev/null +++ b/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils unpacker games + +DESCRIPTION="Space-based MMORPG" +HOMEPAGE="http://www.vendetta-online.com/" +SRC_URI="amd64? ( + http://mirror.cle.vendetta-online.com/vendetta-linux-amd64-installer.sh + -> ${P}-amd64.sh + ) + x86? ( + http://mirror.cle.vendetta-online.com/vendetta-linux-ia32-installer.sh + -> ${P}-x86.sh + )" + +LICENSE="guild" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="mirror strip" + +RDEPEND="virtual/opengl + x11-libs/gtk+:2" + +S=${WORKDIR} + +src_unpack() { + unpack_makeself +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + insinto "${dir}" + doins -r * || die "doins failed" + fperms +x "${dir}"/{vendetta,install/{media.rlb,update.rlb,vendetta}} \ + || die "fperms failed" + + sed \ + -e "s:DATADIR:${dir}:" \ + "${FILESDIR}"/vendetta > "${T}"/vendetta \ + || die "sed failed" + + dogamesbin "${T}"/vendetta + newicon install/manual/images/ships.valkyrie.jpg ${PN}.jpg + make_desktop_entry vendetta "Vendetta Online" /usr/share/pixmaps/${PN}.jpg + + prepgamesdirs +} diff --git a/games-rpg/wasteland2/Manifest b/games-rpg/wasteland2/Manifest new file mode 100644 index 000000000000..1c3b4506b6fc --- /dev/null +++ b/games-rpg/wasteland2/Manifest @@ -0,0 +1 @@ +DIST gog_wasteland_2_1.9.0.13.tar.gz 10959158010 SHA256 0f6bf4f806de3233a11ec1049f96d779f8d013dc38f296d101466701fa931728 SHA512 8b5ed19ffee9505efaf03f7ef3ba55dbdbbeda68b7961e92c22776bbb7e842df8c5e5ee727967e79dec753fd03d39f0a1c98e380e540971834b56066b6a79929 WHIRLPOOL d53f4636606c03a5977b9603495f61aaedc3f1851a1ca2bd8b4b2bda6feff8de0f9ec488fa10b052870fbfbea875673f2fe27fafd92ee0c663b0ae158171c2ee diff --git a/games-rpg/wasteland2/metadata.xml b/games-rpg/wasteland2/metadata.xml new file mode 100644 index 000000000000..ee67c3092f58 --- /dev/null +++ b/games-rpg/wasteland2/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> +</pkgmetadata> diff --git a/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild b/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild new file mode 100644 index 000000000000..1118431376db --- /dev/null +++ b/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils gnome2-utils check-reqs games + +DESCRIPTION="Direct sequel to 1988's Wasteland, the first-ever post-apocalyptic computer RPG and the inspiration behind the Fallout series" +HOMEPAGE="https://wasteland.inxile-entertainment.com/" +SRC_URI="gog_wasteland_2_${PV}.tar.gz" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="bindist fetch mirror" + +QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/*" + +RDEPEND=" + >=dev-libs/atk-2.12.0-r1[abi_x86_32(-)] + >=dev-libs/glib-2.40.0-r1:2[abi_x86_32(-)] + >=media-libs/fontconfig-2.10.92:1.0[abi_x86_32(-)] + >=media-libs/freetype-2.5.3-r1:2[abi_x86_32(-)] + >=x11-libs/cairo-1.12.16-r2[abi_x86_32(-)] + >=x11-libs/gdk-pixbuf-2.30.8:2[abi_x86_32(-)] + >=x11-libs/gtk+-2.24.24:2[abi_x86_32(-)] + >=x11-libs/pango-1.36.5[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] + >=virtual/glu-9.0-r1[abi_x86_32(-)] + virtual/opengl +" + +S="${WORKDIR}/Wasteland 2" + +CHECKREQS_DISK_BUILD="22000M" +CHECKREQS_DISK_USR="21600M" + +pkg_nofetch() { + einfo + einfo "Please buy Wasteland 2" + einfo "from https://www.gog.com/ and" + einfo "download \"${SRC_URI}\"" + einfo "and move/link it to \"${DISTDIR}\"" + einfo + einfo "This ebuild was tested with the CLASSICAL edition." + einfo "If it works with the deluxe edition too, please" + einfo "open a bug report. If not, open a bug report too." + einfo +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + # over 20GB of data + dodir "${dir}" + mv game/WL2_Data "${D%/}${dir}"/ || die + exeinto "${dir}" + doexe game/WL2 + + games_make_wrapper ${PN} ./WL2 "${dir}" + newicon -s 256 support/gog-wasteland-2.png ${PN}.png + make_desktop_entry ${PN} "Wasteland 2" + + dodoc docs/*.pdf + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/wastesedge/Manifest b/games-rpg/wastesedge/Manifest new file mode 100644 index 000000000000..3b8b8134a438 --- /dev/null +++ b/games-rpg/wastesedge/Manifest @@ -0,0 +1 @@ +DIST wastesedge-src-0.3.5.tar.gz 10749912 SHA256 f872a2dc89ca454523f5b55c7fc8b29986dae8bc72f52647a6e1dab3f2a30674 SHA512 d4c77eb1bde2c28002e4f56a6bfa5f816ea53de7061b5e60635f15c670ff45c3a18e3316b92007f74033a62538503f14b67e1175cf22c718c22ca1021dc7af3b WHIRLPOOL 38695ec20bb171a47af8d691e52c07f4eb4331798b790bf4d93cf56bcbb3846a91daa88fee9d9e659ef8f2ccb2e54065e988ceb7683fb24656e4c24ff50b7c7c diff --git a/games-rpg/wastesedge/metadata.xml b/games-rpg/wastesedge/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-rpg/wastesedge/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-rpg/wastesedge/wastesedge-0.3.5.ebuild b/games-rpg/wastesedge/wastesedge-0.3.5.ebuild new file mode 100644 index 000000000000..06e9c591f1cb --- /dev/null +++ b/games-rpg/wastesedge/wastesedge-0.3.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +DESCRIPTION="role playing game to showcase the adonthell engine" +HOMEPAGE="http://adonthell.linuxgames.com/" +SRC_URI="http://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="nls" +RESTRICT="userpriv" + +RDEPEND="${PYTHON_DEPS} + >=games-rpg/adonthell-0.3.5-r1[${PYTHON_USEDEP}] + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_configure(){ + egamesconf \ + $(use_enable nls) \ + --with-adonthell-binary="${GAMES_BINDIR}/adonthell" +} + +src_install(){ + emake DESTDIR="${D}" pixmapdir=/usr/share/pixmaps install + dodoc AUTHORS ChangeLog NEWS PLAYING README + make_desktop_entry adonthell-wastesedge "Waste's Edge" wastesedge_32x32 + prepgamesdirs +} diff --git a/games-rpg/xu4/Manifest b/games-rpg/xu4/Manifest new file mode 100644 index 000000000000..b573d51cce61 --- /dev/null +++ b/games-rpg/xu4/Manifest @@ -0,0 +1,3 @@ +DIST u4upgrad.zip 632072 SHA256 400ac37311f3be74c1b2d7836561b2ead2b146f5162586865b0f4881225cca58 SHA512 4832d8cfd266d3ccc5eab5184bd2b6b9acd4c0203478873fb5e11704d95104dd9285a7752bad77f873d4f8603673184ae9421964509b948ec69944a4ceadd083 WHIRLPOOL 3d9c320efe24b29edca1f0d917dcaad1da7c1c6246c753b2366ada81552f43113bd57f335ca79adf2283cdab6ba24bf0c09aeb7802a33d3fdec5e0bbe1782d01 +DIST ultima4-1.01.zip 537487 SHA256 ec84ef08e9e38156622300065aa62260276fc8f1c1ff2774f7916e7c10db40dc SHA512 c86c29d51e21b93992316552fbaaec948e7e8048fea484f003f43ac82211f82fa587fb15db991cddf744f2c3ff0fc4d411cd51cc7650e13a5b520c4dc620518c WHIRLPOOL f3acdc021449e3b55adc7d0ea967c8f77cdd813a0f9316042ae8e906eb105b6297f19efc90fffbd9be747bca7d6b0ea4b0bbdc1729c906076e89498558250155 +DIST xu4-0.9.tar.gz 320090 SHA256 26d7a957411e98474d3a06a0bf63a683208d3c35c0cf7afe90db992a934b0bf3 SHA512 6c0b27472074d96a5f76e024c800bed89c57c29dbd760278c819ad8b024362480bda5f1584eb9fe64fd6f6cae0b3b8d8571c8cf533f25b842471803acd7cea8d WHIRLPOOL 428ee87920850e16ce411e0a2bd1656a68a61644d96349bf727cbedd041e6fe3c8c134e960eaf5205d0d3f9deeccd9de23cab2186567fbd8c80b382ac5c9f812 diff --git a/games-rpg/xu4/files/0.9-savegame.patch b/games-rpg/xu4/files/0.9-savegame.patch new file mode 100644 index 000000000000..44a52dd40e95 --- /dev/null +++ b/games-rpg/xu4/files/0.9-savegame.patch @@ -0,0 +1,76 @@ +--- src/savegame.c.orig ++++ src/savegame.c +@@ -21,23 +21,24 @@ + char *partySavFilename() { + char *fname; + +-#if defined(MACOSX) + char *home; + + home = getenv("HOME"); + if (home && home[0]) { + fname = (char *) malloc(strlen(home) + ++#if defined(MACOSX) + strlen(MACOSX_USER_FILES_PATH) + ++#endif ++strlen("/.u4/") + + strlen(PARTY_SAV_BASE_FILENAME) + 2); + strcpy(fname, home); ++#if defined(MACOSX) + strcat(fname, MACOSX_USER_FILES_PATH); +- strcat(fname, "/"); ++#endif ++ strcat(fname, "/.u4/"); + strcat(fname, PARTY_SAV_BASE_FILENAME); + } else + fname = strdup(PARTY_SAV_BASE_FILENAME); +-#else +- fname = strdup(PARTY_SAV_BASE_FILENAME); +-#endif + + return fname; + } +@@ -45,24 +45,24 @@ + char *monstersSavFilename() { + char *fname; + +-#if defined(MACOSX) + char *home; + + home = getenv("HOME"); + if (home && home[0]) { + fname = (char *) malloc(strlen(home) + ++#if defined(MACOSX) + strlen(MACOSX_USER_FILES_PATH) + ++#endif ++strlen("/.u4/") + + strlen(MONSTERS_SAV_BASE_FILENAME) + 2); + strcpy(fname, home); ++#if defined(MACOSX) + strcat(fname, MACOSX_USER_FILES_PATH); +- strcat(fname, "/"); ++#endif ++ strcat(fname, "/.u4/"); + strcat(fname, MONSTERS_SAV_BASE_FILENAME); + } else + fname = strdup(MONSTERS_SAV_BASE_FILENAME); +-#else +- fname = strdup(MONSTERS_SAV_BASE_FILENAME); +-#endif +- + return fname; + } + +--- src/u4.c.orig ++++ src/u4.c +@@ -38,6 +38,10 @@ + osxInit(argv[0]); + #endif + ++ if (getenv("HOME")) { ++ chdir(getenv("HOME")); ++ mkdir(".u4", 0777); ++ } + settingsRead(); + + for (i = 1; i < (unsigned int)argc; i++) { diff --git a/games-rpg/xu4/files/xu4-0.9-ldflags.patch b/games-rpg/xu4/files/xu4-0.9-ldflags.patch new file mode 100644 index 000000000000..560cdc33f1d9 --- /dev/null +++ b/games-rpg/xu4/files/xu4-0.9-ldflags.patch @@ -0,0 +1,35 @@ +--- src/Makefile.common.old ++++ src/Makefile.common +@@ -68,25 +68,25 @@ + mkutils:: dumpsavegame$(EXEEXT) lzwenc$(EXEEXT) lzwdec$(EXEEXT) rleenc$(EXEEXT) rledec$(EXEEXT) tlkconv$(EXEEXT) + + $(MAIN): $(OBJS) +- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + + dumpsavegame$(EXEEXT) : util/dumpsavegame.o savegame.o io.o names.o +- $(CC) $(CFLAGS) -o dumpsavegame util/dumpsavegame.o savegame.o io.o names.o ++ $(CC) $(LDFLAGS) $(CFLAGS) -o dumpsavegame util/dumpsavegame.o savegame.o io.o names.o + + lzwenc$(EXEEXT) : util/lzwenc.o lzw/hash.o util/pngconv.o +- $(CC) $(CFLAGS) -o lzwenc util/lzwenc.o lzw/hash.o util/pngconv.o -lpng -lz ++ $(CC) $(LDFLAGS) $(CFLAGS) -o lzwenc util/lzwenc.o lzw/hash.o util/pngconv.o -lpng -lz + + lzwdec$(EXEEXT) : util/lzwdec.o lzw/lzw.o lzw/u4decode.o lzw/hash.o util/pngconv.o +- $(CC) $(CFLAGS) -o lzwdec util/lzwdec.o lzw/lzw.o lzw/u4decode.o lzw/hash.o util/pngconv.o -lpng -lz ++ $(CC) $(LDFLAGS) $(CFLAGS) -o lzwdec util/lzwdec.o lzw/lzw.o lzw/u4decode.o lzw/hash.o util/pngconv.o -lpng -lz + + rleenc$(EXEEXT) : util/rleenc.o util/pngconv.o +- $(CC) $(CFLAGS) -o rleenc util/rleenc.o util/pngconv.o -lpng -lz ++ $(CC) $(LDFLAGS) $(CFLAGS) -o rleenc util/rleenc.o util/pngconv.o -lpng -lz + + rledec$(EXEEXT) : util/rledec.o rle.o util/pngconv.o +- $(CC) $(CFLAGS) -o rledec util/rledec.o rle.o util/pngconv.o -lpng -lz ++ $(CC) $(LDFLAGS) $(CFLAGS) -o rledec util/rledec.o rle.o util/pngconv.o -lpng -lz + + tlkconv$(EXEEXT) : util/tlkconv.o +- $(CC) $(CFLAGS) -o tlkconv util/tlkconv.o $(shell xml2-config --libs) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o tlkconv util/tlkconv.o $(shell xml2-config --libs) + + clean:: cleanutil + rm -rf *~ */*~ $(OBJS) $(MAIN) diff --git a/games-rpg/xu4/files/xu4-0.9-warnings.patch b/games-rpg/xu4/files/xu4-0.9-warnings.patch new file mode 100644 index 000000000000..58b35316ac0d --- /dev/null +++ b/games-rpg/xu4/files/xu4-0.9-warnings.patch @@ -0,0 +1,26 @@ +--- u4.orig/src/u4.c ++++ u4/src/u4.c +@@ -3,6 +3,8 @@ + */ + + #include <stdio.h> ++#include <sys/stat.h> ++#include <sys/types.h> + #include <stdlib.h> + #include <stdarg.h> + #include <string.h> +--- u4.orig/u4.desktop ++++ u4/u4.desktop +@@ -1,9 +1,8 @@ + [Desktop Entry] +-Encoding=UTF-8 + Name=Ultima 4 + Comment=Ultima 4 (xu4) + Exec=u4 +-Icon=u4.png +-Terminal=0 ++Icon=u4 ++Terminal=false + Type=Application +-Categories=Application;Game;RolePlaying; ++Categories=Game;RolePlaying; diff --git a/games-rpg/xu4/files/xu4-0.9-zip.patch b/games-rpg/xu4/files/xu4-0.9-zip.patch new file mode 100644 index 000000000000..c2d2053cb3f8 --- /dev/null +++ b/games-rpg/xu4/files/xu4-0.9-zip.patch @@ -0,0 +1,144 @@ +--- src/unzip.c.orig ++++ src/unzip.c +@@ -493,7 +493,7 @@ + /* + Get Info about the current file in the zipfile, with internal only info + */ +-local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file, ++local int unzlocal_GetCurrentFileInfoInternal _Z_OF((unzFile file, + unz_file_info *pfile_info, + unz_file_info_internal + *pfile_info_internal, +--- src/unzip.h.orig ++++ src/unzip.h +@@ -8,7 +8,7 @@ + Encryption and multi volume ZipFile (span) are not supported. + Old compressions used by old PKZip 1.x are not supported + +- THIS IS AN ALPHA VERSION. AT THIS STAGE OF DEVELOPPEMENT, SOMES API OR STRUCTURE ++ THIS IS AN ALPHA VERSION. AT THIS STAGE _Z_OF DEVELOPPEMENT, SOMES API OR STRUCTURE + CAN CHANGE IN FUTURE VERSION !! + I WAIT FEEDBACK at mail info@winimage.com + Visit also http://www.winimage.com/zLibDll/unzip.htm for evolution +@@ -111,7 +111,7 @@ + tm_unz tmu_date; + } unz_file_info; + +-extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1, ++extern int ZEXPORT unzStringFileNameCompare _Z_OF ((const char* fileName1, + const char* fileName2, + int iCaseSensitivity)); + /* +@@ -124,7 +124,7 @@ + */ + + +-extern unzFile ZEXPORT unzOpen OF((const char *path)); ++extern unzFile ZEXPORT unzOpen _Z_OF((const char *path)); + /* + Open a Zip file. path contain the full pathname (by example, + on a Windows NT computer "c:\\zlib\\zlib111.zip" or on an Unix computer +@@ -135,14 +135,14 @@ + of this unzip package. + */ + +-extern int ZEXPORT unzClose OF((unzFile file)); ++extern int ZEXPORT unzClose _Z_OF((unzFile file)); + /* + Close a ZipFile opened with unzipOpen. + If there is files inside the .Zip opened with unzOpenCurrentFile (see later), + these files MUST be closed with unzipCloseCurrentFile before call unzipClose. + return UNZ_OK if there is no problem. */ + +-extern int ZEXPORT unzGetGlobalInfo OF((unzFile file, ++extern int ZEXPORT unzGetGlobalInfo _Z_OF((unzFile file, + unz_global_info *pglobal_info)); + /* + Write info about the ZipFile in the *pglobal_info structure. +@@ -150,7 +150,7 @@ + return UNZ_OK if there is no problem. */ + + +-extern int ZEXPORT unzGetGlobalComment OF((unzFile file, ++extern int ZEXPORT unzGetGlobalComment _Z_OF((unzFile file, + char *szComment, + uLong uSizeBuf)); + /* +@@ -163,20 +163,20 @@ + /***************************************************************************/ + /* Unzip package allow you browse the directory of the zipfile */ + +-extern int ZEXPORT unzGoToFirstFile OF((unzFile file)); ++extern int ZEXPORT unzGoToFirstFile _Z_OF((unzFile file)); + /* + Set the current file of the zipfile to the first file. + return UNZ_OK if there is no problem + */ + +-extern int ZEXPORT unzGoToNextFile OF((unzFile file)); ++extern int ZEXPORT unzGoToNextFile _Z_OF((unzFile file)); + /* + Set the current file of the zipfile to the next file. + return UNZ_OK if there is no problem + return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest. + */ + +-extern int ZEXPORT unzLocateFile OF((unzFile file, ++extern int ZEXPORT unzLocateFile _Z_OF((unzFile file, + const char *szFileName, + int iCaseSensitivity)); + /* +@@ -189,7 +189,7 @@ + */ + + +-extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file, ++extern int ZEXPORT unzGetCurrentFileInfo _Z_OF((unzFile file, + unz_file_info *pfile_info, + char *szFileName, + uLong fileNameBufferSize, +@@ -215,20 +215,20 @@ + from it, and close it (you can close it before reading all the file) + */ + +-extern int ZEXPORT unzOpenCurrentFile OF((unzFile file)); ++extern int ZEXPORT unzOpenCurrentFile _Z_OF((unzFile file)); + /* + Open for reading data the current file in the zipfile. + If there is no error, the return value is UNZ_OK. + */ + +-extern int ZEXPORT unzCloseCurrentFile OF((unzFile file)); ++extern int ZEXPORT unzCloseCurrentFile _Z_OF((unzFile file)); + /* + Close the file in zip opened with unzOpenCurrentFile + Return UNZ_CRCERROR if all the file was read but the CRC is not good + */ + + +-extern int ZEXPORT unzReadCurrentFile OF((unzFile file, ++extern int ZEXPORT unzReadCurrentFile _Z_OF((unzFile file, + voidp buf, + unsigned len)); + /* +@@ -242,17 +242,17 @@ + (UNZ_ERRNO for IO error, or zLib error for uncompress error) + */ + +-extern z_off_t ZEXPORT unztell OF((unzFile file)); ++extern z_off_t ZEXPORT unztell _Z_OF((unzFile file)); + /* + Give the current position in uncompressed data + */ + +-extern int ZEXPORT unzeof OF((unzFile file)); ++extern int ZEXPORT unzeof _Z_OF((unzFile file)); + /* + return 1 if the end of file was reached, 0 elsewhere + */ + +-extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, ++extern int ZEXPORT unzGetLocalExtrafield _Z_OF((unzFile file, + voidp buf, + unsigned len)); + /* diff --git a/games-rpg/xu4/metadata.xml b/games-rpg/xu4/metadata.xml new file mode 100644 index 000000000000..2d86c15ce51e --- /dev/null +++ b/games-rpg/xu4/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">xu4</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/xu4/xu4-0.9.ebuild b/games-rpg/xu4/xu4-0.9.ebuild new file mode 100644 index 000000000000..9e8be7050a63 --- /dev/null +++ b/games-rpg/xu4/xu4-0.9.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A remake of the computer game Ultima IV" +HOMEPAGE="http://xu4.sourceforge.net/" +SRC_URI="mirror://sourceforge/xu4/${P}.tar.gz + mirror://sourceforge/xu4/ultima4-1.01.zip + mirror://sourceforge/xu4/u4upgrad.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +RDEPEND="dev-libs/libxml2 + media-libs/sdl-mixer[timidity] + media-libs/libsdl[sound,video]" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/u4 + +src_unpack() { + # xu4 will read the data files right out of the zip files + # but we want the docs from the original. + unpack ${P}.tar.gz + cp "${DISTDIR}"/{ultima4-1.01.zip,u4upgrad.zip} . || die + cd "${WORKDIR}" + mv ultima4-1.01.zip ultima4.zip + mkdir u4-dos + cd u4-dos + unzip -q ../ultima4.zip || die +} + +src_prepare() { + epatch "${FILESDIR}/${PV}-savegame.patch" \ + "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-zip.patch \ + "${FILESDIR}"/${P}-warnings.patch + sed -i \ + -e "s:/usr/local/lib/u4:$(games_get_libdir)/u4:" src/u4file.c \ + || die + sed -i \ + -e 's:-Wall:$(E_CFLAGS):' src/Makefile \ + || die +} + +src_compile() { + emake -C src \ + DEBUGCFLAGS= \ + E_CFLAGS="${CFLAGS}" \ + bindir="${GAMES_BINDIR}" \ + datadir="/usr/share" \ + libdir="$(games_get_libdir)" +} + +src_install() { + emake -C src \ + DEBUGCFLAGS= \ + E_CFLAGS="${CFLAGS}" \ + bindir="${D}${GAMES_BINDIR}" \ + datadir="${D}/usr/share" \ + libdir="${D}$(games_get_libdir)" \ + install + dodoc AUTHORS README doc/*txt "${WORKDIR}/u4-dos/ULTIMA4/"*TXT + insinto "$(games_get_libdir)/u4" + doins "${WORKDIR}/"*zip + prepgamesdirs +} diff --git a/games-rpg/zsdx/Manifest b/games-rpg/zsdx/Manifest new file mode 100644 index 000000000000..588f67967b0c --- /dev/null +++ b/games-rpg/zsdx/Manifest @@ -0,0 +1 @@ +DIST zsdx-1.9.0.tar.gz 20757184 SHA256 140fb9b7de4937fdac6ff14d8339cc4314c7d4607339340fd17b520c4e87ae08 SHA512 2fc540d19856734050674945dd4903f254b325cab08ae0199722ae014447523ad9e979b54ddfd59d5cbc290b783481c79d5e155115c90f24feab5587d52804ee WHIRLPOOL 976c4b1c20480359383876054c5d3bebb94a13391bff02d6e81366e0bfddbe640678f738c8653999fa9db59d007bba1b5e7a27fca281df41c1547eebda67d084 diff --git a/games-rpg/zsdx/metadata.xml b/games-rpg/zsdx/metadata.xml new file mode 100644 index 000000000000..dc4de722287e --- /dev/null +++ b/games-rpg/zsdx/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type='github'>christopho/zsdx</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/zsdx/zsdx-1.9.0.ebuild b/games-rpg/zsdx/zsdx-1.9.0.ebuild new file mode 100644 index 000000000000..5e8ca966806b --- /dev/null +++ b/games-rpg/zsdx/zsdx-1.9.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils gnome2-utils games + +DESCRIPTION="A free 2D Zelda fangame" +HOMEPAGE="http://www.solarus-games.org/" +SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz" + +LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="mirror" + +RDEPEND=">=games-engines/solarus-1.3.0 + <games-engines/solarus-1.4.0" +DEPEND="app-arch/zip" + +DOCS=( ChangeLog readme.txt ) + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DSOLARUS_INSTALL_DATAROOTDIR="${GAMES_DATADIR}" + -DSOLARUS_INSTALL_BINDIR="${GAMES_BINDIR}" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png + newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png + + # install proper wrapper script + rm -f "${ED%/}${GAMES_BINDIR}"/${PN} + games_make_wrapper ${PN} "solarus \"${GAMES_DATADIR}/solarus/${PN}\"" + + make_desktop_entry "${PN}" "Zelda: Mystery of Solarus DX" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/zsxd/Manifest b/games-rpg/zsxd/Manifest new file mode 100644 index 000000000000..e15453f59cda --- /dev/null +++ b/games-rpg/zsxd/Manifest @@ -0,0 +1 @@ +DIST zsxd-1.9.0.tar.gz 3706125 SHA256 2ac95c1389706e989cd37b3ce75cb8c94e19832b6d138cd53abd490eb7fd8ff6 SHA512 cecb8b4ff40b7129bb516cf71e9bbbc92e10ace944c735eb2885dbf0e0b8adef80491c1874ee91efb2c9779b819d0217639fe85f9e3a085c980af6a2972e571e WHIRLPOOL b927e6d96c5201b7af48a8bee6b387a2a1c168525685753d363618a4e167510024f18ba70f097dfdb91938be6180b405dbed7f469f3f5133cdcf53532f6b3126 diff --git a/games-rpg/zsxd/metadata.xml b/games-rpg/zsxd/metadata.xml new file mode 100644 index 000000000000..86cefb60f14c --- /dev/null +++ b/games-rpg/zsxd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type='github'>christopho/zsxd</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-rpg/zsxd/zsxd-1.9.0.ebuild b/games-rpg/zsxd/zsxd-1.9.0.ebuild new file mode 100644 index 000000000000..a699d5f2e640 --- /dev/null +++ b/games-rpg/zsxd/zsxd-1.9.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils gnome2-utils cmake-utils games + +DESCRIPTION="A free 2D Zelda fangame parody" +HOMEPAGE="http://www.solarus-games.org/" +SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz" + +LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="mirror bindist" + +RDEPEND=">=games-engines/solarus-1.3.0 + <games-engines/solarus-1.4.0" +DEPEND="app-arch/zip" + +DOCS=( ChangeLog readme.txt ) + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DSOLARUS_INSTALL_DATAROOTDIR="${GAMES_DATADIR}" + -DSOLARUS_INSTALL_BINDIR="${GAMES_BINDIR}" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png + newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png + + # install proper wrapper script + rm -f "${ED%/}${GAMES_BINDIR}"/${PN} + games_make_wrapper ${PN} "solarus \"${GAMES_DATADIR}/solarus/${PN}\"" + + make_desktop_entry "${PN}" "Zelda: Mystery of Solarus XD" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} |