summaryrefslogtreecommitdiff
blob: acac8d9ce45d46bc738de184d77d350fb4d9866a (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
46
47
48
49
50
51
52
53
54
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.29.0.ebuild,v 1.2 2003/01/27 01:29:49 nall Exp $

MY_V="${PV//\./_}"

DESCRIPTION="Boost provides free peer-reviewed portable C++ source libraries."
HOMEPAGE="http://www.boost.org"
SRC_URI="http://boost.sourceforge.net/release/boost_${MY_V}.tar.gz"
LICENSE="freedist"
KEYWORDS="~x86 ~ppc"
SLOT="1"
IUSE=""

RDEPEND=">=dev-util/yacc-1.9.1-r1
	>=dev-lang/python-2.2.1"

S="${WORKDIR}/boost_${MY_V}"

src_compile() {
	# first compile jam (the boost build tool)
	cd ${S}/tools/build/jam_src
	emake || die "couldn't build jam"

	# now build boost libraries
	cd ${S}
	./tools/build/jam_src/bin.linux${ARCH}/bjam -j2 \
		-sBOOST_ROOT=${S} \
		-sPYTHON_ROOT=/usr \
		-sPYTHON_VERSION=2.2 \
		-sTOOLS=gcc || die "build error"
}

src_install () {
	# jam does not provide smth like 'make install' :(

	cd ${S}
	# install libraries
	find libs -type f -name \*.a -exec dolib.a {} \; 	
	find libs -type f -name \*.so -exec dolib.so {} \; 	

	# install source/header files
	find boost -type f -exec install -D -m0644 {} ${D}/usr/include/{} \;

	# install documentation
	dodoc README

	# this part should really use dohtml -- karltk
	for i in htm html jpg jpeg gif css
	do
		find . -type f -name "*.${i}" -exec \
			install -D -m0644 {} ${D}/usr/share/doc/${P}/html/{} \;
	done
}