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

# inherit

DESCRIPTION="a program that will automatically determine values of the anomalous scattering factors"
HOMEPAGE="http://www.gwyndafevans.co.uk/id2.html"
SRC_URI="ftp://ftp.ccp4.ac.uk/chooch/5.0.2/packed/chooch-5.0.2.tar.gz"

LICENSE="ccp4"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="X"
RDEPEND="X? ( sci-libs/pgplot )
	 sci-libs/gsl
	 sci-libs/Cgraph"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${PN}"

src_compile() {
	rm -rvf cgraph-2.04 gsl-1.4
	cd chooch-5.0.2
	econf \
		$(use_with X x) \
		--with-gsl-prefix="/usr" \
		--with-cgraph-prefix="/usr"

	emake -j1|| die
}