blob: 0b5370d3464dac13b792b9588368b1e060b80293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-physics/bullet/bullet-2.73-r1.ebuild,v 1.2 2009/01/16 14:54:03 bicatali Exp $
inherit eutils autotools
MYP="${P}-sp1"
DESCRIPTION="Continuous Collision Detection and Physics Library"
HOMEPAGE="http://www.continuousphysics.com/Bullet/"
SRC_URI="http://bullet.googlecode.com/files/${MYP}.tgz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
RDEPEND=""
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
# clean up
rm -rf Extras/LibXML
rm -f Extras/CDTestFramework/AntTweakBar/lib/libAntTweakBar.so
epatch "${FILESDIR}"/${P}-autotools.patch
eautoreconf
edos2unix install-sh || die
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README ChangeLog AUTHORS || die
if use doc; then
insinto /usr/share/doc/${PF}
doins *.pdf || die
fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r Extras Demos || die
fi
}
|