diff options
Diffstat (limited to 'dev-ml/lacaml/lacaml-5.5.2.ebuild')
-rw-r--r-- | dev-ml/lacaml/lacaml-5.5.2.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-ml/lacaml/lacaml-5.5.2.ebuild b/dev-ml/lacaml/lacaml-5.5.2.ebuild new file mode 100644 index 000000000..8a17c7f71 --- /dev/null +++ b/dev-ml/lacaml/lacaml-5.5.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2011 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://www.ocaml.info/home/ocaml_sources.html" +SRC_URI="http://hg.ocaml.info/release/${PN}/archive/release-${PV}.tar.bz2 +-> ${P}.tar.bz2" + +LICENSE="LGPL-2.1-linking-exception" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +DEPEND="dev-lang/ocaml[ocamlopt] + virtual/blas + virtual/lapack" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-release-${PV}" + +src_prepare() { + sed -i -e "s/blas/$(pkg-config --libs blas|sed s/-l//g)/" \ + -e "s/lapack/$(pkg-config --libs lapack|sed s/-l//g)/" Makefile.conf ||die +} + +src_compile() { + emake + use doc && emake doc +} + +src_install() { + findlib_src_install + dodoc README.txt Changelog + use doc && dodoc -r doc/lacaml/html doc/lacaml/latex +} |