summaryrefslogtreecommitdiff
blob: 610b26aa11f702d36173993b8fd8999385879eac (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libctl/libctl-3.1.ebuild,v 1.1 2009/07/14 16:54:14 bicatali Exp $

EAPI=2

DESCRIPTION="Guile-based library for scientific simulations"
SRC_URI="http://ab-initio.mit.edu/libctl/${P}.tar.gz"
HOMEPAGE="http://ab-initio.mit.edu/libctl/"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"

SLOT="0"
IUSE="doc examples"

DEPEND=">=dev-scheme/guile-1.6
	sci-libs/nlopt"
RDEPEND="${DEPEND}"

src_configure() {
	econf --enable-shared
}

src_install() {
	emake DESTDIR="${D}" install || die "emake failed"
	dodoc NEWS AUTHORS COPYRIGHT ChangeLog
	if use doc; then
		dohtml doc/* || die
	fi
	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		cd examples
		doins Makefile.am README *.c *.h *.ctl *scm || die
	fi
}