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