Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/armadillo: ChangeLog armadillo-3.2.2.ebuild
Date: Thu, 07 Jun 2012 18:45:13
Message-Id: 20120607184447.165742004B@flycatcher.gentoo.org
1 bicatali 12/06/07 18:44:47
2
3 Modified: ChangeLog
4 Added: armadillo-3.2.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.10.63/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.15 sci-libs/armadillo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?rev=1.15&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?rev=1.15&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/ChangeLog?r1=1.14&r2=1.15
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v
20 retrieving revision 1.14
21 retrieving revision 1.15
22 diff -u -r1.14 -r1.15
23 --- ChangeLog 25 May 2012 18:50:52 -0000 1.14
24 +++ ChangeLog 7 Jun 2012 18:44:46 -0000 1.15
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-libs/armadillo
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.14 2012/05/25 18:50:52 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.15 2012/06/07 18:44:46 bicatali Exp $
30 +
31 +*armadillo-3.2.2 (07 Jun 2012)
32 +
33 + 07 Jun 2012; Sébastien Fabbro <bicatali@g.o> +armadillo-3.2.2.ebuild:
34 + Version bump
35
36 25 May 2012; Tomáš Chvátal <scarabeus@g.o> armadillo-3.0.2.ebuild:
37 Works on ppc -> keyword.
38
39
40
41 1.1 sci-libs/armadillo/armadillo-3.2.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/armadillo-3.2.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/armadillo/armadillo-3.2.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: armadillo-3.2.2.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/armadillo-3.2.2.ebuild,v 1.1 2012/06/07 18:44:46 bicatali Exp $
51
52 EAPI=4
53
54 CMAKE_IN_SOURCE_BUILD=1
55
56 inherit cmake-utils
57
58 DESCRIPTION="Streamlined C++ linear algebra library"
59 HOMEPAGE="http://arma.sourceforge.net/"
60 SRC_URI="mirror://sourceforge/arma/${P}.tar.gz"
61
62 LICENSE="LGPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
65 IUSE="atlas blas doc lapack"
66
67 RDEPEND=">=dev-libs/boost-1.34
68 atlas? ( sci-libs/lapack-atlas )
69 blas? ( virtual/blas )
70 lapack? ( virtual/lapack )"
71
72 DEPEND="${DEPEND}
73 virtual/pkgconfig"
74
75 src_prepare() {
76 # avoid the automagic cmake macros
77 sed -i -e '/ARMA_Find/d' CMakeLists.txt || die
78 }
79
80 src_configure() {
81 local mycmakeargs=()
82 if use blas; then
83 mycmakeargs+=(
84 -DBLAS_FOUND=ON
85 -DBLAS_LIBRARIES="$(pkg-config --libs blas)"
86 )
87 fi
88 if use lapack; then
89 mycmakeargs+=(
90 -DLAPACK_FOUND=ON
91 -DLAPACK_LIBRARIES="$(pkg-config --libs lapack)"
92 )
93 fi
94 if use atlas; then
95 mycmakeargs=(
96 -DCBLAS_FOUND=ON
97 -DCLAPACK_FOUND=ON
98 -DATLAS_INCLUDE_DIR="${EPREFIX}/usr/include/atlas/"
99 -DCBLAS_LIBRARIES="$(pkg-config --libs cblas)"
100 -DCLAPACK_LIBRARIES="-L${EPREFIX}/usr/lib64/lapack/atlas -llapack"
101 )
102 fi
103 cmake-utils_src_configure
104 }
105
106 src_install() {
107 cmake-utils_src_install
108 use doc && dodoc docs/*pdf
109 }