summaryrefslogtreecommitdiff
path: root/games-action/d2x-rebirth
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-action/d2x-rebirth
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/d2x-rebirth')
-rw-r--r--games-action/d2x-rebirth/Manifest9
-rw-r--r--games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild93
-rw-r--r--games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch10
-rw-r--r--games-action/d2x-rebirth/metadata.xml21
4 files changed, 133 insertions, 0 deletions
diff --git a/games-action/d2x-rebirth/Manifest b/games-action/d2x-rebirth/Manifest
new file mode 100644
index 000000000000..ed88c9e38e3b
--- /dev/null
+++ b/games-action/d2x-rebirth/Manifest
@@ -0,0 +1,9 @@
+AUX d2x-rebirth-0.58.1-flags.patch 315 SHA256 2b589a24b88fc8b8d90ecd5df6598ea5abc14634d1d1db4acaf6304add217f3d SHA512 c22fcb05d48462888af864fd24d18bfcd717694d29dc3314928faa8a17908044e593e797698829e4c2ee76ba64ec74f949d0f731ff581ba6a653db44e9681ae5 WHIRLPOOL a9986ce03dd5b965dacf44129f1a644878857b79ddb204365cd7c77adab762f7abc1aff824234b1142045ae921536aca606543eb6b301d92ea22e2610ed6d453
+DIST d2x-rebirth-0.58.1.tar.gz 1361470 SHA256 511a42d1043bb9e54e30628cdc340a2f0649b59f47c71f5dcadf27379195aa3c SHA512 82188421d5ed83006f1a81151aa80ff0efb1685a356b885985ef1ae69107082dad1f1a0a0e6e07e16234d91abc8013272f05e1273f647f4481add01f3e756df4 WHIRLPOOL 02bb414fed790b01cfea71e9321dc79bbfa7d4b9cd0a68ac7ca1f1303236dbf75e44f3ed9253a9d3513823dda2dbf51e403545dfab72c3c90442d5362b40743f
+DIST d2xr-briefings-ger.zip 11717 SHA256 e190321e657c1ad55998b91d610534fd0275f29ab12fe56018e47d3e603704f9 SHA512 479aa577dc65271c705e80404ec46e6c59ee3a5122d6e9705dbdd16b71b16c0d3447426e3e74937aa20eb7026f67a3896c5e814fbfcede9164bd557b6eb8423c WHIRLPOOL 65093403524bd82fb4396a5cabf9317effdaf447f18e421b6a59642103bc690ddaa240e0d2db3fbfe1a4bbd83d9f62bfe5b70fdfe8dc76f0cfe00433d25a9e1f
+DIST d2xr-opl3-music.zip 22710919 SHA256 6890c6cf8a40c30a2b88339fe1affd25d210e45b504b0f0f76dba7ba97f813d7 SHA512 876321a9a16403f6e9d12e10bb73c9cdc57e1a106fa64833a1be8cc17b74f6f13e57e40f051a1b40e7bc88b95bfe86cff181c93c8619383dfdeb74f36f5cce86 WHIRLPOOL 86cccdbe071654b7f3ba2f774c762b3ab81797916e8a2053466320a54693a1913de9a6759eb29a4acde5a5611c58d1371338bed140a4084f7d005d48151a639b
+DIST d2xr-sc55-music.zip 19579531 SHA256 ace152182c70b9a7ae6f911bddbc239566220a287ab5419cab260d5af739bf16 SHA512 290713b05627bf65bdc55fc6631a0c86e50f484a167f3fd20b3fe2bc5b772437939b5bf32eea852874dd983fbd47f160cae2412a2d6c5319f0d1583a33d28da6 WHIRLPOOL 1cc02d95dfffc36676a8cd3129580ba11c4a5cb13ee54bcdbe9e30e9fd9d8365bf0a8fc0d3e4b962607887b41bd056678d578cf9a5896ba1c9f4d1bef13c3edd
+EBUILD d2x-rebirth-0.58.1.ebuild 2572 SHA256 ba33d11e792637a590eeda7c2ad279196cbb10bad5861990a0317b759761d68b SHA512 5c77d52e5927fb10bdd99d49187ca5069dd6833c8e8717aeca7bdbf2245fb61f53a51f9a26de8c3dc02a33accf44ed8f0491855d9841c0238c678767cfc4931a WHIRLPOOL 90827d780dee47d287758240f1750fc835b77adf9156615011d576ddfafd43a980ac0ec5abbe8391fb642602fef954748ccfeb4cf1c5d43c509fb52886874ceb
+MISC ChangeLog 2643 SHA256 493572b4d063ebf0c1919094cb4d1e21ff81331d072d2c25c21c2b2a4ed49260 SHA512 085ff32727eaa6206a7debd8f96543c04e056a0730b1aaddebc3b9ec0137eef566f51d49d81f1ca0f8a843eefc7ef58f0068da43b6c8fc93f9da74523feb3bbd WHIRLPOOL 822c5499ec571476c629e14bc6fec18bd0ba19e323286efdd54c215a04cdc72f61a8722a61d5c785ccf6a03708aae61bf545161920700c3f85c24c107d47b885
+MISC ChangeLog-2015 1995 SHA256 f7035ea45e47422f30288d616de3e392f6ff611bf230b8f8835966ec95b3c78c SHA512 b4dba1dea074fb0b9f531f17d47c1521f726940b3891894203500364d119eff772d2db4b09cb27de09fca052ee87cebd191673ab2c0d3a9614a5e6b5197cb79b WHIRLPOOL e3f7a419129171ba87026b95235d009e72f8edc806e5bdcd6056b8265783251b0a0ad8298fcae2ed0ac1e918ab19004b5db2965165c303a8af7e850f4d741b18
+MISC metadata.xml 945 SHA256 1f0160fda97ddd78b5356ebcdb07b707166156799add74d4b7b7bf1078a5775e SHA512 230587589c9d1b370900c8b66cd42f2d4d6d7ba01542d220a66cdd01111ef3cf88aad0948ca36ad74e26c1cfba74238fd191fd9c5ad0ba0285c6efbbf17e1eda WHIRLPOOL 398f2adb956acc855d0f5309311d271f2dd39fe9dd56f20b591281f7fbd420ccca742190eaf61e790b710649033172806eaf4f8140fd097ac67e6f429cd713cc
diff --git a/games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild b/games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild
new file mode 100644
index 000000000000..aa6094854fad
--- /dev/null
+++ b/games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils scons-utils games
+
+DV=2
+MY_P=dxx-rebirth-${PV}-d2x
+DESCRIPTION="Descent Rebirth - enhanced Descent ${DV} engine"
+HOMEPAGE="http://www.dxx-rebirth.com/"
+SRC_URI="https://github.com/dxx-rebirth/dxx-rebirth/archive/0.58.1-d2x.tar.gz -> ${P}.tar.gz
+ opl3-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-opl3-music.zip )
+ sc55-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-sc55-music.zip )
+ l10n_de? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-briefings-ger.zip )"
+
+LICENSE="D1X GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cdinstall debug demo ipv6 l10n_de +music opengl opl3-musicpack sc55-musicpack"
+REQUIRED_USE="?? ( opl3-musicpack sc55-musicpack )
+ opl3-musicpack? ( music )
+ sc55-musicpack? ( music )"
+
+RDEPEND="dev-games/physfs[hog,mvl,zip]
+ media-libs/libsdl[X,sound,joystick,opengl?,video]
+ music? (
+ media-libs/sdl-mixer[timidity,vorbis]
+ )
+ opengl? (
+ virtual/opengl
+ virtual/glu
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+PDEPEND="cdinstall? ( games-action/descent2-data )
+ demo? ( games-action/descent2-demodata )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${P}.tar.gz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+
+ DOCS=( {CHANGELOG,INSTALL,README,RELEASE-NOTES}.txt )
+ edos2unix ${DOCS[@]}
+}
+
+src_compile() {
+ escons \
+ verbosebuild=1 \
+ sharepath="${GAMES_DATADIR}/d${DV}x" \
+ $(use_scons ipv6) \
+ $(use_scons music sdlmixer) \
+ $(use_scons debug) \
+ $(use_scons opengl) \
+ || die
+}
+
+src_install() {
+ dodoc ${DOCS[@]}
+
+ insinto "${GAMES_DATADIR}/d${DV}x"
+
+ # None of the following zip files need to be extracted.
+ use l10n_de && newins "${DISTDIR}"/d${DV}xr-briefings-ger.zip d${DV}xr-briefings-ger.dxa
+ use opl3-musicpack && newins "${DISTDIR}"/d${DV}xr-opl3-music.zip d${DV}xr-opl3-music.dxa
+ use sc55-musicpack && newins "${DISTDIR}"/d${DV}xr-sc55-music.zip d${DV}xr-sc55-music.dxa
+
+ doicon ${PN}.xpm
+
+ dogamesbin ${PN}
+ make_desktop_entry ${PN} "Descent ${DV} Rebirth"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall ; then
+ echo
+ elog "To play the full game enable USE=\"cdinstall\" or manually "
+ elog "copy the files to ${GAMES_DATADIR}/d${DV}x."
+ elog "See /usr/share/doc/${PF}/INSTALL.txt for details."
+ echo
+ fi
+ elog 'AddOns now use filename extension ".dxa".'
+ elog 'Your old AddOns will not work anymore.'
+ elog 'You can either re-download them or simply'
+ elog 'rename them from *.zip to *.dxa.'
+}
diff --git a/games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch b/games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch
new file mode 100644
index 000000000000..6da154555b35
--- /dev/null
+++ b/games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch
@@ -0,0 +1,10 @@
+--- SConstruct.orig 2014-07-02 01:37:25.546536553 -0400
++++ SConstruct 2014-07-02 01:39:26.564324558 -0400
+@@ -220,7 +220,6 @@
+ env.Append(CPPFLAGS = ['-g'])
+ else:
+ env.Append(CPPDEFINES = ['NDEBUG', 'RELEASE'])
+- env.Append(CPPFLAGS = ['-O2'])
+
+ # profiler?
+ if (self.user_settings.profiler == 1):
diff --git a/games-action/d2x-rebirth/metadata.xml b/games-action/d2x-rebirth/metadata.xml
new file mode 100644
index 000000000000..d6686bb37978
--- /dev/null
+++ b/games-action/d2x-rebirth/metadata.xml
@@ -0,0 +1,21 @@
+<?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="demo">Install <pkg>games-action/descent2-demodata</pkg> as well</flag>
+ <flag name="music">Support for ingame music</flag>
+ <flag name="l10n_de">Provides German translations for the game's
+ briefings, robot descriptions, and outro of the original campaign</flag>
+ <flag name="opl3-musicpack">Include alternate version of the game's music, recorded
+ with the Yamaha YMF262 OPL3 soundchip</flag>
+ <flag name="sc55-musicpack">Include alternate version of the game's music, recorded
+ with the Roland Sound Canvas SC-55 MIDI module</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dxx-rebirth/dxx-rebirth</remote-id>
+ </upstream>
+</pkgmetadata>