diff options
author | Markus Dittrich <markusle@gentoo.org> | 2007-10-10 10:04:59 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2007-10-10 10:04:59 +0000 |
commit | 51a9d75b8c1f2fceadfb40d03f7762833508d396 (patch) | |
tree | 17dcfed35c8a319876e0d0d0c695efed3ab32610 /sci-libs/blas-atlas | |
parent | use get_libdir for locating nsplugin configuration, thanks to Donnie Berkhol... (diff) | |
download | historical-51a9d75b8c1f2fceadfb40d03f7762833508d396.tar.gz historical-51a9d75b8c1f2fceadfb40d03f7762833508d396.tar.bz2 historical-51a9d75b8c1f2fceadfb40d03f7762833508d396.zip |
Version bump and removed old ebuilds. Also fixed missing quoting in all ebuilds.
Package-Manager: portage-2.1.3.12
Diffstat (limited to 'sci-libs/blas-atlas')
21 files changed, 434 insertions, 608 deletions
diff --git a/sci-libs/blas-atlas/ChangeLog b/sci-libs/blas-atlas/ChangeLog index 796d4b9abb61..1f83e63bd5bf 100644 --- a/sci-libs/blas-atlas/ChangeLog +++ b/sci-libs/blas-atlas/ChangeLog @@ -1,6 +1,20 @@ # ChangeLog for sci-libs/blas-atlas # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/ChangeLog,v 1.65 2007/07/24 16:17:58 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/ChangeLog,v 1.66 2007/10/10 10:02:14 markusle Exp $ + +*blas-atlas-3.7.39 (09 Oct 2007) + + 09 Oct 2007; Markus Dittrich <markusle@gentoo.org> + -blas-atlas-3.7.31.ebuild, -blas-atlas-3.7.32.ebuild, + -blas-atlas-3.6.0.ebuild, +blas-atlas-3.7.39.ebuild, + +files/blas.pc.in, +files/cblas.pc.in, + +files/eselect.blas.atlas, +files/eselect.blas.threaded-atlas, + +files/eselect.cblas.atlas, +files/eselect.cblas.threaded-atlas, + +files/atlas-3.7.39-decl-fix.patch, + blas-atlas-3.6.0-r1.ebuild, blas-atlas-3.6.0-r2.ebuild, + blas-atlas-3.7.11.ebuild, blas-atlas-3.7.11-r1.ebuild: + Version bump and removed old ebuilds. Also fixed missing + quoting in all ebuilds. *blas-atlas-3.7.34 (24 Jul 2007) diff --git a/sci-libs/blas-atlas/blas-atlas-3.6.0-r1.ebuild b/sci-libs/blas-atlas/blas-atlas-3.6.0-r1.ebuild index f404508e6a83..4a8013495686 100644 --- a/sci-libs/blas-atlas/blas-atlas-3.6.0-r1.ebuild +++ b/sci-libs/blas-atlas/blas-atlas-3.6.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.6.0-r1.ebuild,v 1.13 2007/07/13 06:57:51 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.6.0-r1.ebuild,v 1.14 2007/10/10 10:02:14 markusle Exp $ inherit eutils toolchain-funcs @@ -39,14 +39,14 @@ pkg_setup() { src_unpack() { unpack ${A} - cd ${S} + cd "${S}" - epatch ${FILESDIR}/unbuffered.patch - epatch ${DISTDIR}/atlas3.6.0-shared-libs.1.patch.bz2 - epatch ${FILESDIR}/${PV}-ppc-configure.patch + epatch "${FILESDIR}"/unbuffered.patch + epatch "${DISTDIR}"/atlas3.6.0-shared-libs.1.patch.bz2 + epatch "${FILESDIR}"/${PV}-ppc-configure.patch sed -i -e "s:ASM:ASM VOLATILE:" include/contrib/camm_dpa.h || die "sed failed to fix clobbering" - cp ${FILESDIR}/war ${S} - chmod a+x ${S}/war + cp "${FILESDIR}"/war "${S}" + chmod a+x "${S}"/war } atlas_fail() { @@ -124,32 +124,32 @@ src_compile() { src_install () { dodir ${RPATH}/atlas - cd ${S}/gentoo/libs - cp -P libatlas* ${D}/${DESTTREE}/lib - cp -P *blas* ${D}/${RPATH}/atlas #the rest really + cd "${S}"/gentoo/libs + cp -P libatlas* "${D}/${DESTTREE}"/lib + cp -P *blas* "${D}/${RPATH}"/atlas #the rest really insinto ${RPATH} - doins ${FILESDIR}/c-ATLAS ${FILESDIR}/f77-ATLAS + doins "${FILESDIR}"/c-ATLAS "${FILESDIR}"/f77-ATLAS - if [ -d ${S}/gentoo/threaded-libs ] + if [ -d "${S}"/gentoo/threaded-libs ] then dodir ${RPATH}/threaded-atlas - cd ${S}/gentoo/threaded-libs - cp -P * ${D}/${RPATH}/threaded-atlas - doins ${FILESDIR}/c-threaded-ATLAS ${FILESDIR}/f77-threaded-ATLAS + cd "${S}"/gentoo/threaded-libs + cp -P * "${D}/${RPATH}"/threaded-atlas + doins "${FILESDIR}"/c-threaded-ATLAS "${FILESDIR}"/f77-threaded-ATLAS fi insinto ${DESTTREE}/include/atlas - doins ${S}/include/cblas.h ${S}/include/atlas_misc.h - doins ${S}/include/atlas_enum.h + doins "${S}"/include/cblas.h "${S}"/include/atlas_misc.h + doins "${S}"/include/atlas_enum.h # These headers contain the architecture-specific optimizations determined # by ATLAS. The atlas-lapack build is much shorter if they are available, # so save them: - doins ${S}/include/${ATLAS_ARCH}/*.h + doins "${S}"/include/${ATLAS_ARCH}/*.h #some docs - cd ${S} + cd "${S}" dodoc README doc/{AtlasCredits.txt,ChangeLog} use doc && dodoc doc/*.ps } diff --git a/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild b/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild index 0ebf8049ce70..b61bd5be2dce 100644 --- a/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild +++ b/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild,v 1.8 2007/07/22 15:36:23 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.6.0-r2.ebuild,v 1.9 2007/10/10 10:02:14 markusle Exp $ inherit eutils toolchain-funcs @@ -39,14 +39,14 @@ pkg_setup() { src_unpack() { unpack ${A} - cd ${S} + cd "${S}" - epatch ${FILESDIR}/unbuffered.patch - epatch ${DISTDIR}/atlas3.6.0-shared-libs.1.patch.bz2 - epatch ${FILESDIR}/${PV}-ppc-configure.patch + epatch "${FILESDIR}"/unbuffered.patch + epatch "${DISTDIR}"/atlas3.6.0-shared-libs.1.patch.bz2 + epatch "${FILESDIR}"/${PV}-ppc-configure.patch sed -i -e "s:ASM:ASM VOLATILE:" include/contrib/camm_dpa.h || die "sed failed to fix clobbering" - cp ${FILESDIR}/war ${S} - chmod a+x ${S}/war + cp "${FILESDIR}"/war "${S}" + chmod a+x "${S}"/war } atlas_fail() { @@ -124,33 +124,33 @@ src_compile() { src_install () { dodir ${RPATH}/atlas - cd ${S}/gentoo/libs - cp -P libatlas* ${D}/${DESTTREE}/lib - cp -P *blas* ${D}/${RPATH}/atlas #the rest really + cd "${S}"/gentoo/libs + cp -P libatlas* "${D}/${DESTTREE}"/lib + cp -P *blas* "${D}/${RPATH}"/atlas #the rest really - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas atlas - if [ -d ${S}/gentoo/threaded-libs ] + if [ -d "${S}"/gentoo/threaded-libs ] then dodir ${RPATH}/threaded-atlas - cd ${S}/gentoo/threaded-libs - cp -P * ${D}/${RPATH}/threaded-atlas - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas-threaded threaded-atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas-threaded threaded-atlas + cd "${S}"/gentoo/threaded-libs + cp -P * "${D}/${RPATH}"/threaded-atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas-threaded threaded-atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas-threaded threaded-atlas fi insinto ${DESTTREE}/include/atlas - doins ${S}/include/cblas.h ${S}/include/atlas_misc.h - doins ${S}/include/atlas_enum.h + doins "${S}"/include/cblas.h "${S}"/include/atlas_misc.h + doins "${S}"/include/atlas_enum.h # These headers contain the architecture-specific optimizations determined # by ATLAS. The atlas-lapack build is much shorter if they are available, # so save them: - doins ${S}/include/${ATLAS_ARCH}/*.h + doins "${S}"/include/${ATLAS_ARCH}/*.h #some docs - cd ${S} + cd "${S}" dodoc README doc/{AtlasCredits.txt,ChangeLog} use doc && dodoc doc/*.ps } @@ -172,7 +172,7 @@ pkg_postinst() { elog elog "Fortran users link using -lblas" elog - elog "C users compile against the header ${ROOT}usr/include/atlas/cblas.h and" + elog "C users compile against the header "${ROOT}"usr/include/atlas/cblas.h and" elog "link using -lcblas" elog elog "If using threaded ATLAS, you may also need to link with -lpthread." diff --git a/sci-libs/blas-atlas/blas-atlas-3.6.0.ebuild b/sci-libs/blas-atlas/blas-atlas-3.6.0.ebuild deleted file mode 100644 index ec00f42ed9e4..000000000000 --- a/sci-libs/blas-atlas/blas-atlas-3.6.0.ebuild +++ /dev/null @@ -1,169 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.6.0.ebuild,v 1.8 2007/03/13 00:24:34 kugelfang Exp $ - -inherit eutils toolchain-funcs - -DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" -HOMEPAGE="http://math-atlas.sourceforge.net/" -MY_PN=${PN/blas-/} -SRC_URI="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2 - mirror://gentoo/atlas${PV}-shared-libs.patch.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="alpha amd64 ppc ppc64 sparc x86" -IUSE="doc" - -DEPEND="sci-libs/blas-config - >=sys-devel/libtool-1.5" - -RDEPEND="" - -PROVIDE="virtual/blas" - -S=${WORKDIR}/ATLAS - -pkg_setup() { - if [[ -z `type -P g77` ]]; then - eerror "No fortran compiler found on the system!" - eerror "Please add fortran to your USE flags and reemerge gcc!" - die - fi -} - -src_unpack() { - unpack ${A} - - cd ${S} - - epatch ${FILESDIR}/unbuffered.patch - epatch ${DISTDIR}/atlas3.6.0-shared-libs.patch.bz2 - sed -i -e "s:ASM:ASM VOLATILE:" include/contrib/camm_dpa.h || die "sed failed to fix clobbering" - cp ${FILESDIR}/war ${S} - chmod a+x ${S}/war -} - -atlas_fail() { - eerror - eerror "ATLAS auto-config failed." - eerror "Please run 'interactive=1 emerge blas-atlas' to configure manually." - eerror - die "ATLAS auto-config failed." -} - -# Added to allow compilation on sparc architecture. The default CCFLAG0 -# and MMFLAGS are *bad*. -# Danny van Dyk <kugelfang@gentoo.org> 2004/07/02 -# -reconfigure() { - case "`uname -p`" in - "sun4m") - MY_CCFLAGS="-O3 -mcpu=v8" - MY_CXXFLAGS="${MY_CCFLAGS}" - MY_MMFLAGS="-O -mcpu=v8" - MY_LDFLAGS="" - ;; - "sun4u") - MY_CCFLAGS="-O3 -mcpu=ultrasparc" - MY_CXXFLAGS="${MY_CCFLAGS}" - MY_MMFLAGS="-O -mcpu=ultrasparc" - MY_LDFLAGS="" - ;; - *) - MY_CCFLAGS="${CFLAGS}" - MY_CXXFLAGS="${CXXFLAGS}" - MY_MMFLAGS="${CFLAGS}" - MY_LDFLAGS="${LDFLAGS}" - ;; - esac - - MY_FILE="`find -name Make.Linux*`" - - sed -i -e "s/CCFLAG0 =.*/CCFLAG0 = \$(CDEFS) ${MY_CCFLAGS}/" \ - -e "s/CCFLAGS =.*/CCFLAGS = \$(CDEFS) ${MY_CCFLAGS}/" \ - -e "s/CLINKFLAGS =.*/CLINKFLAGS =\$(CDEFS) ${MY_LDFLAGS}/" \ - -e "s/XCCFLAGS =.*/XCCFLAGS =\$(CDEFS) ${MY_CXXFLAGS}/" \ - -e "s/MMFLAGS =.*/MMFLAGS = ${MY_MMFLAGS}/" \ - ${MY_FILE} || die "sed didnt complete" - -} - -src_compile() { - # Libraries will be installed in ${RPATH}/atlas and ${RPATH}/threaded-atlas: - RPATH="${DESTTREE}/lib/blas" - - if [ -n "${interactive}" ] - then - echo "${interactive}" - make config CC="$(tc-getCC) -DUSE_LIBTOOL -DINTERACTIVE" || die - else - # Use ATLAS defaults for all questions: - (echo | make config CC="$(tc-getCC) -DUSE_LIBTOOL") || atlas_fail - fi - - reconfigure - - TMPSTR=$(ls Make.Linux*) - ATLAS_ARCH=${TMPSTR#'Make.'} - - make install arch=${ATLAS_ARCH} || die - - make shared-strip arch=${ATLAS_ARCH} RPATH=${RPATH}/atlas || die - - # Build shared versions of the threaded libs. - # ATLAS only compiles threaded libs on multiprocessor machines. - if [ -d gentoo/libptf77blas.a ] - then - make ptshared-strip \ - arch=${ATLAS_ARCH} RPATH=${RPATH}/threaded-atlas || die - fi -} - -src_install () { - dodir ${RPATH}/atlas - cd ${S}/gentoo/libs - cp -P libatlas* ${D}/${DESTTREE}/lib - cp -P *blas* ${D}/${RPATH}/atlas #the rest really - - insinto ${RPATH} - doins ${FILESDIR}/c-ATLAS ${FILESDIR}/f77-ATLAS - - if [ -d ${S}/gentoo/threaded-libs ] - then - dodir ${RPATH}/threaded-atlas - cd ${S}/gentoo/threaded-libs - cp -P * ${D}/${RPATH}/threaded-atlas - doins ${FILESDIR}/c-threaded-ATLAS ${FILESDIR}/f77-threaded-ATLAS - fi - - insinto ${DESTTREE}/include/atlas - doins ${S}/include/cblas.h ${S}/include/atlas_misc.h - doins ${S}/include/atlas_enum.h - - # These headers contain the architecture-specific optimizations determined - # by ATLAS. The atlas-lapack build is much shorter if they are available, - # so save them: - doins ${S}/include/${ATLAS_ARCH}/*.h - - #some docs - cd ${S} - dodoc README doc/{AtlasCredits.txt,ChangeLog} - use doc && dodoc doc/*.ps -} - -pkg_postinst() { - if [ -d ${RPATH}/threaded-atlas ] - then - ${DESTTREE}/bin/blas-config threaded-ATLAS - else - ${DESTTREE}/bin/blas-config ATLAS - fi - - einfo - einfo "Fortran users link using -lblas" - einfo - einfo "C users compile against the header /usr/include/atlas/cblas.h and" - einfo "link using -lcblas" - einfo -} diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.11-r1.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.11-r1.ebuild index 2798a0c0afe5..30c0b7a6e7ed 100644 --- a/sci-libs/blas-atlas/blas-atlas-3.7.11-r1.ebuild +++ b/sci-libs/blas-atlas/blas-atlas-3.7.11-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.11-r1.ebuild,v 1.14 2007/07/22 15:36:23 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.11-r1.ebuild,v 1.15 2007/10/10 10:02:14 markusle Exp $ inherit eutils toolchain-funcs fortran @@ -28,7 +28,7 @@ FORTRAN="g77 gfortran" src_unpack() { unpack ${A} - cd ${S} + cd "${S}" epatch "${FILESDIR}"/unbuffered.patch epatch "${FILESDIR}"/${PV}-allow-any-gcc-version.patch @@ -38,15 +38,15 @@ src_unpack() { sed -i \ -e "s:\(\t./xconfig\):\1 -m $(tc-getCC) -c $(tc-getCC) -f ${FORTRANC}:g" \ - ${S}/Makefile \ + "${S}"/Makefile \ || die "Failed to fix compilers" if [[ $(gcc-major-version) -ge 4 ]]; then einfo "Updating Makefiles for gcc-4" sed -i \ -e "s:g2c:gfortran:g" \ - ${S}/Make.top \ - ${S}/makes/Make.lib \ + "${S}"/Make.top \ + "${S}"/makes/Make.lib \ || die "Failed to update for gcc-4" fi @@ -145,8 +145,8 @@ src_install () { cp -P *blas* "${D}/${RPATH}"/atlas || \ die "Failed to install blas/cblas" - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas atlas if [ -d "${S}"/gentoo/threaded-libs ] then @@ -155,8 +155,8 @@ src_install () { cp -P * "${D}/${RPATH}"/threaded-atlas || \ die "Failed to install threaded atlas" - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas-threaded threaded-atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas-threaded threaded-atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas-threaded threaded-atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas-threaded threaded-atlas fi insinto "${DESTTREE}"/include/atlas @@ -191,7 +191,7 @@ pkg_postinst() { elog elog "Fortran users link using -lblas" elog - elog "C users compile against the header ${ROOT}usr/include/atlas/cblas.h and" + elog "C users compile against the header "${ROOT}"usr/include/atlas/cblas.h and" elog "link using -lcblas" elog elog "If using threaded ATLAS, you may also need to link with -lpthread." diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.11.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.11.ebuild index 15fc344166a0..212f2791ea6a 100644 --- a/sci-libs/blas-atlas/blas-atlas-3.7.11.ebuild +++ b/sci-libs/blas-atlas/blas-atlas-3.7.11.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.11.ebuild,v 1.19 2007/07/13 06:57:51 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.11.ebuild,v 1.20 2007/10/10 10:02:14 markusle Exp $ inherit eutils toolchain-funcs fortran @@ -27,7 +27,7 @@ FORTRAN="g77 gfortran" src_unpack() { unpack ${A} - cd ${S} + cd "${S}" epatch "${FILESDIR}"/unbuffered.patch epatch "${FILESDIR}"/${PV}-allow-any-gcc-version.patch @@ -40,15 +40,15 @@ src_unpack() { sed -i \ -e "s:\(\t./xconfig\):\1 -m $(tc-getCC) -c $(tc-getCC) -f ${FORTRANC}:g" \ - ${S}/Makefile \ + "${S}"/Makefile \ || die "Failed to fix compilers" if [[ $(gcc-major-version) -ge 4 ]]; then einfo "Updating Makefiles for gcc-4" sed -i \ -e "s:g2c:gfortran:g" \ - ${S}/Make.top \ - ${S}/makes/Make.lib \ + "${S}"/Make.top \ + "${S}"/makes/Make.lib \ || die "Failed to update for gcc-4" fi diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.31.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.31.ebuild deleted file mode 100644 index 11616e471541..000000000000 --- a/sci-libs/blas-atlas/blas-atlas-3.7.31.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.31.ebuild,v 1.3 2007/07/13 06:57:51 mr_bones_ Exp $ - -inherit eutils toolchain-funcs fortran - -DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" -HOMEPAGE="http://math-atlas.sourceforge.net/" -MY_PN=${PN/blas-/} -SRC_URI="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2 - mirror://gentoo/${MY_PN}-3.7.23-shared-libs.patch.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="doc" - -RDEPEND="app-admin/eselect-blas - app-admin/eselect-cblas" -DEPEND="${RDEPEND} - >=sys-devel/libtool-1.5" -PROVIDE="virtual/blas" - -S="${WORKDIR}/ATLAS" -BLD_DIR="${S}/gentoo-build" -RPATH="${DESTTREE}/$(get_libdir)/blas" -FORTRAN="g77 gfortran" - -pkg_setup() { - fortran_pkg_setup - echo - ewarn "Please make sure to disable CPU throttling completely" - ewarn "during the compile of blas-atlas. Otherwise, all atlas" - ewarn "generated timings will be completely random and the" - ewarn "performance of the resulting libraries will be degraded" - ewarn "considerably." - echo - ewarn "For users of <=gcc-4.1.1 only:" - ewarn "If you experience failing SANITY tests during" - ewarn "atlas' compile please try passing -mfpmath=387; this" - ewarn "option might also result in much better performance" - ewarn "than using then sse instruction set depending on your" - ewarn "CPU." - echo - epause 10 -} - -src_unpack() { - unpack ${A} - cd ${S} - - epatch "${DISTDIR}"/${MY_PN}-3.7.23-shared-libs.patch.bz2 - epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch - - # make sure shared libs link against proper libraries - if [[ ${FORTRANC} == "gfortran" ]]; then - libs="${LDFLAGS} -lpthread -lgfortran" - else - libs="${LDFLAGS} -lpthread -lg2c" - fi - - #increase amount of workspace to improve threaded performance - sed -e "s:16777216:167772160:" -i include/atlas_lvl3.h || - die "Failed to fix ATL_MaxMalloc" - - sed -e "s:SHRD_LNK:${libs}:g" -i Make.top || \ - die "Failed to add addtional libs to shared object build" - - sed -e "s:= gcc:= $(tc-getCC) ${CFLAGS}:" \ - -i CONFIG/src/SpewMakeInc.c || die "Failed to fix Spewmake" - - mkdir ${BLD_DIR} || die "failed to generate build directory" - cp "${FILESDIR}"/war ${BLD_DIR} && chmod a+x ${BLD_DIR}/war || \ - die "failed to install war" - - # force proper 32/64bit libs - local archselect - if [[ "${ARCH}" == "amd64" || "${ARCH}" == "ppc64" ]]; then - archselect="-b 64" - elif [ "${ARCH}" == "alpha" ]; then - archselect="" - else - archselect="-b 32" - fi - - # set up compiler/flags using atlas' native configure - local compdefs - compdefs="${compdefs} -C xc '$(tc-getCC)' -F xc '${CFLAGS}'" - compdefs="${compdefs} -C ic '$(tc-getCC)' -F ic '${CFLAGS}'" - compdefs="${compdefs} -C sk '$(tc-getCC)' -F sk '${CFLAGS}'" - compdefs="${compdefs} -C dk '$(tc-getCC)' -F dk '${CFLAGS}'" - compdefs="${compdefs} -C sm '$(tc-getCC)' -F sm '${CFLAGS}'" - compdefs="${compdefs} -C dm '$(tc-getCC)' -F dm '${CFLAGS}'" - compdefs="${compdefs} -C if '${FORTRANC}' -F if '${FFLAGS}'" - compdefs="${compdefs} -Ss pmake '\$(MAKE) ${MAKEOPTS}'" - compdefs="${compdefs} -Si cputhrchk 0 ${archselect}" - - cd ${BLD_DIR} && ../configure ${compdefs} \ - || die "configure failed" -} - -src_compile() { - cd ${BLD_DIR} - emake -j1 || die "make failed" - - make shared-strip RPATH=${RPATH}/atlas || \ - die "failed to build shared libraries" - - # build shared libraries of threaded libraries if applicable - if [ -d gentoo/libptf77blas.a ]; then - make ptshared-strip RPATH=${RPATH}/threaded-atlas || \ - die "failed to build threaded shared libraries" - fi -} - -src_install () { - dodir "${RPATH}"/atlas - cd ${BLD_DIR}/gentoo/libs - cp -P libatlas* "${D}/${DESTTREE}/$(get_libdir)" || \ - die "Failed to install libatlas" - cp -P *blas* "${D}/${RPATH}"/atlas || \ - die "Failed to install blas/cblas" - - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas atlas - - if [ -d ${BLD_DIR}/gentoo/threaded-libs ] - then - dodir "${RPATH}"/threaded-atlas - cd ${BLD_DIR}/gentoo/threaded-libs - cp -P * "${D}/${RPATH}"/threaded-atlas || \ - die "Failed to install threaded atlas" - - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas-threaded threaded-atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas-threaded threaded-atlas - fi - - insinto "${DESTTREE}"/include/atlas - doins "${S}"/include/cblas.h "${S}"/include/atlas_misc.h \ - "${S}"/include/atlas_enum.h || \ - die "failed to install headers" - - # These headers contain the architecture-specific - # optimizations determined by ATLAS. The atlas-lapack build - # is much shorter if they are available, so save them: - doins ${BLD_DIR}/include/*.h || \ - die "failed to install timing headers" - - #some docs - cd "${S}" - dodoc README doc/{AtlasCredits.txt,ChangeLog} - use doc && dodoc doc/*.ps -} - -pkg_postinst() { - local THREADED - - if [ -d "${RPATH}"/threaded-atlas ] - then - THREADED="threaded-" - fi - if [[ -z "$(eselect blas show)" ]]; then - eselect blas set ${THREADED}atlas - fi - if [[ -z "$(eselect cblas show)" ]]; then - eselect cblas set ${THREADED}atlas - fi - - elog - elog "Fortran users link using -lblas" - elog - elog "C users compile against the header ${ROOT}usr/include/atlas/cblas.h and" - elog "link using -lcblas" - elog - elog "If using threaded ATLAS, you may also need to link with -lpthread." - elog - elog "Configuration now uses eselect rather than blas-config." -} diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.32.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.32.ebuild deleted file mode 100644 index 4b4001cb62c1..000000000000 --- a/sci-libs/blas-atlas/blas-atlas-3.7.32.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.32.ebuild,v 1.3 2007/07/13 06:57:51 mr_bones_ Exp $ - -inherit eutils toolchain-funcs fortran - -DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" -HOMEPAGE="http://math-atlas.sourceforge.net/" -MY_PN=${PN/blas-/} -SRC_URI="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2 - mirror://gentoo/${MY_PN}-3.7.23-shared-libs.patch.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="doc" - -RDEPEND="app-admin/eselect-blas - app-admin/eselect-cblas" -DEPEND="${RDEPEND} - >=sys-devel/libtool-1.5" -PROVIDE="virtual/blas" - -S="${WORKDIR}/ATLAS" -BLD_DIR="${S}/gentoo-build" -RPATH="${DESTTREE}/$(get_libdir)/blas" -FORTRAN="g77 gfortran" - -pkg_setup() { - fortran_pkg_setup - echo - ewarn "Please make sure to disable CPU throttling completely" - ewarn "during the compile of blas-atlas. Otherwise, all atlas" - ewarn "generated timings will be completely random and the" - ewarn "performance of the resulting libraries will be degraded" - ewarn "considerably." - echo - ewarn "For users of <=gcc-4.1.1 only:" - ewarn "If you experience failing SANITY tests during" - ewarn "atlas' compile please try passing -mfpmath=387; this" - ewarn "option might also result in much better performance" - ewarn "than using then sse instruction set depending on your" - ewarn "CPU." - echo - epause 10 -} - -src_unpack() { - unpack ${A} - cd ${S} - - epatch "${DISTDIR}"/${MY_PN}-3.7.23-shared-libs.patch.bz2 - epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch - - # make sure shared libs link against proper libraries - if [[ ${FORTRANC} == "gfortran" ]]; then - libs="${LDFLAGS} -lpthread -lgfortran" - else - libs="${LDFLAGS} -lpthread -lg2c" - fi - - #increase amount of workspace to improve threaded performance - sed -e "s:16777216:167772160:" -i include/atlas_lvl3.h || - die "Failed to fix ATL_MaxMalloc" - - sed -e "s:SHRD_LNK:${libs}:g" -i Make.top || \ - die "Failed to add addtional libs to shared object build" - - sed -e "s:= gcc:= $(tc-getCC) ${CFLAGS}:" \ - -i CONFIG/src/SpewMakeInc.c || die "Failed to fix Spewmake" - - mkdir ${BLD_DIR} || die "failed to generate build directory" - cp "${FILESDIR}"/war ${BLD_DIR} && chmod a+x ${BLD_DIR}/war || \ - die "failed to install war" - - # force proper 32/64bit libs - local archselect - if [[ "${ARCH}" == "amd64" || "${ARCH}" == "ppc64" ]]; then - archselect="-b 64" - elif [ "${ARCH}" == "alpha" ]; then - archselect="" - else - archselect="-b 32" - fi - - # set up compiler/flags using atlas' native configure - local compdefs - compdefs="${compdefs} -C xc '$(tc-getCC)' -F xc '${CFLAGS}'" - compdefs="${compdefs} -C ic '$(tc-getCC)' -F ic '${CFLAGS}'" - compdefs="${compdefs} -C sk '$(tc-getCC)' -F sk '${CFLAGS}'" - compdefs="${compdefs} -C dk '$(tc-getCC)' -F dk '${CFLAGS}'" - compdefs="${compdefs} -C sm '$(tc-getCC)' -F sm '${CFLAGS}'" - compdefs="${compdefs} -C dm '$(tc-getCC)' -F dm '${CFLAGS}'" - compdefs="${compdefs} -C if '${FORTRANC}' -F if '${FFLAGS}'" - compdefs="${compdefs} -Ss pmake '\$(MAKE) ${MAKEOPTS}'" - compdefs="${compdefs} -Si cputhrchk 0 ${archselect}" - - cd ${BLD_DIR} && ../configure ${compdefs} \ - || die "configure failed" -} - -src_compile() { - cd ${BLD_DIR} - emake -j1 || die "make failed" - - make shared-strip RPATH=${RPATH}/atlas || \ - die "failed to build shared libraries" - - # build shared libraries of threaded libraries if applicable - if [ -d gentoo/libptf77blas.a ]; then - make ptshared-strip RPATH=${RPATH}/threaded-atlas || \ - die "failed to build threaded shared libraries" - fi -} - -src_install () { - dodir "${RPATH}"/atlas - cd ${BLD_DIR}/gentoo/libs - cp -P libatlas* "${D}/${DESTTREE}/$(get_libdir)" || \ - die "Failed to install libatlas" - cp -P *blas* "${D}/${RPATH}"/atlas || \ - die "Failed to install blas/cblas" - - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas atlas - - if [ -d ${BLD_DIR}/gentoo/threaded-libs ] - then - dodir "${RPATH}"/threaded-atlas - cd ${BLD_DIR}/gentoo/threaded-libs - cp -P * "${D}/${RPATH}"/threaded-atlas || \ - die "Failed to install threaded atlas" - - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas-threaded threaded-atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas-threaded threaded-atlas - fi - - insinto "${DESTTREE}"/include/atlas - doins "${S}"/include/cblas.h "${S}"/include/atlas_misc.h \ - "${S}"/include/atlas_enum.h || \ - die "failed to install headers" - - # These headers contain the architecture-specific - # optimizations determined by ATLAS. The atlas-lapack build - # is much shorter if they are available, so save them: - doins ${BLD_DIR}/include/*.h || \ - die "failed to install timing headers" - - #some docs - cd "${S}" - dodoc README doc/{AtlasCredits.txt,ChangeLog} - use doc && dodoc doc/*.ps -} - -pkg_postinst() { - local THREADED - - if [ -d "${RPATH}"/threaded-atlas ] - then - THREADED="threaded-" - fi - if [[ -z "$(eselect blas show)" ]]; then - eselect blas set ${THREADED}atlas - fi - if [[ -z "$(eselect cblas show)" ]]; then - eselect cblas set ${THREADED}atlas - fi - - elog - elog "Fortran users link using -lblas" - elog - elog "C users compile against the header ${ROOT}usr/include/atlas/cblas.h and" - elog "link using -lcblas" - elog - elog "If using threaded ATLAS, you may also need to link with -lpthread." - elog - elog "Configuration now uses eselect rather than blas-config." -} diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.34.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.34.ebuild index 8520c41c7715..f6fd250d83a7 100644 --- a/sci-libs/blas-atlas/blas-atlas-3.7.34.ebuild +++ b/sci-libs/blas-atlas/blas-atlas-3.7.34.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.34.ebuild,v 1.1 2007/07/24 16:17:58 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.34.ebuild,v 1.2 2007/10/10 10:02:14 markusle Exp $ inherit eutils toolchain-funcs fortran @@ -46,8 +46,8 @@ pkg_setup() { } src_unpack() { - unpack ${A} - cd ${S} + unpack "${A}" + cd "${S}" epatch "${DISTDIR}"/${MY_PN}-${PV}-shared-libs.patch.bz2 epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch @@ -121,8 +121,8 @@ src_install () { cp -P *blas* "${D}/${RPATH}"/atlas || \ die "Failed to install blas/cblas" - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas atlas if [ -d ${BLD_DIR}/gentoo/threaded-libs ] then @@ -131,8 +131,8 @@ src_install () { cp -P * "${D}/${RPATH}"/threaded-atlas || \ die "Failed to install threaded atlas" - eselect blas add $(get_libdir) ${FILESDIR}/eselect.blas-threaded threaded-atlas - eselect cblas add $(get_libdir) ${FILESDIR}/eselect.cblas-threaded threaded-atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas-threaded threaded-atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas-threaded threaded-atlas fi insinto "${DESTTREE}"/include/atlas @@ -169,7 +169,7 @@ pkg_postinst() { elog elog "Fortran users link using -lblas" elog - elog "C users compile against the header ${ROOT}usr/include/atlas/cblas.h and" + elog "C users compile against the header "${ROOT}"usr/include/atlas/cblas.h and" elog "link using -lcblas" elog elog "If using threaded ATLAS, you may also need to link with -lpthread." diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.39.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.39.ebuild new file mode 100644 index 000000000000..bc2cdf7a5ad8 --- /dev/null +++ b/sci-libs/blas-atlas/blas-atlas-3.7.39.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-atlas/blas-atlas-3.7.39.ebuild,v 1.1 2007/10/10 10:02:14 markusle Exp $ + +inherit eutils toolchain-funcs fortran multilib + +DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" +HOMEPAGE="http://math-atlas.sourceforge.net/" +MY_PN=${PN/blas-/} +SRC_URI="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2 + mirror://gentoo/${MY_PN}-${PV}-shared-libs.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +RDEPEND="app-admin/eselect-blas + app-admin/eselect-cblas + dev-util/pkgconfig + doc? ( app-doc/blas-docs )" + +DEPEND="app-admin/eselect-blas + app-admin/eselect-cblas + >=sys-devel/libtool-1.5" + +S="${WORKDIR}/ATLAS" + +pkg_setup() { + # icc won't compile (as of icc-10.0.026) + # and will blow out $PORTAGE_TMPDIR + if [[ $(tc-getCC) = icc* ]]; then + eerror "icc compiler is not supported with sci-libs/blas-atlas" + die "blas-atlas won't compile with icc" + fi + + FORTRAN="g77 gfortran ifc" + fortran_pkg_setup + echo + ewarn "Please make sure to disable CPU throttling completely" + ewarn "during the compile of blas-atlas. Otherwise, all atlas" + ewarn "generated timings will be completely random and the" + ewarn "performance of the resulting libraries will be degraded" + ewarn "considerably." + echo + ewarn "For users of <=gcc-4.1.1 only:" + ewarn "If you experience failing SANITY tests during" + ewarn "atlas' compile please try passing -mfpmath=387; this" + ewarn "option might also result in much better performance" + ewarn "than using then sse instruction set depending on your" + ewarn "CPU." + echo + epause 10 +} + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${DISTDIR}"/${MY_PN}-${PV}-shared-libs.patch.bz2 + epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch + epatch "${FILESDIR}"/${MY_PN}-${PV}-decl-fix.patch + + BLD_DIR="${S}"/gentoo-build + mkdir "${BLD_DIR}" || die "failed to generate build directory" + cd "${BLD_DIR}" + cp "${FILESDIR}"/war . && chmod a+x war || die "failed to install war" + + local archselect= + if use amd64 || use ppc64; then + archselect="-b 64" + elif use alpha; then + archselect="" + else + archselect="-b 32" + fi + + ../configure \ + --cc="$(tc-getCC)" \ + --cflags="${CFLAGS}" \ + --prefix="${D}/${DESTTREE}" \ + --libdir="${D}/${DESTTREE}"/$(get_libdir)/atlas \ + --incdir="${D}/${DESTTREE}"/include \ + -C ac "$(tc-getCC)" -F ac "${CFLAGS}" \ + -C if ${FORTRANC} -F if "${FFLAGS:--O2}" \ + -Ss pmake "\$(MAKE) ${MAKEOPTS}" \ + -Si cputhrchk 0 ${archselect} \ + || die "configure failed" +} + +src_compile() { + cd "${BLD_DIR}" + + # atlas does its own parallel builds + emake -j1 || die "emake failed" + + RPATH="${DESTTREE}"/$(get_libdir)/blas + make \ + LIBDIR=$(get_libdir) \ + RPATH="${RPATH}"/atlas \ + shared || die "failed to build shared libraries" + + # build shared libraries of threaded libraries if applicable + if [[ -d gentoo/libptcblas.a ]]; then + make \ + LIBDIR=$(get_libdir) \ + RPATH="${RPATH}"/threaded-atlas \ + ptshared || die "failed to build threaded shared libraries" + fi +} + +src_test() { + # make check does not work because + # we don't build lapack libs + for i in F77 C; do + einfo "Testing ${i} interface" + cd "${BLD_DIR}"/interfaces/blas/${i}/testing + make sanity_test || die "emake tests for ${i} failed" + if [[ -d "${BLD_DIR}"/gentoo/libptf77blas.a ]]; then + make ptsanity_test || die "emake tests threaded for ${i}failed" + fi + done + echo "Timing ATLAS" + cd "${BLD_DIR}" + emake time || die "emake time failed" +} + +src_install () { + dodir "${RPATH}"/atlas + cd "${BLD_DIR}"/gentoo/libs + cp -P libatlas* "${D}/${DESTTREE}"/$(get_libdir) \ + || die "Failed to install libatlas" + + # pkgconfig files + local extlibs="-lm" + local threadlibs + [[ ${FORTRANC} == gfortran ]] && extlibs="${extlibs} -lgfortran" + [[ ${FORTRANC} == g77 ]] && extlibs="${extlibs} -lg2c" + cp "${FILESDIR}"/blas.pc.in blas.pc + cp "${FILESDIR}"/cblas.pc.in cblas.pc + sed -i \ + -e "s:@LIBDIR@:$(get_libdir):" \ + -e "s:@PV@:${PV}:" \ + -e "s:@EXTLIBS@:${extlibs}:g" \ + -e "s:@THREADLIBS@:${threadlibs}:g" \ + *blas.pc || die "sed *blas.pc failed" + + cp -P *blas* "${D}/${RPATH}"/atlas \ + || die "Failed to install blas/cblas" + + ESELECT_PROF=atlas + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas.atlas ${ESELECT_PROF} + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.atlas ${ESELECT_PROF} + + if [[ -d "${BLD_DIR}"/gentoo/threaded-libs ]]; then + dodir "${RPATH}"/threaded-atlas + cd "${BLD_DIR}"/gentoo/threaded-libs + + # pkgconfig files + cp "${FILESDIR}"/blas.pc.in blas.pc + cp "${FILESDIR}"/cblas.pc.in cblas.pc + threadlibs="-lpthread" + sed -i \ + -e "s:@LIBDIR@:$(get_libdir):" \ + -e "s:@PV@:${PV}:" \ + -e "s:@EXTLIBS@:${extlibs}:g" \ + -e "s:@THREADLIBS@:${threadlibs}:g" \ + *blas.pc || die "sed *blas.pc failed" + + cp -P * "${D}/${RPATH}"/threaded-atlas \ + || die "Failed to install threaded atlas" + ESELECT_PROF=threaded-atlas + + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas.threaded-atlas ${ESELECT_PROF} + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.threaded-atlas ${ESELECT_PROF} + fi + + insinto "${DESTTREE}"/include/atlas + doins \ + "${S}"/include/cblas.h \ + "${S}"/include/atlas_misc.h \ + "${S}"/include/atlas_enum.h \ + || die "failed to install headers" + + # These headers contain the architecture-specific + # optimizations determined by ATLAS. The atlas-lapack build + # is much shorter if they are available, so save them: + doins "${BLD_DIR}"/include/*.h \ + || die "failed to install timing headers" + + # some docs + cd "${S}"/doc + dodoc INDEX.txt AtlasCredits.txt ChangeLog || die "dodoc failed" + # atlas specific doc (blas generic docs installed by blas-docs) + if use doc; then + insinto /usr/share/doc/${PF} + doins atlas*pdf cblasqref.pdf || die "doins docs failed" + fi +} + +pkg_postinst() { + for p in blas cblas; do + local current_p=$(eselect ${p} show | cut -d' ' -f2) + # uncomment when eselect bug #189942 is fixed, together with DEPEND + #if [[ -z ${current_p} || ${current_p} == ${ESELECT_PROF} ]]; then + # this snippet works around the eselect bug #189942 and makes + # sure that users upgrading from a previous blas-atlas + # version pick up the new pkg-config files + if [[ ${current_p} == atlas || ${current_p} == threaded-atlas ]]; then + local configfile="${ROOT}"/etc/env.d/${p}/lib/config + if [[ -e ${configfile} ]]; then + rm -f ${configfile} + eselect ${p} set ${ESELECT_PROF} + fi + fi + + if [[ -z ${current_p} ]]; then + eselect ${p} set ${ESELECT_PROF} + elog "${p} has been eselected to ${ESELECT_PROF}" + else + elog "Current eselected ${p} is ${current_p}" + elog "To use the ${p} ${ESELECT_PROF} implementation, you have to issue (as root):" + elog "\t eselect ${p} set ${ESELECT_PROF}" + fi + done +} diff --git a/sci-libs/blas-atlas/files/atlas-3.7.39-decl-fix.patch b/sci-libs/blas-atlas/files/atlas-3.7.39-decl-fix.patch new file mode 100644 index 000000000000..ba4b1bae5055 --- /dev/null +++ b/sci-libs/blas-atlas/files/atlas-3.7.39-decl-fix.patch @@ -0,0 +1,82 @@ +diff -Naur ATLAS/bin/atlas_waitfile.c ATLAS-new/bin/atlas_waitfile.c +--- ATLAS/bin/atlas_waitfile.c 2007-10-07 09:48:56.000000000 -0400 ++++ ATLAS-new/bin/atlas_waitfile.c 2007-10-09 10:57:13.000000000 -0400 +@@ -1,3 +1,4 @@ ++#include <stdlib.h> + #include <stdio.h> + + void PrintUsage(char *nam) +diff -Naur ATLAS/src/auxil/ATL_buildinfo.c ATLAS-new/src/auxil/ATL_buildinfo.c +--- ATLAS/src/auxil/ATL_buildinfo.c 2007-10-07 09:49:03.000000000 -0400 ++++ ATLAS-new/src/auxil/ATL_buildinfo.c 2007-10-09 10:56:10.000000000 -0400 +@@ -1,3 +1,4 @@ ++#include <stdio.h> + #include "atlas_buildinfo.h" + #include "atlas_cacheedge.h" + +diff -Naur ATLAS/tune/blas/gemm/usercomb.c ATLAS-new/tune/blas/gemm/usercomb.c +--- ATLAS/tune/blas/gemm/usercomb.c 2007-10-07 09:49:39.000000000 -0400 ++++ ATLAS-new/tune/blas/gemm/usercomb.c 2007-10-09 10:58:53.000000000 -0400 +@@ -29,6 +29,7 @@ + */ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #include <assert.h> + + int LineIsCont(char *ln) +diff -Naur ATLAS/tune/blas/gemv/gemvtune.c ATLAS-new/tune/blas/gemv/gemvtune.c +--- ATLAS/tune/blas/gemv/gemvtune.c 2007-10-07 09:49:39.000000000 -0400 ++++ ATLAS-new/tune/blas/gemv/gemvtune.c 2007-10-09 11:00:29.000000000 -0400 +@@ -36,6 +36,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <assert.h> ++#include <string.h> + + struct FA_allocs + { +diff -Naur ATLAS/tune/blas/gemv/mvsearch.c ATLAS-new/tune/blas/gemv/mvsearch.c +--- ATLAS/tune/blas/gemv/mvsearch.c 2007-10-07 09:49:39.000000000 -0400 ++++ ATLAS-new/tune/blas/gemv/mvsearch.c 2007-10-09 10:59:56.000000000 -0400 +@@ -32,6 +32,7 @@ + #include <stdlib.h> + #include <ctype.h> + #include <assert.h> ++#include <string.h> + #include "atlas_fopen.h" + + #define ATL_MVIsMM(iflag_) ( ((iflag_) | 8) == (iflag_) ) +diff -Naur ATLAS/tune/blas/ger/ger1tune.c ATLAS-new/tune/blas/ger/ger1tune.c +--- ATLAS/tune/blas/ger/ger1tune.c 2007-10-07 09:49:39.000000000 -0400 ++++ ATLAS-new/tune/blas/ger/ger1tune.c 2007-10-09 11:01:15.000000000 -0400 +@@ -36,6 +36,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <assert.h> ++#include <string.h> + + struct FA_allocs + { +diff -Naur ATLAS/tune/blas/ger/r1search.c ATLAS-new/tune/blas/ger/r1search.c +--- ATLAS/tune/blas/ger/r1search.c 2007-10-07 09:49:39.000000000 -0400 ++++ ATLAS-new/tune/blas/ger/r1search.c 2007-10-09 11:00:58.000000000 -0400 +@@ -31,6 +31,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <ctype.h> ++#include <string.h> + #include <assert.h> + #include "atlas_fopen.h" + +diff -Naur ATLAS/tune/sysinfo/masearch.c ATLAS-new/tune/sysinfo/masearch.c +--- ATLAS/tune/sysinfo/masearch.c 2007-10-07 09:49:39.000000000 -0400 ++++ ATLAS-new/tune/sysinfo/masearch.c 2007-10-09 10:57:58.000000000 -0400 +@@ -28,6 +28,7 @@ + * + */ + #include <stdio.h> ++#include <stdlib.h> + #include <assert.h> + + #define NTIM 3 diff --git a/sci-libs/blas-atlas/files/blas.pc.in b/sci-libs/blas-atlas/files/blas.pc.in new file mode 100644 index 000000000000..8c0eefe28acf --- /dev/null +++ b/sci-libs/blas-atlas/files/blas.pc.in @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/@LIBDIR@ +includedir=${prefix}/include + +Name: blas +Description: Automatically Tuned Linear Algebra Software F77 BLAS implementation +Version: @PV@ +URL: http://math-atlas.sourceforge.net/ +Libs: -L${libdir} -lblas -latlas @THREADLIBS@ +Libs.private: @EXTLIBS@ diff --git a/sci-libs/blas-atlas/files/cblas.pc.in b/sci-libs/blas-atlas/files/cblas.pc.in new file mode 100644 index 000000000000..d40314043f56 --- /dev/null +++ b/sci-libs/blas-atlas/files/cblas.pc.in @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/@LIBDIR@ +includedir=${prefix}/include + +Name: cblas +Description: Automatically Tuned Linear Algebra Software C BLAS implementation +Version: @PV@ +URL: http://math-atlas.sourceforge.net/ +Libs: -L${libdir} -lcblas -latlas +Libs.private: @EXTLIBS@ +Cflags: -I${includedir} diff --git a/sci-libs/blas-atlas/files/digest-blas-atlas-3.6.0 b/sci-libs/blas-atlas/files/digest-blas-atlas-3.6.0 deleted file mode 100644 index fdb440936204..000000000000 --- a/sci-libs/blas-atlas/files/digest-blas-atlas-3.6.0 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 743b75ec473ab0f0edda6b649aa89060 atlas3.6.0-shared-libs.patch.bz2 5140 -RMD160 2c266377cd60b24b7710fcf1d6d4be9c32797d64 atlas3.6.0-shared-libs.patch.bz2 5140 -SHA256 6fd8281d42de14d34e4f1e25cb9f4b142f6e66c8dc1030763761f8033eb38e89 atlas3.6.0-shared-libs.patch.bz2 5140 -MD5 df2ee2eb65d1c08ee93d04370172c262 atlas3.6.0.tar.bz2 1687723 -RMD160 e7d40a6677ce7c4442df7152150aecf812020713 atlas3.6.0.tar.bz2 1687723 -SHA256 1c2ad68fe3c66e261c012788fc1b6f74eada791f713848a3a6420c50fa35c8e8 atlas3.6.0.tar.bz2 1687723 diff --git a/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.31 b/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.31 deleted file mode 100644 index 961749420b16..000000000000 --- a/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.31 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 4d28b9a878db79ba5567c76d225097a1 atlas-3.7.23-shared-libs.patch.bz2 6324 -RMD160 b3fd87430994d09860a6fd1d494934e90c0ecf41 atlas-3.7.23-shared-libs.patch.bz2 6324 -SHA256 895ed8243f23074ad0a343c3aded59468e2f3d6acfa886c840f7f81d32718241 atlas-3.7.23-shared-libs.patch.bz2 6324 -MD5 219e93443a1ba2b5abb90790f465a7ec atlas3.7.31.tar.bz2 2170687 -RMD160 03caaf973816a078bee679bb9f2fe4ef5a0d52d7 atlas3.7.31.tar.bz2 2170687 -SHA256 5bdb01d669c948df3cadf3090f0f2f601c4c3ebd6d40ff5eedf6b3b495358d2e atlas3.7.31.tar.bz2 2170687 diff --git a/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.32 b/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.32 deleted file mode 100644 index db8418bb31e2..000000000000 --- a/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.32 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 4d28b9a878db79ba5567c76d225097a1 atlas-3.7.23-shared-libs.patch.bz2 6324 -RMD160 b3fd87430994d09860a6fd1d494934e90c0ecf41 atlas-3.7.23-shared-libs.patch.bz2 6324 -SHA256 895ed8243f23074ad0a343c3aded59468e2f3d6acfa886c840f7f81d32718241 atlas-3.7.23-shared-libs.patch.bz2 6324 -MD5 c0106c5759125f7042393d903f861b61 atlas3.7.32.tar.bz2 2230912 -RMD160 b6ebc3cf8996af221315705f017fc2b9ca070c31 atlas3.7.32.tar.bz2 2230912 -SHA256 95babc9bdfe2ff5c1f2c7e3ea2ee034437031dcded1a155a6651fec9a945208d atlas3.7.32.tar.bz2 2230912 diff --git a/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.39 b/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.39 new file mode 100644 index 000000000000..67c932db021d --- /dev/null +++ b/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.39 @@ -0,0 +1,6 @@ +MD5 2923b57b4d67a25c2b76f5f32dba75f2 atlas-3.7.39-shared-libs.patch.bz2 6612 +RMD160 83d1167768e67128beccb88e6e291e0b63fd7837 atlas-3.7.39-shared-libs.patch.bz2 6612 +SHA256 c4f1c572a4506931c937d71f5b72709b36066e3c33b856a8a19444f72d2f9528 atlas-3.7.39-shared-libs.patch.bz2 6612 +MD5 45d548ee43d419225d2e7fdaf603618b atlas3.7.39.tar.bz2 2464374 +RMD160 286b71b0f35f3f78d06855d669b1a10f838abf30 atlas3.7.39.tar.bz2 2464374 +SHA256 e7529a6ddae7b59063caaa90d7e617c4192fdd6e24c45ed1991ed80debc0e56b atlas3.7.39.tar.bz2 2464374 diff --git a/sci-libs/blas-atlas/files/eselect.blas.atlas b/sci-libs/blas-atlas/files/eselect.blas.atlas new file mode 100644 index 000000000000..a6f69f03d416 --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.blas.atlas @@ -0,0 +1,4 @@ +blas/atlas/libblas.so /usr/@LIBDIR@/libblas.so +blas/atlas/libblas.so.0 /usr/@LIBDIR@/libblas.so.0 +blas/atlas/libblas.a /usr/@LIBDIR@/libblas.a +../blas/atlas/blas.pc /usr/@LIBDIR@/pkgconfig/blas.pc diff --git a/sci-libs/blas-atlas/files/eselect.blas.threaded-atlas b/sci-libs/blas-atlas/files/eselect.blas.threaded-atlas new file mode 100644 index 000000000000..501e89e07d6e --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.blas.threaded-atlas @@ -0,0 +1,4 @@ +blas/threaded-atlas/libblas.so /usr/@LIBDIR@/libblas.so +blas/threaded-atlas/libblas.so.0 /usr/@LIBDIR@/libblas.so.0 +blas/threaded-atlas/libblas.a /usr/@LIBDIR@/libblas.a +../blas/threaded-atlas/blas.pc /usr/@LIBDIR@/pkgconfig/blas.pc diff --git a/sci-libs/blas-atlas/files/eselect.cblas.atlas b/sci-libs/blas-atlas/files/eselect.cblas.atlas new file mode 100644 index 000000000000..a8e0b74fb8fa --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.cblas.atlas @@ -0,0 +1,5 @@ +blas/atlas/libcblas.so /usr/@LIBDIR@/libcblas.so +blas/atlas/libcblas.so.0 /usr/@LIBDIR@/libcblas.so.0 +blas/atlas/libcblas.a /usr/@LIBDIR@/libcblas.a +../blas/atlas/cblas.pc /usr/@LIBDIR@/pkgconfig/cblas.pc +atlas/cblas.h /usr/include/cblas.h diff --git a/sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas b/sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas new file mode 100644 index 000000000000..1af2a211e833 --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas @@ -0,0 +1,5 @@ +blas/threaded-atlas/libcblas.so /usr/@LIBDIR@/libcblas.so +blas/threaded-atlas/libcblas.so.0 /usr/@LIBDIR@/libcblas.so.0 +blas/threaded-atlas/libcblas.so.0 /usr/@LIBDIR@/libcblas.a +../blas/threaded-atlas/cblas.pc /usr/@LIBDIR@/pkgconfig/cblas.pc +cblas/cblas.h /usr/include/cblas.h |