From 1d5913ef88752e094b1b45a8ca501ef2319faf90 Mon Sep 17 00:00:00 2001 From: gienah Date: Mon, 13 Oct 2014 23:34:48 +1100 Subject: Specify the xblas library location to cmake - sci-libs/lapack-reference-9999::science USE="int64 static-libs {test*} xblas*" ABI_X86="32 (64) (-x32)" builds and passes tests with eselect blas show = reference --- sci-libs/lapack-reference/ChangeLog | 6 ++++++ sci-libs/lapack-reference/lapack-reference-9999.ebuild | 2 ++ 2 files changed, 8 insertions(+) (limited to 'sci-libs') diff --git a/sci-libs/lapack-reference/ChangeLog b/sci-libs/lapack-reference/ChangeLog index 4fcbb7b81..89abcfebb 100644 --- a/sci-libs/lapack-reference/ChangeLog +++ b/sci-libs/lapack-reference/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/ChangeLog,v 1.51 2010/10/02 20:49:51 grobian Exp $ + 13 Oct 2014; Mark Wright lapack-reference-9999.ebuild: + Specify the xblas library location to cmake - + sci-libs/lapack-reference-9999::science USE="int64 static-libs {test*} + xblas*" ABI_X86="32 (64) (-x32)" builds and passes tests with eselect blas + show = reference + 13 Oct 2014; Mark Wright lapack-reference-9999.ebuild: Refactor to lapack-reference use the fortran-int64.eclass. Add the virtual to PDEPEND. Call fortran-int64_ensure_blas to check the blas pkg-config file is diff --git a/sci-libs/lapack-reference/lapack-reference-9999.ebuild b/sci-libs/lapack-reference/lapack-reference-9999.ebuild index 75000ddd0..0ba3b3fd0 100644 --- a/sci-libs/lapack-reference/lapack-reference-9999.ebuild +++ b/sci-libs/lapack-reference/lapack-reference-9999.ebuild @@ -79,6 +79,7 @@ src_configure() { local libname="${profname//-/_}" local blas_profname=$(fortran-int64_get_blas_profname) local xblas_profname=$(fortran-int64_get_xblas_profname) + local xblas_libname="${xblas_profname//-/_}" local blas_requires="${blas_profname}" use xblas && \ blas_requires+=" ${xblas_profname}" @@ -94,6 +95,7 @@ src_configure() { -DCMAKE_CXX_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CXXFLAGS}" -DCMAKE_Fortran_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) $(get_abi_CFLAGS) $(fortran-int64_get_fortran_int64_abi_fflags) ${FCFLAGS}" -DLAPACK_PKGCONFIG_FFLAGS="$(fortran-int64_get_fortran_int64_abi_fflags)" + -DXBLAS_LIBRARY:FILEPATH="${ROOT}usr/$(get_libdir)/lib${xblas_libname}.so" ) if $(fortran-int64_is_static_build); then mycmakeargs+=( -- cgit v1.2.3-65-gdbad