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