diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-11-30 15:53:59 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-11-30 15:53:59 +0100 |
commit | 6cb4cf4e8c6c7b68b0bb94e841fbc619795126d8 (patch) | |
tree | 8c35926b43f8fa2d4ec76a26b0d06e3c475251b1 /sci-libs | |
parent | sci-libs/tmglib: Only require python for tests (diff) | |
download | sci-6cb4cf4e8c6c7b68b0bb94e841fbc619795126d8.tar.gz sci-6cb4cf4e8c6c7b68b0bb94e841fbc619795126d8.tar.bz2 sci-6cb4cf4e8c6c7b68b0bb94e841fbc619795126d8.zip |
sci-libs/lapacke-reference: Version Bump
Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-libs')
4 files changed, 105 insertions, 8 deletions
diff --git a/sci-libs/lapacke-reference/Manifest b/sci-libs/lapacke-reference/Manifest index 25879e1d7..285ccf845 100644 --- a/sci-libs/lapacke-reference/Manifest +++ b/sci-libs/lapacke-reference/Manifest @@ -1 +1,2 @@ DIST lapack-3.5.0.tgz 6313139 SHA256 9ad8f0d3f3fb5521db49f2dd716463b8fb2b6bc9dc386a9956b8c6144f726352 SHA512 b948a0a0db032bda455ec4f519d4e89e4c29e29cecb5b6258ca61f68faaeeac9fdf4ece5c39ffcd0154c5505facbc392c7d09c8348b1d60bdd2685153ab2543f WHIRLPOOL c97a3e843bbef0b79e47cf13a7b2173eeaada52f6059492edeb1a6558ecfb33c637c6f62ad77bfd2c468884becf7becb87bb476f6f5f41572d374dc1bd745c52 +DIST lapack-3.6.0.tgz 6792324 SHA256 a9a0082c918fe14e377bbd570057616768dca76cbdc713457d8199aaa233ffc3 SHA512 bc50441d415ef8896dd7626d77c6104184b996e758704366288089f03d4c99d068e33153b0d13305310886017e5d2e716130f812a95cfcad36ef37fe20417ab8 WHIRLPOOL 5576d0a81b2645fe95ef7011cc398f31142b8dcd01cdf5945e3db0e73ae1768766ea54254b40f4c6a581a6fb77b911595fccd597be0536833118af5877bb0c64 diff --git a/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild b/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild index c227851fc..6d43c82d9 100644 --- a/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild +++ b/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild @@ -68,7 +68,7 @@ src_configure() { lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF use static-libs && \ - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ + BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON } @@ -76,11 +76,11 @@ src_compile() { use test && cmake-utils_src_compile -C TESTING/MATGEN cmake-utils_src_compile -C lapacke use static-libs \ - && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C lapacke + && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C lapacke } src_test() { - pushd "${CMAKE_BUILD_DIR}/lapacke" > /dev/null || die + pushd "${BUILD_DIR}/lapacke" > /dev/null || die local ctestargs [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" ctest ${ctestargs} || die @@ -90,7 +90,7 @@ src_test() { src_install() { cmake-utils_src_install -C lapacke use static-libs \ - && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C lapacke + && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C lapacke alternatives_for lapacke reference 0 \ /usr/$(get_libdir)/pkgconfig/lapacke.pc reflapacke.pc } diff --git a/sci-libs/lapacke-reference/lapacke-reference-3.6.0.ebuild b/sci-libs/lapacke-reference/lapacke-reference-3.6.0.ebuild new file mode 100644 index 000000000..2cefa5396 --- /dev/null +++ b/sci-libs/lapacke-reference/lapacke-reference-3.6.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +FORTRAN_NEEDED=test + +inherit alternatives-2 cmake-utils eutils fortran-2 toolchain-funcs + +MYP=lapack-${PV} + +DESCRIPTION="C Interface to LAPACK" +HOMEPAGE="http://www.netlib.org/lapack/" +SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs test tmg xblas" + +RDEPEND=" + virtual/blas + virtual/lapack + tmg? ( sci-libs/tmglib ) + xblas? ( sci-libs/xblas )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MYP}" + +src_prepare() { + # rename libraries to avoid collision with other lapacke + sed -i \ + -e 's:BINARY_DIR}/lapacke.pc:BINARY_DIR}/reflapacke.pc:' \ + -e '/export/s:lapacke:reflapacke:g' \ + -e '/ALL_TARGETS/s:lapacke):reflapacke):' \ + -e '/LAPACK_LIBRARIES/s:lapacke:reflapacke:g' \ + CMakeLists.txt || die + sed -i \ + -e '/librar/s:(lapacke:(reflapacke:g' \ + LAPACKE/CMakeLists.txt || die + sed -i \ + -e '/librar/s:lapacke:reflapacke:g' \ + LAPACKE/example/CMakeLists.txt || die + local tmgpc; use tmg && tmgpc=" -ltmglib" + sed -i \ + -e "s:-llapacke:-lreflapacke${tmgpc}:g" \ + LAPACKE/lapacke.pc.in || die + use static-libs && mkdir "${WORKDIR}/${PN}_static" +} + +src_configure() { + lapack_configure() { + local mycmakeargs=( + -DUSE_OPTIMIZED_BLAS=ON + -DUSE_OPTIMIZED_LAPACK=ON + -DLAPACKE=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + $(cmake-utils_use tmg LAPACKE_WITH_TMG) + $(cmake-utils_use_build test TESTING) + $(cmake-utils_use_use xblas XBLAS) + $@ + ) + cmake-utils_src_configure + } + + lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF + use static-libs && \ + BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ + -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON +} + +src_compile() { + use test && cmake-utils_src_compile -C TESTING/MATGEN + cmake-utils_src_compile -C LAPACKE + use static-libs \ + && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C LAPACKE +} + +src_test() { + pushd "${BUILD_DIR}/LAPACKE" > /dev/null || die + local ctestargs + [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" + ctest ${ctestargs} || die + popd > /dev/null || die +} + +src_install() { + cmake-utils_src_install -C LAPACKE + use static-libs \ + && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C LAPACKE + alternatives_for lapacke reference 0 \ + /usr/$(get_libdir)/pkgconfig/lapacke.pc reflapacke.pc +} diff --git a/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild b/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild index b7da70fff..1012fe785 100644 --- a/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild +++ b/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild @@ -68,7 +68,7 @@ src_configure() { lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF use static-libs && \ - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ + BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON } @@ -76,11 +76,11 @@ src_compile() { use test && cmake-utils_src_compile -C TESTING/MATGEN cmake-utils_src_compile -C LAPACKE use static-libs \ - && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C LAPACKE + && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C LAPACKE } src_test() { - pushd "${CMAKE_BUILD_DIR}/lapacke" > /dev/null || die + pushd "${BUILD_DIR}/lapacke" > /dev/null || die local ctestargs [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" ctest ${ctestargs} || die @@ -90,7 +90,7 @@ src_test() { src_install() { cmake-utils_src_install -C LAPACKE use static-libs \ - && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C LAPACKE + && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C LAPACKE alternatives_for lapacke reference 0 \ /usr/$(get_libdir)/pkgconfig/lapacke.pc reflapacke.pc } |