Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/armadillo/, sci-libs/armadillo/files/
Date: Mon, 09 Jun 2014 16:36:25
Message-Id: 1401728546.0cf66cd0e42739374d9e55e28a3f2cfd1abc6553.bicatali@gentoo
1 commit: 0cf66cd0e42739374d9e55e28a3f2cfd1abc6553
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 2 17:02:26 2014 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 2 17:02:26 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0cf66cd0
7
8 Version bump
9
10 Package-Manager: portage-HEAD
11
12 ---
13 sci-libs/armadillo/ChangeLog | 7 ++
14 sci-libs/armadillo/armadillo-3.930.0.ebuild | 92 -----------------
15 sci-libs/armadillo/armadillo-4.100.2.ebuild | 114 ---------------------
16 ...llo-4.300.0.ebuild => armadillo-4.300.8.ebuild} | 0
17 .../armadillo/files/armadillo-3.820.1-hdf5.patch | 19 ----
18 5 files changed, 7 insertions(+), 225 deletions(-)
19
20 diff --git a/sci-libs/armadillo/ChangeLog b/sci-libs/armadillo/ChangeLog
21 index a75b8d9..e7b3f37 100644
22 --- a/sci-libs/armadillo/ChangeLog
23 +++ b/sci-libs/armadillo/ChangeLog
24 @@ -2,6 +2,13 @@
25 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
26 # $Header: $
27
28 +*armadillo-4.300.8 (02 Jun 2014)
29 +
30 + 02 Jun 2014; Sébastien Fabbro <bicatali@g.o> +armadillo-4.300.8.ebuild,
31 + -armadillo-3.930.0.ebuild, -armadillo-4.100.2.ebuild,
32 + -armadillo-4.300.0.ebuild, -files/armadillo-3.820.1-hdf5.patch:
33 + Version bump
34 +
35 *armadillo-4.300.0 (06 May 2014)
36
37 06 May 2014; Sébastien Fabbro <bicatali@g.o> +armadillo-4.300.0.ebuild:
38
39 diff --git a/sci-libs/armadillo/armadillo-3.930.0.ebuild b/sci-libs/armadillo/armadillo-3.930.0.ebuild
40 deleted file mode 100644
41 index 59be372..0000000
42 --- a/sci-libs/armadillo/armadillo-3.930.0.ebuild
43 +++ /dev/null
44 @@ -1,92 +0,0 @@
45 -# Copyright 1999-2014 Gentoo Foundation
46 -# Distributed under the terms of the GNU General Public License v2
47 -# $Header: $
48 -
49 -EAPI=5
50 -
51 -CMAKE_IN_SOURCE_BUILD=1
52 -
53 -inherit cmake-utils toolchain-funcs multilib eutils
54 -
55 -DESCRIPTION="Streamlined C++ linear algebra library"
56 -HOMEPAGE="http://arma.sourceforge.net/"
57 -SRC_URI="mirror://sourceforge/arma/${P}.tar.gz"
58 -
59 -LICENSE="MPL-2.0"
60 -SLOT="0/3"
61 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
62 -IUSE="atlas blas debug doc examples hdf5 int64 lapack tbb"
63 -
64 -RDEPEND="
65 - dev-libs/boost
66 - atlas? ( sci-libs/atlas[lapack] )
67 - blas? ( virtual/blas )
68 - lapack? ( virtual/lapack )"
69 -DEPEND="${DEPEND}
70 - atlas? ( virtual/pkgconfig )
71 - blas? ( virtual/pkgconfig )
72 - lapack? ( virtual/pkgconfig )"
73 -PDEPEND="${RDEPEND}
74 - hdf5? ( sci-libs/hdf5 )
75 - tbb? ( dev-cpp/tbb )"
76 -
77 -src_prepare() {
78 - epatch "${FILESDIR}"/${PN}-3.820.1-{hdf5,example-makefile}.patch
79 - # avoid the automagic cmake macros
80 - sed -i -e '/ARMA_Find/d' CMakeLists.txt || die
81 -}
82 -
83 -src_configure() {
84 - local mycmakeargs=(
85 - -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
86 - $(cmake-utils_use debug ARMA_EXTRA_DEBUG)
87 - $(cmake-utils_use hdf5 ARMA_USE_HDF5)
88 - $(cmake-utils_use int64 ARMA_64BIT_WORD)
89 - $(cmake-utils_use tbb ARMA_TBB_ALLOC)
90 - )
91 - if use blas; then
92 - mycmakeargs+=(
93 - -DBLAS_FOUND=ON
94 - -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
95 - )
96 - fi
97 - if use lapack; then
98 - mycmakeargs+=(
99 - -DLAPACK_FOUND=ON
100 - -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)"
101 - )
102 - fi
103 - if use atlas; then
104 - local c=atlas-cblas l=atlas-clapack
105 - $(tc-getPKG_CONFIG) --exists ${c}-threads && c+=-threads
106 - $(tc-getPKG_CONFIG) --exists ${l}-threads && l+=-threads
107 - mycmakeargs+=(
108 - -DCBLAS_FOUND=ON
109 - -DCLAPACK_FOUND=ON
110 - -DCBLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${c} | sed 's/-I//')"
111 - -DCLAPACK_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${l} | sed 's/-I//')"
112 - -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})"
113 - -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})"
114 - )
115 - fi
116 - cmake-utils_src_configure
117 -}
118 -
119 -src_test() {
120 - pushd examples > /dev/null
121 - emake CXXFLAGS="-I../include ${CXXFLAGS}" EXTRA_LIB_FLAGS="-L.."
122 - LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example1 || die
123 - LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example2 || die
124 - emake clean
125 - popd > /dev/null
126 -}
127 -
128 -src_install() {
129 - cmake-utils_src_install
130 - dodoc README.txt
131 - use doc && dodoc *pdf && dohtml *html
132 - if use examples; then
133 - insinto /usr/share/doc/${PF}
134 - doins -r examples
135 - fi
136 -}
137
138 diff --git a/sci-libs/armadillo/armadillo-4.100.2.ebuild b/sci-libs/armadillo/armadillo-4.100.2.ebuild
139 deleted file mode 100644
140 index 6dab248..0000000
141 --- a/sci-libs/armadillo/armadillo-4.100.2.ebuild
142 +++ /dev/null
143 @@ -1,114 +0,0 @@
144 -# Copyright 1999-2014 Gentoo Foundation
145 -# Distributed under the terms of the GNU General Public License v2
146 -# $Header: $
147 -
148 -EAPI=5
149 -
150 -CMAKE_IN_SOURCE_BUILD=1
151 -
152 -inherit cmake-utils toolchain-funcs multilib eutils
153 -
154 -DESCRIPTION="Streamlined C++ linear algebra library"
155 -HOMEPAGE="http://arma.sourceforge.net/"
156 -SRC_URI="mirror://sourceforge/arma/${P}.tar.gz"
157 -
158 -LICENSE="MPL-2.0"
159 -SLOT="0/4"
160 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
161 -IUSE="arpack atlas blas debug doc examples hdf5 lapack mkl tbb test"
162 -REQUIRED_USE="test? ( lapack )"
163 -
164 -RDEPEND="
165 - dev-libs/boost
166 - arpack? ( sci-libs/arpack )
167 - atlas? ( sci-libs/atlas[lapack] )
168 - blas? ( virtual/blas )
169 - lapack? ( virtual/lapack )"
170 -DEPEND="${RDEPEND}
171 - arpack? ( virtual/pkgconfig )
172 - atlas? ( virtual/pkgconfig )
173 - blas? ( virtual/pkgconfig )
174 - hdf5? ( sci-libs/hdf5 )
175 - lapack? ( virtual/pkgconfig )
176 - mkl? ( sci-libs/mkl )
177 - tbb? ( dev-cpp/tbb )"
178 -PDEPEND="${RDEPEND}
179 - hdf5? ( sci-libs/hdf5 )
180 - mkl? ( sci-libs/mkl )
181 - tbb? ( dev-cpp/tbb )"
182 -
183 -src_prepare() {
184 - epatch \
185 - "${FILESDIR}"/${PN}-4.000.3-hdf5.patch \
186 - "${FILESDIR}"/${PN}-3.820.1-example-makefile.patch
187 - # avoid the automagic cmake macros
188 - sed -i -e '/ARMA_Find/d' CMakeLists.txt || die
189 -}
190 -
191 -src_configure() {
192 - local mycmakeargs=(
193 - -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
194 - $(cmake-utils_use debug ARMA_EXTRA_DEBUG)
195 - $(cmake-utils_use mkl ARMA_USE_MKL_ALLOC)
196 - $(cmake-utils_use tbb ARMA_USE_TBB_ALLOC)
197 - )
198 - if use arpack; then
199 - mycmakeargs+=(
200 - -DARPACK_FOUND=ON
201 - -DARPACK_LIBRARY="$($(tc-getPKG_CONFIG) --libs arpack)"
202 - )
203 - fi
204 - if use atlas; then
205 - local c=atlas-cblas l=atlas-clapack
206 - $(tc-getPKG_CONFIG) --exists ${c}-threads && c+=-threads
207 - $(tc-getPKG_CONFIG) --exists ${l}-threads && l+=-threads
208 - mycmakeargs+=(
209 - -DCBLAS_FOUND=ON
210 - -DCBLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${c} | sed 's/-I//')"
211 - -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})"
212 - -DCLAPACK_FOUND=ON
213 - -DCLAPACK_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${l} | sed 's/-I//')"
214 - -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})"
215 - )
216 - fi
217 - if use blas; then
218 - mycmakeargs+=(
219 - -DBLAS_FOUND=ON
220 - -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
221 - )
222 - fi
223 - if use hdf5; then
224 - mycmakeargs+=(
225 - -DHDF5_FOUND=ON
226 - -DHDF5_LIBRARIES="-lhdf5"
227 - )
228 - fi
229 - if use lapack; then
230 - mycmakeargs+=(
231 - -DLAPACK_FOUND=ON
232 - -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)"
233 - )
234 - fi
235 - cmake-utils_src_configure
236 -}
237 -
238 -src_test() {
239 - pushd examples > /dev/null
240 - emake \
241 - CXXFLAGS="-I../include ${CXXFLAGS} -DARMA_USE_BLAS -DARMA_USE_LAPACK" \
242 - EXTRA_LIB_FLAGS="-L.. $($(tc-getPKG_CONFIG) --libs blas lapack)"
243 - LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example1 || die
244 - LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example2 || die
245 - emake clean
246 - popd > /dev/null
247 -}
248 -
249 -src_install() {
250 - cmake-utils_src_install
251 - dodoc README.txt
252 - use doc && dodoc *pdf && dohtml *html
253 - if use examples; then
254 - insinto /usr/share/doc/${PF}
255 - doins -r examples
256 - fi
257 -}
258
259 diff --git a/sci-libs/armadillo/armadillo-4.300.0.ebuild b/sci-libs/armadillo/armadillo-4.300.8.ebuild
260 similarity index 100%
261 rename from sci-libs/armadillo/armadillo-4.300.0.ebuild
262 rename to sci-libs/armadillo/armadillo-4.300.8.ebuild
263
264 diff --git a/sci-libs/armadillo/files/armadillo-3.820.1-hdf5.patch b/sci-libs/armadillo/files/armadillo-3.820.1-hdf5.patch
265 deleted file mode 100644
266 index f294e7b..0000000
267 --- a/sci-libs/armadillo/files/armadillo-3.820.1-hdf5.patch
268 +++ /dev/null
269 @@ -1,19 +0,0 @@
270 ---- CMakeLists.txt.orig 2013-05-24 21:14:49.626395820 -0700
271 -+++ CMakeLists.txt 2013-05-24 21:15:10.724511364 -0700
272 -@@ -222,11 +222,11 @@
273 - # find_package(HDF5)
274 - # message(STATUS "HDF5_FOUND = ${HDF5_FOUND}")
275 - #
276 --# if(HDF5_FOUND)
277 --# set(ARMA_USE_HDF5 true)
278 --# set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${HDF5_INCLUDE_DIRS})
279 --# set(ARMA_LIBS ${ARMA_LIBS} ${HDF5_LIBRARIES})
280 --# endif()
281 -+if(HDF5_FOUND)
282 -+ set(ARMA_USE_HDF5 true)
283 -+ set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${HDF5_INCLUDE_DIRS})
284 -+ set(ARMA_LIBS ${ARMA_LIBS} ${HDF5_LIBRARIES})
285 -+endif()
286 - # endif()
287 -
288 -