# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs python MY_PV="${PV//./_}" DESCRIPTION="Computational Crystallography Toolbox" HOMEPAGE="http://cctbx.sourceforge.net/" SRC_URI="mirror://gentoo/cctbx_bundle-${PV}.tar.gz" LICENSE="cctbx" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} } src_compile() { # Get CXXFLAGS in format suitable for substitition into SConscript for i in ${CXXFLAGS}; do OPTS="${OPTS} \"${i}\"," done # Strip off the last comma OPTS=${OPTS%,} # Fix CXXFLAGS sed -i \ -e "s:\"-O3\", \"-ffast-math\":${OPTS}:g" \ ${S}/libtbx/SConscript python libtbx/configure.py \ --compiler=$(tc-getCC) \ mmtbx \ || die "configure failed" libtbx.scons || die "make failed" } src_install() { einstall || die "install failed" }