diff options
Diffstat (limited to 'sci-libs/cblas-reference/cblas-reference-20110218.ebuild')
-rw-r--r-- | sci-libs/cblas-reference/cblas-reference-20110218.ebuild | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/sci-libs/cblas-reference/cblas-reference-20110218.ebuild b/sci-libs/cblas-reference/cblas-reference-20110218.ebuild deleted file mode 100644 index c2c9b6f1f..000000000 --- a/sci-libs/cblas-reference/cblas-reference-20110218.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils alternatives-2 flag-o-matic toolchain-funcs versionator multilib fortran-2 - -MYPN="${PN/-reference/}" - -DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation" -HOMEPAGE="http://www.netlib.org/blas/" -SRC_URI="http://www.netlib.org/blas/blast-forum/${MYPN}.tgz -> ${P}.tgz" - -SLOT="0" -LICENSE="public-domain" -IUSE="static-libs" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" - -RDEPEND="virtual/blas" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -S="${WORKDIR}/CBLAS" - -LIBNAME=refcblas - -static_to_shared() { - local libstatic=$1 - shift - local libname=$(basename ${libstatic%.a}) - local soname=${libname}$(get_libname $(get_version_component_range 1-2)) - local libdir=$(dirname ${libstatic}) - - einfo "Making ${soname} from ${libstatic}" - if [[ ${CHOST} == *-darwin* ]] ; then - ${LINK:-$(tc-getCC)} ${LDFLAGS} \ - -dynamiclib -install_name "${EPREFIX}"/usr/lib/${soname} \ - -Wl,-all_load -Wl,${libstatic} \ - "$@" -o ${libdir}/${soname} || die "${soname} failed" - else - ${LINK:-$(tc-getCC)} ${LDFLAGS} \ - -shared -Wl,-soname=${soname} \ - -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \ - "$@" -o ${libdir}/${soname} || die "${soname} failed" - if [[ $(get_version_component_count) -gt 1 ]]; then - ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version)) || die - fi - fi - ln -s ${soname} ${libdir}/${libname}$(get_libname) || die -} - -src_prepare() { - find . -name Makefile -exec sed -i \ - -e 's:make:$(MAKE):g' '{}' \; || die - append-cflags -DADD_ - cat > Makefile.in <<-EOF - BLLIB=$($(tc-getPKG_CONFIG) --libs blas) - FC=$(tc-getFC) - CC=$(tc-getCC) - CBLIB=../lib/lib${LIBNAME}.a - LOADER=\$(FC) - ARCH=$(tc-getAR) - ARCHFLAGS=cr - RANLIB=$(tc-getRANLIB) - EOF -} - -src_compile() { - emake \ - FFLAGS="${FFLAGS} -fPIC" \ - CFLAGS="${CFLAGS} -fPIC" \ - CBLIB=../lib/lib${LIBNAME}.a \ - alllib - static_to_shared lib/lib${LIBNAME}.a $($(tc-getPKG_CONFIG) --libs blas) - if use static-libs; then - emake clean - emake alllib - fi -} - -src_test() { - cd testing || die - default - emake run -} - -src_install() { - # On linux dynamic libraries are of the form .so.${someversion} - # On OS X dynamic libraries are of the form ${someversion}.dylib - dolib.so lib/lib${LIBNAME}*$(get_libname)* - use static-libs && dolib.a lib/lib${LIBNAME}.a - insinto /usr/include/cblas - doins include/cblas.h - cat <<-EOF > ${LIBNAME}.pc - prefix=${EPREFIX}/usr - libdir=\${prefix}/$(get_libdir) - includedir=\${prefix}/include - Name: ${LIBNAME} - Description: ${DESCRIPTION} - Version: ${PV} - URL: ${HOMEPAGE} - Libs: -L\${libdir} -l${LIBNAME} - Private: -lm - Cflags: -I\${includedir}/cblas - Requires: blas - EOF - insinto /usr/$(get_libdir)/pkgconfig - doins ${LIBNAME}.pc - dodoc README - insinto /usr/share/doc/${PF} - doins examples/*.c - alternatives_for cblas reference 0 \ - /usr/$(get_libdir)/pkgconfig/cblas.pc ${LIBNAME}.pc \ - /usr/include/cblas.h cblas/cblas.h -} |