diff options
author | George Shapovalov <george@gentoo.org> | 2003-08-25 00:58:26 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2003-08-25 00:58:26 +0000 |
commit | 6e577ebf105f0aac2729b7c215970b3e43fb2f71 (patch) | |
tree | aec1d51d7c15c43a652063affad2f2fb9342a408 /dev-libs/boost/boost-1.30.2.ebuild | |
parent | fix digest (diff) | |
download | historical-6e577ebf105f0aac2729b7c215970b3e43fb2f71.tar.gz historical-6e577ebf105f0aac2729b7c215970b3e43fb2f71.tar.bz2 historical-6e577ebf105f0aac2729b7c215970b3e43fb2f71.zip |
new version, contains a bug fix
Diffstat (limited to 'dev-libs/boost/boost-1.30.2.ebuild')
-rw-r--r-- | dev-libs/boost/boost-1.30.2.ebuild | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/dev-libs/boost/boost-1.30.2.ebuild b/dev-libs/boost/boost-1.30.2.ebuild new file mode 100644 index 000000000000..153a7ded7129 --- /dev/null +++ b/dev-libs/boost/boost-1.30.2.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.30.2.ebuild,v 1.1 2003/08/25 00:58:12 george Exp $ + +DESCRIPTION="Boost provides free peer-reviewed portable C++ source libraries." +HOMEPAGE="http://www.boost.org" +#SRC_URI="http://easynews.dl.sourceforge.net/sourceforge/boost/boost-${PV}.tar.bz2" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV}.tar.bz2" + +LICENSE="freedist" +KEYWORDS="x86 ~ppc" +SLOT="1" +IUSE="icc" + +# This would be a good place for someone to figure out how to get +# boost to build nicely with icc, as it's documented to be doable. + +DEPEND="virtual/glibc" +RDEPEND=">=dev-util/yacc-1.9.1-r1 + >=dev-lang/python-2.2.1 + icc? ( >=dev-lang/icc-7.1 )" + +src_compile() { + local PYTHON_VERSION=$(/usr/bin/python -V 2>&1 | sed 's/Python \([0-9][0-9]*\.[0-9][0-9]*\)\..*/\1/') + local BOOST_TOOLSET + + if [ "`use icc`" ] ; then + BOOST_TOOLSET="intel-linux" + else + BOOST_TOOLSET="gcc" + fi + + # Build bjam, a jam variant, which is used instead of make + cd ${S}/tools/build/jam_src + ./build.sh ${BOOST_TOOLSET} || die "Failed to build bjam" + cd ${S} + + if [ "`use icc`" ] ; then + ./tools/build/jam_src/bin.linux${ARCH}/bjam -j2 \ + -sBOOST_ROOT=${S} \ + -sPYTHON_ROOT=/usr \ + -sPYTHON_VERSION=${PYTHON_VERSION} \ + -sTOOLS=${BOOST_TOOLSET} \ + -sINTEL_LINUX_VERSION="70" || die "Failed to build boost libraries." + else + ./tools/build/jam_src/bin.linux${ARCH}/bjam ${MAKEOPTS} \ + -sBOOST_ROOT=${S} \ + -sPYTHON_ROOT=/usr \ + -sPYTHON_VERSION=${PYTHON_VERSION} \ + -sTOOLS=${BOOST_TOOLSET} + + einfo "Don't worry if there are a few (probably 6) failures above." + einfo "Some targets merely need to be combined. Here goes:" + + ./tools/build/jam_src/bin.linux${ARCH}/bjam \ + -sBOOST_ROOT=${S} \ + -sPYTHON_ROOT=/usr \ + -sPYTHON_VERSION=${PYTHON_VERSION} \ + -sTOOLS=${BOOST_TOOLSET} || die "Failed to build boost libraries." + fi +} + +src_install () { + # Unfortunately boost doesn't provide a standard way to + # install itself. So it's done "manually" here. + + 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 + 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/\{\} \; +} |