View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/local/portage/games-fps/doom-data/doom-data-1-r1.ebuild (-16 / +4 lines)
 Lines 11-42    Link Here 
LICENSE="freedist"
LICENSE="freedist"
SLOT="0"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
KEYWORDS="amd64 ppc sparc x86"
IUSE="doomsday"
IUSE=""
DEPEND="doomsday? (games-fps/doomsday)
DEPEND="!games-fps/freedoom"
	!<=games-fps/freedoom-0.4.1"
S=${WORKDIR}
S=${WORKDIR}
src_install() {
src_install() {
	insinto "${GAMES_DATADIR}"/doom-data
	insinto "${GAMES_DATADIR}"/doom-data
	doins *.wad || die
	doins *.wad || die
	if use doomsday; then
		# Make wrapper for doomsday
		games_make_wrapper doomsday-demo "jdoom -file \
			${GAMES_DATADIR}/doom-data/doom1.wad"
		make_desktop_entry doomsday-demo "Doomsday - Demo"
	fi
	prepgamesdirs
	prepgamesdirs
}
}
pkg_postinst() {
pkg_postinst() {
	games_pkg_postinst
	games_pkg_postinst
	if use doomsday; then
	einfo "When playing doom games, just put your"
		einfo "To use the doomsday engine, run doomsday-demo"
	einfo "retail wad files into ${GAMES_DATADIR}/doom-data"
	else
		einfo "A Doom engine is required to play the wad"
		einfo "Enable the doomsday use flag if you want to use"
		einfo "	the doomsday engine"
	fi
}
}