| 1 |
# Distributed under the terms of the GNU General Public License v2 |
| 2 |
|
| 3 |
EAPI=7 |
| 4 |
|
| 5 |
DXX_ENGINE="${PN:7:1}" |
| 6 |
DESCRIPTION="Free content for games-action/d${DXX_ENGINE}x-rebirth" |
| 7 |
HOMEPAGE="https://www.dxx-rebirth.com/" |
| 8 |
IUSE="l10n_de opl3-musicpack sc55-musicpack" |
| 9 |
SRC_URI=" |
| 10 |
l10n_de? ( https://www.dxx-rebirth.com/download/dxx/res/d${DXX_ENGINE}xr-briefings-ger.dxa ) |
| 11 |
opl3-musicpack? ( https://www.dxx-rebirth.com/download/dxx/res/d${DXX_ENGINE}xr-opl3-music.dxa ) |
| 12 |
sc55-musicpack? ( https://www.dxx-rebirth.com/download/dxx/res/d${DXX_ENGINE}xr-sc55-music.dxa ) |
| 13 |
" |
| 14 |
|
| 15 |
if [[ "${PN}" = descent1-freedata ]]; then |
| 16 |
IUSE+=" +textures" |
| 17 |
SRC_URI+=" |
| 18 |
textures? ( https://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa ) |
| 19 |
" |
| 20 |
fi |
| 21 |
|
| 22 |
LICENSE="public-domain" |
| 23 |
SLOT="0" |
| 24 |
KEYWORDS="~amd64 ~x86" |
| 25 |
S="$WORKDIR" |
| 26 |
|
| 27 |
# If all USE flags are unset, this ebuild installs zero files. Require |
| 28 |
# at least one to be set. |
| 29 |
REQUIRED_USE="|| ( ${IUSE//+/} )" |
| 30 |
|
| 31 |
RDEPEND=" |
| 32 |
!<games-action/dxx-rebirth-0.60 |
| 33 |
!games-action/d${DXX_ENGINE}x-rebirth |
| 34 |
" |
| 35 |
|
| 36 |
unset DXX_ENGINE |
| 37 |
|
| 38 |
src_install() { |
| 39 |
local DXX_ENGINE="${PN:7:1}" |
| 40 |
insinto /usr/share/games/d${DXX_ENGINE}x |
| 41 |
use opl3-musicpack && doins "${DISTDIR}"/d${DXX_ENGINE}xr-opl3-music.dxa |
| 42 |
use sc55-musicpack && doins "${DISTDIR}"/d${DXX_ENGINE}xr-sc55-music.dxa |
| 43 |
use l10n_de && doins "${DISTDIR}"/d${DXX_ENGINE}xr-briefings-ger.dxa |
| 44 |
|
| 45 |
# This ebuild is used for both Descent 1 free data and Descent 2 |
| 46 |
# free data. Only Descent 1 provides alternate textures. |
| 47 |
if [[ "${PN}" = descent1-freedata ]] && use textures; then |
| 48 |
insinto /usr/share/games/d1x |
| 49 |
doins "${DISTDIR}"/d1xr-hires.dxa |
| 50 |
fi |
| 51 |
} |