Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 134701 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/games-strategy/boson/boson-0.11.ebuild (-16 / +43 lines)
Lines 1-33 Link Here
1
# Copyright 1999-2006 Gentoo Foundation and Thomas Capricelli <orzel@kde.org>
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-strategy/boson/boson-0.11.ebuild,v 1.5 2006/05/25 21:50:54 tupone Exp $
3
# $Header: $
4
4
5
inherit kde
5
inherit eutils kde-functions toolchain-funcs
6
6
7
DESCRIPTION="real-time strategy game, with the feeling of Command&Conquer(tm) (needs at least 2 ppl to play)"
7
DESCRIPTION="Real-time strategy game, with the feeling of Command&Conquer(tm)"
8
HOMEPAGE="http://boson.sourceforge.net/"
8
HOMEPAGE="http://boson.sourceforge.net/"
9
SRC_URI="mirror://sourceforge/boson/boson-all-${PV}.tar.bz2"
9
SRC_URI="mirror://sourceforge/boson/boson-all-${PV}.tar.bz2"
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="ppc -sparc x86"
13
KEYWORDS="~ppc -sparc ~x86"
14
IUSE="opengl"
14
IUSE=""
15
15
16
DEPEND="media-libs/lib3ds
16
RDEPEND="virtual/opengl
17
	>=media-libs/openal-20040303
17
	virtual/glu
18
	<media-libs/openal-20051024
18
	media-libs/lib3ds
19
	kde-base/arts
19
	media-libs/openal"
20
	opengl? ( virtual/opengl )"
20
DEPEND="${RDEPEND}
21
	>=dev-util/cmake-2.4.2"
21
need-kde 3
22
need-kde 3
22
23
23
S=${WORKDIR}/${PN}-all-${PV}
24
S=${WORKDIR}/${PN}-all-${PV}
24
25
25
PATCHES="${FILESDIR}/${P}"-gcc41.patch
26
src_unpack() {
26
PATCHES1="${FILESDIR}/${P}"-install.patch
27
	unpack ${A}
28
	cd "${S}"
29
	mkdir build
30
31
	epatch "${FILESDIR}"/${P}-gcc41.patch
32
33
	# Sandbox
34
	sed -e 's/^kde/#kde/' \
35
		-i code/boson/data/CMakeLists.txt \
36
		|| die "sed failed"
37
}
27
38
28
src_compile() {
39
src_compile() {
29
	myconf="$(use_with opengl gl)"
40
	cd build
30
	MAKEOPTS="${MAKEOPTS} -j1"
41
	cmake \
42
		-DCMAKE_C_COMPILER=$(which $(tc-getCC)) \
43
		-DCMAKE_CXX_COMPILER=$(which $(tc-getCXX)) \
44
		-DCMAKE_BUILD_TYPE=None \
45
		-DCMAKE_VERBOSE_MAKEFILE=1 \
46
		-DCMAKE_INSTALL_PREFIX=/usr \
47
		-DKDEDIR=$(kde-config --prefix) \
48
		.. || die "cmake failed"
49
50
	emake || die "emake failed"
51
}
52
53
src_install() {
54
	dodoc code/{AUTHORS,ChangeLog,README}
55
56
	newicon code/boson/data/hi48-app-boson.png ${PN}.png
31
57
32
	kde_src_compile
58
	cd build
59
	make DESTDIR="${D}" install || die "make install failed"
33
}
60
}

Return to bug 134701