1 |
commit: 461031132c33f6dc98c9789b589a71c27995aae9 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Mon Sep 21 18:30:23 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 21 18:30:23 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=46103113 |
7 |
|
8 |
sci-libs/armadillo: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
sci-libs/armadillo/ChangeLog | 6 ++ |
13 |
sci-libs/armadillo/armadillo-5.600.2.ebuild | 121 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 127 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/armadillo/ChangeLog b/sci-libs/armadillo/ChangeLog |
17 |
index c172727..daba68a 100644 |
18 |
--- a/sci-libs/armadillo/ChangeLog |
19 |
+++ b/sci-libs/armadillo/ChangeLog |
20 |
@@ -2,6 +2,12 @@ |
21 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
22 |
# $Id$ |
23 |
|
24 |
+*armadillo-5.600.2 (21 Sep 2015) |
25 |
+ |
26 |
+ 21 Sep 2015; Marius Brehler <marbre@××××××××××××××.de> |
27 |
+ +armadillo-5.600.2.ebuild: |
28 |
+ sci-libs/armadillo: Version bump |
29 |
+ |
30 |
10 Sep 2015; Marius Brehler <marbre@××××××××××××××.de> |
31 |
-armadillo-5.100.2.ebuild, -armadillo-5.200.2-r1.ebuild: |
32 |
sci-libs/armadillo: Remove old: Keep in sync with tree |
33 |
|
34 |
diff --git a/sci-libs/armadillo/armadillo-5.600.2.ebuild b/sci-libs/armadillo/armadillo-5.600.2.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..6682a81 |
37 |
--- /dev/null |
38 |
+++ b/sci-libs/armadillo/armadillo-5.600.2.ebuild |
39 |
@@ -0,0 +1,121 @@ |
40 |
+# Copyright 1999-2015 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+# $Id$ |
43 |
+ |
44 |
+EAPI=5 |
45 |
+ |
46 |
+CMAKE_IN_SOURCE_BUILD=1 |
47 |
+ |
48 |
+inherit cmake-utils toolchain-funcs multilib eutils |
49 |
+ |
50 |
+DESCRIPTION="Streamlined C++ linear algebra library" |
51 |
+HOMEPAGE="http://arma.sourceforge.net/" |
52 |
+SRC_URI="mirror://sourceforge/arma/${P}.tar.gz" |
53 |
+ |
54 |
+LICENSE="MPL-2.0" |
55 |
+SLOT="0/5" |
56 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
57 |
+IUSE="arpack atlas blas debug doc examples hdf5 lapack mkl superlu tbb test" |
58 |
+REQUIRED_USE="test? ( lapack )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ dev-libs/boost |
62 |
+ arpack? ( sci-libs/arpack ) |
63 |
+ atlas? ( sci-libs/atlas[lapack] ) |
64 |
+ blas? ( virtual/blas ) |
65 |
+ lapack? ( virtual/lapack ) |
66 |
+ superlu? ( sci-libs/superlu ) |
67 |
+" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ arpack? ( virtual/pkgconfig ) |
70 |
+ atlas? ( virtual/pkgconfig ) |
71 |
+ blas? ( virtual/pkgconfig ) |
72 |
+ hdf5? ( sci-libs/hdf5 ) |
73 |
+ lapack? ( virtual/pkgconfig ) |
74 |
+ mkl? ( sci-libs/mkl ) |
75 |
+ tbb? ( dev-cpp/tbb )" |
76 |
+PDEPEND="${RDEPEND} |
77 |
+ hdf5? ( sci-libs/hdf5 ) |
78 |
+ mkl? ( sci-libs/mkl ) |
79 |
+ tbb? ( dev-cpp/tbb )" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ # avoid the automagic cmake macros |
83 |
+ sed -i -e '/ARMA_Find/d' CMakeLists.txt || die |
84 |
+ cmake-utils_src_prepare |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local mycmakeargs=( |
89 |
+ -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" |
90 |
+ $(cmake-utils_use debug ARMA_EXTRA_DEBUG) |
91 |
+ $(cmake-utils_use mkl ARMA_USE_MKL_ALLOC) |
92 |
+ $(cmake-utils_use tbb ARMA_USE_TBB_ALLOC) |
93 |
+ ) |
94 |
+ if use arpack; then |
95 |
+ mycmakeargs+=( |
96 |
+ -DARPACK_FOUND=ON |
97 |
+ -DARPACK_LIBRARY="$($(tc-getPKG_CONFIG) --libs arpack)" |
98 |
+ ) |
99 |
+ fi |
100 |
+ if use atlas; then |
101 |
+ local c=atlas-cblas l=atlas-clapack |
102 |
+ $(tc-getPKG_CONFIG) --exists ${c}-threads && c+=-threads |
103 |
+ $(tc-getPKG_CONFIG) --exists ${l}-threads && l+=-threads |
104 |
+ mycmakeargs+=( |
105 |
+ -DCBLAS_FOUND=ON |
106 |
+ -DCBLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${c} | sed 's/-I//')" |
107 |
+ -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})" |
108 |
+ -DCLAPACK_FOUND=ON |
109 |
+ -DCLAPACK_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${l} | sed 's/-I//')" |
110 |
+ -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})" |
111 |
+ ) |
112 |
+ fi |
113 |
+ if use blas; then |
114 |
+ mycmakeargs+=( |
115 |
+ -DBLAS_FOUND=ON |
116 |
+ -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" |
117 |
+ ) |
118 |
+ fi |
119 |
+ if use hdf5; then |
120 |
+ mycmakeargs+=( |
121 |
+ -DHDF5_FOUND=ON |
122 |
+ -DHDF5_LIBRARIES="-lhdf5" |
123 |
+ ) |
124 |
+ fi |
125 |
+ if use lapack; then |
126 |
+ mycmakeargs+=( |
127 |
+ -DLAPACK_FOUND=ON |
128 |
+ -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" |
129 |
+ ) |
130 |
+ fi |
131 |
+ if use superlu; then |
132 |
+ mycmakeargs+=( |
133 |
+ -DSuperLU_FOUND=ON |
134 |
+ -DSuperLU_LIBRARIES="$($(tc-getPKG_CONFIG) --libs superlu)" |
135 |
+ ) |
136 |
+ fi |
137 |
+ |
138 |
+ cmake-utils_src_configure |
139 |
+} |
140 |
+ |
141 |
+src_test() { |
142 |
+ pushd examples > /dev/null |
143 |
+ emake \ |
144 |
+ CXXFLAGS="-I../include ${CXXFLAGS} -DARMA_USE_BLAS -DARMA_USE_LAPACK" \ |
145 |
+ EXTRA_LIB_FLAGS="-L.. $($(tc-getPKG_CONFIG) --libs blas lapack)" |
146 |
+ LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example1 || die |
147 |
+ LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example2 || die |
148 |
+ emake clean |
149 |
+ popd > /dev/null |
150 |
+} |
151 |
+ |
152 |
+src_install() { |
153 |
+ cmake-utils_src_install |
154 |
+ dodoc README.txt |
155 |
+ use doc && dodoc *pdf && dohtml *html |
156 |
+ if use examples; then |
157 |
+ insinto /usr/share/examples/${PF} |
158 |
+ doins -r examples/* |
159 |
+ fi |
160 |
+} |