#! /bin/bash # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 MY_V="${PV//\./_}" DESCRIPTION="Boost provides free peer-reviewed portable C++ source libraries." HOMEPAGE="http://www.boost.org" SRC_URI="http://dl.sourceforge.net/sourceforge/boost/boost_1_30_0.tar.bz2" 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() { # compile bjam cd ${S}/tools/build/jam_src ./build.sh gcc || die "couldn't build bjam" # 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 } src_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 # exclude default config header find boost -type f \ -exec install -D -m0644 {} ${D}/usr/include/{} \; # install documentation dodoc README dohtml index.htm google_logo_40wht.gif c++boost.gif boost.css dohtml -A pdf -r more dohtml -r people dohtml -r doc find libs -type f -not -regex '^libs/[^/]*/build/.*' \ -and -not -regex '^libs/.*/test[^/]?/.*' \ -and -not -regex '^libs/.*/bench[^/]?/.*' \ -and -not -regex '^libs/[^/]*/tools/.*' \ -and -not -name \*.bat \ -and -not -name Jamfile\* \ -and -not -regex '^libs/[^/]*/src/.*' \ -and -not -iname makefile \ -and -not -name \*.mak \ -and -not -name .\* \ -and -not -name \*.dsw \ -and -not -name \*.dsp \ -exec \ install -D -m0644 \{\} ${D}/usr/share/doc/${P}/html/\{\} \; }