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

EAPI=5

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils flag-o-matic

DESCRIPTION="Structure based prediction of protein chemical shifts"
HOMEPAGE="http://www-vendruscolo.ch.cam.ac.uk/camshift/camshift.php"
SRC_URI="http://www-vendruscolo.ch.cam.ac.uk/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="sse"

RDEPEND="
	virtual/blas
	virtual/lapack"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${PV}-gcc47.patch
	"${FILESDIR}"/${PV}-gentoo.patch )

src_configure(){
	local myeconfargs=(
		--with-lapack
		--with-external-blas
		$(use_enable sse mkasm)
	)
	autotools-utils_src_configure
}

src_compile() {
	autotools-utils_src_compile \
		CFLAGS="${CFLAGS}" \
		CXXFLAGS="${CXXFLAGS}" \
		LDFLAGS="${LDFLAGS}"
}

src_install() {
	dobin "${BUILD_DIR}"/bin/${PN}

	insinto /usr/share/${PN}
	doins -r data
	dodoc README NEWS ChangeLog AUTHORS
}