commit: e92084cc3d3ce917eee875e3e16da54cc6f329a5 Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de> AuthorDate: Fri Mar 9 20:05:35 2018 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Mon Mar 12 15:32:27 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e92084cc
dev-util/cmake: simplify FindBLAS patch Most of the previous Gentoo patch has been upstreamed. Closes: https://github.com/gentoo/gentoo/pull/7409 dev-util/cmake/cmake-3.11.0_rc3.ebuild | 2 +- .../cmake/files/cmake-3.11.0_rc2-FindBLAS.patch | 23 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/dev-util/cmake/cmake-3.11.0_rc3.ebuild b/dev-util/cmake/cmake-3.11.0_rc3.ebuild index ebda7cc29dd..61e5d006511 100644 --- a/dev-util/cmake/cmake-3.11.0_rc3.ebuild +++ b/dev-util/cmake/cmake-3.11.0_rc3.ebuild @@ -51,7 +51,7 @@ PATCHES=( "${FILESDIR}"/${PN}-3.1.0-darwin-isysroot.patch # handle gentoo packaging in find modules - "${FILESDIR}"/${PN}-3.0.0-FindBLAS.patch + "${FILESDIR}"/${PN}-3.11.0_rc2-FindBLAS.patch "${FILESDIR}"/${PN}-3.8.0_rc2-FindBoost-python.patch "${FILESDIR}"/${PN}-3.0.2-FindLAPACK.patch "${FILESDIR}"/${PN}-3.5.2-FindQt4.patch diff --git a/dev-util/cmake/files/cmake-3.11.0_rc2-FindBLAS.patch b/dev-util/cmake/files/cmake-3.11.0_rc2-FindBLAS.patch new file mode 100644 index 00000000000..6bad45b2087 --- /dev/null +++ b/dev-util/cmake/files/cmake-3.11.0_rc2-FindBLAS.patch @@ -0,0 +1,23 @@ +--- a/Modules/FindBLAS.cmake ++++ b/Modules/FindBLAS.cmake +@@ -4,6 +4,10 @@ + # + # Find BLAS library + # ++# Version modified for Gentoo Linux. ++# If a valid PkgConfig configuration is found, this overrides and cancels ++# all further checks. ++# + # This module finds an installed fortran library that implements the + # BLAS linear-algebra interface (see http://www.netlib.org/blas/). The + # list of libraries searched for is taken from the autoconf macro file, +@@ -50,6 +54,9 @@ + # (To distribute this file outside of CMake, substitute the full + # License text for the above reference.) + ++# first, try PkgConfig ++set(BLA_PREFER_PKGCONFIG On) ++ + include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake) + include(${CMAKE_CURRENT_LIST_DIR}/CheckFortranFunctionExists.cmake) +
