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

(-)cube/cube-20050829.ebuild (-5 / +19 lines)
Lines 14-20 Link Here
14
LICENSE="ZLIB"
14
LICENSE="ZLIB"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
16
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
17
IUSE="dedicated"
17
IUSE="dedicated emul"
18
18
19
RDEPEND="virtual/opengl
19
RDEPEND="virtual/opengl
20
	virtual/glu
20
	virtual/glu
Lines 22-28 Link Here
22
	media-libs/sdl-mixer
22
	media-libs/sdl-mixer
23
	media-libs/sdl-image
23
	media-libs/sdl-image
24
	sys-libs/zlib
24
	sys-libs/zlib
25
	media-libs/libpng"
25
	media-libs/libpng
26
	amd64? (
27
		emul? ( 
28
			app-emulation/emul-linux-x86-xlibs
29
			app-emulation/emul-linux-x86-compat
30
			app-emulation/emul-linux-x86-sdl
31
			app-emulation/emul-linux-x86-baselibs
32
			app-emulation/emul-linux-x86-soundlibs
33
		)
34
	)
35
36
	"
26
DEPEND="${RDEPEND}
37
DEPEND="${RDEPEND}
27
	app-arch/unzip
38
	app-arch/unzip
28
	>=sys-apps/sed-4"
39
	>=sys-apps/sed-4"
Lines 75-81 Link Here
75
	doins -r *.cfg data packages || die "cp failed"
86
	doins -r *.cfg data packages || die "cp failed"
76
	dohtml -r docs readme.html
87
	dohtml -r docs readme.html
77
88
78
	if [[ ${ARCH} == "x86" ]] ; then
89
	if [[ ${ARCH} == "x86" ]] || useq emul; then
79
		exeinto "${GAMES_LIBDIR}"/${PN}
90
		exeinto "${GAMES_LIBDIR}"/${PN}
80
		newexe bin_unix/linux_client cube_client || die "newexe server failed"
91
		newexe bin_unix/linux_client cube_client || die "newexe server failed"
81
		games_make_wrapper cube_client-bin \
92
		games_make_wrapper cube_client-bin \
Lines 91-103 Link Here
91
102
92
pkg_postinst() {
103
pkg_postinst() {
93
	games_pkg_postinst
104
	games_pkg_postinst
94
	if [[ ${ARCH} == "x86" ]] ; then
105
	if [[ ${ARCH} == "x86" ]] || useq emul; then
95
		einfo "You now have 2 clients and 2 servers:"
106
		einfo "You now have 2 clients and 2 servers:"
96
		einfo "cube_client-bin      prebuilt version (needed to play on public multiplayer servers)"
107
		einfo "cube_client-bin      prebuilt version (needed to play on public multiplayer servers)"
97
	else
108
	else
98
		einfo "You only have 1 client and 1 server:"
109
		einfo "You only have 1 client and 1 server:"
110
		if [[ ${ARCH} == "amd64" ]]; then
111
			einfo "You can alternatively enable USE flag emul for cube to install prebuilt version (required for multiplayer on public servers)"
112
		fi
99
	fi
113
	fi
100
	einfo "cube_client          custom client built from source"
114
	einfo "cube_client          custom client built from source (can not be used for multiplayer on public servers)"
101
	use dedicated && \
115
	use dedicated && \
102
	einfo "Parallel versions of the server have been installed"
116
	einfo "Parallel versions of the server have been installed"
103
}
117
}

Return to bug 116652