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
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)
}
|
|