blob: ae3bff6784e5c0e21451db2850a3f3104cafeade (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/freedoom/freedoom-0.5.ebuild,v 1.2 2007/03/12 14:41:04 genone Exp $
inherit eutils games
DESCRIPTION="Freedoom - Open Source Doom resources"
HOMEPAGE="http://freedoom.sourceforge.net/"
SRC_URI="mirror://sourceforge/freedoom/freedoom-demo-${PV}.zip
mirror://sourceforge/freedoom/freedoom-iwad-${PV}.zip
mirror://sourceforge/freedoom/freedoom-graphics-${PV}.zip
mirror://sourceforge/freedoom/freedoom-levels-${PV}.zip
mirror://sourceforge/freedoom/freedoom-resource-wad-${PV}.zip
mirror://sourceforge/freedoom/freedoom-sounds-${PV}.zip
mirror://sourceforge/freedoom/freedoom-sprites-${PV}.zip
mirror://sourceforge/freedoom/freedoom-textures-${PV}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doomsday"
RDEPEND="doomsday? ( games-fps/doomsday )"
DEPEND="app-arch/unzip"
S=${WORKDIR}
src_install() {
insinto "${GAMES_DATADIR}"/doom-data/${PN}
doins */*.wad || die "doins wad"
dodoc freedoom-resource-wad-${PV}/{CREDITS,ChangeLog,NEWS,README}
if use doomsday; then
# Make wrapper for doomsday
games_make_wrapper doomsday-freedoom "jdoom -file \
${GAMES_DATADIR}/doom-data/freedoom/*.wad"
make_desktop_entry doomsday-freedoom "Doomsday - Freedoom"
fi
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
if use doomsday; then
elog "To use the doomsday engine, run doomsday-freedoom"
else
elog "A Doom engine is required to play the wad"
elog "Enable the doomsday use flag if you want to use the doomsday engine"
fi
echo
ewarn "To play freedoom with Doom engines which do not support"
ewarn "subdirectories, create symlinks by running the following:"
ewarn "(Be careful of overwriting existing wads.)"
ewarn
ewarn " cd ${GAMES_DATADIR}/doom-data"
ewarn " for f in doom{1,2} freedoom{,_graphics,_levels,_sounds,_sprites,_textures} ; do"
ewarn " ln -sn freedoom/\${f}.wad"
ewarn " done"
}
|