* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2013-10-13 14:39 Justin Lecher
0 siblings, 0 replies; 32+ messages in thread
From: Justin Lecher @ 2013-10-13 14:39 UTC (permalink / raw
To: gentoo-commits
commit: 2fb8661484662862590a72d5f5ac3a4dbf483146
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 14:39:22 2013 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 14:39:22 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2fb86614
sci-libs/atlas: Set cpu freq governor without sys-power/cpufrequtils, #487882
Package-Manager: portage-2.2.7
---
sci-libs/atlas/ChangeLog | 4 ++++
sci-libs/atlas/atlas-3.10.1-r1.ebuild | 29 +++++++++--------------------
sci-libs/atlas/metadata.xml | 10 +++++-----
3 files changed, 18 insertions(+), 25 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 0ac8999..db10666 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 13 Oct 2013; Justin Lecher <jlec@gentoo.org> atlas-3.10.1-r1.ebuild,
+ metadata.xml:
+ Set cpu freq governor without sys-power/cpufrequtils, #487882
+
22 May 2013; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.10.1.ebuild,
metadata.xml:
Cleanup
diff --git a/sci-libs/atlas/atlas-3.10.1-r1.ebuild b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
index 52d3f3f..e67c852 100644
--- a/sci-libs/atlas/atlas-3.10.1-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
@@ -20,31 +20,20 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="fortran doc generic lapack static-libs threads"
RDEPEND=""
-DEPEND="${RDEPEND}
- !prefix? ( sys-power/cpufrequtils )"
+DEPEND="${RDEPEND}"
S="${WORKDIR}/ATLAS"
pkg_setup() {
- if [[ -n $(type -P cpufreq-info) ]]; then
- [[ -z $(cpufreq-info -d) ]] && return
- local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
- local cpu=0
- while [[ ${cpu} -lt ${ncpu} ]]; do
- if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
- ewarn "CPU $cpu is not set to performance"
- ewarn "Run cpufreq-set -r -g performance as root"
- die "${PN} needs all cpu set to performance"
+ local _cpufreq
+ for _cpufreq in /sys/devices/system/cpu/cpu*/_cpufreq/scaling_governor; do
+ if [ -f ${_cpufreq} ]; then
+ if grep -q performance ${_cpufreq}; then
+ echo 2> /dev/null performance > ${_cpufreq} || \
+ die "${PN} needs all cpu set to performance"
fi
- cpu=$((cpu + 1))
- done
- else
- ewarn "Please make sure to disable CPU throttling completely"
- ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
- ewarn "generated timings will be completely random and the"
- ewarn "performance of the resulting libraries will be degraded"
- ewarn "considerably."
- fi
+ fi
+ done
use fortran && fortran-2_pkg_setup
}
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml
index 2fddb01..fde6aff 100644
--- a/sci-libs/atlas/metadata.xml
+++ b/sci-libs/atlas/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>sci</herd>
-<longdescription lang='en'>
+ <herd>sci</herd>
+ <longdescription lang="en">
ATLAS is an approach for the automatic generation and optimization of
numerical software. Currently ATLAS supplies optimized versions for the
complete set of linear algebra kernels known as the Basic Linear Algebra
@@ -10,7 +10,7 @@
a subset of the linear algebra routine LAPACK library or the full
LAPACK using the reference LAPACK from Netlib.
</longdescription>
-<use>
- <flag name='generic'>Build atlas assuming a fairly generic architecture (sse2 for x86, core2 for amd64)</flag>
-</use>
+ <use>
+ <flag name="generic">Build atlas assuming a fairly generic architecture (sse2 for x86, core2 for amd64)</flag>
+ </use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2017-06-26 20:35 Justin Lecher
0 siblings, 0 replies; 32+ messages in thread
From: Justin Lecher @ 2017-06-26 20:35 UTC (permalink / raw
To: gentoo-commits
commit: 14c1e493cfd90dce75fdc385a1af3926e7d5fc40
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 26 20:35:17 2017 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Jun 26 20:35:17 2017 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=14c1e493
sci-libs/atlas: Sanitize default USE combination
Helps sorting out #794
Package-Manager: Portage-2.3.6-prefix, Repoman-2.3.2
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
sci-libs/atlas/atlas-3.10.3.ebuild | 4 ++--
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 2 +-
sci-libs/atlas/metadata.xml | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.10.3.ebuild b/sci-libs/atlas/atlas-3.10.3.ebuild
index e6b6e7147..131790147 100644
--- a/sci-libs/atlas/atlas-3.10.3.ebuild
+++ b/sci-libs/atlas/atlas-3.10.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -17,7 +17,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+deprecated doc fortran generic lapack static-libs threads"
+IUSE="+deprecated doc +fortran generic +lapack static-libs threads"
REQUIRED_USE="
deprecated? ( lapack )
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index 7b35184a8..5db98d96b 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+deprecated doc fortran generic ifko lapack static-libs threads"
+IUSE="+deprecated doc +fortran generic ifko +lapack static-libs threads"
REQUIRED_USE="
deprecated? ( lapack )
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml
index 5fffffdf1..b77adaad5 100644
--- a/sci-libs/atlas/metadata.xml
+++ b/sci-libs/atlas/metadata.xml
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2017-02-03 10:25 Marius Brehler
0 siblings, 0 replies; 32+ messages in thread
From: Marius Brehler @ 2017-02-03 10:25 UTC (permalink / raw
To: gentoo-commits
commit: 53cdd90fcd4de97deef253553d361a506bfce022
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 3 03:39:19 2017 +0000
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Fri Feb 3 03:39:19 2017 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=53cdd90f
sci-libs/atlas: Drop unsupported keywords
Package-Manager: Portage-2.3.3, Repoman-2.3.1
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index b51152e..64faf17 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -17,7 +17,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="+deprecated doc fortran generic ifko lapack static-libs threads"
REQUIRED_USE="
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2016-12-02 9:06 Marius Brehler
0 siblings, 0 replies; 32+ messages in thread
From: Marius Brehler @ 2016-12-02 9:06 UTC (permalink / raw
To: gentoo-commits
commit: 0af39b7ee94e32f4850070f88faa724388f103d6
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Fri Dec 2 09:05:54 2016 +0000
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Fri Dec 2 09:06:17 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0af39b7e
sci-libs/atlas-3.10.3: Add deprecated use flag
Package-Manager: portage-2.3.0
sci-libs/atlas/atlas-3.10.3.ebuild | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.10.3.ebuild b/sci-libs/atlas/atlas-3.10.3.ebuild
index da0ef3f..2416961 100644
--- a/sci-libs/atlas/atlas-3.10.3.ebuild
+++ b/sci-libs/atlas/atlas-3.10.3.ebuild
@@ -18,10 +18,11 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc fortran generic lapack static-libs threads"
+IUSE="+deprecated doc fortran generic lapack static-libs threads"
-RDEPEND=""
-DEPEND="${RDEPEND}"
+REQUIRED_USE="
+ deprecated? ( lapack )
+ lapack? ( fortran )"
S="${WORKDIR}/ATLAS"
@@ -114,6 +115,10 @@ src_configure() {
# for debugging
echo ${myconf[@]} > myconf.out
"${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+
+ if use deprecated; then
+ echo "BUILD_DEPRECATED=1" >> src/lapack/reference/make.inc.example || die
+ fi
}
atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2016-09-07 13:15 Marius Brehler
0 siblings, 0 replies; 32+ messages in thread
From: Marius Brehler @ 2016-09-07 13:15 UTC (permalink / raw
To: gentoo-commits
commit: 271818e1857e36d3013419e765fd9952ea02a649
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Sep 7 13:12:10 2016 +0000
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Wed Sep 7 13:12:10 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=271818e1
sci-libs/atlas: Version bump to 3.10.3 (latest stable); Adopt missing dies from 3.11.38
Package-Manager: portage-2.2.28
sci-libs/atlas/atlas-3.10.3.ebuild | 275 +++++++++++++++++++++++++++++++++++++
1 file changed, 275 insertions(+)
diff --git a/sci-libs/atlas/atlas-3.10.3.ebuild b/sci-libs/atlas/atlas-3.10.3.ebuild
new file mode 100644
index 0000000..da0ef3f
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.10.3.ebuild
@@ -0,0 +1,275 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+FORTRAN_NEEDED=fortran
+
+inherit alternatives-2 eutils fortran-2 multilib toolchain-funcs versionator
+
+LAPACKP=lapack-3.6.0.tgz
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc fortran generic lapack static-libs threads"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/ATLAS"
+
+pkg_setup() {
+ local _cpufreq
+ for _cpufreq in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
+ if [ -f ${_cpufreq} ]; then
+ if ! grep -q performance ${_cpufreq}; then
+ echo 2> /dev/null performance > ${_cpufreq} || \
+ die "${PN} needs all cpu set to performance"
+ fi
+ fi
+ done
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-3.10.0-x32-support.patch \
+ "${FILESDIR}"/${P1}format-security.patch
+}
+
+src_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(type -P $(tc-getCC))"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ atlas_configure() {
+ local myconf=(
+ --prefix="${ED}/usr"
+ --libdir="${ED}/usr/$(get_libdir)"
+ --incdir="${ED}/usr/include"
+ --cc="$(tc-getCC)"
+ "-D c -DWALL"
+ "-C acg '${mycc}'"
+ "-F acg '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.x, see atlas-dev mailing list)
+ if use threads; then
+ if use generic; then # 2 threads is most generic
+ myconf+=( "-t 2" "-Si omp 0" )
+ else
+ myconf+=( "-t -1" "-Si omp 0" )
+ fi
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ elif [ ${ABI} = x32 ] ; then
+ myconf+=( "-b 48" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if '$(type -P $(tc-getFC))'"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ # generic stuff found by make make xprint_enums in atlas build dir
+ # basically assuming sse2+sse1 and 2 threads max
+ use generic && use x86 && myconf+=( "-V 384 -A 13")
+ use generic && use amd64 && myconf+=( "-V 384 -A 24")
+
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}" || die
+ # for debugging
+ echo ${myconf[@]} > myconf.out
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ }
+
+ atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
+ use static-libs && atlas_configure static ${EXTRA_ECONF}
+}
+
+src_compile() {
+ atlas_compile() {
+ pushd "${S}_${1}" > /dev/null || die
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib || die
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null || die
+ }
+
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared" || die
+ emake -j1 check time
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null || die
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Libs.private: -L\${libdir} -latlas -lm ${PTLIBS}
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+src_install() {
+ cd "${S}_shared/lib" || die
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a || die
+ if use static-libs; then
+ mv "${S}"_static/lib/lib{,atl}${l}.a || die
+ fi
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}" || die
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc" || die
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc *lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2016-01-03 10:33 Alexey Shvetsov
0 siblings, 0 replies; 32+ messages in thread
From: Alexey Shvetsov @ 2016-01-03 10:33 UTC (permalink / raw
To: gentoo-commits
commit: 777d1587b4bb17960044a27f386a2f28d783eb38
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 3 10:33:36 2016 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sun Jan 3 10:33:36 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=777d1587
sci-libs/atlas: Works on armv7a
Package-Manager: portage-2.2.26
sci-libs/atlas/ChangeLog | 5 ++++-
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 0642954..34e4796 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -1,7 +1,10 @@
# ChangeLog for sci-libs/atlas
-# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# $Id$
+ 03 Jan 2016; Alexey Shvetsov <alexxy@gentoo.org> atlas-3.11.38-r1.ebuild:
+ sci-libs/atlas: Works on armv7a
+
08 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
sci-libs/atlas: Updating remote-id in metadata.xml
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index 8af1506..b51152e 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -17,7 +17,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
IUSE="+deprecated doc fortran generic ifko lapack static-libs threads"
REQUIRED_USE="
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2015-12-14 11:39 Justin Lecher
0 siblings, 0 replies; 32+ messages in thread
From: Justin Lecher @ 2015-12-14 11:39 UTC (permalink / raw
To: gentoo-commits
commit: 6ff188a81f27d09a7a6eb304d91afc3a5caea7d4
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 14 11:39:34 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Dec 14 11:39:34 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6ff188a8
sci-libs/atlas: Warn if incompatible kernel config is set
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567682
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index 3c760fe..8af1506 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=5
FORTRAN_NEEDED=fortran
-inherit alternatives-2 eutils fortran-2 multilib numeric toolchain-funcs versionator
+inherit alternatives-2 eutils fortran-2 linux-info multilib numeric toolchain-funcs versionator
LAPACKP=lapack-3.6.0.tgz
@@ -39,6 +39,13 @@ pkg_setup() {
[[ -e /sys/devices/system/cpu/intel_pstate ]] \
&& die "Intel P-State driver detected. Please reboot with 'intel_pstate=disable' in your cmdline"
use fortran && fortran-2_pkg_setup
+ CONFIG_CHECK="
+ !~X86_P4_CLOCKMOD
+ !~X86_INTEL_PSTATE
+ "
+ ERROR_KERNEL_X86_P4_CLOCKMOD="P4 Clockmod frequency scaling influences tuning and needs to be disabled at compile time."
+ ERROR_KERNEL_X86_INTEL_PSTATE="Intel Pstate frequency scaling influences tuning and needs to be disabled at compile time."
+ linux-info_pkg_setup
}
src_configure() {
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2015-12-08 15:25 Justin Lecher
0 siblings, 0 replies; 32+ messages in thread
From: Justin Lecher @ 2015-12-08 15:25 UTC (permalink / raw
To: gentoo-commits
commit: 23f10c612d85c8aef50ecdc14efbe05a4e2f05e8
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 8 15:25:09 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Dec 8 15:25:09 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23f10c61
sci-libs/atlas: Optionally build deprecated lapack routines
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 11 ++++++++---
sci-libs/atlas/metadata.xml | 1 +
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index 4a7d193..3c760fe 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -18,10 +18,11 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc fortran generic ifko lapack static-libs threads"
+IUSE="+deprecated doc fortran generic ifko lapack static-libs threads"
-RDEPEND=""
-DEPEND="${RDEPEND}"
+REQUIRED_USE="
+ deprecated? ( lapack )
+ lapack? ( fortran )"
S="${WORKDIR}/ATLAS"
@@ -111,6 +112,10 @@ src_configure() {
# for debugging
echo ${myconf[@]} > myconf.out
"${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+
+ if use deprecated; then
+ echo "BUILD_DEPRECATED=1" >> src/lapack/reference/make.inc.example || die
+ fi
}
atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml
index 77d74d9..ba20464 100644
--- a/sci-libs/atlas/metadata.xml
+++ b/sci-libs/atlas/metadata.xml
@@ -11,6 +11,7 @@
LAPACK using the reference LAPACK from Netlib.
</longdescription>
<use>
+ <flag name="deprecated">Build deprecated routines</flag>
<flag name="generic">Build atlas assuming a fairly generic architecture (sse2 for x86, core2 for amd64)</flag>
<flag name="ifko">Use iFKO to improve ATLAS performance (ATTENTION!!! Increases builtime enormously)</flag>
</use>
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2015-12-05 13:32 Justin Lecher
0 siblings, 0 replies; 32+ messages in thread
From: Justin Lecher @ 2015-12-05 13:32 UTC (permalink / raw
To: gentoo-commits
commit: ee5d08bf305e68c8746a778777976b83358ec47d
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 5 13:32:34 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Dec 5 13:32:34 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ee5d08bf
sci-libs/atlas: Fix underlinking
Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
...tlas-3.11.38.ebuild => atlas-3.11.38-r1.ebuild} | 26 +++++++++++++---------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.11.38.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
similarity index 90%
rename from sci-libs/atlas/atlas-3.11.38.ebuild
rename to sci-libs/atlas/atlas-3.11.38-r1.ebuild
index e0e41ec..4a7d193 100644
--- a/sci-libs/atlas/atlas-3.11.38.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -143,11 +143,15 @@ atlas_install_libs() {
local libname=$(basename ${1%.*})
einfo "Installing ${libname}"
local soname=${libname}.so.$(get_major_version)
+ local _cmd
shift
pushd "${S}_shared"/lib > /dev/null
- ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
- "$@" -o ${soname} || die "Creating ${soname} failed"
+ _cmd="${LINK:-$(tc-getCC)}"
+ _cmd+=" ${LDFLAGS} -shared -Wl,--no-undefined -Wl,-soname=${soname}"
+ _cmd+=" -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive"
+ _cmd+=" $@ -o ${soname}"
+ einfo "${_cmd}"
+ ${_cmd} || die "Creating ${soname} failed"
dolib.so ${soname}
dosym ${soname} /usr/$(get_libdir)/${soname%.*}
popd > /dev/null || die
@@ -190,7 +194,7 @@ src_install() {
atlas_install_libs libatlas.a -lm ${PTLIBS}
# cblas
- atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_libs libatlcblas.a -L. -latlas -lm
atlas_install_pc atlcblas atlas-cblas
alternatives_for cblas atlas 0 \
/usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
@@ -198,7 +202,7 @@ src_install() {
# cblas threaded
if [[ -e libptcblas.a ]]; then
- atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_libs libptcblas.a -L. -latlas -lm ${PTLIBS}
atlas_install_pc ptcblas atlas-cblas-threads
alternatives_for cblas atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
@@ -208,12 +212,12 @@ src_install() {
if use lapack; then
PCREQ="cblas"
# clapack
- atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_libs libatlclapack.a -L. -latlcblas -latlas -lm
atlas_install_pc atlclapack atlas-clapack
# clapack threaded
if [[ -e libptclapack.a ]]; then
- atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_libs libptclapack.a -L. -lptcblas -latlas -lm ${PTLIBS}
atlas_install_pc ptclapack atlas-clapack-threads
fi
fi
@@ -222,14 +226,14 @@ src_install() {
LINK=$(tc-getF77) PCREQ=
# blas
- atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_libs libf77blas.a -L. -latlas -lm
atlas_install_pc f77blas atlas-blas
alternatives_for blas atlas 0 \
/usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
# blas threaded
if [[ -e libptf77blas.a ]]; then
- atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_libs libptf77blas.a -L. -latlas -lm ${PTLIBS}
atlas_install_pc ptf77blas atlas-blas-threads
alternatives_for blas atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
@@ -239,14 +243,14 @@ src_install() {
PCREQ="blas cblas"
# lapack
atlas_install_libs libatllapack.a \
- -lm -L. -latlas -latlcblas -lf77blas
+ -L. -latlcblas -lf77blas -latlas -lm
atlas_install_pc atllapack atlas-lapack
alternatives_for lapack atlas 0 \
/usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
# lapack threaded
if [[ -e libptlapack.a ]]; then
atlas_install_libs libptlapack.a \
- -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ -L. -lptcblas -lptf77blas -latlas -lm ${PTLIBS}
atlas_install_pc ptlapack atlas-lapack-threads
alternatives_for lapack atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2014-02-02 17:01 Reinis Danne
0 siblings, 0 replies; 32+ messages in thread
From: Reinis Danne @ 2014-02-02 17:01 UTC (permalink / raw
To: gentoo-commits
commit: cc6ae47c8c9822d529db56d56caafb408652c357
Author: Reinis Danne <rei4dan <AT> gmail <DOT> com>
AuthorDate: Sun Feb 2 16:57:50 2014 +0000
Commit: Reinis Danne <rei4dan <AT> gmail <DOT> com>
CommitDate: Sun Feb 2 16:57:50 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cc6ae47c
sci-libs/atlas: Fix CPU governor check
---
sci-libs/atlas/ChangeLog | 6 +++++-
sci-libs/atlas/atlas-3.10.1-r1.ebuild | 2 +-
sci-libs/atlas/atlas-3.10.1-r2.ebuild | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 8a72729..d0a2cca 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for sci-libs/atlas
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 02 Feb 2014; Reinis Danne <rei4dan@gmail.com> atlas-3.10.1-r1.ebuild,
+ atlas-3.10.1-r2.ebuild:
+ Fix cpu governor check.
+
14 Oct 2013; Justin Lecher <jlec@gentoo.org> atlas-3.10.1-r1.ebuild:
Fix type _cpufreq -> cpufreq
diff --git a/sci-libs/atlas/atlas-3.10.1-r1.ebuild b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
index c4f06a3..ebf5c75 100644
--- a/sci-libs/atlas/atlas-3.10.1-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
@@ -28,7 +28,7 @@ pkg_setup() {
local _cpufreq
for _cpufreq in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
if [ -f ${_cpufreq} ]; then
- if grep -q performance ${_cpufreq}; then
+ if ! grep -q performance ${_cpufreq}; then
echo 2> /dev/null performance > ${_cpufreq} || \
die "${PN} needs all cpu set to performance"
fi
diff --git a/sci-libs/atlas/atlas-3.10.1-r2.ebuild b/sci-libs/atlas/atlas-3.10.1-r2.ebuild
index 373f7ad..d2dea89 100644
--- a/sci-libs/atlas/atlas-3.10.1-r2.ebuild
+++ b/sci-libs/atlas/atlas-3.10.1-r2.ebuild
@@ -28,7 +28,7 @@ pkg_setup() {
local _cpufreq
for _cpufreq in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
if [ -f ${_cpufreq} ]; then
- if grep -q performance ${_cpufreq}; then
+ if ! grep -q performance ${_cpufreq}; then
echo 2> /dev/null performance > ${_cpufreq} || \
die "${PN} needs all cpu set to performance"
fi
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2014-01-28 19:01 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2014-01-28 19:01 UTC (permalink / raw
To: gentoo-commits
commit: a534f20b54b267ea9726ee4de3f9796b75159239
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 9 18:50:21 2013 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Dec 9 18:50:21 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a534f20b
Bump with lapack-3.5
---
sci-libs/atlas/atlas-3.10.1-r2.ebuild | 270 ++++++++++++++++++++++++++++++++++
1 file changed, 270 insertions(+)
diff --git a/sci-libs/atlas/atlas-3.10.1-r2.ebuild b/sci-libs/atlas/atlas-3.10.1-r2.ebuild
new file mode 100644
index 0000000..f241af0
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.10.1-r2.ebuild
@@ -0,0 +1,270 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+FORTRAN_NEEDED=fortran
+inherit eutils toolchain-funcs fortran-2 versionator alternatives-2 multilib
+
+LAPACKP=lapack-3.5.0.tgz
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="fortran doc generic lapack static-libs threads"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/ATLAS"
+
+pkg_setup() {
+ local _cpufreq
+ for _cpufreq in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
+ if [ -f ${_cpufreq} ]; then
+ if grep -q performance ${_cpufreq}; then
+ echo 2> /dev/null performance > ${_cpufreq} || \
+ die "${PN} needs all cpu set to performance"
+ fi
+ fi
+ done
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.10.0-x32-support.patch
+}
+
+src_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(type -P $(tc-getCC))"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ atlas_configure() {
+ local myconf=(
+ --prefix="${ED}/usr"
+ --libdir="${ED}/usr/$(get_libdir)"
+ --incdir="${ED}/usr/include"
+ --cc="$(tc-getCC)"
+ "-D c -DWALL"
+ "-C acg '${mycc}'"
+ "-F acg '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.x, see atlas-dev mailing list)
+ if use threads; then
+ if use generic; then # 2 threads is most generic
+ myconf+=( "-t 2" "-Si omp 0" )
+ else
+ myconf+=( "-t -1" "-Si omp 0" )
+ fi
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ elif [ ${ABI} = x32 ] ; then
+ myconf+=( "-b 48" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if '$(type -P $(tc-getFC))'"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ # generic stuff found by make make xprint_enums in atlas build dir
+ # basically assuming sse2+sse1 and 2 threads max
+ use generic && use x86 && myconf+=( "-V 384 -A 13")
+ use generic && use amd64 && myconf+=( "-V 384 -A 24")
+
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ # for debugging
+ echo ${myconf[@]} > myconf.out
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ }
+
+ atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
+ use static-libs && atlas_configure static ${EXTRA_ECONF}
+}
+
+src_compile() {
+ atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+ }
+
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check time
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Libs.private: -L\${libdir} -latlas -lm ${PTLIBS}
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc *lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2013-10-14 9:38 Justin Lecher
0 siblings, 0 replies; 32+ messages in thread
From: Justin Lecher @ 2013-10-14 9:38 UTC (permalink / raw
To: gentoo-commits
commit: 3e4dcd89a7c016af7eb4ee689d2b738d2bec4d64
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 14 09:38:54 2013 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 09:38:54 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3e4dcd89
sci-libs/atlas: Fix type _cpufreq -> cpufreq
Package-Manager: portage-2.2.7
---
sci-libs/atlas/ChangeLog | 3 +++
sci-libs/atlas/atlas-3.10.1-r1.ebuild | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index db10666..8a72729 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 14 Oct 2013; Justin Lecher <jlec@gentoo.org> atlas-3.10.1-r1.ebuild:
+ Fix type _cpufreq -> cpufreq
+
13 Oct 2013; Justin Lecher <jlec@gentoo.org> atlas-3.10.1-r1.ebuild,
metadata.xml:
Set cpu freq governor without sys-power/cpufrequtils, #487882
diff --git a/sci-libs/atlas/atlas-3.10.1-r1.ebuild b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
index e67c852..625429a 100644
--- a/sci-libs/atlas/atlas-3.10.1-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
@@ -26,7 +26,7 @@ S="${WORKDIR}/ATLAS"
pkg_setup() {
local _cpufreq
- for _cpufreq in /sys/devices/system/cpu/cpu*/_cpufreq/scaling_governor; do
+ for _cpufreq in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
if [ -f ${_cpufreq} ]; then
if grep -q performance ${_cpufreq}; then
echo 2> /dev/null performance > ${_cpufreq} || \
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2013-05-23 5:13 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2013-05-23 5:13 UTC (permalink / raw
To: gentoo-commits
commit: 4d8b1e647052cc50f0dfc4c65a3ca55c96f5bdc7
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Wed May 22 19:20:31 2013 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed May 22 19:20:31 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4d8b1e64
Cleanup
Package-Manager: portage-2.2.01.21938-prefix
---
sci-libs/atlas/ChangeLog | 4 +
sci-libs/atlas/atlas-3.10.1.ebuild | 281 ------------------------------------
sci-libs/atlas/metadata.xml | 12 +-
3 files changed, 10 insertions(+), 287 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index c010571..0ac8999 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 22 May 2013; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.10.1.ebuild,
+ metadata.xml:
+ Cleanup
+
25 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> atlas-3.10.1-r1.ebuild:
sci-libs/atlas: Switched threads libraries to Libs.private in pkg-config files
diff --git a/sci-libs/atlas/atlas-3.10.1.ebuild b/sci-libs/atlas/atlas-3.10.1.ebuild
deleted file mode 100644
index d9da19e..0000000
--- a/sci-libs/atlas/atlas-3.10.1.ebuild
+++ /dev/null
@@ -1,281 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-FORTRAN_NEEDED=fortran
-inherit eutils toolchain-funcs fortran-2 versionator alternatives-2 multilib
-
-LAPACKP=lapack-3.4.2.tgz
-
-DESCRIPTION="Automatically Tuned Linear Algebra Software"
-HOMEPAGE="http://math-atlas.sourceforge.net/"
-SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
- fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="fortran doc generic lapack static-libs threads"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- !prefix? ( sys-power/cpufrequtils )"
-
-S="${WORKDIR}/ATLAS"
-
-pkg_setup() {
- if [[ -n $(type -P cpufreq-info) ]]; then
- [[ -z $(cpufreq-info -d) ]] && return
- local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
- local cpu=0
- while [[ ${cpu} -lt ${ncpu} ]]; do
- if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
- ewarn "CPU $cpu is not set to performance"
- ewarn "Run cpufreq-set -r -g performance as root"
- die "${PN} needs all cpu set to performance"
- fi
- cpu=$((cpu + 1))
- done
- else
- ewarn "Please make sure to disable CPU throttling completely"
- ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
- ewarn "generated timings will be completely random and the"
- ewarn "performance of the resulting libraries will be degraded"
- ewarn "considerably."
- fi
- use fortran && fortran-2_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-3.10.0-x32-support.patch
-}
-
-src_configure() {
- # hack needed to trick the flaky gcc detection
- local mycc="$(type -P $(tc-getCC))"
- [[ ${mycc} == *gcc* ]] && mycc=gcc
- atlas_configure() {
- local myconf=(
- --prefix="${ED}/usr"
- --libdir="${ED}/usr/$(get_libdir)"
- --incdir="${ED}/usr/include"
- --cc="$(tc-getCC)"
- "-D c -DWALL"
- "-C acg '${mycc}'"
- "-F acg '${CFLAGS}'"
- "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
- )
-
- # OpenMP shown to decreased performance over POSIX threads
- # (at least in 3.9.x, see atlas-dev mailing list)
- if use threads; then
- if use generic; then # 2 threads is most generic
- myconf+=( "-t 2" "-Si omp 0" )
- else
- myconf+=( "-t -1" "-Si omp 0" )
- fi
- else
- myconf+=( "-t 0" "-Si omp 0" )
- fi
-
- if use amd64 || use ppc64 || use sparc; then
- if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
- myconf+=( "-b 64" )
- elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
- myconf+=( "-b 32" )
- elif [ ${ABI} = x32 ] ; then
- myconf+=( "-b 48" )
- else
- myconf+=( "-b 64" )
- fi
- elif use ppc || use x86; then
- myconf+=( "-b 32" )
- elif use ia64; then
- myconf+=( "-b 64" )
- fi
- if use fortran; then
- myconf+=(
- "-C if '$(type -P $(tc-getFC))'"
- "-F if '${FFLAGS}'"
- )
- if use lapack; then
- myconf+=(
- "-Si latune 1"
- "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
- )
- else
- myconf+=( "-Si latune 0" )
- fi
- else
- myconf+=( "-Si latune 0" "--nof77" )
- fi
- # generic stuff found by make make xprint_enums in atlas build dir
- # basically assuming sse2+sse1 and 2 threads max
- use generic && use x86 && myconf+=( "-V 384 -A 13")
- use generic && use amd64 && myconf+=( "-V 384 -A 24")
-
- local confdir="${S}_${1}"; shift
- myconf+=( $@ )
- mkdir "${confdir}" && cd "${confdir}"
- # for debugging
- echo ${myconf[@]} > myconf.out
- "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
- }
-
- atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
- use static-libs && atlas_configure static ${EXTRA_ECONF}
-}
-
-src_compile() {
- atlas_compile() {
- pushd "${S}_${1}" > /dev/null
- # atlas does its own parallel builds
- emake -j1 build
- cd lib
- emake libclapack.a
- [[ -e libptcblas.a ]] && emake libptclapack.a
- popd > /dev/null
- }
-
- atlas_compile shared
- use static-libs && atlas_compile static
-}
-
-src_test() {
- cd "${S}_shared"
- emake -j1 check time
-}
-
-# transform a static archive into a shared library and install them
-# atlas_install_libs <mylib.a> [extra link flags]
-atlas_install_libs() {
- local libname=$(basename ${1%.*})
- einfo "Installing ${libname}"
- local soname=${libname}.so.$(get_major_version)
- shift
- pushd "${S}_shared"/lib > /dev/null
- ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
- "$@" -o ${soname} || die "Creating ${soname} failed"
- dolib.so ${soname}
- ln -s ${soname} ${soname%.*}
- dosym ${soname} /usr/$(get_libdir)/${soname%.*}
- popd > /dev/null
- use static-libs && dolib.a "${S}_static"/lib/${libname}.a
-}
-
-# create and install a pkgconfig file
-# atlas_install_pc <libname> <pkg name> [extra link flags]
-atlas_install_pc() {
- local libname=${1} ; shift
- local pcname=${1} ; shift
- cat <<-EOF > ${pcname}.pc
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${pcname}
- Description: ${PN} ${pcname}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${libname} $@
- Cflags: -I\${includedir}/${PN}
- ${PCREQ}
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${pcname}.pc
-}
-
-src_install() {
- cd "${S}_shared/lib"
- # rename to avoid collision with other packages
- local l
- for l in {,c}{blas,lapack}; do
- if [[ -e lib${l}.a ]]; then
- mv lib{,atl}${l}.a
- use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
- fi
- done
-
- [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
-
- # atlas
- atlas_install_libs libatlas.a -lm ${PTLIBS}
-
- # cblas
- atlas_install_libs libatlcblas.a -lm -L. -latlas
- atlas_install_pc atlcblas atlas-cblas -lm -latlas
- alternatives_for cblas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
- /usr/include/cblas.h atlas/cblas.h
-
- # cblas threaded
- if [[ -e libptcblas.a ]]; then
- atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
- alternatives_for cblas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
- /usr/include/cblas.h atlas/cblas.h
- fi
-
- if use lapack; then
- PCREQ="Requires: cblas"
- # clapack
- atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
- atlas_install_pc atlclapack atlas-clapack -lm -latlas
-
- # clapack threaded
- if [[ -e libptclapack.a ]]; then
- atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
- atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
- fi
- fi
-
- if use fortran; then
- LINK=$(tc-getF77) PCREQ=
-
- # blas
- atlas_install_libs libf77blas.a -lm -L. -latlas
- atlas_install_pc f77blas atlas-blas -lm -latlas
- alternatives_for blas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
-
- # blas threaded
- if [[ -e libptf77blas.a ]]; then
- atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
- alternatives_for blas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
- fi
-
- if use lapack; then
- PCREQ="Requires: blas cblas"
- # lapack
- atlas_install_libs libatllapack.a \
- -lm -L. -latlas -latlcblas -lf77blas
- atlas_install_pc atllapack atlas-lapack -lm -latlas
- alternatives_for lapack atlas 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
- # lapack threaded
- if [[ -e libptlapack.a ]]; then
- atlas_install_libs libptlapack.a \
- -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
- atlas_install_pc ptlapack atlas-lapack-threads \
- -lm -latlas ${PTLIBS}
- alternatives_for lapack atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
- fi
- fi
- fi
-
- cd "${S}"
- insinto /usr/include/${PN}
- doins include/*.h
-
- cd "${S}/doc"
- dodoc INDEX.txt AtlasCredits.txt ChangeLog
- use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
- use doc && use fortran && dodoc f77blas*pdf
- use doc && use fortran && use lapack && dodoc *lapack*pdf
-}
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml
index b4b8088..2fddb01 100644
--- a/sci-libs/atlas/metadata.xml
+++ b/sci-libs/atlas/metadata.xml
@@ -3,12 +3,12 @@
<pkgmetadata>
<herd>sci</herd>
<longdescription lang='en'>
- ATLAS is an approach for the automatic generation and optimization of
- numerical software. Currently ATLAS supplies optimized versions for the
- complete set of linear algebra kernels known as the Basic Linear Algebra
- Subroutines (BLAS) for both c and F77 interfaces. It can also build
- a subset of the linear algebra routine LAPACK library or the full
- LAPACK using the reference LAPACK from Netlib.
+ ATLAS is an approach for the automatic generation and optimization of
+ numerical software. Currently ATLAS supplies optimized versions for the
+ complete set of linear algebra kernels known as the Basic Linear Algebra
+ Subroutines (BLAS) for both c and F77 interfaces. It can also build
+ a subset of the linear algebra routine LAPACK library or the full
+ LAPACK using the reference LAPACK from Netlib.
</longdescription>
<use>
<flag name='generic'>Build atlas assuming a fairly generic architecture (sse2 for x86, core2 for amd64)</flag>
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2013-02-25 1:20 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2013-02-25 1:20 UTC (permalink / raw
To: gentoo-commits
commit: 8337995fc5902ea8741689831d77d27030be083a
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 25 01:20:19 2013 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Feb 25 01:20:19 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8337995f
sci-libs/atlas: Switched threads libraries to Libs.private in pkg-config files
Package-Manager: portage-2.2.01.21688-prefix
---
sci-libs/atlas/ChangeLog | 3 +++
sci-libs/atlas/atlas-3.10.1-r1.ebuild | 10 +++++-----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 2f32db0..c010571 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 25 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> atlas-3.10.1-r1.ebuild:
+ sci-libs/atlas: Switched threads libraries to Libs.private in pkg-config files
+
*atlas-3.10.1-r1 (20 Feb 2013)
20 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.10.1-r1.ebuild:
diff --git a/sci-libs/atlas/atlas-3.10.1-r1.ebuild b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
index b84a60b..52d3f3f 100644
--- a/sci-libs/atlas/atlas-3.10.1-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
@@ -180,7 +180,7 @@ atlas_install_pc() {
Version: ${PV}
URL: ${HOMEPAGE}
Libs: -L\${libdir} -l${libname} $@
- Libs.private: -L\${libdir} -latlas -lm
+ Libs.private: -L\${libdir} -latlas -lm ${PTLIBS}
Cflags: -I\${includedir}/${PN}
${PCREQ}
EOF
@@ -214,7 +214,7 @@ src_install() {
# cblas threaded
if [[ -e libptcblas.a ]]; then
atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptcblas atlas-cblas-threads ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads
alternatives_for cblas atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
/usr/include/cblas.h atlas/cblas.h
@@ -229,7 +229,7 @@ src_install() {
# clapack threaded
if [[ -e libptclapack.a ]]; then
atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
- atlas_install_pc ptclapack atlas-clapack-threads ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads
fi
fi
@@ -245,7 +245,7 @@ src_install() {
# blas threaded
if [[ -e libptf77blas.a ]]; then
atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptf77blas atlas-blas-threads ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads
alternatives_for blas atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
fi
@@ -262,7 +262,7 @@ src_install() {
if [[ -e libptlapack.a ]]; then
atlas_install_libs libptlapack.a \
-lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
- atlas_install_pc ptlapack atlas-lapack-threads ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads
alternatives_for lapack atlas-threads 0 \
/usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
fi
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2013-02-20 19:09 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2013-02-20 19:09 UTC (permalink / raw
To: gentoo-commits
commit: f082088c9ff843b05686b1ff3205c68eb07bccf1
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 20 17:33:32 2013 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Feb 20 17:33:32 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f082088c
sci-libs/atlas: Move -lm -latlas to Libs.private in all pkg-config files
Package-Manager: portage-2.2.01.21688-prefix
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.10.1-r1.ebuild | 281 +++++++++++++++++++++++++++++++++
2 files changed, 286 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index dd11fd3..2f32db0 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.10.1-r1 (20 Feb 2013)
+
+ 20 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.10.1-r1.ebuild:
+ sci-libs/atlas: Move -lm -latlas to Libs.private in all pkg-config files
+
*atlas-3.10.1 (28 Jan 2013)
28 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.10.1.ebuild,
diff --git a/sci-libs/atlas/atlas-3.10.1-r1.ebuild b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
new file mode 100644
index 0000000..b84a60b
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.10.1-r1.ebuild
@@ -0,0 +1,281 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+FORTRAN_NEEDED=fortran
+inherit eutils toolchain-funcs fortran-2 versionator alternatives-2 multilib
+
+LAPACKP=lapack-3.4.2.tgz
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="fortran doc generic lapack static-libs threads"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$((cpu + 1))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.10.0-x32-support.patch
+}
+
+src_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(type -P $(tc-getCC))"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ atlas_configure() {
+ local myconf=(
+ --prefix="${ED}/usr"
+ --libdir="${ED}/usr/$(get_libdir)"
+ --incdir="${ED}/usr/include"
+ --cc="$(tc-getCC)"
+ "-D c -DWALL"
+ "-C acg '${mycc}'"
+ "-F acg '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.x, see atlas-dev mailing list)
+ if use threads; then
+ if use generic; then # 2 threads is most generic
+ myconf+=( "-t 2" "-Si omp 0" )
+ else
+ myconf+=( "-t -1" "-Si omp 0" )
+ fi
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ elif [ ${ABI} = x32 ] ; then
+ myconf+=( "-b 48" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if '$(type -P $(tc-getFC))'"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ # generic stuff found by make make xprint_enums in atlas build dir
+ # basically assuming sse2+sse1 and 2 threads max
+ use generic && use x86 && myconf+=( "-V 384 -A 13")
+ use generic && use amd64 && myconf+=( "-V 384 -A 24")
+
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ # for debugging
+ echo ${myconf[@]} > myconf.out
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ }
+
+ atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
+ use static-libs && atlas_configure static ${EXTRA_ECONF}
+}
+
+src_compile() {
+ atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+ }
+
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check time
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Libs.private: -L\${libdir} -latlas -lm
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads ${PTLIBS}
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads ${PTLIBS}
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc *lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2013-01-28 22:51 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2013-01-28 22:51 UTC (permalink / raw
To: gentoo-commits
commit: cdaa197f636cbbc3ca76711c8efcf777ab8068f3
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 28 22:51:19 2013 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Jan 28 22:51:19 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cdaa197f
sci-libs/atlas: Version bump
Package-Manager: portage-2.2.01.21688-prefix
---
sci-libs/atlas/ChangeLog | 8 +++++++-
.../{atlas-3.10.0.ebuild => atlas-3.10.1.ebuild} | 9 ++++-----
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 22266c7..dd11fd3 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -1,7 +1,13 @@
# ChangeLog for sci-libs/atlas
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.10.1 (28 Jan 2013)
+
+ 28 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.10.1.ebuild,
+ -atlas-3.10.0.ebuild:
+ sci-libs/atlas: Version bump
+
12 Dec 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.8.4.ebuild,
-files/3.9.39-bfr-overflow.patch, atlas-3.10.0.ebuild, metadata.xml:
sci-libs/atlas: Update for lapack-3.4.2
diff --git a/sci-libs/atlas/atlas-3.10.0.ebuild b/sci-libs/atlas/atlas-3.10.1.ebuild
similarity index 98%
rename from sci-libs/atlas/atlas-3.10.0.ebuild
rename to sci-libs/atlas/atlas-3.10.1.ebuild
index 2d9a170..d9da19e 100644
--- a/sci-libs/atlas/atlas-3.10.0.ebuild
+++ b/sci-libs/atlas/atlas-3.10.1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=4
+EAPI=5
FORTRAN_NEEDED=fortran
inherit eutils toolchain-funcs fortran-2 versionator alternatives-2 multilib
@@ -49,7 +49,7 @@ pkg_setup() {
}
src_prepare() {
- epatch "${FILESDIR}"/${P}-x32-support.patch
+ epatch "${FILESDIR}"/${PN}-3.10.0-x32-support.patch
}
src_configure() {
@@ -94,8 +94,6 @@ src_configure() {
myconf+=( "-b 32" )
elif use ia64; then
myconf+=( "-b 64" )
- else #hppa alpha ...
- myconf+=( "" )
fi
if use fortran; then
myconf+=(
@@ -236,6 +234,7 @@ src_install() {
if use fortran; then
LINK=$(tc-getF77) PCREQ=
+
# blas
atlas_install_libs libf77blas.a -lm -L. -latlas
atlas_install_pc f77blas atlas-blas -lm -latlas
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-07-10 21:28 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-07-10 21:28 UTC (permalink / raw
To: gentoo-commits
commit: 8d86ef3c52fadc7f4eecf8667536fac07462c88d
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Tue Jul 10 21:14:17 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Jul 10 21:14:17 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8d86ef3c
sci-libs/atlas: Version bump, this is a stable release.
(Portage version: 2.2.0_alpha116/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 7 ++++++-
.../{atlas-3.9.82.ebuild => atlas-3.10.0.ebuild} | 7 +++++--
sci-libs/atlas/atlas-3.8.4.ebuild | 4 ++--
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 8fcf843..e883743 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.10.0 (10 Jul 2012)
+
+ 10 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.10.0.ebuild,
+ -atlas-3.9.82.ebuild, atlas-3.8.4.ebuild:
+ sci-libs/atlas: Version bump, this is a stable release.
+
*atlas-3.9.82 (03 Jul 2012)
03 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.9.82.ebuild,
@@ -137,4 +143,3 @@
03 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> atlas-3.8.3.ebuild,
metadata.xml:
Initial import. Ebuilds merged from blas-atlas and lapack-atlas.
-
diff --git a/sci-libs/atlas/atlas-3.9.82.ebuild b/sci-libs/atlas/atlas-3.10.0.ebuild
similarity index 97%
rename from sci-libs/atlas/atlas-3.9.82.ebuild
rename to sci-libs/atlas/atlas-3.10.0.ebuild
index fa414ab..72ed55b 100644
--- a/sci-libs/atlas/atlas-3.9.82.ebuild
+++ b/sci-libs/atlas/atlas-3.10.0.ebuild
@@ -47,14 +47,17 @@ pkg_setup() {
}
src_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(type -P $(tc-getCC))"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
atlas_configure() {
local myconf=(
--prefix="${ED}/usr"
--libdir="${ED}/usr/$(get_libdir)"
--incdir="${ED}/usr/include"
--cc="$(tc-getCC)"
- "-C acg '$(type -P $(tc-getCC))'"
"-D c -DWALL"
+ "-C acg '${mycc}'"
"-F acg '${CFLAGS}'"
"-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
)
@@ -101,7 +104,7 @@ src_configure() {
local confdir="${S}_${1}"; shift
myconf+=( $@ )
mkdir "${confdir}" && cd "${confdir}"
- # for debugging
+ # for debugging
echo ${myconf[@]} > myconf.out
"${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
}
diff --git a/sci-libs/atlas/atlas-3.8.4.ebuild b/sci-libs/atlas/atlas-3.8.4.ebuild
index e0fc44d..b2feb7f 100644
--- a/sci-libs/atlas/atlas-3.8.4.ebuild
+++ b/sci-libs/atlas/atlas-3.8.4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
-inherit eutils toolchain-funcs versionator alternatives-2
+inherit eutils toolchain-funcs versionator alternatives-2 multilib
LAPACKP=lapack-3.3.1
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-06-26 22:27 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-06-26 22:27 UTC (permalink / raw
To: gentoo-commits
commit: bd0e8c025e277929ab848bfdff3c1373002b1b92
Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca>
AuthorDate: Tue Jun 26 18:00:17 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Jun 26 18:00:17 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=bd0e8c02
sci-libs/atlas: version bump
---
sci-libs/atlas/ChangeLog | 6 ++++++
.../{atlas-3.9.79.ebuild => atlas-3.9.80.ebuild} | 0
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 19a8577..90dd1cd 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.80 (26 Jun 2012)
+
+ 26 Jun 2012; Sebastien Fabbro <fabbros@gentoo.org> -atlas-3.9.79.ebuild,
+ +atlas-3.9.80.ebuild:
+ Version bump
+
*atlas-3.9.79 (18 Jun 2012)
18 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.9.79.ebuild,
diff --git a/sci-libs/atlas/atlas-3.9.79.ebuild b/sci-libs/atlas/atlas-3.9.80.ebuild
similarity index 100%
rename from sci-libs/atlas/atlas-3.9.79.ebuild
rename to sci-libs/atlas/atlas-3.9.80.ebuild
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-06-18 22:01 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-06-18 22:01 UTC (permalink / raw
To: gentoo-commits
commit: 9e81e795dcfbd1d813c777a4e39d6ad2c686ed8b
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Mon Jun 18 21:58:13 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Jun 18 21:58:13 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9e81e795
sci-libs/atlas: Version bump
(Portage version: 2.1.10.65/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 6 +
sci-libs/atlas/atlas-3.9.74.ebuild | 271 --------------------
.../{atlas-3.9.77.ebuild => atlas-3.9.79.ebuild} | 0
3 files changed, 6 insertions(+), 271 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index dcc677f..19a8577 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.79 (18 Jun 2012)
+
+ 18 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.9.79.ebuild,
+ -atlas-3.9.74.ebuild, -atlas-3.9.77.ebuild:
+ sci-libs/atlas: Version bump
+
*atlas-3.9.77 (07 Jun 2012)
07 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.71.ebuild,
diff --git a/sci-libs/atlas/atlas-3.9.74.ebuild b/sci-libs/atlas/atlas-3.9.74.ebuild
deleted file mode 100644
index b2a010a..0000000
--- a/sci-libs/atlas/atlas-3.9.74.ebuild
+++ /dev/null
@@ -1,271 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
-
-LAPACKP=lapack-3.4.0.tgz
-
-DESCRIPTION="Automatically Tuned Linear Algebra Software"
-HOMEPAGE="http://math-atlas.sourceforge.net/"
-SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
- fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="fortran doc lapack static-libs threads"
-
-RDEPEND="fortran? ( virtual/fortran )"
-DEPEND="${RDEPEND}
- !prefix? ( sys-power/cpufrequtils )"
-
-S="${WORKDIR}/ATLAS"
-
-pkg_setup() {
- if [[ -n $(type -P cpufreq-info) ]]; then
- [[ -z $(cpufreq-info -d) ]] && return
- local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
- local cpu=0
- while [[ ${cpu} -lt ${ncpu} ]]; do
- if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
- ewarn "CPU $cpu is not set to performance"
- ewarn "Run cpufreq-set -r -g performance as root"
- die "${PN} needs all cpu set to performance"
- fi
- cpu=$(( cpu + 1 ))
- done
- else
- ewarn "Please make sure to disable CPU throttling completely"
- ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
- ewarn "generated timings will be completely random and the"
- ewarn "performance of the resulting libraries will be degraded"
- ewarn "considerably."
- fi
- use fortran && fortran-2_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
- epatch "${FILESDIR}"/3.9.63-leaks.patch
-}
-
-src_configure() {
- atlas_configure() {
- # hack needed to trick the flaky gcc detection
- local mycc="$(tc-getCC)"
- [[ ${mycc} == *gcc* ]] && mycc=gcc
-
- local myconf=(
- "--prefix=${ED}/usr"
- "--libdir=${ED}/usr/$(get_libdir)"
- "--incdir=${ED}/usr/include"
- "--cc=${mycc}"
- "-C ac ${mycc}"
- "-D c -DWALL"
- "-F ac '${CFLAGS}'"
- "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
- )
-
- # OpenMP shown to decreased performance over POSIX threads
- # (at least in 3.9.x, see atlas-dev mailing list)
- if use threads; then
- myconf+=( "-t -1" "-Si omp 0" )
- else
- myconf+=( "-t 0" "-Si omp 0" )
- fi
-
- if use amd64 || use ppc64 || use sparc; then
- if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
- myconf+=( "-b 64" )
- elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
- myconf+=( "-b 32" )
- else
- myconf+=( "-b 64" )
- fi
- elif use ppc || use x86; then
- myconf+=( "-b 32" )
- elif use ia64; then
- myconf+=( "-b 64" )
- else #hppa alpha ...
- myconf+=( "" )
- fi
- if use fortran; then
- myconf+=(
- "-C if $(tc-getFC)"
- "-F if '${FFLAGS}'"
- )
- if use lapack; then
- myconf+=(
- "-Si latune 1"
- "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
- )
- else
- myconf+=( "-Si latune 0" )
- fi
- else
- myconf+=( "-Si latune 0" "--nof77" )
- fi
- local confdir="${S}_${1}"; shift
- myconf+=( $@ )
- mkdir "${confdir}" && cd "${confdir}"
- # for debugging
- echo ${myconf[@]} > myconf.out
- "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
- }
-
- atlas_configure shared "-Fa alg -fPIC"
- use static-libs && atlas_configure static
-}
-
-src_compile() {
- atlas_compile() {
- pushd "${S}_${1}" > /dev/null
- # atlas does its own parallel builds
- emake -j1 build
- cd lib
- emake libclapack.a
- [[ -e libptcblas.a ]] && emake libptclapack.a
- popd > /dev/null
- }
-
- atlas_compile shared
- use static-libs && atlas_compile static
-}
-
-src_test() {
- cd "${S}_shared"
- emake -j1 check time
-}
-
-# transform a static archive into a shared library and install them
-# atlas_install_libs <mylib.a> [extra link flags]
-atlas_install_libs() {
- local libname=$(basename ${1%.*})
- einfo "Installing ${libname}"
- local soname=${libname}.so.$(get_major_version)
- shift
- pushd "${S}_shared"/lib > /dev/null
- ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
- "$@" -o ${soname} || die "Creating ${soname} failed"
- dolib.so ${soname}
- ln -s ${soname} ${soname%.*}
- dosym ${soname} /usr/$(get_libdir)/${soname%.*}
- popd > /dev/null
- use static-libs && dolib.a "${S}_static"/lib/${libname}.a
-}
-
-# create and install a pkgconfig file
-# atlas_install_pc <libname> <pkg name> [extra link flags]
-atlas_install_pc() {
- local libname=${1} ; shift
- local pcname=${1} ; shift
- cat <<-EOF > ${pcname}.pc
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${pcname}
- Description: ${PN} ${pcname}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${libname} $@
- Cflags: -I\${includedir}/${PN}
- ${PCREQ}
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${pcname}.pc
-}
-
-src_install() {
- cd "${S}_shared/lib"
- # rename to avoid collision with other packages
- local l
- for l in {,c}{blas,lapack}; do
- if [[ -e lib${l}.a ]]; then
- mv lib{,atl}${l}.a
- use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
- fi
- done
-
- [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
-
- # atlas
- atlas_install_libs libatlas.a -lm ${PTLIBS}
-
- # cblas
- atlas_install_libs libatlcblas.a -lm -L. -latlas
- atlas_install_pc atlcblas atlas-cblas -lm -latlas
- alternatives_for cblas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
- /usr/include/cblas.h atlas/cblas.h
-
- # cblas threaded
- if [[ -e libptcblas.a ]]; then
- atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
- alternatives_for cblas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
- /usr/include/cblas.h atlas/cblas.h
- fi
-
- if use lapack; then
- PCREQ="Requires: cblas"
- # clapack
- atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
- atlas_install_pc atlclapack atlas-clapack -lm -latlas
-
- # clapack threaded
- if [[ -e libptclapack.a ]]; then
- atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
- atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
- fi
- fi
-
- if use fortran; then
- LINK=$(tc-getF77) PCREQ=
- # blas
- atlas_install_libs libf77blas.a -lm -L. -latlas
- atlas_install_pc f77blas atlas-blas -lm -latlas
- alternatives_for blas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
-
- # blas threaded
- if [[ -e libptf77blas.a ]]; then
- atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
- alternatives_for blas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
- fi
-
- if use lapack; then
- PCREQ="Requires: blas cblas"
- # lapack
- atlas_install_libs libatllapack.a \
- -lm -L. -latlas -latlcblas -lf77blas
- atlas_install_pc atllapack atlas-lapack -lm -latlas
- alternatives_for lapack atlas 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
- # lapack threaded
- if [[ -e libptlapack.a ]]; then
- atlas_install_libs libptlapack.a \
- -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
- atlas_install_pc ptlapack atlas-lapack-threads \
- -lm -latlas ${PTLIBS}
- alternatives_for lapack atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
- fi
- fi
- fi
-
- cd "${S}"
- insinto /usr/include/${PN}
- doins include/*.h
-
- cd "${S}/doc"
- dodoc INDEX.txt AtlasCredits.txt ChangeLog
- use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
- use doc && use fortran && dodoc f77blas*pdf
- use doc && use fortran && use lapack && dodoc lapack*pdf
-}
diff --git a/sci-libs/atlas/atlas-3.9.77.ebuild b/sci-libs/atlas/atlas-3.9.79.ebuild
similarity index 100%
rename from sci-libs/atlas/atlas-3.9.77.ebuild
rename to sci-libs/atlas/atlas-3.9.79.ebuild
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-06-07 16:35 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-06-07 16:35 UTC (permalink / raw
To: gentoo-commits
commit: 3d6e6e2e421aa0b9c785e8f871b1e163a0b00883
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Thu Jun 7 16:35:13 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Jun 7 16:35:13 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3d6e6e2e
sci-libs/atlas: Version bump
(Portage version: 2.1.10.63/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 6 ++++++
.../{atlas-3.9.71.ebuild => atlas-3.9.77.ebuild} | 7 +------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index ce27013..dcc677f 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.77 (07 Jun 2012)
+
+ 07 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.71.ebuild,
+ +atlas-3.9.77.ebuild:
+ Version bump
+
*atlas-3.9.74 (07 May 2012)
07 May 2012; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.74.ebuild
diff --git a/sci-libs/atlas/atlas-3.9.71.ebuild b/sci-libs/atlas/atlas-3.9.77.ebuild
similarity index 98%
rename from sci-libs/atlas/atlas-3.9.71.ebuild
rename to sci-libs/atlas/atlas-3.9.77.ebuild
index b2a010a..311fef2 100644
--- a/sci-libs/atlas/atlas-3.9.71.ebuild
+++ b/sci-libs/atlas/atlas-3.9.77.ebuild
@@ -5,7 +5,7 @@
EAPI=4
inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
-LAPACKP=lapack-3.4.0.tgz
+LAPACKP=lapack-3.4.1.tgz
DESCRIPTION="Automatically Tuned Linear Algebra Software"
HOMEPAGE="http://math-atlas.sourceforge.net/"
@@ -46,11 +46,6 @@ pkg_setup() {
use fortran && fortran-2_pkg_setup
}
-src_prepare() {
- epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
- epatch "${FILESDIR}"/3.9.63-leaks.patch
-}
-
src_configure() {
atlas_configure() {
# hack needed to trick the flaky gcc detection
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-05-07 15:09 Andrea Arteaga
0 siblings, 0 replies; 32+ messages in thread
From: Andrea Arteaga @ 2012-05-07 15:09 UTC (permalink / raw
To: gentoo-commits
commit: ba916bc194e4ad562df99a41a012bfa221a40c6c
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Mon May 7 15:09:15 2012 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Mon May 7 15:09:15 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ba916bc1
[sci-libs/atlas] Version bump.
---
sci-libs/atlas/ChangeLog | 6 +
sci-libs/atlas/atlas-3.9.70.ebuild | 271 --------------------
.../{atlas-3.9.68.ebuild => atlas-3.9.74.ebuild} | 0
3 files changed, 6 insertions(+), 271 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 097e39a..ce27013 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.74 (07 May 2012)
+
+ 07 May 2012; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.74.ebuild
+ -atlas-3.9.68.ebuild -atlas-3.9.70.ebuild
+ Version bump
+
*atlas-3.9.71 (25 Mar 2012)
25 Mar 2012; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.71.ebuild:
diff --git a/sci-libs/atlas/atlas-3.9.70.ebuild b/sci-libs/atlas/atlas-3.9.70.ebuild
deleted file mode 100644
index b2a010a..0000000
--- a/sci-libs/atlas/atlas-3.9.70.ebuild
+++ /dev/null
@@ -1,271 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
-
-LAPACKP=lapack-3.4.0.tgz
-
-DESCRIPTION="Automatically Tuned Linear Algebra Software"
-HOMEPAGE="http://math-atlas.sourceforge.net/"
-SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
- fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="fortran doc lapack static-libs threads"
-
-RDEPEND="fortran? ( virtual/fortran )"
-DEPEND="${RDEPEND}
- !prefix? ( sys-power/cpufrequtils )"
-
-S="${WORKDIR}/ATLAS"
-
-pkg_setup() {
- if [[ -n $(type -P cpufreq-info) ]]; then
- [[ -z $(cpufreq-info -d) ]] && return
- local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
- local cpu=0
- while [[ ${cpu} -lt ${ncpu} ]]; do
- if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
- ewarn "CPU $cpu is not set to performance"
- ewarn "Run cpufreq-set -r -g performance as root"
- die "${PN} needs all cpu set to performance"
- fi
- cpu=$(( cpu + 1 ))
- done
- else
- ewarn "Please make sure to disable CPU throttling completely"
- ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
- ewarn "generated timings will be completely random and the"
- ewarn "performance of the resulting libraries will be degraded"
- ewarn "considerably."
- fi
- use fortran && fortran-2_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
- epatch "${FILESDIR}"/3.9.63-leaks.patch
-}
-
-src_configure() {
- atlas_configure() {
- # hack needed to trick the flaky gcc detection
- local mycc="$(tc-getCC)"
- [[ ${mycc} == *gcc* ]] && mycc=gcc
-
- local myconf=(
- "--prefix=${ED}/usr"
- "--libdir=${ED}/usr/$(get_libdir)"
- "--incdir=${ED}/usr/include"
- "--cc=${mycc}"
- "-C ac ${mycc}"
- "-D c -DWALL"
- "-F ac '${CFLAGS}'"
- "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
- )
-
- # OpenMP shown to decreased performance over POSIX threads
- # (at least in 3.9.x, see atlas-dev mailing list)
- if use threads; then
- myconf+=( "-t -1" "-Si omp 0" )
- else
- myconf+=( "-t 0" "-Si omp 0" )
- fi
-
- if use amd64 || use ppc64 || use sparc; then
- if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
- myconf+=( "-b 64" )
- elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
- myconf+=( "-b 32" )
- else
- myconf+=( "-b 64" )
- fi
- elif use ppc || use x86; then
- myconf+=( "-b 32" )
- elif use ia64; then
- myconf+=( "-b 64" )
- else #hppa alpha ...
- myconf+=( "" )
- fi
- if use fortran; then
- myconf+=(
- "-C if $(tc-getFC)"
- "-F if '${FFLAGS}'"
- )
- if use lapack; then
- myconf+=(
- "-Si latune 1"
- "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
- )
- else
- myconf+=( "-Si latune 0" )
- fi
- else
- myconf+=( "-Si latune 0" "--nof77" )
- fi
- local confdir="${S}_${1}"; shift
- myconf+=( $@ )
- mkdir "${confdir}" && cd "${confdir}"
- # for debugging
- echo ${myconf[@]} > myconf.out
- "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
- }
-
- atlas_configure shared "-Fa alg -fPIC"
- use static-libs && atlas_configure static
-}
-
-src_compile() {
- atlas_compile() {
- pushd "${S}_${1}" > /dev/null
- # atlas does its own parallel builds
- emake -j1 build
- cd lib
- emake libclapack.a
- [[ -e libptcblas.a ]] && emake libptclapack.a
- popd > /dev/null
- }
-
- atlas_compile shared
- use static-libs && atlas_compile static
-}
-
-src_test() {
- cd "${S}_shared"
- emake -j1 check time
-}
-
-# transform a static archive into a shared library and install them
-# atlas_install_libs <mylib.a> [extra link flags]
-atlas_install_libs() {
- local libname=$(basename ${1%.*})
- einfo "Installing ${libname}"
- local soname=${libname}.so.$(get_major_version)
- shift
- pushd "${S}_shared"/lib > /dev/null
- ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
- "$@" -o ${soname} || die "Creating ${soname} failed"
- dolib.so ${soname}
- ln -s ${soname} ${soname%.*}
- dosym ${soname} /usr/$(get_libdir)/${soname%.*}
- popd > /dev/null
- use static-libs && dolib.a "${S}_static"/lib/${libname}.a
-}
-
-# create and install a pkgconfig file
-# atlas_install_pc <libname> <pkg name> [extra link flags]
-atlas_install_pc() {
- local libname=${1} ; shift
- local pcname=${1} ; shift
- cat <<-EOF > ${pcname}.pc
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${pcname}
- Description: ${PN} ${pcname}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${libname} $@
- Cflags: -I\${includedir}/${PN}
- ${PCREQ}
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${pcname}.pc
-}
-
-src_install() {
- cd "${S}_shared/lib"
- # rename to avoid collision with other packages
- local l
- for l in {,c}{blas,lapack}; do
- if [[ -e lib${l}.a ]]; then
- mv lib{,atl}${l}.a
- use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
- fi
- done
-
- [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
-
- # atlas
- atlas_install_libs libatlas.a -lm ${PTLIBS}
-
- # cblas
- atlas_install_libs libatlcblas.a -lm -L. -latlas
- atlas_install_pc atlcblas atlas-cblas -lm -latlas
- alternatives_for cblas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
- /usr/include/cblas.h atlas/cblas.h
-
- # cblas threaded
- if [[ -e libptcblas.a ]]; then
- atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
- alternatives_for cblas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
- /usr/include/cblas.h atlas/cblas.h
- fi
-
- if use lapack; then
- PCREQ="Requires: cblas"
- # clapack
- atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
- atlas_install_pc atlclapack atlas-clapack -lm -latlas
-
- # clapack threaded
- if [[ -e libptclapack.a ]]; then
- atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
- atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
- fi
- fi
-
- if use fortran; then
- LINK=$(tc-getF77) PCREQ=
- # blas
- atlas_install_libs libf77blas.a -lm -L. -latlas
- atlas_install_pc f77blas atlas-blas -lm -latlas
- alternatives_for blas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
-
- # blas threaded
- if [[ -e libptf77blas.a ]]; then
- atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
- alternatives_for blas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
- fi
-
- if use lapack; then
- PCREQ="Requires: blas cblas"
- # lapack
- atlas_install_libs libatllapack.a \
- -lm -L. -latlas -latlcblas -lf77blas
- atlas_install_pc atllapack atlas-lapack -lm -latlas
- alternatives_for lapack atlas 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
- # lapack threaded
- if [[ -e libptlapack.a ]]; then
- atlas_install_libs libptlapack.a \
- -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
- atlas_install_pc ptlapack atlas-lapack-threads \
- -lm -latlas ${PTLIBS}
- alternatives_for lapack atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
- fi
- fi
- fi
-
- cd "${S}"
- insinto /usr/include/${PN}
- doins include/*.h
-
- cd "${S}/doc"
- dodoc INDEX.txt AtlasCredits.txt ChangeLog
- use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
- use doc && use fortran && dodoc f77blas*pdf
- use doc && use fortran && use lapack && dodoc lapack*pdf
-}
diff --git a/sci-libs/atlas/atlas-3.9.68.ebuild b/sci-libs/atlas/atlas-3.9.74.ebuild
similarity index 100%
rename from sci-libs/atlas/atlas-3.9.68.ebuild
rename to sci-libs/atlas/atlas-3.9.74.ebuild
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-03-25 0:32 Andrea Arteaga
0 siblings, 0 replies; 32+ messages in thread
From: Andrea Arteaga @ 2012-03-25 0:32 UTC (permalink / raw
To: gentoo-commits
commit: 9834916f903bc2e73a4e27bd417f5663d497878b
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Sun Mar 25 00:29:51 2012 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Sun Mar 25 00:29:51 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9834916f
[sci-libs/atlas] Version bump.
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.9.71.ebuild | 271 ++++++++++++++++++++++++++++++++++++
2 files changed, 276 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 6e40247..097e39a 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.71 (25 Mar 2012)
+
+ 25 Mar 2012; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.71.ebuild:
+ Version bump
+
*atlas-3.9.70 (16 Mar 2012)
16 Mar 2012; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.9.70.ebuild:
diff --git a/sci-libs/atlas/atlas-3.9.71.ebuild b/sci-libs/atlas/atlas-3.9.71.ebuild
new file mode 100644
index 0000000..b2a010a
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.9.71.ebuild
@@ -0,0 +1,271 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
+
+LAPACKP=lapack-3.4.0.tgz
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="fortran doc lapack static-libs threads"
+
+RDEPEND="fortran? ( virtual/fortran )"
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+ epatch "${FILESDIR}"/3.9.63-leaks.patch
+}
+
+src_configure() {
+ atlas_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(tc-getCC)"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.x, see atlas-dev mailing list)
+ if use threads; then
+ myconf+=( "-t -1" "-Si omp 0" )
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ # for debugging
+ echo ${myconf[@]} > myconf.out
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ }
+
+ atlas_configure shared "-Fa alg -fPIC"
+ use static-libs && atlas_configure static
+}
+
+src_compile() {
+ atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+ }
+
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check time
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas -lm -latlas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack -lm -latlas
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas -lm -latlas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack -lm -latlas
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads \
+ -lm -latlas ${PTLIBS}
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-03-16 21:41 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-03-16 21:41 UTC (permalink / raw
To: gentoo-commits
commit: 95540bae80476364168b133efabab637bd882c64
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Fri Mar 16 21:41:27 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 21:41:27 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=95540bae
sci-libs/atlas: Version bump
(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.9.70.ebuild | 271 ++++++++++++++++++++++++++++++++++++
2 files changed, 276 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 15ba360..6e40247 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.70 (16 Mar 2012)
+
+ 16 Mar 2012; Sébastien Fabbro <bicatali@gentoo.org> +atlas-3.9.70.ebuild:
+ Version bump
+
*atlas-3.9.68 (23 Feb 2012)
23 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.67.ebuild,
diff --git a/sci-libs/atlas/atlas-3.9.70.ebuild b/sci-libs/atlas/atlas-3.9.70.ebuild
new file mode 100644
index 0000000..b2a010a
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.9.70.ebuild
@@ -0,0 +1,271 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
+
+LAPACKP=lapack-3.4.0.tgz
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="fortran doc lapack static-libs threads"
+
+RDEPEND="fortran? ( virtual/fortran )"
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+ epatch "${FILESDIR}"/3.9.63-leaks.patch
+}
+
+src_configure() {
+ atlas_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(tc-getCC)"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.x, see atlas-dev mailing list)
+ if use threads; then
+ myconf+=( "-t -1" "-Si omp 0" )
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ # for debugging
+ echo ${myconf[@]} > myconf.out
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ }
+
+ atlas_configure shared "-Fa alg -fPIC"
+ use static-libs && atlas_configure static
+}
+
+src_compile() {
+ atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+ }
+
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check time
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas -lm -latlas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack -lm -latlas
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas -lm -latlas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack -lm -latlas
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads \
+ -lm -latlas ${PTLIBS}
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-02-23 19:05 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-02-23 19:05 UTC (permalink / raw
To: gentoo-commits
commit: 723e1e2023b7c823901f343a3b5de1df9af6635c
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Thu Feb 23 17:14:47 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Feb 23 17:14:47 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=723e1e20
sci-libs/atlas: Version bump
(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 6 ++++++
.../{atlas-3.9.67.ebuild => atlas-3.9.68.ebuild} | 0
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 206d35c..15ba360 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.68 (23 Feb 2012)
+
+ 23 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.67.ebuild,
+ +atlas-3.9.68.ebuild:
+ Version bump
+
20 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.63.ebuild,
atlas-3.9.67.ebuild:
Reverted to older lapack
diff --git a/sci-libs/atlas/atlas-3.9.67.ebuild b/sci-libs/atlas/atlas-3.9.68.ebuild
similarity index 100%
rename from sci-libs/atlas/atlas-3.9.67.ebuild
rename to sci-libs/atlas/atlas-3.9.68.ebuild
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-02-20 23:21 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-02-20 23:21 UTC (permalink / raw
To: gentoo-commits
commit: 7461839a9ec9e89f3479dbe95fff4414c60870a1
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Mon Feb 20 23:21:16 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Feb 20 23:21:16 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7461839a
sci-libs/atlas: Reverted to older lapack
(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 4 +
sci-libs/atlas/atlas-3.9.63.ebuild | 271 ------------------------------------
sci-libs/atlas/atlas-3.9.67.ebuild | 5 +-
3 files changed, 6 insertions(+), 274 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index d0d6ed2..206d35c 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 20 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.63.ebuild,
+ atlas-3.9.67.ebuild:
+ Reverted to older lapack
+
*atlas-3.9.67 (16 Feb 2012)
16 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.52.ebuild,
diff --git a/sci-libs/atlas/atlas-3.9.63.ebuild b/sci-libs/atlas/atlas-3.9.63.ebuild
deleted file mode 100644
index a3975eb..0000000
--- a/sci-libs/atlas/atlas-3.9.63.ebuild
+++ /dev/null
@@ -1,271 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-inherit eutils toolchain-funcs versionator alternatives-2
-
-LAPACKP=lapack-3.4.0
-
-DESCRIPTION="Automatically Tuned Linear Algebra Software"
-HOMEPAGE="http://math-atlas.sourceforge.net/"
-SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
- fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP}.tgz ) )"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="fortran doc lapack static-libs threads"
-
-RDEPEND="fortran? ( virtual/fortran )"
-DEPEND="${RDEPEND}
- !prefix? ( sys-power/cpufrequtils )"
-
-S="${WORKDIR}/ATLAS"
-
-atlas_configure() {
- # hack needed to trick the flaky gcc detection
- local mycc="$(tc-getCC)"
- [[ ${mycc} == *gcc* ]] && mycc=gcc
-
- local myconf=(
- "--prefix=${ED}/usr"
- "--libdir=${ED}/usr/$(get_libdir)"
- "--incdir=${ED}/usr/include"
- "--cc=${mycc}"
- "-C ac ${mycc}"
- "-D c -DWALL"
- "-F ac '${CFLAGS}'"
- "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
- )
-
- # OpenMP shown to decreased performance over POSIX threads
- # (at least in 3.9.x, see atlas-dev mailing list)
- if use threads; then
- myconf+=( "-t -1" "-Si omp 0" )
- else
- myconf+=( "-t 0" "-Si omp 0" )
- fi
-
- if use amd64 || use ppc64 || use sparc; then
- if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
- myconf+=( "-b 64" )
- elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
- myconf+=( "-b 32" )
- else
- myconf+=( "-b 64" )
- fi
- elif use ppc || use x86; then
- myconf+=( "-b 32" )
- elif use ia64; then
- myconf+=( "-b 64" )
- else #hppa alpha ...
- myconf+=( "" )
- fi
- if use fortran; then
- myconf+=(
- "-C if $(tc-getFC)"
- "-F if '${FFLAGS}'"
- )
- if use lapack; then
- myconf+=(
- "-Si latune 1"
- "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}.tgz"
- )
- else
- myconf+=( "-Si latune 0" )
- fi
- else
- myconf+=( "-Si latune 0" "--nof77" )
- fi
- local confdir="${S}_${1}"; shift
- myconf+=( $@ )
- mkdir "${confdir}" && cd "${confdir}"
- # for debugging
- echo ${myconf[@]} > myconf.out
- "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
-}
-
-atlas_compile() {
- pushd "${S}_${1}" > /dev/null
- # atlas does its own parallel builds
- emake -j1 build
- cd lib
- emake libclapack.a
- [[ -e libptcblas.a ]] && emake libptclapack.a
- popd > /dev/null
-}
-
-# transform a static archive into a shared library and install them
-# atlas_install_libs <mylib.a> [extra link flags]
-atlas_install_libs() {
- local libname=$(basename ${1%.*})
- einfo "Installing ${libname}"
- local soname=${libname}.so.$(get_major_version)
- shift
- pushd "${S}_shared"/lib > /dev/null
- ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
- "$@" -o ${soname} || die "Creating ${soname} failed"
- dolib.so ${soname}
- ln -s ${soname} ${soname%.*}
- dosym ${soname} /usr/$(get_libdir)/${soname%.*}
- popd > /dev/null
- use static-libs && dolib.a "${S}_static"/lib/${libname}.a
-}
-
-# create and install a pkgconfig file
-# atlas_install_pc <libname> <pkg name> [extra link flags]
-atlas_install_pc() {
- local libname=${1} ; shift
- local pcname=${1} ; shift
- cat <<-EOF > ${pcname}.pc
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${pcname}
- Description: ${PN} ${pcname}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${libname} $@
- Cflags: -I\${includedir}/${PN}
- ${PCREQ}
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${pcname}.pc
-}
-
-pkg_setup() {
- if [[ -n $(type -P cpufreq-info) ]]; then
- [[ -z $(cpufreq-info -d) ]] && return
- local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
- local cpu=0
- while [[ ${cpu} -lt ${ncpu} ]]; do
- if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
- ewarn "CPU $cpu is not set to performance"
- ewarn "Run cpufreq-set -r -g performance as root"
- die "${PN} needs all cpu set to performance"
- fi
- cpu=$(( cpu + 1 ))
- done
- else
- ewarn "Please make sure to disable CPU throttling completely"
- ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
- ewarn "generated timings will be completely random and the"
- ewarn "performance of the resulting libraries will be degraded"
- ewarn "considerably."
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
- epatch "${FILESDIR}"/3.9.63-leaks.patch
-}
-
-src_configure() {
- atlas_configure shared "-Fa alg -fPIC"
- use static-libs && atlas_configure static
-}
-
-src_compile() {
- atlas_compile shared
- use static-libs && atlas_compile static
-}
-
-src_test() {
- cd "${S}_shared"
- emake -j1 check
- emake -j1 time
-}
-
-src_install() {
- cd "${S}_shared/lib"
- # rename to avoid collision with other packages
- local l
- for l in {,c}{blas,lapack}; do
- if [[ -e lib${l}.a ]]; then
- mv lib{,atl}${l}.a
- use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
- fi
- done
-
- [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
-
- # atlas
- atlas_install_libs libatlas.a -lm ${PTLIBS}
-
- # cblas
- atlas_install_libs libatlcblas.a -lm -L. -latlas
- atlas_install_pc atlcblas atlas-cblas -lm -latlas
- alternatives_for cblas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
- /usr/include/cblas.h atlas/cblas.h
-
- # cblas threaded
- if [[ -e libptcblas.a ]]; then
- atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
- alternatives_for cblas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
- /usr/include/cblas.h atlas/cblas.h
- fi
-
- if use lapack; then
- PCREQ="Requires: cblas"
- # clapack
- atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
- atlas_install_pc atlclapack atlas-clapack -lm -latlas
-
- # clapack threaded
- if [[ -e libptclapack.a ]]; then
- atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
- atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
- fi
- fi
-
- if use fortran; then
- LINK=$(tc-getF77) PCREQ=
- # blas
- atlas_install_libs libf77blas.a -lm -L. -latlas
- atlas_install_pc f77blas atlas-blas -lm -latlas
- alternatives_for blas atlas 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
-
- # blas threaded
- if [[ -e libptf77blas.a ]]; then
- atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
- atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
- alternatives_for blas atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
- fi
-
- if use lapack; then
- PCREQ="Requires: blas cblas"
- # lapack
- atlas_install_libs libatllapack.a \
- -lm -L. -latlas -latlcblas -lf77blas
- atlas_install_pc atllapack atlas-lapack -lm -latlas
- alternatives_for lapack atlas 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
- # lapack threaded
- if [[ -e libptlapack.a ]]; then
- atlas_install_libs libptlapack.a \
- -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
- atlas_install_pc ptlapack atlas-lapack-threads \
- -lm -latlas ${PTLIBS}
- alternatives_for lapack atlas-threads 0 \
- /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
- fi
- fi
- fi
-
- cd "${S}"
- insinto /usr/include/${PN}
- doins include/*.h
-
- cd "${S}/doc"
- dodoc INDEX.txt AtlasCredits.txt ChangeLog
- use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
- use doc && use fortran && dodoc f77blas*pdf
- use doc && use fortran && use lapack && dodoc lapack*pdf
-}
diff --git a/sci-libs/atlas/atlas-3.9.67.ebuild b/sci-libs/atlas/atlas-3.9.67.ebuild
index 7292674..b2a010a 100644
--- a/sci-libs/atlas/atlas-3.9.67.ebuild
+++ b/sci-libs/atlas/atlas-3.9.67.ebuild
@@ -5,13 +5,12 @@
EAPI=4
inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
-LAPACKP=lapack-3.4.0_p20120215.tar.bz2
+LAPACKP=lapack-3.4.0.tgz
DESCRIPTION="Automatically Tuned Linear Algebra Software"
HOMEPAGE="http://math-atlas.sourceforge.net/"
SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
- fortran? ( lapack? ( http://dev.gentoo.org/~bicatali/distfiles/${LAPACKP} ) )"
-# fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
LICENSE="BSD"
SLOT="0"
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2012-02-16 4:26 Sebastien Fabbro
0 siblings, 0 replies; 32+ messages in thread
From: Sebastien Fabbro @ 2012-02-16 4:26 UTC (permalink / raw
To: gentoo-commits
commit: 08d6661fe7f7f57f390abe0bacf1d64e40ff8725
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Thu Feb 16 04:26:15 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 04:26:15 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=08d6661f
sci-libs/atlas: bump
(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/atlas/ChangeLog | 6 +
.../{atlas-3.9.52.ebuild => atlas-3.9.67.ebuild} | 209 ++++++++++----------
2 files changed, 113 insertions(+), 102 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index c702930..d0d6ed2 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.67 (16 Feb 2012)
+
+ 16 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -atlas-3.9.52.ebuild,
+ +atlas-3.9.67.ebuild:
+ bump
+
*atlas-3.9.63 (24 Jan 2012)
24 Jan 2012; Sébastien Fabbro <bicatali@gentoo.org>
diff --git a/sci-libs/atlas/atlas-3.9.52.ebuild b/sci-libs/atlas/atlas-3.9.67.ebuild
similarity index 73%
rename from sci-libs/atlas/atlas-3.9.52.ebuild
rename to sci-libs/atlas/atlas-3.9.67.ebuild
index 86157c9..7292674 100644
--- a/sci-libs/atlas/atlas-3.9.52.ebuild
+++ b/sci-libs/atlas/atlas-3.9.67.ebuild
@@ -1,16 +1,17 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
-inherit eutils toolchain-funcs versionator alternatives-2
+inherit eutils toolchain-funcs fortran-2 versionator alternatives-2
-LAPACKP=lapack-3.3.1
+LAPACKP=lapack-3.4.0_p20120215.tar.bz2
DESCRIPTION="Automatically Tuned Linear Algebra Software"
HOMEPAGE="http://math-atlas.sourceforge.net/"
SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
- fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP}.tgz ) )"
+ fortran? ( lapack? ( http://dev.gentoo.org/~bicatali/distfiles/${LAPACKP} ) )"
+# fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
LICENSE="BSD"
SLOT="0"
@@ -23,74 +24,120 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/ATLAS"
-atlas_configure() {
- local mycc="$(tc-getCC)"
- # http://sourceforge.net/tracker/?func=detail&aid=3301697&group_id=23725&atid=379483
- [[ ${mycc} == *gcc* ]] && mycc=gcc
- local myconf=(
- "--prefix=${ED}/usr"
- "--libdir=${ED}/usr/$(get_libdir)"
- "--incdir=${ED}/usr/include"
- "--cc=${mycc}"
- "-C ac ${mycc}"
- "-D c -DWALL"
- "-F ac '${CFLAGS}'"
- "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
- )
-
- # OpenMP shown to decreased performance over POSIX threads
- # (at least in 3.9.39, see atlas-dev mailing list)
- if use threads; then
- myconf+=( "-t -1" "-Si omp 0" )
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
else
- myconf+=( "-t 0" "-Si omp 0" )
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
fi
+ use fortran && fortran-2_pkg_setup
+}
- if use amd64 || use ppc64 || use sparc; then
- if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
- myconf+=( "-b 64" )
- elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
- myconf+=( "-b 32" )
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+ epatch "${FILESDIR}"/3.9.63-leaks.patch
+}
+
+src_configure() {
+ atlas_configure() {
+ # hack needed to trick the flaky gcc detection
+ local mycc="$(tc-getCC)"
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.x, see atlas-dev mailing list)
+ if use threads; then
+ myconf+=( "-t -1" "-Si omp 0" )
else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
fi
- elif use ppc || use x86; then
- myconf+=( "-b 32" )
- elif use ia64; then
- myconf+=( "-b 64" )
- else #hppa alpha ...
- myconf+=( "" )
- fi
- if use fortran; then
- myconf+=(
- "-C if $(tc-getFC)"
- "-F if '${FFLAGS}'"
- )
- if use lapack; then
+ if use fortran; then
myconf+=(
- "-Si latune 1"
- "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}.tgz"
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
)
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
else
- myconf+=( "-Si latune 0" )
+ myconf+=( "-Si latune 0" "--nof77" )
fi
- else
- myconf+=( "-Si latune 0" "--nof77" )
- fi
- local confdir="${S}_${1}"; shift
- myconf+=( $@ )
- mkdir "${confdir}" && cd "${confdir}"
- "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ # for debugging
+ echo ${myconf[@]} > myconf.out
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+ }
+
+ atlas_configure shared "-Fa alg -fPIC"
+ use static-libs && atlas_configure static
}
-atlas_compile() {
- pushd "${S}_${1}" > /dev/null
- # atlas does its own parallel builds
- emake -j1 build
- cd lib
- emake libclapack.a
- [[ -e libptcblas.a ]] && emake libptclapack.a
- popd > /dev/null
+src_compile() {
+ atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+ }
+
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check time
}
# transform a static archive into a shared library and install them
@@ -132,48 +179,6 @@ atlas_install_pc() {
doins ${pcname}.pc
}
-pkg_setup() {
- if [[ -n $(type -P cpufreq-info) ]]; then
- [[ -z $(cpufreq-info -d) ]] && return
- local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
- local cpu=0
- while [[ ${cpu} -lt ${ncpu} ]]; do
- if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
- ewarn "CPU $cpu is not set to performance"
- ewarn "Run cpufreq-set -r -g performance as root"
- die "${PN} needs all cpu set to performance"
- fi
- cpu=$(( cpu + 1 ))
- done
- else
- ewarn "Please make sure to disable CPU throttling completely"
- ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
- ewarn "generated timings will be completely random and the"
- ewarn "performance of the resulting libraries will be degraded"
- ewarn "considerably."
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
-}
-
-src_configure() {
- atlas_configure shared "-Fa alg -fPIC"
- use static-libs && atlas_configure static
-}
-
-src_compile() {
- atlas_compile shared
- use static-libs && atlas_compile static
-}
-
-src_test() {
- cd "${S}_shared"
- emake -j1 check
- emake -j1 time
-}
-
src_install() {
cd "${S}_shared/lib"
# rename to avoid collision with other packages
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2011-10-12 15:29 Andrea Arteaga
0 siblings, 0 replies; 32+ messages in thread
From: Andrea Arteaga @ 2011-10-12 15:29 UTC (permalink / raw
To: gentoo-commits
commit: e80638bc9d7a8eff77319fc0e5dcbbf1cff0fbe7
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Wed Oct 12 15:25:55 2011 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Wed Oct 12 15:25:55 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e80638bc
[sci-libs/atlas] Version bump
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.9.52.ebuild | 267 ++++++++++++++++++++++++++++++++++++
2 files changed, 272 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 34bee8c..ad02b93 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.52 (12 Oct 2001)
+
+ 12 Oct 2011; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.52.ebuild:
+ Version bump
+
*atlas-3.9.49 (06 Sep 2001)
06 Sep 2011; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.49.ebuild:
diff --git a/sci-libs/atlas/atlas-3.9.52.ebuild b/sci-libs/atlas/atlas-3.9.52.ebuild
new file mode 100644
index 0000000..86157c9
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.9.52.ebuild
@@ -0,0 +1,267 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs versionator alternatives-2
+
+LAPACKP=lapack-3.3.1
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP}.tgz ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="fortran doc lapack static-libs threads"
+
+RDEPEND="fortran? ( virtual/fortran )"
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+atlas_configure() {
+ local mycc="$(tc-getCC)"
+ # http://sourceforge.net/tracker/?func=detail&aid=3301697&group_id=23725&atid=379483
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.39, see atlas-dev mailing list)
+ if use threads; then
+ myconf+=( "-t -1" "-Si omp 0" )
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}.tgz"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+}
+
+atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+}
+
+src_configure() {
+ atlas_configure shared "-Fa alg -fPIC"
+ use static-libs && atlas_configure static
+}
+
+src_compile() {
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check
+ emake -j1 time
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas -lm -latlas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack -lm -latlas
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas -lm -latlas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack -lm -latlas
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads \
+ -lm -latlas ${PTLIBS}
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2011-09-06 9:35 Andrea Arteaga
0 siblings, 0 replies; 32+ messages in thread
From: Andrea Arteaga @ 2011-09-06 9:35 UTC (permalink / raw
To: gentoo-commits
commit: 6e6a77098abc7010371b288e67b17373264a8bf6
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Tue Sep 6 09:33:42 2011 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Tue Sep 6 09:33:42 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6e6a7709
Version bump.
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.9.49.ebuild | 267 ++++++++++++++++++++++++++++++++++++
2 files changed, 272 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index 88c9d4c..34bee8c 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.49 (06 Sep 2001)
+
+ 06 Sep 2011; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.9.49.ebuild:
+ Version bump
+
*atlas-3.8.4 (06 Aug 2011)
06 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.8.4.ebuild:
diff --git a/sci-libs/atlas/atlas-3.9.49.ebuild b/sci-libs/atlas/atlas-3.9.49.ebuild
new file mode 100644
index 0000000..86157c9
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.9.49.ebuild
@@ -0,0 +1,267 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs versionator alternatives-2
+
+LAPACKP=lapack-3.3.1
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP}.tgz ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="fortran doc lapack static-libs threads"
+
+RDEPEND="fortran? ( virtual/fortran )"
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+atlas_configure() {
+ local mycc="$(tc-getCC)"
+ # http://sourceforge.net/tracker/?func=detail&aid=3301697&group_id=23725&atid=379483
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.39, see atlas-dev mailing list)
+ if use threads; then
+ myconf+=( "-t -1" "-Si omp 0" )
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}.tgz"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+}
+
+atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+}
+
+src_configure() {
+ atlas_configure shared "-Fa alg -fPIC"
+ use static-libs && atlas_configure static
+}
+
+src_compile() {
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check
+ emake -j1 time
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas -lm -latlas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack -lm -latlas
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas -lm -latlas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack -lm -latlas
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads \
+ -lm -latlas ${PTLIBS}
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2011-08-15 17:18 Kacper Kowalik
0 siblings, 0 replies; 32+ messages in thread
From: Kacper Kowalik @ 2011-08-15 17:18 UTC (permalink / raw
To: gentoo-commits
commit: 0d2c97a74872dbbf2323f764245b73fd8088d351
Author: Kacper Kowalik (Xarthisius) <xarthisius <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 15 17:18:08 2011 +0000
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
CommitDate: Mon Aug 15 17:18:08 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0d2c97a7
Remove unused local USE-description: 'xblas'
---
sci-libs/atlas/metadata.xml | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml
index 93eedfb..94634e4 100644
--- a/sci-libs/atlas/metadata.xml
+++ b/sci-libs/atlas/metadata.xml
@@ -10,7 +10,4 @@
a subset of the linear algebra routine LAPACK library or the full
LAPACK using the reference LAPACK from Netlib.
</longdescription>
-<use>
- <flag name='xblas'>Build LAPACK with extra precision (needs <pkg>sci-libs/xblas</pkg>)</flag>
-</use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2011-08-06 14:00 Alexey Shvetsov
0 siblings, 0 replies; 32+ messages in thread
From: Alexey Shvetsov @ 2011-08-06 14:00 UTC (permalink / raw
To: gentoo-commits
commit: 9c8f5a5208125463333b883a60d6aa97d835e07c
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 6 13:58:23 2011 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sat Aug 6 13:58:23 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9c8f5a52
[sci-libs/atlas] Add prefix ~amd64-linux
(Portage version: 2.2.0_alpha50/git/Linux x86_64, signed Manifest commit with key F82F92E6)
---
sci-libs/atlas/atlas-3.8.4.ebuild | 2 +-
sci-libs/atlas/atlas-3.9.46.ebuild | 2 +-
sci-libs/atlas/atlas-3.9.47.ebuild | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.8.4.ebuild b/sci-libs/atlas/atlas-3.8.4.ebuild
index 8a54ce9..e0fc44d 100644
--- a/sci-libs/atlas/atlas-3.8.4.ebuild
+++ b/sci-libs/atlas/atlas-3.8.4.ebuild
@@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86 "
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
IUSE="fortran doc lapack static-libs threads"
RDEPEND="fortran? ( virtual/fortran )"
diff --git a/sci-libs/atlas/atlas-3.9.46.ebuild b/sci-libs/atlas/atlas-3.9.46.ebuild
index 78104f3..86157c9 100644
--- a/sci-libs/atlas/atlas-3.9.46.ebuild
+++ b/sci-libs/atlas/atlas-3.9.46.ebuild
@@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86 "
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
IUSE="fortran doc lapack static-libs threads"
RDEPEND="fortran? ( virtual/fortran )"
diff --git a/sci-libs/atlas/atlas-3.9.47.ebuild b/sci-libs/atlas/atlas-3.9.47.ebuild
index 78104f3..86157c9 100644
--- a/sci-libs/atlas/atlas-3.9.47.ebuild
+++ b/sci-libs/atlas/atlas-3.9.47.ebuild
@@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86 "
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
IUSE="fortran doc lapack static-libs threads"
RDEPEND="fortran? ( virtual/fortran )"
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2011-08-06 2:11 Andrea Arteaga
0 siblings, 0 replies; 32+ messages in thread
From: Andrea Arteaga @ 2011-08-06 2:11 UTC (permalink / raw
To: gentoo-commits
commit: 011428971f6477077fd800adc133d9720710fbd6
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Sat Aug 6 02:10:59 2011 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Sat Aug 6 02:10:59 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=01142897
Restored atlas-3.8.4 from bicatali.
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.8.4.ebuild | 281 +++++++++++++++++++++++++++++++++++++
2 files changed, 286 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index a73d972..88c9d4c 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.8.4 (06 Aug 2011)
+
+ 06 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> +atlas-3.8.4.ebuild:
+ Version 3.8.4 restored
+
*atlas-3.9.47 (06 Aug 2011)
06 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> atlas-3.9.47.ebuild:
diff --git a/sci-libs/atlas/atlas-3.8.4.ebuild b/sci-libs/atlas/atlas-3.8.4.ebuild
new file mode 100644
index 0000000..8a54ce9
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.8.4.ebuild
@@ -0,0 +1,281 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs versionator alternatives-2
+
+LAPACKP=lapack-3.3.1
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP}.tgz ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 "
+IUSE="fortran doc lapack static-libs threads"
+
+RDEPEND="fortran? ( virtual/fortran )"
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+lapack_compile() {
+ cd "${WORKDIR}/${LAPACKP}"
+ local timer=INT_CPU_TIME
+ case $(tc-getFC) in
+ *gfortran|*g77) timer=INT_ETIME ;;
+ *ifort) timer=EXT_ETIME ;;
+ esac
+ cat > make.inc <<-EOF
+ FORTRAN = $(tc-getFC)
+ OPTS = ${FFLAGS}
+ NOOPT = -O0
+ LOADER = $(tc-getFC)
+ LOADEROPTS = ${LDFLAGS}
+ ARCH = $(tc-getAR)
+ ARCHFLAGS = cr
+ RANLIB = $(tc-getRANLIB)
+ TIMER = ${timer}
+ EOF
+ if use static-libs; then
+ emake \
+ LAPACKLIB=liblapack_nonpic.a \
+ lapacklib || die "lapack static compilation failed"
+ emake clean
+ fi
+ emake \
+ LAPACKLIB=liblapack_pic.a \
+ OPTS="${FFLAGS} -fPIC" \
+ NOOPT="-O0 -fPIC" \
+ lapacklib || die "lapack pic compilation failed"
+}
+
+atlas_configure() {
+ local mycc="$(tc-getCC)"
+ # http://sourceforge.net/tracker/?func=detail&aid=3301697&group_id=23725&atid=379483
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ if use threads; then
+ myconf+=( "-t -1" )
+ else
+ myconf+=( "-t 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-Si nof77 0"
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
+ )
+ use lapack && myconf+=( "--with-netlib-lapack=${LAPACKLIB}" )
+ else
+ myconf+=( "-Si nof77 1" )
+ fi
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+}
+
+atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ popd > /dev/null
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+}
+
+src_configure() {
+ if use fortran && use lapack; then
+ lapack_compile
+ LAPACKLIB="${WORKDIR}/${LAPACKP}/liblapack_pic.a"
+ fi
+ atlas_configure shared "-Fa alg -fPIC"
+ if use static-libs; then
+ use fortran && use lapack && \
+ LAPACKLIB="${WORKDIR}/${LAPACKP}/liblapack_nonpic.a"
+ atlas_configure static
+ fi
+}
+
+src_compile() {
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check
+ emake -j1 time
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas -lm -latlas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack -lm -latlas
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas -lm -latlas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack -lm -latlas
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/
@ 2011-08-06 0:25 Andrea Arteaga
0 siblings, 0 replies; 32+ messages in thread
From: Andrea Arteaga @ 2011-08-06 0:25 UTC (permalink / raw
To: gentoo-commits
commit: 9f5c0b76d0735f8d1874bcd3b6f736af67c54af0
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Sat Aug 6 00:24:55 2011 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Sat Aug 6 00:24:55 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9f5c0b76
Version bump atlas
---
sci-libs/atlas/ChangeLog | 5 +
sci-libs/atlas/atlas-3.9.47.ebuild | 267 ++++++++++++++++++++++++++++++++++++
2 files changed, 272 insertions(+), 0 deletions(-)
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog
index bf4e5d4..a73d972 100644
--- a/sci-libs/atlas/ChangeLog
+++ b/sci-libs/atlas/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*atlas-3.9.47 (06 Aug 2011)
+
+ 06 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> atlas-3.9.47.ebuild:
+ Version bump
+
*atlas-3.9.46 (03 Aug 2011)
03 Aug 2011; Andrea Arteaga <andyspiros@gmail.com> -atlas-3.8.4.ebuild,
diff --git a/sci-libs/atlas/atlas-3.9.47.ebuild b/sci-libs/atlas/atlas-3.9.47.ebuild
new file mode 100644
index 0000000..78104f3
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.9.47.ebuild
@@ -0,0 +1,267 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs versionator alternatives-2
+
+LAPACKP=lapack-3.3.1
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
+ fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP}.tgz ) )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 "
+IUSE="fortran doc lapack static-libs threads"
+
+RDEPEND="fortran? ( virtual/fortran )"
+DEPEND="${RDEPEND}
+ !prefix? ( sys-power/cpufrequtils )"
+
+S="${WORKDIR}/ATLAS"
+
+atlas_configure() {
+ local mycc="$(tc-getCC)"
+ # http://sourceforge.net/tracker/?func=detail&aid=3301697&group_id=23725&atid=379483
+ [[ ${mycc} == *gcc* ]] && mycc=gcc
+ local myconf=(
+ "--prefix=${ED}/usr"
+ "--libdir=${ED}/usr/$(get_libdir)"
+ "--incdir=${ED}/usr/include"
+ "--cc=${mycc}"
+ "-C ac ${mycc}"
+ "-D c -DWALL"
+ "-F ac '${CFLAGS}'"
+ "-Ss pmake '\$(MAKE) ${MAKEOPTS}'"
+ )
+
+ # OpenMP shown to decreased performance over POSIX threads
+ # (at least in 3.9.39, see atlas-dev mailing list)
+ if use threads; then
+ myconf+=( "-t -1" "-Si omp 0" )
+ else
+ myconf+=( "-t 0" "-Si omp 0" )
+ fi
+
+ if use amd64 || use ppc64 || use sparc; then
+ if [ ${ABI} = amd64 ] || [ ${ABI} = ppc64 ] || [ ${ABI} = sparc64 ] ; then
+ myconf+=( "-b 64" )
+ elif [ ${ABI} = x86 ] || [ ${ABI} = ppc ] || [ ${ABI} = sparc32 ] ; then
+ myconf+=( "-b 32" )
+ else
+ myconf+=( "-b 64" )
+ fi
+ elif use ppc || use x86; then
+ myconf+=( "-b 32" )
+ elif use ia64; then
+ myconf+=( "-b 64" )
+ else #hppa alpha ...
+ myconf+=( "" )
+ fi
+ if use fortran; then
+ myconf+=(
+ "-C if $(tc-getFC)"
+ "-F if '${FFLAGS}'"
+ )
+ if use lapack; then
+ myconf+=(
+ "-Si latune 1"
+ "--with-netlib-lapack-tarfile=${DISTDIR}/${LAPACKP}.tgz"
+ )
+ else
+ myconf+=( "-Si latune 0" )
+ fi
+ else
+ myconf+=( "-Si latune 0" "--nof77" )
+ fi
+ local confdir="${S}_${1}"; shift
+ myconf+=( $@ )
+ mkdir "${confdir}" && cd "${confdir}"
+ "${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed"
+}
+
+atlas_compile() {
+ pushd "${S}_${1}" > /dev/null
+ # atlas does its own parallel builds
+ emake -j1 build
+ cd lib
+ emake libclapack.a
+ [[ -e libptcblas.a ]] && emake libptclapack.a
+ popd > /dev/null
+}
+
+# transform a static archive into a shared library and install them
+# atlas_install_libs <mylib.a> [extra link flags]
+atlas_install_libs() {
+ local libname=$(basename ${1%.*})
+ einfo "Installing ${libname}"
+ local soname=${libname}.so.$(get_major_version)
+ shift
+ pushd "${S}_shared"/lib > /dev/null
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libname}.a -Wl,--no-whole-archive \
+ "$@" -o ${soname} || die "Creating ${soname} failed"
+ dolib.so ${soname}
+ ln -s ${soname} ${soname%.*}
+ dosym ${soname} /usr/$(get_libdir)/${soname%.*}
+ popd > /dev/null
+ use static-libs && dolib.a "${S}_static"/lib/${libname}.a
+}
+
+# create and install a pkgconfig file
+# atlas_install_pc <libname> <pkg name> [extra link flags]
+atlas_install_pc() {
+ local libname=${1} ; shift
+ local pcname=${1} ; shift
+ cat <<-EOF > ${pcname}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${pcname}
+ Description: ${PN} ${pcname}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${libname} $@
+ Cflags: -I\${includedir}/${PN}
+ ${PCREQ}
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${pcname}.pc
+}
+
+pkg_setup() {
+ if [[ -n $(type -P cpufreq-info) ]]; then
+ [[ -z $(cpufreq-info -d) ]] && return
+ local ncpu=$(LANG=C cpufreq-info | grep -c "analyzing CPU")
+ local cpu=0
+ while [[ ${cpu} -lt ${ncpu} ]]; do
+ if ! $(LANG=C cpufreq-info -p -c ${cpu} | grep -q performance); then
+ ewarn "CPU $cpu is not set to performance"
+ ewarn "Run cpufreq-set -r -g performance as root"
+ die "${PN} needs all cpu set to performance"
+ fi
+ cpu=$(( cpu + 1 ))
+ done
+ else
+ ewarn "Please make sure to disable CPU throttling completely"
+ ewarn "during the compile of ${PN}. Otherwise, all ${PN}"
+ ewarn "generated timings will be completely random and the"
+ ewarn "performance of the resulting libraries will be degraded"
+ ewarn "considerably."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/3.9.39-bfr-overflow.patch
+}
+
+src_configure() {
+ atlas_configure shared "-Fa alg -fPIC"
+ use static-libs && atlas_configure static
+}
+
+src_compile() {
+ atlas_compile shared
+ use static-libs && atlas_compile static
+}
+
+src_test() {
+ cd "${S}_shared"
+ emake -j1 check
+ emake -j1 time
+}
+
+src_install() {
+ cd "${S}_shared/lib"
+ # rename to avoid collision with other packages
+ local l
+ for l in {,c}{blas,lapack}; do
+ if [[ -e lib${l}.a ]]; then
+ mv lib{,atl}${l}.a
+ use static-libs && mv "${S}"_static/lib/lib{,atl}${l}.a
+ fi
+ done
+
+ [[ -e libptcblas.a ]] && PTLIBS="-lpthread"
+
+ # atlas
+ atlas_install_libs libatlas.a -lm ${PTLIBS}
+
+ # cblas
+ atlas_install_libs libatlcblas.a -lm -L. -latlas
+ atlas_install_pc atlcblas atlas-cblas -lm -latlas
+ alternatives_for cblas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas.pc \
+ /usr/include/cblas.h atlas/cblas.h
+
+ # cblas threaded
+ if [[ -e libptcblas.a ]]; then
+ atlas_install_libs libptcblas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptcblas atlas-cblas-threads -lm -latlas ${PTLIBS}
+ alternatives_for cblas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/cblas.pc atlas-cblas-threads.pc \
+ /usr/include/cblas.h atlas/cblas.h
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: cblas"
+ # clapack
+ atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+ atlas_install_pc atlclapack atlas-clapack -lm -latlas
+
+ # clapack threaded
+ if [[ -e libptclapack.a ]]; then
+ atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas ${PTLIBS}
+ atlas_install_pc ptclapack atlas-clapack-threads -lm -latlas ${PTLIBS}
+ fi
+ fi
+
+ if use fortran; then
+ LINK=$(tc-getF77) PCREQ=
+ # blas
+ atlas_install_libs libf77blas.a -lm -L. -latlas
+ atlas_install_pc f77blas atlas-blas -lm -latlas
+ alternatives_for blas atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas.pc
+
+ # blas threaded
+ if [[ -e libptf77blas.a ]]; then
+ atlas_install_libs libptf77blas.a -lm -L. -latlas ${PTLIBS}
+ atlas_install_pc ptf77blas atlas-blas-threads -lm -latlas ${PTLIBS}
+ alternatives_for blas atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/blas.pc atlas-blas-threads.pc
+ fi
+
+ if use lapack; then
+ PCREQ="Requires: blas cblas"
+ # lapack
+ atlas_install_libs libatllapack.a \
+ -lm -L. -latlas -latlcblas -lf77blas
+ atlas_install_pc atllapack atlas-lapack -lm -latlas
+ alternatives_for lapack atlas 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack.pc
+ # lapack threaded
+ if [[ -e libptlapack.a ]]; then
+ atlas_install_libs libptlapack.a \
+ -lm -L. -latlas -lptcblas -lptf77blas ${PTLIBS}
+ atlas_install_pc ptlapack atlas-lapack-threads \
+ -lm -latlas ${PTLIBS}
+ alternatives_for lapack atlas-threads 0 \
+ /usr/$(get_libdir)/pkgconfig/lapack.pc atlas-lapack-threads.pc
+ fi
+ fi
+ fi
+
+ cd "${S}"
+ insinto /usr/include/${PN}
+ doins include/*.h
+
+ cd "${S}/doc"
+ dodoc INDEX.txt AtlasCredits.txt ChangeLog
+ use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf
+ use doc && use fortran && dodoc f77blas*pdf
+ use doc && use fortran && use lapack && dodoc lapack*pdf
+}
^ permalink raw reply related [flat|nested] 32+ messages in thread
end of thread, other threads:[~2017-06-26 20:35 UTC | newest]
Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-13 14:39 [gentoo-commits] proj/sci:master commit in: sci-libs/atlas/ Justin Lecher
-- strict thread matches above, loose matches on Subject: below --
2017-06-26 20:35 Justin Lecher
2017-02-03 10:25 Marius Brehler
2016-12-02 9:06 Marius Brehler
2016-09-07 13:15 Marius Brehler
2016-01-03 10:33 Alexey Shvetsov
2015-12-14 11:39 Justin Lecher
2015-12-08 15:25 Justin Lecher
2015-12-05 13:32 Justin Lecher
2014-02-02 17:01 Reinis Danne
2014-01-28 19:01 Sebastien Fabbro
2013-10-14 9:38 Justin Lecher
2013-05-23 5:13 Sebastien Fabbro
2013-02-25 1:20 Sebastien Fabbro
2013-02-20 19:09 Sebastien Fabbro
2013-01-28 22:51 Sebastien Fabbro
2012-07-10 21:28 Sebastien Fabbro
2012-06-26 22:27 Sebastien Fabbro
2012-06-18 22:01 Sebastien Fabbro
2012-06-07 16:35 Sebastien Fabbro
2012-05-07 15:09 Andrea Arteaga
2012-03-25 0:32 Andrea Arteaga
2012-03-16 21:41 Sebastien Fabbro
2012-02-23 19:05 Sebastien Fabbro
2012-02-20 23:21 Sebastien Fabbro
2012-02-16 4:26 Sebastien Fabbro
2011-10-12 15:29 Andrea Arteaga
2011-09-06 9:35 Andrea Arteaga
2011-08-15 17:18 Kacper Kowalik
2011-08-06 14:00 Alexey Shvetsov
2011-08-06 2:11 Andrea Arteaga
2011-08-06 0:25 Andrea Arteaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox