Gentoo Archives: gentoo-commits

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