commit:     e362f42f3143e43270708ab82b90f2bdb4da2335
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Fri Apr  3 10:49:54 2015 +0000
Commit:     Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
CommitDate: Fri Apr  3 10:49:54 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=e362f42f

sci-libs/iml: Version bump

Package-Manager: portage-2.2.14

 sci-libs/iml/ChangeLog                             |  6 ++++
 .../iml-1.0.4-use-any-cblas-implementation.patch   | 22 ++++++++++++++
 sci-libs/iml/iml-1.0.4.ebuild                      | 35 ++++++++++++++++++++++
 3 files changed, 63 insertions(+)

diff --git a/sci-libs/iml/ChangeLog b/sci-libs/iml/ChangeLog
index c7f9494..c2e50b6 100644
--- a/sci-libs/iml/ChangeLog
+++ b/sci-libs/iml/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*iml-1.0.4 (03 Apr 2015)
+
+  03 Apr 2015; Marius Brehler <mar...@linux.sungazer.de>
+  +files/iml-1.0.4-use-any-cblas-implementation.patch, +iml-1.0.4.ebuild:
+  Version bump
+
   03 Apr 2015; Marius Brehler <mar...@linux.sungazer.de> iml-1.0.3-r2.ebuild:
   Bump to EAPI=5
 

diff --git a/sci-libs/iml/files/iml-1.0.4-use-any-cblas-implementation.patch 
b/sci-libs/iml/files/iml-1.0.4-use-any-cblas-implementation.patch
new file mode 100644
index 0000000..3d88a39
--- /dev/null
+++ b/sci-libs/iml/files/iml-1.0.4-use-any-cblas-implementation.patch
@@ -0,0 +1,22 @@
+Patch to detect ATLAS or cblas. Ported from 1.0.3 to 1.0.4.
+
+Patch by Marius Brehler.
+--- configure.ac
++++ configure.ac
+@@ -76,15 +76,7 @@ location with the options --with-gmp-inc
+ respectively when running configure.
+ )])
+ 
+-IML_CHECK_CBLAS(,,[AC_MSG_WARN(
+-CBLAS not found!
+-Please make sure that --with-cblas=<linker flags> and optional 
--with-cblas-include=<path> and --with-cblas-lib=<path> are correctly set.
+-Trying legacy ATLAS configuration.)
+-IML_CHECK_ATLAS(,,[AC_MSG_ERROR(
+-ATLAS not found! 
+-ATLAS version 3.0 or greater is required for this library to compile. Please 
make sure ATLAS is installed and specify the header and libraries location with 
the options --with-atlas-include=<path> and --with-atlas-lib=<path> 
respectively when running configure.)
+-])
+-])
++PKG_CHECK_MODULES([ATLAS], [cblas])
+ 
+ AC_SUBST(LIBIML_LDFLAGS)
+ AC_SUBST(LDFLAGS)

diff --git a/sci-libs/iml/iml-1.0.4.ebuild b/sci-libs/iml/iml-1.0.4.ebuild
new file mode 100644
index 0000000..8be9c47
--- /dev/null
+++ b/sci-libs/iml/iml-1.0.4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="Integer Matrix Library"
+HOMEPAGE="http://www.cs.uwaterloo.ca/~astorjoh/iml.html";
+SRC_URI="http://www.cs.uwaterloo.ca/~astorjoh/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RESTRICT="mirror"
+
+DEPEND="virtual/cblas"
+RDEPEND="${DEPEND}"
+
+AUTOTOOLS_AUTORECONF=yes
+AT_M4DIR="config"
+DOCS=( AUTHORS ChangeLog README )
+PATCHES=(
+       "${FILESDIR}"/${P}-use-any-cblas-implementation.patch
+)
+
+src_configure() {
+       myeconfargs=(
+               --with-default="${EPREFIX}"/usr
+       )
+       autotools-utils_src_configure
+}

Reply via email to