summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-03-21 22:15:12 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-03-21 22:15:12 +0000
commitde8d0ad9c0138fe832b89bd75e7e2ccbfaabdcd6 (patch)
tree31640c971ee11460592899a912aa28e5b197641f /games-rpg
parentmask games-rpg/bastion for hardened-multilib (diff)
downloadgentoo-2-de8d0ad9c0138fe832b89bd75e7e2ccbfaabdcd6.tar.gz
gentoo-2-de8d0ad9c0138fe832b89bd75e7e2ccbfaabdcd6.tar.bz2
gentoo-2-de8d0ad9c0138fe832b89bd75e7e2ccbfaabdcd6.zip
initial import wrt #448416
(Portage version: 2.2.0_alpha168/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/dungeon-defenders/ChangeLog10
-rw-r--r--games-rpg/dungeon-defenders/Manifest4
-rw-r--r--games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild112
-rw-r--r--games-rpg/dungeon-defenders/metadata.xml15
4 files changed, 141 insertions, 0 deletions
diff --git a/games-rpg/dungeon-defenders/ChangeLog b/games-rpg/dungeon-defenders/ChangeLog
new file mode 100644
index 000000000000..441fd7f2783d
--- /dev/null
+++ b/games-rpg/dungeon-defenders/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-rpg/dungeon-defenders
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dungeon-defenders/ChangeLog,v 1.1 2013/03/21 22:15:12 hasufell Exp $
+
+*dungeon-defenders-20130305 (21 Mar 2013)
+
+ 21 Mar 2013; Julian Ospald <hasufell@gentoo.org>
+ +dungeon-defenders-20130305.ebuild, +metadata.xml:
+ initial import wrt #448416
+
diff --git a/games-rpg/dungeon-defenders/Manifest b/games-rpg/dungeon-defenders/Manifest
new file mode 100644
index 000000000000..844a8db00920
--- /dev/null
+++ b/games-rpg/dungeon-defenders/Manifest
@@ -0,0 +1,4 @@
+DIST dundef-linux-03052013.mojo.run 5384683543 SHA256 bc81021859871169285111ef7b1806952dcc17b128f3e387d9b5072918490c61 SHA512 911d1691411d870cee62d08b0c559ac80588edc9ba0c9d622c7528f7f8635d86eae962f7a2b1bfed27be1d780c033216374f69072ed7828e8624855e9b0b9aca WHIRLPOOL a5d75261ad542cf182829d6bd9cb053696d2228e44a6560a400e26f0697d9993037410cb9a2311e882b5076aefc612ba4b490d709ee281a6422b122e2a644402
+EBUILD dungeon-defenders-20130305.ebuild 2692 SHA256 fdba16b0512b292fd8ea5290fcb18d1f82ebb8b0d9bc07e145030d3f3a924067 SHA512 14d40357f07b10a6a92b81b2b80a5f58c564f3a3c3f5e65f003ba45177fda9cf4148c6d1a0702086d9067d0dd8b397433fc1351e784260bebd9724445fdd7d36 WHIRLPOOL eab5ccb9391997a91d22c30f77dc44b28c36ec7e21be74536de8b33e10ef75ea9665b23895f19e8dcfbddcc17f3415f6c983f5b1ccad51d61e24edf71057df84
+MISC ChangeLog 305 SHA256 b439287505a0ef6093dd98e063747b9a5d18a513c9b207f28b3359d737b29f23 SHA512 269bef3b97881b9a538f4172cff91a3103e40d15caa559f642c3bf04846aacdd0a47dbc30dd1ce8b63361bc002a6b824af4b2cc47f070ac05db97edca772020a WHIRLPOOL 501a9539c56bacffa5374c2e9cc3809ab883e124ec71142c08060bcb66aed32cd3167878d07e7fa007a48bd550dbf824c3d9a2b2176108175a65a1412e885f80
+MISC metadata.xml 357 SHA256 edcc7199ab480ee354907b48f6b4d582a64e82fa5160973b671106f08b153145 SHA512 73094df9982a4b60d3faba468322c1450aa515acc405f3deff1ce29307c1dfb301a66e09586df2ae39cc8262020e6b6f6141372cb9baaf8787910593582a5013 WHIRLPOOL 19503a292e1bb54ac364a724f1a8f785a54439daaeb2c609041759a0f8447e11c38afb754fe617909c68406c0325a0fffbe19ae20a617e1bcedf10d77cb59ef2
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..1ea87dc20481
--- /dev/null
+++ b/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild,v 1.1 2013/03/21 22:15:12 hasufell Exp $
+
+# TODO: unbundle SDL-2 when it gets released
+
+EAPI=5
+
+inherit check-reqs eutils gnome2-utils 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"
+
+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
+ virtual/opengl
+ amd64? (
+ app-emulation/emul-linux-x86-soundlibs[alsa]
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-xlibs
+ )
+ x86? (
+ media-libs/alsa-lib
+ media-sound/pulseaudio
+ x11-libs/libX11
+ x11-libs/libXScrnSaver
+ x11-libs/libXcursor
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ !bundled-libs? ( media-libs/openal )
+ )"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ # self unpacking zip archive; unzip warns about the exe stuff
+ unzip -q "${DISTDIR}"/${A}
+ [[ $? -gt 1 ]] && die "unpacking failed"
+}
+
+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..d647e74d87ea
--- /dev/null
+++ b/games-rpg/dungeon-defenders/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>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <use>
+ <flag name='bundled-libs'>
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>
+