Gentoo Archives: gentoo-commits

From: "Marcus Hanwell (cryos)" <cryos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/eigen: eigen-2.0.5.ebuild ChangeLog
Date: Sat, 22 Aug 2009 21:51:28
Message-Id: E1MeyUg-0006bL-Qe@stork.gentoo.org
1 cryos 09/08/22 21:51:26
2
3 Modified: ChangeLog
4 Added: eigen-2.0.5.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc39/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.16 dev-cpp/eigen/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/eigen/ChangeLog?rev=1.16&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/eigen/ChangeLog?rev=1.16&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/eigen/ChangeLog?r1=1.15&r2=1.16
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/eigen/ChangeLog,v
19 retrieving revision 1.15
20 retrieving revision 1.16
21 diff -u -r1.15 -r1.16
22 --- ChangeLog 21 Aug 2009 17:35:18 -0000 1.15
23 +++ ChangeLog 22 Aug 2009 21:51:26 -0000 1.16
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-cpp/eigen
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/ChangeLog,v 1.15 2009/08/21 17:35:18 cryos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/ChangeLog,v 1.16 2009/08/22 21:51:26 cryos Exp $
29 +
30 +*eigen-2.0.5 (22 Aug 2009)
31 +
32 + 22 Aug 2009; Marcus D. Hanwell <cryos@g.o> +eigen-2.0.5.ebuild:
33 + Version bump.
34
35 21 Aug 2009; Marcus D. Hanwell <cryos@g.o>
36 files/eigen-2.0.4-qt-test.patch:
37
38
39
40 1.1 dev-cpp/eigen/eigen-2.0.5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/eigen/eigen-2.0.5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/eigen/eigen-2.0.5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: eigen-2.0.5.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/eigen-2.0.5.ebuild,v 1.1 2009/08/22 21:51:26 cryos Exp $
50
51 EAPI="2"
52
53 inherit cmake-utils
54
55 DESCRIPTION="Lightweight C++ template library for vector and matrix math, a.k.a. linear algebra"
56 HOMEPAGE="http://eigen.tuxfamily.org/"
57 SRC_URI="http://bitbucket.org/eigen/eigen2/get/${PV}.tar.bz2"
58
59 LICENSE="GPL-3"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
61 SLOT="2"
62 IUSE="debug doc examples"
63
64 DEPEND="
65 examples? (
66 x11-libs/qt-gui:4
67 x11-libs/qt-opengl:4
68 )
69 "
70 RDEPEND="${DEPEND}
71 !dev-cpp/eigen:0
72 "
73
74 S="${WORKDIR}/eigen2"
75
76 src_prepare() {
77 # fix compilation agains eigen on the PPC platform:
78 epatch "${FILESDIR}/${PN}-ppc-define.patch"
79 }
80
81 src_configure() {
82 # benchmarks (BTL) brings up damn load of external deps including fortran
83 # compiler
84 # library hangs up complete compilation proccess, test later
85 mycmakeargs="
86 -DEIGEN_BUILD_LIB=OFF
87 -DEIGEN_BUILD_BTL=OFF
88 $(cmake-utils_use examples EIGEN_BUILD_DEMOS)
89 "
90 cmake-utils_src_configure
91 }
92
93 src_compile() {
94 cmake-utils_src_compile
95 if use doc; then
96 cd "${CMAKE_BUILD_DIR}"
97 emake doc || die "building documentation failed"
98 fi
99 }
100
101 src_install() {
102 cmake-utils_src_install
103 if use doc; then
104 cd "${CMAKE_BUILD_DIR}"/doc
105 dohtml -r html/* || die "dohtml failed"
106 fi
107 if use examples; then
108 cd "${CMAKE_BUILD_DIR}"/demos
109 dobin mandelbrot/mandelbrot opengl/quaternion_demo || die "dobin failed"
110 fi
111 }
112
113 src_test() {
114 mycmakeargs="${mycmakeargs}
115 -DEIGEN_BUILD_TESTS=ON
116 -DEIGEN_TEST_NO_FORTRAN=ON"
117 cmake-utils_src_configure
118 cmake-utils_src_compile
119 cmake-utils_src_test
120 }