diff options
author | 2020-06-17 22:19:58 -0400 | |
---|---|---|
committer | 2020-07-03 20:49:51 +0100 | |
commit | 829eb2810858298a45d5e113bdadb33270a7c7f0 (patch) | |
tree | c214af52dacd95a0845e19ae2d5de69a3bbad7b5 /games-action/descent2-freedata/descent2-freedata-1.ebuild | |
parent | games-action/descent1-freedata: Optional dependency for dxx-rebirth (diff) | |
download | gentoo-829eb2810858298a45d5e113bdadb33270a7c7f0.tar.gz gentoo-829eb2810858298a45d5e113bdadb33270a7c7f0.tar.bz2 gentoo-829eb2810858298a45d5e113bdadb33270a7c7f0.zip |
games-action/descent2-freedata: Optional dependency for dxx-rebirth
Add a dependent package for the new dxx-rebirth ebuild, supplying some additional free content (German translation and sampled music from in-period FM synthesisers)
Closes: https://bugs.gentoo.org/724884
Signed-off-by: Ian Silvester <iansilvester@fastmail.fm>
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-action/descent2-freedata/descent2-freedata-1.ebuild')
-rw-r--r-- | games-action/descent2-freedata/descent2-freedata-1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/games-action/descent2-freedata/descent2-freedata-1.ebuild b/games-action/descent2-freedata/descent2-freedata-1.ebuild new file mode 100644 index 000000000000..6339583ee80b --- /dev/null +++ b/games-action/descent2-freedata/descent2-freedata-1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 DXX Rebirth project contributors +# Distributed under the terms of the GNU General Public License v2 + +# This file is part of the DXX-Rebirth project. +# +# It is copyright by its individual contributors, as recorded in the +# project's Git history. See COPYING.txt at the top level for license +# terms and a link to the Git history. + +EAPI=7 + +DXX_ENGINE="${PN:7:1}" +DESCRIPTION="Free content for games-action/d${DXX_ENGINE}x-rebirth" +HOMEPAGE="https://www.dxx-rebirth.com/" +IUSE="l10n_de opl3-musicpack sc55-musicpack" +SRC_URI=" + l10n_de? ( https://www.dxx-rebirth.com/download/dxx/res/d${DXX_ENGINE}xr-briefings-ger.dxa ) + opl3-musicpack? ( https://www.dxx-rebirth.com/download/dxx/res/d${DXX_ENGINE}xr-opl3-music.dxa ) + sc55-musicpack? ( https://www.dxx-rebirth.com/download/dxx/res/d${DXX_ENGINE}xr-sc55-music.dxa ) +" + +if [[ "${PN}" = descent1-freedata ]]; then + IUSE+=" +textures" + SRC_URI+=" + textures? ( https://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa ) +" +fi + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +S="$WORKDIR" + +# If all USE flags are unset, this ebuild installs zero files. Require +# at least one to be set. +REQUIRED_USE="|| ( ${IUSE//+/} )" + +RDEPEND=" + !<games-action/dxx-rebirth-0.60 + !games-action/d${DXX_ENGINE}x-rebirth + " + +unset DXX_ENGINE + +src_install() { + local DXX_ENGINE="${PN:7:1}" + insinto /usr/share/games/d${DXX_ENGINE}x + use opl3-musicpack && doins "${DISTDIR}"/d${DXX_ENGINE}xr-opl3-music.dxa + use sc55-musicpack && doins "${DISTDIR}"/d${DXX_ENGINE}xr-sc55-music.dxa + use l10n_de && doins "${DISTDIR}"/d${DXX_ENGINE}xr-briefings-ger.dxa + + # This ebuild is used for both Descent 1 free data and Descent 2 + # free data. Only Descent 1 provides alternate textures. + if [[ "${PN}" = descent1-freedata ]] && use textures; then + insinto /usr/share/games/d1x + doins "${DISTDIR}"/d1xr-hires.dxa + fi +} |