diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-02-22 10:33:04 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-02-22 10:35:49 +0100 |
commit | 49ac69328112878890edafb2a1b6ce13bff20d44 (patch) | |
tree | af95b34e503955d1e9602d96df81adaed5ccd1eb /dev-cpp/eigen/eigen-3.2.7.ebuild | |
parent | profiles: Mask dev-cpp/eigene[test] for arches missing KEYWORDs on test deps (diff) | |
download | gentoo-49ac69328112878890edafb2a1b6ce13bff20d44.tar.gz gentoo-49ac69328112878890edafb2a1b6ce13bff20d44.tar.bz2 gentoo-49ac69328112878890edafb2a1b6ce13bff20d44.zip |
dev-cpp/eigen: Drop -g2 from build flags
* Bump to EAPI=6
* Add missing test deps
* Add missing USE
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=575354
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-cpp/eigen/eigen-3.2.7.ebuild')
-rw-r--r-- | dev-cpp/eigen/eigen-3.2.7.ebuild | 67 |
1 files changed, 59 insertions, 8 deletions
diff --git a/dev-cpp/eigen/eigen-3.2.7.ebuild b/dev-cpp/eigen/eigen-3.2.7.ebuild index be503c9b36e3..f0cc3dd00abc 100644 --- a/dev-cpp/eigen/eigen-3.2.7.ebuild +++ b/dev-cpp/eigen/eigen-3.2.7.ebuild @@ -2,9 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -inherit cmake-utils +FORTRAN_NEEDED="test" + +inherit cmake-utils fortran-2 DESCRIPTION="C++ template library for linear algebra" HOMEPAGE="http://eigen.tuxfamily.org/" @@ -13,10 +15,43 @@ SRC_URI="https://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2" LICENSE="LGPL-2 GPL-3" SLOT="3" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="debug doc" +IUSE="altivec debug doc openmp test" +IUSE+=" cpu_flags_x86_sse2" +IUSE+=" cpu_flags_x86_sse3" +IUSE+=" cpu_flags_x86_sse4_1" +IUSE+=" cpu_flags_x86_sse4_2" +IUSE+=" cpu_flags_x86_ssse3" +#IUSE+=" cpu_flags_x86_x87" -DEPEND="doc? ( app-doc/doxygen[dot,latex] )" RDEPEND="!dev-cpp/eigen:0" +DEPEND=" + doc? ( app-doc/doxygen[dot,latex] ) + test? ( + dev-libs/gmp:0 + dev-libs/mpfr:0 + media-libs/freeglut + media-libs/glew + sci-libs/adolc + sci-libs/cholmod + sci-libs/fftw:3.0 + sci-libs/pastix + sci-libs/umfpack + sci-libs/scotch + sci-libs/spqr + sci-libs/superlu + dev-qt/qtcore:4 + virtual/opengl + virtual/pkgconfig + ) + " +# Missing: +# METIS-5 +# GOOGLEHASH + +PATCHES=( + "${FILESDIR}"/${P}-pastix-5.2-backport.patch + "${FILESDIR}"/${P}-adaolc-backport.patch +) src_unpack() { default @@ -24,12 +59,21 @@ src_unpack() { } src_prepare() { + sed \ + -e 's:-g2::g' \ + -i cmake/EigenConfigureTesting.cmake || die + sed -i CMakeLists.txt \ -e "/add_subdirectory(demos/d" \ - -e "/add_subdirectory(blas/d" \ - -e "/add_subdirectory(lapack/d" \ || die "sed disable unused bundles failed" + if ! use test; then + sed -i CMakeLists.txt \ + -e "/add_subdirectory(blas/d" \ + -e "/add_subdirectory(lapack/d" \ + || die "sed disable unused bundles failed" + fi + sed -i -e "/Unknown build type/d" CMakeLists.txt || die sed \ @@ -47,10 +91,17 @@ src_compile() { src_test() { local mycmakeargs=( -DEIGEN_BUILD_TESTS=ON - -DEIGEN_TEST_NO_FORTRAN=ON - -DEIGEN_TEST_NO_OPENGL=ON + -DEIGEN_TEST_ALTIVEC="$(usex altivec)" + -DEIGEN_TEST_OPENMP="$(usex openmp)" + -DEIGEN_TEST_SSE2="$(usex cpu_flags_x86_sse2)" + -DEIGEN_TEST_SSE3="$(usex cpu_flags_x86_sse3)" + -DEIGEN_TEST_SSE4_1="$(usex cpu_flags_x86_sse4_1)" + -DEIGEN_TEST_SSE4_2="$(usex cpu_flags_x86_sse4_2)" + -DEIGEN_TEST_SSSE3="$(usex cpu_flags_x86_ssse3)" +# -DEIGEN_TEST_X87="$(usex cpu_flags_x86_x87)" ) cmake-utils_src_configure + cmake-utils_src_compile blas cmake-utils_src_compile buildtests cmake-utils_src_test } |