blob: ad9fbd152659a2766f8d1797af9de7f99eebdf73 (
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
OASIS_BUILD_DOCS=1
inherit oasis
DESCRIPTION="BLAS/LAPACK interface for OCaml"
HOMEPAGE="http://forge.ocamlcore.org/projects/lacaml"
SRC_URI="https://bitbucket.org/mmottl/lacaml/downloads/${P}.tar.gz"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="virtual/blas
virtual/lapack"
DEPEND="${DEPEND}
virtual/pkgconfig"
DOCS=( "README.md" "CHANGES.txt" "TODO.md" )
src_prepare() {
if use doc; then
cp "${FILESDIR}/API.odocl" . || die
fi
cclib="$(pkg-config --libs blas lapack)"
cclib="[$(echo $cclib|sed -e 's/\(-[a-z0-9]*\) /\"\1\"\;/g' -e \
's/\(-[a-z0-9]*\)$/\"\1\"/')]"
sed -i "s/cclib = \[\]/cclib = ${cclib}/" setup.conf
#would like to do the below, but doesn't work from ebuild
#oasis_configure_opts="--override conf_cclib $(pkg-config --libs blas lapack)"
}
|