aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-28 18:51:00 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-28 18:51:00 +0100
commit7e8e5efadb27f201f96716c808eb39d991faf4c0 (patch)
tree89fa07a37ba6da7c3f80a149bfca29cf57f622e4
parentsci-libs/clblas: QA: Style fixes and add missing PYTHON_REQUIRED_USE (diff)
downloadsci-7e8e5efadb27f201f96716c808eb39d991faf4c0.tar.gz
sci-7e8e5efadb27f201f96716c808eb39d991faf4c0.tar.bz2
sci-7e8e5efadb27f201f96716c808eb39d991faf4c0.zip
sci-libs/lapacke-reference: Drop old
Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec@gentoo.org>
-rw-r--r--sci-libs/lapacke-reference/Manifest1
-rw-r--r--sci-libs/lapacke-reference/lapacke-reference-3.4.2.ebuild103
-rw-r--r--sci-libs/lapacke-reference/metadata.xml12
3 files changed, 6 insertions, 110 deletions
diff --git a/sci-libs/lapacke-reference/Manifest b/sci-libs/lapacke-reference/Manifest
index 279e75768..25879e1d7 100644
--- a/sci-libs/lapacke-reference/Manifest
+++ b/sci-libs/lapacke-reference/Manifest
@@ -1,2 +1 @@
-DIST lapack-3.4.2.tgz 6168281 SHA256 60a65daaf16ec315034675942618a2230521ea7adf85eea788ee54841072faf0 SHA512 8770214491e31f0a7a3efaade90eee7b0eb20a8a6ab635c5f854d78263f59a1849133c14ef5123d01023f0110cbb9fc6f818da053c01277914ae81473430a952 WHIRLPOOL ca1333abaed2377e29acd08feee58241ba63b981ac5946dd9da663ed9c760e476ec3933a4989a964a66f5aaa72c868cd7f274259bc0dde0299d63fe60a3139fa
DIST lapack-3.5.0.tgz 6313139 SHA256 9ad8f0d3f3fb5521db49f2dd716463b8fb2b6bc9dc386a9956b8c6144f726352 SHA512 b948a0a0db032bda455ec4f519d4e89e4c29e29cecb5b6258ca61f68faaeeac9fdf4ece5c39ffcd0154c5505facbc392c7d09c8348b1d60bdd2685153ab2543f WHIRLPOOL c97a3e843bbef0b79e47cf13a7b2173eeaada52f6059492edeb1a6558ecfb33c637c6f62ad77bfd2c468884becf7becb87bb476f6f5f41572d374dc1bd745c52
diff --git a/sci-libs/lapacke-reference/lapacke-reference-3.4.2.ebuild b/sci-libs/lapacke-reference/lapacke-reference-3.4.2.ebuild
deleted file mode 100644
index 2c53640b8..000000000
--- a/sci-libs/lapacke-reference/lapacke-reference-3.4.2.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit alternatives-2 cmake-utils eutils fortran-2 toolchain-funcs
-
-FORTRAN_NEEDED=test
-
-MYP=lapack-${PV}
-
-if [[ ${PV} == "9999" ]] ; then
- ESVN_REPO_URI="https://icl.cs.utk.edu/svn/lapack-dev/lapack/trunk"
- inherit subversion
- KEYWORDS=""
-else
- SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz"
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-fi
-
-DESCRIPTION="C Interface to LAPACK"
-HOMEPAGE="http://www.netlib.org/lapack/"
-
-LICENSE="BSD"
-SLOT="0"
-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 && \
- CMAKE_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 && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
- cmake-utils_src_compile -C lapacke
-}
-
-src_test() {
- pushd "${CMAKE_BUILD_DIR}/lapacke" > /dev/null
- local ctestargs
- [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
- ctest ${ctestargs} || die
- popd > /dev/null
-}
-
-src_install() {
- cmake-utils_src_install -C lapacke
- use static-libs && CMAKE_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/metadata.xml b/sci-libs/lapacke-reference/metadata.xml
index 0d4e062f1..3e5f078fd 100644
--- a/sci-libs/lapacke-reference/metadata.xml
+++ b/sci-libs/lapacke-reference/metadata.xml
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>sci</herd>
-<longdescription lang="en">
+ <herd>sci</herd>
+ <longdescription lang="en">
This implementation provides a native C interface to LAPACK routines
available at www.netlib.org/lapack to facilitate usage of LAPACK
functionality for C programmers.
</longdescription>
-<use>
- <flag name="tmg">Build LAPACKE with a Test Matrix Generator library</flag>
- <flag name="xblas">Build LAPACKE with extra precision (needs
+ <use>
+ <flag name="tmg">Build LAPACKE with a Test Matrix Generator library</flag>
+ <flag name="xblas">Build LAPACKE with extra precision (needs
<pkg>sci-libs/xblas</pkg>)</flag>
-</use>
+ </use>
</pkgmetadata>