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 / +42 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/openal"
19
	kde-base/arts
19
DEPEND="${RDEPEND}
20
	opengl? ( virtual/opengl )"
20
	>=dev-util/cmake-2.4.2"
21
need-kde 3
21
need-kde 3
22
22
23
S=${WORKDIR}/${PN}-all-${PV}
23
S=${WORKDIR}/${PN}-all-${PV}
24
24
25
PATCHES="${FILESDIR}/${P}"-gcc41.patch
25
src_unpack() {
26
PATCHES1="${FILESDIR}/${P}"-install.patch
26
	unpack ${A}
27
	cd "${S}"
28
	mkdir build
29
30
	epatch "${FILESDIR}"/${P}-gcc41.patch
31
32
	# Sandbox
33
	sed -e 's/^kde/#kde/' \
34
		-i code/boson/data/CMakeLists.txt \
35
		|| die "sed failed"
36
}
27
37
28
src_compile() {
38
src_compile() {
29
	myconf="$(use_with opengl gl)"
39
	cd build
30
	MAKEOPTS="${MAKEOPTS} -j1"
40
	cmake \
41
		-DCMAKE_C_COMPILER=$(which $(tc-getCC)) \
42
		-DCMAKE_CXX_COMPILER=$(which $(tc-getCXX)) \
43
		-DCMAKE_BUILD_TYPE=None \
44
		-DCMAKE_VERBOSE_MAKEFILE=1 \
45
		-DCMAKE_INSTALL_PREFIX=/usr \
46
		-DKDEDIR=$(kde-config --prefix) \
47
		.. || die "cmake failed"
48
49
	emake || die "emake failed"
50
}
51
52
src_install() {
53
	dodoc code/{AUTHORS,ChangeLog,README}
54
55
	newicon code/boson/data/hi48-app-boson.png ${PN}.png
31
56
32
	kde_src_compile
57
	cd build
58
	make DESTDIR="${D}" install || die "make install failed"
33
}
59
}

Return to bug 134701