Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Guillaume Horel" <guillaume.horel@...>
Subject: proj/sci:master commit in: dev-ml/lacaml/
Date: Fri, 30 Mar 2012 00:23:12 +0000 (UTC)
commit:     746048cf38c3ed125b92dc20e085218ec1021862
Author:     Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
AuthorDate: Fri Mar 30 00:11:07 2012 +0000
Commit:     Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
CommitDate: Fri Mar 30 00:11:07 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=746048cf

[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(-)

diff --git a/dev-ml/lacaml/ChangeLog b/dev-ml/lacaml/ChangeLog
index d3d8095..0f5b40f 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 <guillaume.horel@...> lacaml-6.0.4.ebuild:
+  moved to new oasis eclass
+
 *lacaml-6.0.4 (02 Mar 2012)
 
   02 Mar 2012; Guillaume Horel <guillaume.horel@...>

diff --git a/dev-ml/lacaml/lacaml-6.0.4.ebuild b/dev-ml/lacaml/lacaml-6.0.4.ebuild
index 00c7a9a..c0439cd 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)
 }


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
proj/sci:master commit in: dev-ml/lacaml/
Next by thread:
gentoo-x86 commit in net-analyzer/icinga: icinga-1.5.1.ebuild
Previous by date:
proj/sci:master commit in: dev-ml/zarith/, dev-ml/zarith/files/
Next by date:
gentoo-x86 commit in mail-client/thunderbird: thunderbird-11.0.1.ebuild ChangeLog thunderbird-11.0-r1.ebuild


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.