Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/armadillo: armadillo-4.650.2.ebuild ChangeLog
Date: Fri, 27 Feb 2015 14:41:31
Message-Id: 20150227144126.75E1612AB7@oystercatcher.gentoo.org
1 dilfridge 15/02/27 14:41:26
2
3 Modified: ChangeLog
4 Added: armadillo-4.650.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 94BFDF4484AD142F)
9
10 Revision Changes Path
11 1.31 sci-libs/armadillo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?rev=1.31&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?rev=1.31&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?r1=1.30&r2=1.31
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v
20 retrieving revision 1.30
21 retrieving revision 1.31
22 diff -u -r1.30 -r1.31
23 --- ChangeLog 27 Feb 2015 13:13:27 -0000 1.30
24 +++ ChangeLog 27 Feb 2015 14:41:26 -0000 1.31
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.30 2015/02/27 13:13:27 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.31 2015/02/27 14:41:26 dilfridge Exp $
30 +
31 +*armadillo-4.650.2 (27 Feb 2015)
32 +
33 + 27 Feb 2015; Andreas K. Huettel <dilfridge@g.o>
34 + +armadillo-4.650.2.ebuild:
35 + Version bump
36
37 *armadillo-4.600.4 (27 Feb 2015)
38
39
40
41
42 1.1 sci-libs/armadillo/armadillo-4.650.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/armadillo-4.650.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/armadillo-4.650.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: armadillo-4.650.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-4.650.2.ebuild,v 1.1 2015/02/27 14:41:26 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/4"
65 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
66 IUSE="arpack atlas blas debug doc examples hdf5 lapack mkl tbb test"
67 REQUIRED_USE="test? ( lapack )"
68
69 RDEPEND="
70 dev-libs/boost
71 arpack? ( sci-libs/arpack )
72 atlas? ( sci-libs/atlas[lapack] )
73 blas? ( virtual/blas )
74 lapack? ( virtual/lapack )"
75 DEPEND="${RDEPEND}
76 arpack? ( virtual/pkgconfig )
77 atlas? ( 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 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 }