1 |
commit: a154cd6603f661169e80b74098feeb87e53b1e2d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 14 23:07:16 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 16 15:52:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=a154cd66 |
7 |
|
8 |
dev-cpp/eigen: Import last state of slot 2 from Gentoo ebuild repo |
9 |
|
10 |
Package-Manager: Portage-3.0.2, Repoman-2.3.23 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/eigen/eigen-2.0.17.ebuild | 58 ++++++++++++++------------------------- |
14 |
1 file changed, 21 insertions(+), 37 deletions(-) |
15 |
|
16 |
diff --git a/dev-cpp/eigen/eigen-2.0.17.ebuild b/dev-cpp/eigen/eigen-2.0.17.ebuild |
17 |
index 07b2c1cb..ab64e861 100644 |
18 |
--- a/dev-cpp/eigen/eigen-2.0.17.ebuild |
19 |
+++ b/dev-cpp/eigen/eigen-2.0.17.ebuild |
20 |
@@ -1,7 +1,7 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=4 |
26 |
+EAPI=6 |
27 |
|
28 |
inherit cmake-utils |
29 |
|
30 |
@@ -10,24 +10,20 @@ HOMEPAGE="http://eigen.tuxfamily.org/" |
31 |
SRC_URI="https://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2" |
32 |
|
33 |
LICENSE="GPL-3" |
34 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
35 |
SLOT="2" |
36 |
-IUSE="debug doc examples" |
37 |
+KEYWORDS="~alpha amd64 ~arm ~hppa ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux" |
38 |
+IUSE="debug doc examples test" |
39 |
+# bugs 426236, 455460, 467288 |
40 |
+RESTRICT="test" |
41 |
|
42 |
-COMMON_DEPEND=" |
43 |
+RDEPEND=" |
44 |
examples? ( |
45 |
dev-qt/qtgui:4 |
46 |
dev-qt/qtopengl:4 |
47 |
- )" |
48 |
-DEPEND="${COMMON_DEPEND} |
49 |
- doc? ( app-doc/doxygen )" |
50 |
-RDEPEND="${COMMON_DEPEND} |
51 |
+ ) |
52 |
!dev-cpp/eigen:0" |
53 |
- |
54 |
-MAKEOPTS+=" -j1" |
55 |
- |
56 |
-# bugs 426236, 455460, 467288 |
57 |
-RESTRICT="test" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ doc? ( app-doc/doxygen )" |
60 |
|
61 |
src_unpack() { |
62 |
unpack ${A} |
63 |
@@ -35,44 +31,32 @@ src_unpack() { |
64 |
} |
65 |
|
66 |
src_configure() { |
67 |
- # benchmarks (BTL) brings up damn load of external deps including fortran |
68 |
- # compiler |
69 |
+ # benchmarks (BTL) brings up a damn load of external deps including fortran |
70 |
# library hangs up complete compilation proccess, test later |
71 |
- mycmakeargs=( |
72 |
+ local mycmakeargs=( |
73 |
-DEIGEN_BUILD_LIB=OFF |
74 |
-DEIGEN_BUILD_BTL=OFF |
75 |
-DEIGEN_BUILD_PKGCONFIG=ON |
76 |
- $(cmake-utils_use examples EIGEN_BUILD_DEMOS) |
77 |
+ -DEIGEN_BUILD_DEMOS=$(usex examples) |
78 |
+ -DEIGEN_BUILD_TESTS=$(usex test) |
79 |
) |
80 |
cmake-utils_src_configure |
81 |
} |
82 |
|
83 |
src_compile() { |
84 |
- cmake-utils_src_compile |
85 |
+ cmake-utils_src_compile -j1 |
86 |
+ |
87 |
if use doc; then |
88 |
- cd "${CMAKE_BUILD_DIR}" |
89 |
- emake doc |
90 |
+ cmake-utils_src_compile -j1 doc |
91 |
+ HTML_DOCS=( "${BUILD_DIR}"/html/. ) |
92 |
fi |
93 |
} |
94 |
|
95 |
src_install() { |
96 |
- cmake-utils_src_install |
97 |
- if use doc; then |
98 |
- cd "${CMAKE_BUILD_DIR}"/doc |
99 |
- dohtml -r html/* |
100 |
- fi |
101 |
+ cmake-utils_src_install -j1 |
102 |
+ |
103 |
if use examples; then |
104 |
- cd "${CMAKE_BUILD_DIR}"/demos |
105 |
+ cd "${BUILD_DIR}"/demos || die |
106 |
dobin mandelbrot/mandelbrot opengl/quaternion_demo |
107 |
fi |
108 |
} |
109 |
- |
110 |
-src_test() { |
111 |
- mycmakeargs=( |
112 |
- -DEIGEN_BUILD_TESTS=ON |
113 |
- -DEIGEN_TEST_NO_FORTRAN=ON |
114 |
- ) |
115 |
- cmake-utils_src_configure |
116 |
- cmake-utils_src_compile |
117 |
- cmake-utils_src_test |
118 |
-} |