mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
sci-libs/blas-lapack-aux-wrapper: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST blas-lapack-aux-wrapper-1.tar.xz 8696 BLAKE2B 887a7a4868d7d3de281030f2cb7215490d70324ee3669f55a0416e4502227e7e79ca160a26e94f9a77656740664f35f7a8ed25910e62c2bcf53441c0220c37be SHA512 4397e9bbd2f55dc07dc3a0c65413d61abc9b27fa1d38a298930064661abccdfa485fc66fc2755bff3db0847457754742a2045d216f6f31d54d631c89d2920302
|
||||
DIST blas-lapack-aux-wrapper-4.tar.xz 8968 BLAKE2B 0bed19d783bcc4ec1d2e9f7d97356ac788044f16a01a7725924593ea36647869684afc940c497ac46a630742a8de9a096ed6732a543ec675c0cccf9bbb656f3e SHA512 3abf61049a968d490a64452ff8b842455731c62592366eed7cc12750d64ede73abb8a353ee271560c162c3415b864caef341afd8df250e6ffaf6a19161ecbcf8
|
||||
DIST blas-lapack-aux-wrapper-6.tar.xz 9536 BLAKE2B fb66a6da7d99347ca72a479a3d72e1c5459e6c7b03d6c89ba8826b1b64bc2e0ce725868a78727b0a6a05bfb6ad449bd8391b899b0eeaec6002b6b4411041bdf5 SHA512 249bf90a55abd841550f5d9dc25509e272d59ef324f345b397baeaa776a2a0e7de702d749fc20e395216cde5f42857730d5b8a1ee559cf2edc04c65076b653a7
|
||||
DIST lapack-3.12.1.tar.gz 8067087 BLAKE2B 13fd3bbb6d1f23eb0add0a71d302af7af172d608b3e2354031d0b13cb7fbf243017d85b53ca04322983c5ed069ad3773510833d231d533b2dc417962cc24a817 SHA512 9749976d773830eb635498611c7f1247af8dece23fe8c08446243aa39bdcc20dd35fdc670345643cd1ec6828e379d5c2152009817e0b486c10fd89a06602e0fb
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit meson python-any-r1 toolchain-funcs
|
||||
|
||||
LAPACK_VER=3.12.1
|
||||
DESCRIPTION="BLAS/LAPACK wrappers for FlexiBLAS"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/blas-lapack-aux-wrapper.git/"
|
||||
SRC_URI="
|
||||
https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz
|
||||
test? (
|
||||
https://github.com/Reference-LAPACK/lapack/archive/v${LAPACK_VER}.tar.gz
|
||||
-> lapack-${LAPACK_VER}.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86"
|
||||
IUSE="index64 test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
!sci-libs/lapack[-flexiblas(-)]
|
||||
>=sci-libs/flexiblas-3.4.82-r4:=[index64(-)?]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sci-libs/lapack:=[flexiblas(-),index64(-)?,lapacke]
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
# we do not call the compiler, only the linker
|
||||
QA_FLAGS_IGNORED=".*"
|
||||
|
||||
src_configure() {
|
||||
# We rely on some specific linker features (bug #965199)
|
||||
if ! tc-ld-is-bfd && ! tc-ld-is-lld; then
|
||||
tc-ld-force-bfd
|
||||
fi
|
||||
|
||||
local emesonargs=(
|
||||
-Dilp64=$(usex index64 true false)
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
check_result() {
|
||||
local f=${1}
|
||||
|
||||
if ! grep -q "<flexiblas> Check if shared library exist" "${f}.out"; then
|
||||
die "No FlexiBLAS output found in ${f}.out"
|
||||
fi
|
||||
if grep -q -i "FAIL" "${f}.out"; then
|
||||
die "Test failed in ${f}.out"
|
||||
fi
|
||||
}
|
||||
|
||||
run_test() {
|
||||
local f=${1}
|
||||
|
||||
einfo "Running ${f} ..."
|
||||
"${f}" &> "${f}.out" || die "Running ${f} failed"
|
||||
check_result "${f}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# a. get indication that FlexiBLAS is actually used on stderr.
|
||||
local -x FLEXIBLAS_VERBOSE=1
|
||||
# b. force fallback to Netlib LAPACK.
|
||||
local -x FLEXIBLAS=libflexiblas_netlib.so
|
||||
|
||||
tc-export CC FC AR RANLIB
|
||||
|
||||
cd "${WORKDIR}/lapack-${LAPACK_VER}" || die
|
||||
cat > make.inc <<-EOF || die
|
||||
FFLAGS_DRV = \$(FFLAGS)
|
||||
FFLAGS_NOOPT = \$(FFLAGS) -O0
|
||||
ARFLAGS = rv
|
||||
|
||||
BLASLIB = ${BUILD_DIR}/libblas.so
|
||||
CBLASLIB = ${BUILD_DIR}/libcblas.so
|
||||
LAPACKLIB = ${BUILD_DIR}/liblapack.so
|
||||
TMGLIB = \$(TOPSRCDIR)/libtmglib.a
|
||||
LAPACKELIB = ${BUILD_DIR}/liblapacke.so
|
||||
EOF
|
||||
|
||||
emake -C BLAS/TESTING xblat1d
|
||||
emake -C CBLAS include/cblas_mangling.h
|
||||
run_test BLAS/TESTING/xblat1d
|
||||
|
||||
emake -C CBLAS/testing xdcblat1
|
||||
run_test CBLAS/testing/xdcblat1
|
||||
|
||||
emake -C TESTING/MATGEN
|
||||
emake -C TESTING dbb.out
|
||||
check_result TESTING/dbb
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
local f
|
||||
cd "${ED}/usr/$(get_libdir)" || die
|
||||
mkdir blas-lapack-aux-wrapper || die
|
||||
mv lib* blas-lapack-aux-wrapper/ || die
|
||||
for f in blas-lapack-aux-wrapper/*.so; do
|
||||
ln -s "${f}" || die
|
||||
done
|
||||
}
|
||||
@@ -1,117 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit meson python-any-r1 toolchain-funcs
|
||||
|
||||
LAPACK_VER=3.12.1
|
||||
DESCRIPTION="BLAS/LAPACK wrappers for FlexiBLAS"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/blas-lapack-aux-wrapper.git/"
|
||||
SRC_URI="
|
||||
https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz
|
||||
test? (
|
||||
https://github.com/Reference-LAPACK/lapack/archive/v${LAPACK_VER}.tar.gz
|
||||
-> lapack-${LAPACK_VER}.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 ~riscv ~x86"
|
||||
IUSE="index64 test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
!sci-libs/lapack[-flexiblas(-)]
|
||||
>=sci-libs/flexiblas-3.4.82-r4:=[index64(-)?]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sci-libs/lapack:=[flexiblas(-),index64(-)?,lapacke]
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
# we do not call the compiler, only the linker
|
||||
QA_FLAGS_IGNORED=".*"
|
||||
|
||||
src_configure() {
|
||||
# We rely on some specific linker features (bug #965199)
|
||||
if ! tc-ld-is-bfd && ! tc-ld-is-lld; then
|
||||
tc-ld-force-bfd
|
||||
fi
|
||||
|
||||
local emesonargs=(
|
||||
-Dilp64=$(usex index64 true false)
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
check_result() {
|
||||
local f=${1}
|
||||
|
||||
if ! grep -q "<flexiblas> Check if shared library exist" "${f}.out"; then
|
||||
die "No FlexiBLAS output found in ${f}.out"
|
||||
fi
|
||||
if grep -q -i "FAIL" "${f}.out"; then
|
||||
die "Test failed in ${f}.out"
|
||||
fi
|
||||
}
|
||||
|
||||
run_test() {
|
||||
local f=${1}
|
||||
|
||||
einfo "Running ${f} ..."
|
||||
"${f}" &> "${f}.out" || die "Running ${f} failed"
|
||||
check_result "${f}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# a. get indication that FlexiBLAS is actually used on stderr.
|
||||
local -x FLEXIBLAS_VERBOSE=1
|
||||
# b. force fallback to Netlib LAPACK.
|
||||
local -x FLEXIBLAS=libflexiblas_netlib.so
|
||||
|
||||
tc-export CC FC AR RANLIB
|
||||
|
||||
cd "${WORKDIR}/lapack-${LAPACK_VER}" || die
|
||||
cat > make.inc <<-EOF || die
|
||||
FFLAGS_DRV = \$(FFLAGS)
|
||||
FFLAGS_NOOPT = \$(FFLAGS) -O0
|
||||
ARFLAGS = rv
|
||||
|
||||
BLASLIB = ${BUILD_DIR}/libblas.so
|
||||
CBLASLIB = ${BUILD_DIR}/libcblas.so
|
||||
LAPACKLIB = ${BUILD_DIR}/liblapack.so
|
||||
TMGLIB = \$(TOPSRCDIR)/libtmglib.a
|
||||
LAPACKELIB = ${BUILD_DIR}/liblapacke.so
|
||||
EOF
|
||||
|
||||
emake -C BLAS/TESTING xblat1d
|
||||
emake -C CBLAS include/cblas_mangling.h
|
||||
run_test BLAS/TESTING/xblat1d
|
||||
|
||||
emake -C CBLAS/testing xdcblat1
|
||||
run_test CBLAS/testing/xdcblat1
|
||||
|
||||
emake -C TESTING/MATGEN
|
||||
emake -C TESTING dbb.out
|
||||
check_result TESTING/dbb
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
local f
|
||||
cd "${ED}/usr/$(get_libdir)" || die
|
||||
mkdir blas-lapack-aux-wrapper || die
|
||||
mv lib* blas-lapack-aux-wrapper/ || die
|
||||
for f in blas-lapack-aux-wrapper/*.so; do
|
||||
ln -s "${f}" || die
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user