1 |
commit: edfdc08d40c3abd4f052cd9fc5bcd1c67712b54c |
2 |
Author: Chris Reffett <creffett <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 3 03:20:12 2013 +0000 |
4 |
Commit: Chris Reffett <creffett <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 3 03:20:12 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=edfdc08d |
7 |
|
8 |
[dev-cpp/eigen] Bump for testing wrt bug 491796. |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
dev-cpp/eigen/eigen-3.2.0.ebuild | 70 +++++++++++++++++++++++++++++ |
14 |
dev-cpp/eigen/files/eigen-3.0.0-gcc46.patch | 16 +++++++ |
15 |
2 files changed, 86 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/eigen/eigen-3.2.0.ebuild b/dev-cpp/eigen/eigen-3.2.0.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..6540905 |
20 |
--- /dev/null |
21 |
+++ b/dev-cpp/eigen/eigen-3.2.0.ebuild |
22 |
@@ -0,0 +1,70 @@ |
23 |
+# Copyright 1999-2013 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/eigen/eigen-3.1.3.ebuild,v 1.1 2013/04/19 07:20:07 patrick Exp $ |
26 |
+ |
27 |
+EAPI=5 |
28 |
+ |
29 |
+inherit cmake-utils |
30 |
+ |
31 |
+DESCRIPTION="C++ template library for linear algebra: vectors, matrices, and related algorithms" |
32 |
+HOMEPAGE="http://eigen.tuxfamily.org/" |
33 |
+SRC_URI="http://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2" |
34 |
+ |
35 |
+LICENSE="LGPL-2 GPL-3" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
37 |
+SLOT="3" |
38 |
+IUSE="debug doc" |
39 |
+ |
40 |
+DEPEND="doc? ( app-doc/doxygen[dot,latex] )" |
41 |
+RDEPEND="!dev-cpp/eigen:0" |
42 |
+ |
43 |
+src_unpack() { |
44 |
+ default |
45 |
+ mv ${PN}* ${P} || die |
46 |
+} |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ epatch "${FILESDIR}"/${PN}-3.0.0-gcc46.patch |
50 |
+ |
51 |
+ sed -i CMakeLists.txt \ |
52 |
+ -e "/add_subdirectory(demos/d" \ |
53 |
+ -e "/add_subdirectory(blas/d" \ |
54 |
+ -e "/add_subdirectory(lapack/d" \ |
55 |
+ || die "sed disable unused bundles failed" |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ # benchmarks (BTL) brings up damn load of external deps including fortran |
60 |
+ # compiler |
61 |
+ CMAKE_BUILD_TYPE="release" |
62 |
+ mycmakeargs=( |
63 |
+ -DEIGEN_BUILD_BTL=OFF |
64 |
+ ) |
65 |
+ cmake-utils_src_configure |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ cmake-utils_src_compile |
70 |
+ if use doc; then |
71 |
+ cmake-utils_src_compile doc |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
+src_test() { |
76 |
+ mycmakeargs=( |
77 |
+ -DEIGEN_BUILD_TESTS=ON |
78 |
+ -DEIGEN_TEST_NO_FORTRAN=ON |
79 |
+ -DEIGEN_TEST_NO_OPENGL=ON |
80 |
+ ) |
81 |
+ cmake-utils_src_configure |
82 |
+ cmake-utils_src_compile buildtests |
83 |
+ cmake-utils_src_test |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ cmake-utils_src_install |
88 |
+ if use doc; then |
89 |
+ cd "${CMAKE_BUILD_DIR}"/doc |
90 |
+ dohtml -r html/* |
91 |
+ fi |
92 |
+} |
93 |
|
94 |
diff --git a/dev-cpp/eigen/files/eigen-3.0.0-gcc46.patch b/dev-cpp/eigen/files/eigen-3.0.0-gcc46.patch |
95 |
new file mode 100644 |
96 |
index 0000000..ca4410b |
97 |
--- /dev/null |
98 |
+++ b/dev-cpp/eigen/files/eigen-3.0.0-gcc46.patch |
99 |
@@ -0,0 +1,16 @@ |
100 |
+ Eigen/src/StlSupport/details.h | 2 ++ |
101 |
+ 1 files changed, 2 insertions(+), 0 deletions(-) |
102 |
+ |
103 |
+diff --git a/Eigen/src/StlSupport/details.h b/Eigen/src/StlSupport/details.h |
104 |
+index 397c8ef..c1ac745 100644 |
105 |
+--- a/Eigen/src/StlSupport/details.h |
106 |
++++ b/Eigen/src/StlSupport/details.h |
107 |
+@@ -30,6 +30,8 @@ |
108 |
+ #define EIGEN_ALIGNED_ALLOCATOR Eigen::aligned_allocator |
109 |
+ #endif |
110 |
+ |
111 |
++#include <cstddef> |
112 |
++ |
113 |
+ namespace Eigen { |
114 |
+ |
115 |
+ // This one is needed to prevent reimplementing the whole std::vector. |