summaryrefslogtreecommitdiff
path: root/games-rpg/dungeon-defenders
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg/dungeon-defenders
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/dungeon-defenders')
-rw-r--r--games-rpg/dungeon-defenders/Manifest5
-rw-r--r--games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild101
-rw-r--r--games-rpg/dungeon-defenders/metadata.xml13
3 files changed, 119 insertions, 0 deletions
diff --git a/games-rpg/dungeon-defenders/Manifest b/games-rpg/dungeon-defenders/Manifest
new file mode 100644
index 000000000000..93da2f6ce0f7
--- /dev/null
+++ b/games-rpg/dungeon-defenders/Manifest
@@ -0,0 +1,5 @@
+DIST dundef-linux-03052013.mojo.run 5384683543 SHA256 bc81021859871169285111ef7b1806952dcc17b128f3e387d9b5072918490c61 SHA512 911d1691411d870cee62d08b0c559ac80588edc9ba0c9d622c7528f7f8635d86eae962f7a2b1bfed27be1d780c033216374f69072ed7828e8624855e9b0b9aca WHIRLPOOL a5d75261ad542cf182829d6bd9cb053696d2228e44a6560a400e26f0697d9993037410cb9a2311e882b5076aefc612ba4b490d709ee281a6422b122e2a644402
+EBUILD dungeon-defenders-20130305.ebuild 2634 SHA256 ed13141878c0605958853c6abfddb284006287249a3121320ceb3321db701711 SHA512 eaebd5f69e0a5ec3dbbe1196daa1c3aff8e6cb212995f564a556dd123223008a37a25e07509ff54f0cebbf43abe812a9fb211ffdb36df3e917bb4d109a5707d5 WHIRLPOOL 2f1bdddbe0f49bd69efa2c29f36d1a34f04e58b0a87d7407c4010436681e3e48386d2762b8584512782d03402b5135bee3e672212adee4d6fd87b1d723f62c84
+MISC ChangeLog 2857 SHA256 6561f960e9b8ee3b77dffa3a04d6a3cbbfba0b041d7d06b01e6a65b06ad8ce31 SHA512 41c4d7c54b457bd4da24d8b8fc6aeded61b4cee847ce9bd67c547a5e816af1917f3d4b68754172c72d5af320b01adb89698f1fc1c5a5f6ec623f36ca8f02f897 WHIRLPOOL 09758dcd122a060785792ef84020632b4aaa75693d289fcf30fdd5edf0b3fc50cf45852122b9c6ba589640e4ae58b80478040214a8d9cb286f50d7fa3e62a567
+MISC ChangeLog-2015 1263 SHA256 84d35c3cad6381387d7db4250193605eea9e6c5370d27730485db8491ee4608c SHA512 d76bea745d7f12286cf49db4f4bc24ead9ff79b078e103608dc89267b673ab892f12b61229ebf169cc760d2fa09bf0f392be46f181aa7df54e52ee928e3c716b WHIRLPOOL 2923e03f3b8a020f96d45187f64da0dc791e08f353d8ed9155471b2e3bc8245a7d000d90aa18634775a0ac972edd42f506c1763cb39340b631700ad4fccd63da
+MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba
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..45442dfbaf87
--- /dev/null
+++ b/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..b878aaa1812d
--- /dev/null
+++ b/games-rpg/dungeon-defenders/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>