summaryrefslogtreecommitdiff
path: root/packages/sci-libs/eigen/eigen.exlib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sci-libs/eigen/eigen.exlib')
-rw-r--r--packages/sci-libs/eigen/eigen.exlib44
1 files changed, 16 insertions, 28 deletions
diff --git a/packages/sci-libs/eigen/eigen.exlib b/packages/sci-libs/eigen/eigen.exlib
index 530c132..46e9df3 100644
--- a/packages/sci-libs/eigen/eigen.exlib
+++ b/packages/sci-libs/eigen/eigen.exlib
@@ -34,6 +34,8 @@ MYOPTIONS="
DEPENDENCIES="
build:
sparse? ( sci-libs/SuiteSparse )
+ test:
+ sci-libs/fftw
"
CMAKE_SRC_CONFIGURE_PARAMS=(
@@ -49,24 +51,14 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
-DEIGEN_TEST_NO_FORTRAN:BOOL=TRUE
)
-if ever at_least 3.2.5 ; then
- DEPENDENCIES+="
- test:
- sci-libs/fftw
- "
- CMAKE_SRC_CONFIGURE_PARAMS+=(
- -DCMAKE_BUILD_TYPE:STRING=release
- -DBUILD_TESTING:BOOL=TRUE
- -DEIGEN_SPLIT_LARGE_TESTS:BOOL=TRUE
- -DEIGEN_TEST_NO_OPENGL:BOOL=TRUE
- )
-fi
-
-if [[ ${SLOT} == 2 ]] ; then
- MY_HGREV="b23437e61a07"
-else
- MY_HGREV="b30b87236a1b"
-fi
+CMAKE_SRC_CONFIGURE_PARAMS+=(
+ -DCMAKE_BUILD_TYPE:STRING=release
+ -DBUILD_TESTING:BOOL=TRUE
+ -DEIGEN_SPLIT_LARGE_TESTS:BOOL=TRUE
+ -DEIGEN_TEST_NO_OPENGL:BOOL=TRUE
+)
+
+MY_HGREV="b30b87236a1b"
CMAKE_SOURCE=${WORKBASE}/${PN}-${PN}-${MY_HGREV}
eigen_src_configure() {
@@ -78,18 +70,14 @@ eigen_src_configure() {
eigen_src_install() {
cmake_src_install
- if ever at_least 3.2.5 ; then
- insinto /usr/share/cmake/Modules
- doins "${CMAKE_SOURCE}"/cmake/FindEigen3.cmake
+ insinto /usr/share/cmake/Modules
+ doins "${CMAKE_SOURCE}"/cmake/FindEigen3.cmake
- edo rm -r "${IMAGE}"/usr/share/doc
- fi
+ edo rm -r "${IMAGE}"/usr/share/doc
# TODO: report upstream, fix pkgconfig file
- if ever at_least 3.2.7 ; then
- edo sed \
- -e "s:-Iinclude:-I/usr/$(exhost --target)/include:g" \
- -i "${IMAGE}"/usr/$(exhost --target)/lib/pkgconfig/eigen3.pc
- fi
+ edo sed \
+ -e "s:-Iinclude:-I/usr/$(exhost --target)/include:g" \
+ -i "${IMAGE}"/usr/$(exhost --target)/lib/pkgconfig/eigen3.pc
}