From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 396A8138359 for ; Fri, 18 Sep 2020 22:56:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E6DCE0809; Fri, 18 Sep 2020 22:56:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3DD04E0809 for ; Fri, 18 Sep 2020 22:56:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1099F341019 for ; Fri, 18 Sep 2020 22:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B254B366 for ; Fri, 18 Sep 2020 22:56:22 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1600469778.1a9d2a5e0166770db4aefdd7f688e332a32f858a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/lapack/files/, sci-libs/lapack/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/lapack/Manifest sci-libs/lapack/files/lapack-3.9.0-build-tests.patch sci-libs/lapack/lapack-3.9.0.ebuild X-VCS-Directories: sci-libs/lapack/files/ sci-libs/lapack/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1a9d2a5e0166770db4aefdd7f688e332a32f858a X-VCS-Branch: master Date: Fri, 18 Sep 2020 22:56:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 932231d1-740e-4be7-8794-63d2b605a96c X-Archives-Hash: 63e7d8413d40620ff7c06552b5b4f9c1 commit: 1a9d2a5e0166770db4aefdd7f688e332a32f858a Author: Sam James gentoo org> AuthorDate: Fri Sep 18 22:56:08 2020 +0000 Commit: Sam James gentoo org> CommitDate: Fri Sep 18 22:56:18 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a9d2a5e sci-libs/lapack: bump to 3.9.0 Closes: https://bugs.gentoo.org/738258 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James gentoo.org> sci-libs/lapack/Manifest | 1 + .../lapack/files/lapack-3.9.0-build-tests.patch | 20 +++++ sci-libs/lapack/lapack-3.9.0.ebuild | 95 ++++++++++++++++++++++ 3 files changed, 116 insertions(+) diff --git a/sci-libs/lapack/Manifest b/sci-libs/lapack/Manifest index fe865c2bdc8..91b589d6e02 100644 --- a/sci-libs/lapack/Manifest +++ b/sci-libs/lapack/Manifest @@ -1 +1,2 @@ DIST lapack-3.8.0.tar.gz 7426094 BLAKE2B 27cd75eea498250382b2df6f5d7dc95fdee8d37b1a0faba5296ca0145ec40a1165a4ecc727aa1647086be6783b50cf475f79cea0f30f541da789051db99b2f37 SHA512 17786cb7306fccdc9b4a242de7f64fc261ebe6a10b6ec55f519deb4cb673cb137e8742aa5698fd2dc52f1cd56d3bd116af3f593a01dcf6770c4dcc86c50b2a7f +DIST lapack-3.9.0.tar.gz 7534567 BLAKE2B 408013a11a72e0262d144adfdf6db28a6efa3bb5446f9ff959bb88fe10459dfa621149ed0144630a55e73e3b5be3c704269a716eb195f6db7b39d345b4db8270 SHA512 424956ad941a60a4b71e0d451ad48db12a692f8a71a90f3ca7f71d6ecc1922f392746ea84df1c47a46577ed2db32e9e47ec44ad248207c5ac7da179becb712ef diff --git a/sci-libs/lapack/files/lapack-3.9.0-build-tests.patch b/sci-libs/lapack/files/lapack-3.9.0-build-tests.patch new file mode 100644 index 00000000000..1dbcd6d9f67 --- /dev/null +++ b/sci-libs/lapack/files/lapack-3.9.0-build-tests.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d9dbf97..9635ba4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -127,7 +127,7 @@ set(PKG_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + + # -------------------------------------------------- + # Testing +-option(BUILD_TESTING "Build tests" ${_is_coverage_build}) ++option(BUILD_TESTING "Build tests") + include(CTest) + message(STATUS "Build tests: ${BUILD_TESTING}") + +@@ -443,4 +443,4 @@ install(FILES + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/lapack-${LAPACK_VERSION} + COMPONENT Development + ) +- +\ No newline at end of file ++ diff --git a/sci-libs/lapack/lapack-3.9.0.ebuild b/sci-libs/lapack/lapack-3.9.0.ebuild new file mode 100644 index 00000000000..cc1fc963b7c --- /dev/null +++ b/sci-libs/lapack/lapack-3.9.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +#CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake + +DESCRIPTION="BLAS,CBLAS,LAPACK,LAPACKE reference implementations" +HOMEPAGE="http://www.netlib.org/lapack/" +SRC_URI="https://github.com/Reference-LAPACK/lapack/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="lapacke doc eselect-ldso test" +# TODO: static-libs 64bit-index +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 ) + !app-eselect/eselect-cblas + !sci-libs/blas-reference + !sci-libs/cblas-reference + !sci-libs/lapack-reference + !sci-libs/lapacke-reference + virtual/fortran + doc? ( app-doc/blas-docs )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DCBLAS=ON + -DLAPACKE=$(usex lapacke) + -DBUILD_SHARED_LIBS=ON + -DBUILD_TESTING=ON + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + use eselect-ldso || return + # Create private lib directory for eselect::blas (ld.so.conf) + dodir /usr/$(get_libdir)/blas/reference + dosym ../../libblas.so usr/$(get_libdir)/blas/reference/libblas.so + dosym ../../libblas.so.3 usr/$(get_libdir)/blas/reference/libblas.so.3 + dosym ../../libcblas.so usr/$(get_libdir)/blas/reference/libcblas.so + dosym ../../libcblas.so.3 usr/$(get_libdir)/blas/reference/libcblas.so.3 + + # Create private lib directory for eselect::lapack (ld.so.conf) + dodir /usr/$(get_libdir)/lapack/reference + dosym ../../liblapack.so usr/$(get_libdir)/lapack/reference/liblapack.so + dosym ../../liblapack.so.3 usr/$(get_libdir)/lapack/reference/liblapack.so.3 +} + +pkg_postinst() { + use eselect-ldso || return + + local me=reference libdir=$(get_libdir) + # check eselect-blas + eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} + local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) + if [[ ${current_blas} == ${me} || -z ${current_blas} ]]; then + eselect blas set ${libdir} ${me} + elog "Current eselect: BLAS ($libdir) -> [${current_blas}]." + else + elog "Current eselect: BLAS ($libdir) -> [${current_blas}]." + elog "To use blas [${me}] implementation, you have to issue (as root):" + elog "\t eselect blas set ${libdir} ${me}" + fi + + # check eselect-lapack + eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me} + local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2) + if [[ ${current_lapack} == ${me} || -z ${current_lapack} ]]; then + eselect lapack set ${libdir} ${me} + elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]." + else + elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]." + elog "To use lapack [${me}] implementation, you have to issue (as root):" + elog "\t eselect lapack set ${libdir} ${me}" + fi +} + +pkg_postrm() { + use eselect-ldso || return + + eselect blas validate + eselect lapack validate +}