From 746048cf38c3ed125b92dc20e085218ec1021862 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 29 Mar 2012 20:11:07 -0400 Subject: [dev-ml/lacaml] moved to new oasis eclass --- dev-ml/lacaml/ChangeLog | 3 +++ dev-ml/lacaml/lacaml-6.0.4.ebuild | 39 ++++++++++++++++----------------------- 2 files changed, 19 insertions(+), 23 deletions(-) (limited to 'dev-ml') diff --git a/dev-ml/lacaml/ChangeLog b/dev-ml/lacaml/ChangeLog index d3d8095d6..0f5b40fee 100644 --- a/dev-ml/lacaml/ChangeLog +++ b/dev-ml/lacaml/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 30 Mar 2012; Guillaume Horel lacaml-6.0.4.ebuild: + moved to new oasis eclass + *lacaml-6.0.4 (02 Mar 2012) 02 Mar 2012; Guillaume Horel diff --git a/dev-ml/lacaml/lacaml-6.0.4.ebuild b/dev-ml/lacaml/lacaml-6.0.4.ebuild index 00c7a9aa1..c0439cd33 100644 --- a/dev-ml/lacaml/lacaml-6.0.4.ebuild +++ b/dev-ml/lacaml/lacaml-6.0.4.ebuild @@ -4,7 +4,8 @@ EAPI=4 -inherit eutils findlib +OASIS_BUILD_DOCS=1 +inherit oasis DESCRIPTION="BLAS/LAPACK interface for OCaml" HOMEPAGE="http://forge.ocamlcore.org/projects/lacaml" @@ -13,28 +14,20 @@ 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" +IUSE="" -DEPEND="dev-lang/ocaml[ocamlopt] - virtual/blas +RDEPEND="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 +DEPEND="${DEPEND} + dev-util/pkgconfig" + +DOCS=( "README.txt" "Changelog" ) + +src_prepare() { + 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 atlas) } -- cgit v1.2.3