aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <bicatali@gentoo.org>2013-05-22 12:20:58 -0700
committerS├ębastien Fabbro <bicatali@gentoo.org>2013-05-22 12:20:58 -0700
commitc718f01735b5235a846451bfec775baadeb70ca7 (patch)
tree91fd190a902ed699a0a7fbf0660bb31295f7287b /sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
parentCleanup (diff)
downloadsci-c718f01735b5235a846451bfec775baadeb70ca7.tar.gz
sci-c718f01735b5235a846451bfec775baadeb70ca7.tar.bz2
sci-c718f01735b5235a846451bfec775baadeb70ca7.zip
links
Diffstat (limited to 'sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild')
l---------[-rw-r--r--]sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild79
1 files changed, 1 insertions, 78 deletions
diff --git a/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild b/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
index f626710a3..0d81fdd39 100644..120000
--- a/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
+++ b/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
@@ -1,78 +1 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-inherit eutils fortran-2 cmake-utils alternatives-2 toolchain-funcs
-
-MYP=lapack-${PV}
-
-DESCRIPTION="Reference implementation of 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 xblas"
-
-RDEPEND="
- virtual/blas
- xblas? ( sci-libs/xblas )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-S="${WORKDIR}/${MYP}"
-
-src_prepare() {
- # avoid collision with other lapack
- sed -i \
- -e 's:BINARY_DIR}/lapack.pc:BINARY_DIR}/reflapack.pc:' \
- -e '/export/s:lapack:reflapack:g' \
- -e '/ALL_TARGETS/s:lapack):reflapack):' \
- -e '/LAPACK_LIBRARIES/s:lapack:reflapack:g' \
- CMakeLists.txt || die
- sed -i \
- -e 's:(lapack:(reflapack:g' \
- SRC/CMakeLists.txt || die
- sed -i \
- -e 's:-llapack:-lreflapack:g' \
- lapack.pc.in || die
- use static-libs && mkdir "${WORKDIR}/${PN}_static"
- # some string does not get pass properly
- sed -i -e '/lapack_testing.py/d' CTestCustom.cmake.in || die
- # separate ebuild
- sed -i -e '/lapack_install_library(tmglib)/d' TESTING/MATGEN/CMakeLists.txt
-}
-
-src_configure() {
- lapack_configure() {
- local mycmakeargs=(
- -DUSE_OPTIMIZED_BLAS=ON
- -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
- $(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 && \
- CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \
- -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
-}
-
-src_compile() {
- cmake-utils_src_compile
- use static-libs && \
- CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile
-}
-
-src_install() {
- cmake-utils_src_install
- use static-libs && \
- CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install
- alternatives_for lapack reference 0 \
- "/usr/$(get_libdir)/pkgconfig/lapack.pc" "reflapack.pc"
-}
+lapack-reference-9999.ebuild \ No newline at end of file