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

(-)/usr/portage/games-simulation/openttd/openttd-0.7.5.ebuild (-14 / +29 lines)
Lines 12-18 Link Here
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
14
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15
IUSE="alsa debug dedicated iconv icu +png +truetype zlib"
15
IUSE="alsa debug dedicated iconv icu opengfx +png +truetype zlib"
16
RESTRICT="test"
16
RESTRICT="test"
17
17
18
DEPEND="
18
DEPEND="
Lines 32-38 Link Here
32
	!dedicated? (
32
	!dedicated? (
33
		alsa? ( media-sound/alsa-utils )
33
		alsa? ( media-sound/alsa-utils )
34
	)"
34
	)"
35
35
PDEPEND="
36
	opengfx? ( games-misc/opengfx  ) "
36
src_configure() {
37
src_configure() {
37
	local myopts
38
	local myopts
38
39
Lines 91-108 Link Here
91
pkg_postinst() {
92
pkg_postinst() {
92
	games_pkg_postinst
93
	games_pkg_postinst
93
94
94
	elog
95
	if use opengfx ; then
95
	elog "In order to play, you must copy the following 6 files from "
96
		elog
96
	elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
97
		elog "OpenTTD was compiled with opengfx USE flag,"
97
	elog
98
		elog "you do not need graphics files from the original TTD, but:"
98
	elog "From the WINDOWS version you need: "
99
		elog "In order to play, you must copy the following file from "
99
	elog "  sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
100
		elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/"
100
	elog "OR from the DOS version you need: "
101
		elog "or ~/.openttd/data"
101
	elog "  SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
102
		elog "From the WINDOWS version you need: "
102
	elog
103
		elog "  sample.cat"
103
	elog "File names are case sensitive so make sure they are "
104
		elog "OR from the DOS version you need: "
104
	elog "correct for whichever version you have."
105
		elog "  SAMPLE.CAT"
105
	elog
106
	else
107
		elog
108
		elog "OpenTTD was compiled without opengfx USE flag."
109
		elog "In order to play, you must copy the following 6 files from "
110
		elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
111
		elog
112
		elog "From the WINDOWS version you need: "
113
		elog "  sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
114
		elog "OR from the DOS version you need: "
115
		elog "  SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
116
		elog
117
		elog "File names are case sensitive so make sure they are "
118
		elog "correct for whichever version you have."
119
		elog
120
	fi
106
121
107
	if use dedicated ; then
122
	if use dedicated ; then
108
		ewarn "Warning: The init script will kill all running openttd"
123
		ewarn "Warning: The init script will kill all running openttd"

Return to bug 300330