# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs multilib DESCRIPTION="Scores crystallographic Laue and space groups" HOMEPAGE="ftp://ftp.mrc-lmb.cam.ac.uk/pub/pre/pointless.html" SRC_URI="ftp://ftp.mrc-lmb.cam.ac.uk/pub/pre/${P}.tar.gz" LICENSE="" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="sci-chemistry/ccp4 sci-libs/cctbx" DEPEND="${RDEPEND}" S=${WORKDIR} src_compile() { # Fails to link against my libcctbx # Tried stealing autotools from ccp4 but that breaks differently with a weird boost error. emake \ -f Makefile.make \ CC=$(tc-getCC) \ CXX=$(tc-getCXX) \ CFLAGS="${CFLAGS}" \ CXXFLAGS="${CXXFLAGS}" \ LFLAGS="\${OPT}" \ CCTBX_sources=/usr/$(get_libdir)/cctbx/cctbx_sources \ CCTBX_VERSION=2009 \ ICCP4=-I/usr/include/ccp4 \ ICLPR="-I/usr/include -I/usr/$(get_libdir)/cctbx/cctbx_sources -I/usr/$(get_libdir)/cctbx/cctbx_build/include" \ LTBX="-L/usr/$(get_libdir)/cctbx/cctbx_build/lib -lcctbx" \ || die } src_install() { # Not gonna work emake DESTDIR="${D}" install || die "emake install failed" }