aboutsummaryrefslogtreecommitdiff
blob: 9430800a916a2941c10ab0daa7cb5047d2efd9ac (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit base 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"
SRC_URI="http://dev.gentooexperimental.org/~jlec/distfiles/${P}.tar.gz"

SLOT="0"
LICENSE="ccp4"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="sci-chemistry/ccp4-apps
	>=sci-libs/ccp4-libs-6.1.1-r5
	sci-libs/cctbx"
DEPEND="${RDEPEND}"

S=${WORKDIR}

PATCHES=(
	"${FILESDIR}"/${PV}-gcc4.4.patch
	)

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="${LDFLAGS}" \
		CLIB="/usr/$(get_libdir)" \
		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
#		LCCP4=" $(gcc-config -L | awk -F: '{for(i=1; i<=NF; i++) printf " -L%s", $i}') -L/usr/$(get_libdir) -lgfortran -lgfortranbegin -lccp4c -lccp4f -lm" \
#		LCCP4="-L/usr/$(get_libdir) -lccp4c -lccp4f -lm" \
}

src_install() {
	dobin pointless othercell || die
}