Gentoo Archives: gentoo-commits

From: "Andreas Huettel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/armadillo: armadillo-5.200.2.ebuild ChangeLog
Date: Sat, 25 Jul 2015 20:54:03
Message-Id: 20150725205353.32548BB@oystercatcher.gentoo.org
1 dilfridge 15/07/25 20:53:53
2
3 Modified: ChangeLog
4 Added: armadillo-5.200.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0B08240A96F66571)
9
10 Revision Changes Path
11 1.36 sci-libs/armadillo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?rev=1.36&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?rev=1.36&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?r1=1.35&r2=1.36
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v
20 retrieving revision 1.35
21 retrieving revision 1.36
22 diff -u -r1.35 -r1.36
23 --- ChangeLog 21 May 2015 15:47:50 -0000 1.35
24 +++ ChangeLog 25 Jul 2015 20:53:53 -0000 1.36
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/armadillo
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.35 2015/05/21 15:47:50 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.36 2015/07/25 20:53:53 dilfridge Exp $
30 +
31 +*armadillo-5.200.2 (25 Jul 2015)
32 +
33 + 25 Jul 2015; Andreas K. Huettel <dilfridge@g.o>
34 + +armadillo-5.200.2.ebuild:
35 + Version bump
36
37 21 May 2015; Andreas K. Hüttel <dilfridge@g.o>
38 -armadillo-4.600.4.ebuild, -armadillo-4.650.2.ebuild:
39
40
41
42 1.1 sci-libs/armadillo/armadillo-5.200.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/armadillo-5.200.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/armadillo-5.200.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: armadillo-5.200.2.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/armadillo-5.200.2.ebuild,v 1.1 2015/07/25 20:53:53 dilfridge Exp $
52
53 EAPI=5
54
55 CMAKE_IN_SOURCE_BUILD=1
56
57 inherit cmake-utils toolchain-funcs multilib eutils
58
59 DESCRIPTION="Streamlined C++ linear algebra library"
60 HOMEPAGE="http://arma.sourceforge.net/"
61 SRC_URI="mirror://sourceforge/arma/${P}.tar.gz"
62
63 LICENSE="MPL-2.0"
64 SLOT="0/5"
65 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
66 IUSE="arpack blas debug doc examples hdf5 lapack mkl superlu tbb test"
67 REQUIRED_USE="test? ( lapack )"
68
69 RDEPEND="
70 dev-libs/boost
71 arpack? ( sci-libs/arpack )
72 blas? ( virtual/blas )
73 lapack? ( virtual/lapack )
74 superlu? ( sci-libs/superlu )
75 "
76 DEPEND="${RDEPEND}
77 arpack? ( virtual/pkgconfig )
78 blas? ( virtual/pkgconfig )
79 hdf5? ( sci-libs/hdf5 )
80 lapack? ( virtual/pkgconfig )
81 mkl? ( sci-libs/mkl )
82 tbb? ( dev-cpp/tbb )"
83 PDEPEND="${RDEPEND}
84 hdf5? ( sci-libs/hdf5 )
85 mkl? ( sci-libs/mkl )
86 tbb? ( dev-cpp/tbb )"
87
88 src_prepare() {
89 # avoid the automagic cmake macros
90 sed -i -e '/ARMA_Find/d' CMakeLists.txt || die
91 cmake-utils_src_prepare
92 }
93
94 src_configure() {
95 local mycmakeargs=(
96 -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)"
97 $(cmake-utils_use debug ARMA_EXTRA_DEBUG)
98 $(cmake-utils_use mkl ARMA_USE_MKL_ALLOC)
99 $(cmake-utils_use tbb ARMA_USE_TBB_ALLOC)
100 )
101 if use arpack; then
102 mycmakeargs+=(
103 -DARPACK_FOUND=ON
104 -DARPACK_LIBRARY="$($(tc-getPKG_CONFIG) --libs arpack)"
105 )
106 fi
107 # if use atlas; then
108 # local c=atlas-cblas l=atlas-clapack
109 # $(tc-getPKG_CONFIG) --exists ${c}-threads && c+=-threads
110 # $(tc-getPKG_CONFIG) --exists ${l}-threads && l+=-threads
111 # mycmakeargs+=(
112 # -DCBLAS_FOUND=ON
113 # -DCBLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${c} | sed 's/-I//')"
114 # -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})"
115 # -DCLAPACK_FOUND=ON
116 # -DCLAPACK_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${l} | sed 's/-I//')"
117 # -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})"
118 # )
119 # fi
120 if use blas; then
121 mycmakeargs+=(
122 -DBLAS_FOUND=ON
123 -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
124 )
125 fi
126 if use hdf5; then
127 mycmakeargs+=(
128 -DHDF5_FOUND=ON
129 -DHDF5_LIBRARIES="-lhdf5"
130 )
131 fi
132 if use lapack; then
133 mycmakeargs+=(
134 -DLAPACK_FOUND=ON
135 -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)"
136 )
137 fi
138 if use superlu; then
139 mycmakeargs+=(
140 -DSuperLU_FOUND=ON
141 -DSuperLU_LIBRARIES="$($(tc-getPKG_CONFIG) --libs superlu)"
142 )
143 fi
144
145 cmake-utils_src_configure
146 }
147
148 src_test() {
149 pushd examples > /dev/null
150 emake \
151 CXXFLAGS="-I../include ${CXXFLAGS} -DARMA_USE_BLAS -DARMA_USE_LAPACK" \
152 EXTRA_LIB_FLAGS="-L.. $($(tc-getPKG_CONFIG) --libs blas lapack)"
153 LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example1 || die
154 LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example2 || die
155 emake clean
156 popd > /dev/null
157 }
158
159 src_install() {
160 cmake-utils_src_install
161 dodoc README.txt
162 use doc && dodoc *pdf && dohtml *html
163 if use examples; then
164 insinto /usr/share/examples/${PF}
165 doins -r examples/*
166 fi
167 }