1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cdrom estack eutils
8 DESCRIPTION="Data files for Descent 2: The Vertigo Series"
9 HOMEPAGE="http://www.interplay.com/games/descent.php"
11 LICENSE="descent-data"
13 KEYWORDS="~amd64 ~x86"
20 cdrom_get_cds vertigo/d2x.hog:hoard.ham
23 0) einfo "Found Descent 2 Vertigo Series CD" ;;
24 1) einfo "Found Descent 2 Vertigo Series installation" ;;
27 cd "${CDROM_ABSMATCH%/*}" || die
28 eshopts_push -s globstar nocaseglob nullglob
32 # *.{hog,mn2} into data/missions
39 --xform='s:.*:\L\0:x' \
40 --xform='s:.*\.(hog|mn2)$:data/missions/\0:x' \
41 --xform='s:^[^/]+$:data/\0:x' \
42 --exclude="$(use videos || echo '*.mvl')" \
43 **/{hoard.ham,d2x-h.mvl,{d2x,panic}.{hog,mn2}}* \
44 | tar x -C "${WORKDIR}"
51 insinto /usr/share/games/d2x
56 elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."