Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/iml/, sci-libs/iml/files/
Date: Mon, 19 Aug 2019 07:52:55
Message-Id: 1566200991.77dd20308b4aca8c18f3964196af7252aa85bbc1.heroxbd@gentoo
1 commit: 77dd20308b4aca8c18f3964196af7252aa85bbc1
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 19 07:49:21 2019 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 19 07:49:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77dd2030
7
8 sci-libs/iml: import from the science overlay and bump to EAPI 7.
9
10 Closes: https://bugs.gentoo.org/563288
11 Package-Manager: Portage-2.3.69, Repoman-2.3.12
12 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
13
14 sci-libs/iml/Manifest | 1 +
15 .../iml-1.0.4-use-any-cblas-implementation.patch | 22 +++++++++++++
16 sci-libs/iml/iml-1.0.5.ebuild | 38 ++++++++++++++++++++++
17 sci-libs/iml/metadata.xml | 9 +++++
18 4 files changed, 70 insertions(+)
19
20 diff --git a/sci-libs/iml/Manifest b/sci-libs/iml/Manifest
21 new file mode 100644
22 index 00000000000..268159880c6
23 --- /dev/null
24 +++ b/sci-libs/iml/Manifest
25 @@ -0,0 +1 @@
26 +DIST iml-1.0.5.tar.bz2 391757 BLAKE2B 5895b353269ce19e17e2522f78eb705c89a47ed3c6cce54d1b7ab3003f59d0a13050b30ce9cedbf38392c737c169740b6c2433f1a74856b0f9d4e6e007ebf804 SHA512 b5a85982636035cc50acba7dcff5478c6271be3669313f01915b2761302d4c77617c0dd7932daf74433098670d3ffdb2ef19eb24450b40709750a0b7c8f797f1
27
28 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
29 new file mode 100644
30 index 00000000000..28d70bf9166
31 --- /dev/null
32 +++ b/sci-libs/iml/files/iml-1.0.4-use-any-cblas-implementation.patch
33 @@ -0,0 +1,22 @@
34 +Patch to detect ATLAS or cblas. Ported from 1.0.3 to 1.0.4.
35 +
36 +Patch by Marius Brehler.
37 +--- a/configure.ac
38 ++++ b/configure.ac
39 +@@ -76,15 +76,7 @@ location with the options --with-gmp-inc
40 + respectively when running configure.
41 + )])
42 +
43 +-IML_CHECK_CBLAS(,,[AC_MSG_WARN(
44 +-CBLAS not found!
45 +-Please make sure that --with-cblas=<linker flags> and optional --with-cblas-include=<path> and --with-cblas-lib=<path> are correctly set.
46 +-Trying legacy ATLAS configuration.)
47 +-IML_CHECK_ATLAS(,,[AC_MSG_ERROR(
48 +-ATLAS not found!
49 +-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.)
50 +-])
51 +-])
52 ++PKG_CHECK_MODULES([ATLAS], [cblas])
53 +
54 + AC_SUBST(LIBIML_LDFLAGS)
55 + AC_SUBST(LDFLAGS)
56
57 diff --git a/sci-libs/iml/iml-1.0.5.ebuild b/sci-libs/iml/iml-1.0.5.ebuild
58 new file mode 100644
59 index 00000000000..25907543c00
60 --- /dev/null
61 +++ b/sci-libs/iml/iml-1.0.5.ebuild
62 @@ -0,0 +1,38 @@
63 +# Copyright 1999-2019 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=7
67 +
68 +inherit autotools
69 +
70 +DESCRIPTION="Integer Matrix Library"
71 +HOMEPAGE="http://www.cs.uwaterloo.ca/~astorjoh/iml.html"
72 +SRC_URI="http://www.cs.uwaterloo.ca/~astorjoh/${P}.tar.bz2"
73 +
74 +LICENSE="GPL-2"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
77 +IUSE="static-libs"
78 +
79 +RESTRICT="mirror"
80 +
81 +DEPEND="virtual/cblas"
82 +RDEPEND="${DEPEND}"
83 +
84 +DOCS=( AUTHORS ChangeLog README )
85 +
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-1.0.4-use-any-cblas-implementation.patch
88 +)
89 +
90 +src_prepare() {
91 + default
92 + eautoreconf
93 +}
94 +
95 +src_configure() {
96 + econf \
97 + --with-default="${EPREFIX}"/usr \
98 + --enable-shared \
99 + $(use_enable static-libs static)
100 +}
101
102 diff --git a/sci-libs/iml/metadata.xml b/sci-libs/iml/metadata.xml
103 new file mode 100644
104 index 00000000000..673326db1e8
105 --- /dev/null
106 +++ b/sci-libs/iml/metadata.xml
107 @@ -0,0 +1,9 @@
108 +<?xml version="1.0" encoding="UTF-8"?>
109 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
110 +<pkgmetadata>
111 + <maintainer type="project">
112 + <email>sci@g.o</email>
113 + <name>Gentoo Science Project</name>
114 + </maintainer>
115 + <longdescription>a free library of C source code which implements algorithms for computing exact solutions to dense systems of linear equations over the integers</longdescription>
116 +</pkgmetadata>