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

EAPI=4

inherit eutils findlib

DESCRIPTION="BLAS/LAPACK interface for OCaml"
HOMEPAGE="http://forge.ocamlcore.org/projects/lacaml"
SRC_URI="http://forge.ocamlcore.org/frs/download.php/806/${P}.tar.gz"

LICENSE="LGPL-2.1-linking-exception"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc"

DEPEND="dev-lang/ocaml[ocamlopt]
	virtual/blas
	virtual/lapack"
RDEPEND="${DEPEND}"

src_configure() {
	ocaml setup.ml -configure \
		--override conf_cclib "$(pkg-config --libs blas) \
$(pkg-config --libs lapack)" \
		--destdir "${ED}" \
		--prefix "/usr" \
		--docdir "/usr/share/${PF}/doc" || die "configuration failed"
}

src_compile() {
	emake
	use doc && emake doc
}

src_install() {
	findlib_src_install
	dodoc README.txt Changelog
}