Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 79989
Collapse All | Expand All

(-)/usr/portage/games-roguelike/falconseye/falconseye-1.9.4a.ebuild (-4 / +44 lines)
Lines 11-24 Link Here
11
KEYWORDS="x86 ppc ~amd64"
11
KEYWORDS="x86 ppc ~amd64"
12
LICENSE="nethack"
12
LICENSE="nethack"
13
SLOT="0"
13
SLOT="0"
14
IUSE=""
14
IUSE="timidity mplayer alsa mp3"
15
15
16
DEPEND="media-libs/libsdl
16
DEPEND="media-libs/libsdl
17
	dev-util/yacc
17
	dev-util/yacc
18
	dev-util/byacc"
18
	dev-util/byacc"
19
RDEPEND="media-libs/libsdl
19
RDEPEND="media-libs/libsdl
20
	media-sound/timidity++
20
		timidity?(media-sound/timidity++)
21
	virtual/mpg123"
21
		!timidity? (
22
		(media-sound/alsa-utils)
23
		)
24
		mp3?(
25
			mplayer?(media-video/mplayer)
26
			!mplayer?(virtual/mpg123)
27
			)"
22
28
23
S=${WORKDIR}/nethack-341-jtp-194a
29
S=${WORKDIR}/nethack-341-jtp-194a
24
30
Lines 32-38 Link Here
32
	epatch ${FILESDIR}/${PV}-default-options.patch
38
	epatch ${FILESDIR}/${PV}-default-options.patch
33
	sed -i "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" include/unixconf.h || die "setting statedir"
39
	sed -i "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" include/unixconf.h || die "setting statedir"
34
	sed -i "s:GENTOO_HACKDIR:${GAMES_DATADIR}/${PN}:" include/config.h || die "seting hackdir"
40
	sed -i "s:GENTOO_HACKDIR:${GAMES_DATADIR}/${PN}:" include/config.h || die "seting hackdir"
35
	sed -i 's:/usr/local/bin/timidity:/usr/bin/timidity:' win/jtp/gamedata/config/jtp_opts.txt
41
42
	if ! use mp3;then
43
		sed -i 's:/usr/bin/mpg123 -q::' win/jtp/gamedata/config/jtp_opts.txt
44
	else
45
		if use mplayer; then
46
			sed -i 's:/usr/bin/mpg123 -q:/usr/bin/mplayer -quiet:' win/jtp/gamedata/config/jtp_opts.txt
47
		fi
48
	fi
49
	if use timidity; then
50
		sed -i 's:/usr/local/bin/timidity:/usr/bin/timidity:' win/jtp/gamedata/config/jtp_opts.txt
51
	else
52
		sed -i 's:/usr/local/bin/timidity -idqq:/usr/bin/aplaymidi:' win/jtp/gamedata/config/jtp_opts.txt
53
	fi
54
55
36
}
56
}
37
57
38
src_compile() {
58
src_compile() {
Lines 63-65 Link Here
63
	prepgamesdirs
83
	prepgamesdirs
64
	chmod -R g+w ${D}/${GAMES_STATEDIR}
84
	chmod -R g+w ${D}/${GAMES_STATEDIR}
65
}
85
}
86
pkg_postinst() {
87
	games_pkg_postinst
88
89
	echo
90
	if use timidity ; then
91
		einfo "You've emerge with 'timidity' USE flag:"
92
		einfo "You also need soundfonts for timidity, if you don't"
93
		einfo "know what that is, do:"
94
		echo
95
		einfo "emerge media-sound/timidity-eawpatches"
96
	else
97
		einfo "You've emerge with 'aplaymidi' for playing midi:"
98
		einfo "You have to set environment variable ALSA_OUTPUT_PORTS"
99
		einfo "You can see available ports with 'aplaymidi -l'"
100
	fi
101
	echo
102
	einfo "Remember that you can always change your falconseye's"
103
	einfo "music, sound and other settings by modifiying"
104
	einfo "${GAMES_DATADIR}/${PN}/config/jtp_opts.txt"
105
}

Return to bug 79989