public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/atlas/
@ 2016-12-31 22:20 Agostino Sarubbo
  0 siblings, 0 replies; 4+ messages in thread
From: Agostino Sarubbo @ 2016-12-31 22:20 UTC (permalink / raw
  To: gentoo-commits

commit:     0f3ba8a6dc38d5106103a4312652230c5eba96d7
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 31 22:18:19 2016 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Sat Dec 31 22:20:21 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f3ba8a6

sci-libs/atlas: amd64 stable wrt bug #595218

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 sci-libs/atlas/atlas-3.10.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/atlas/atlas-3.10.2.ebuild b/sci-libs/atlas/atlas-3.10.2.ebuild
index 7e80dd9..c1120c8 100644
--- a/sci-libs/atlas/atlas-3.10.2.ebuild
+++ b/sci-libs/atlas/atlas-3.10.2.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"
+KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc fortran generic lapack static-libs threads"
 
 RDEPEND=""


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/atlas/
@ 2022-11-19 11:41 Andrew Ammerlaan
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Ammerlaan @ 2022-11-19 11:41 UTC (permalink / raw
  To: gentoo-commits

commit:     d0f80b8e0222d3cc9404ab9b3fa90eab9661100f
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Nov 19 08:57:46 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Nov 19 11:39:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0f80b8e

sci-libs/atlas: use HTTPS

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/atlas/atlas-3.10.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/atlas/atlas-3.10.2.ebuild b/sci-libs/atlas/atlas-3.10.2.ebuild
index fcc3e5e0b331..b763f1f14b3f 100644
--- a/sci-libs/atlas/atlas-3.10.2.ebuild
+++ b/sci-libs/atlas/atlas-3.10.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ inherit fortran-2 toolchain-funcs versionator
 LAPACKP=lapack-3.6.0.tgz
 
 DESCRIPTION="Automatically Tuned Linear Algebra Software"
-HOMEPAGE="http://math-atlas.sourceforge.net/"
+HOMEPAGE="https://math-atlas.sourceforge.net"
 SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
 	fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/atlas/
@ 2024-07-26 15:23 Arthur Zamarin
  0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2024-07-26 15:23 UTC (permalink / raw
  To: gentoo-commits

commit:     92b72bc59e461020ad083ed54f29e2a1f916919b
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Wed Jun 12 23:27:38 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 26 15:23:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92b72bc5

sci-libs/atlas: add 3.10.2-r1 update to EAPI-8

Closes: https://bugs.gentoo.org/836099
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../{atlas-3.10.2.ebuild => atlas-3.10.2-r1.ebuild}    | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/sci-libs/atlas/atlas-3.10.2.ebuild b/sci-libs/atlas/atlas-3.10.2-r1.ebuild
similarity index 95%
rename from sci-libs/atlas/atlas-3.10.2.ebuild
rename to sci-libs/atlas/atlas-3.10.2-r1.ebuild
index 43582741de1a..88ac1701512c 100644
--- a/sci-libs/atlas/atlas-3.10.2.ebuild
+++ b/sci-libs/atlas/atlas-3.10.2-r1.ebuild
@@ -1,11 +1,11 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 FORTRAN_NEEDED=fortran
 
-inherit fortran-2 toolchain-funcs versionator
+inherit fortran-2 toolchain-funcs
 
 LAPACKP=lapack-3.6.0.tgz
 
@@ -13,17 +13,13 @@ DESCRIPTION="Automatically Tuned Linear Algebra Software"
 HOMEPAGE="https://math-atlas.sourceforge.net"
 SRC_URI="https://downloads.sourceforge.net/math-atlas/${PN}${PV}.tar.bz2
 	fortran? ( lapack? ( http://www.netlib.org/lapack/${LAPACKP} ) )"
+S="${WORKDIR}/ATLAS"
 
 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"
-
 PATCHES=(
 	"${FILESDIR}/${P}-x32-support.patch"
 	"${FILESDIR}/${P}-format-security.patch"
@@ -48,9 +44,9 @@ src_configure() {
 	[[ ${mycc} == *gcc* ]] && mycc=gcc
 	atlas_configure() {
 		local myconf=(
-			--prefix="${ED}/usr"
-			--libdir="${ED}/usr/$(get_libdir)"
-			--incdir="${ED}/usr/include"
+			--prefix="/usr"
+			--libdir="/usr/$(get_libdir)"
+			--incdir="/usr/include"
 			--cc="$(tc-getCC)"
 			"-D c -DWALL"
 			"-C acg '${mycc}'"
@@ -143,7 +139,7 @@ src_test() {
 atlas_install_libs() {
 	local libname=$(basename ${1%.*})
 	einfo "Installing ${libname}"
-	local soname=${libname}.so.$(get_major_version)
+	local soname=${libname}.so.$(ver_cut 1)
 	shift
 	pushd "${S}_shared"/lib > /dev/null
 	${LINK:-$(tc-getCC)} ${LDFLAGS} -shared -Wl,-soname=${soname} \


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/atlas/
@ 2024-07-26 15:23 Arthur Zamarin
  0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2024-07-26 15:23 UTC (permalink / raw
  To: gentoo-commits

commit:     337352772ff4bc85ad33f4c1cb92a842345ec197
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue Jul 23 13:40:56 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 26 15:23:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33735277

sci-libs/atlas: add 3.11.41

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37726
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sci-libs/atlas/Manifest             |   1 +
 sci-libs/atlas/atlas-3.11.41.ebuild | 225 ++++++++++++++++++++++++++++++++++++
 2 files changed, 226 insertions(+)

diff --git a/sci-libs/atlas/Manifest b/sci-libs/atlas/Manifest
index a0826c4336b6..acbfae0299f8 100644
--- a/sci-libs/atlas/Manifest
+++ b/sci-libs/atlas/Manifest
@@ -1,4 +1,5 @@
 DIST atlas3.10.2.tar.bz2 4904923 BLAKE2B e2fb0d307907549644cb678c32c4befce7ce6809c348a11fa6084e17d696da8681b3388dd63d8bdee6040999d9ab38a75f1788b42640121a536eb5f13e6f8939 SHA512 9fe04cfa1f89449db047d1a4659a656964d13117c783cbbe43344eb32555736f037d9cd30c5ae1514c08ad5b8949a3982d7fe102d707ddb62288e76b2607fbb1
 DIST atlas3.10.3.tar.bz2 5156852 BLAKE2B cd3880a6d0c43b5840d4da26ac996cc9fe7615fc996229193ef1f936daa2c54c5465643def19f59dd5c481c447176e2ba3cf85d38c0b5008c2dc1bc18be0e65b SHA512 bf17306f09f2aa973cb776e2c9eacfb2409ad4d95d19802e1c4e0597d0a099fccdb5eaafe273c2682a41e41a3c6fabc8bbba4ce03180cffea40ede5df1d1f56e
+DIST atlas3.11.41.tar.bz2 6644195 BLAKE2B c046725f1a8978e345cb59026b93029483ecdfa0151256cca5dcdd337ced2a63819c19319795b663cd12180e8be0db475a3d1c1a5d76296ef333f99887d9e44a SHA512 06306c588505dcf22a1afa0f57d85b0008728deb5876e66b2710fee29712b979aa63eafc9142be2372b9895ba594cc5aba230aa3d1ddc95932af1e585478204d
 DIST lapack-3.12.0.tar.gz 7933607 BLAKE2B dafb1f9a717f2cbc00a26f8cff2c7a1ebb720714fe6d7bd5fabb511a2f4af317165814340864c9d601e4e16c7762f643fbbafc058170ebcdc6529a9b4f2d70b6 SHA512 f8f3c733a0221be0b3f5618235408ac59cbd4e5f1c4eab5f509b831a6ec6a9ef14b8849aa6ea10810df1aff90186ca454d15e9438d1dd271c2449d42d3da9dda
 DIST lapack-3.6.0.tgz 6792324 BLAKE2B 438f3376b63b38ef0fe70f6becac847816f3a11c01f5ab237dc0d941792ceb54dbd2f8dc22d56286f5dab3499289ed94e67521ea951a98973c9640abc294ad6c SHA512 bc50441d415ef8896dd7626d77c6104184b996e758704366288089f03d4c99d068e33153b0d13305310886017e5d2e716130f812a95cfcad36ef37fe20417ab8

diff --git a/sci-libs/atlas/atlas-3.11.41.ebuild b/sci-libs/atlas/atlas-3.11.41.ebuild
new file mode 100644
index 000000000000..f4a8920320ab
--- /dev/null
+++ b/sci-libs/atlas/atlas-3.11.41.ebuild
@@ -0,0 +1,225 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEEDED=fortran
+
+inherit fortran-2 toolchain-funcs
+
+LAPACKPV=3.12.0
+
+DESCRIPTION="Automatically Tuned Linear Algebra Software"
+HOMEPAGE="https://math-atlas.sourceforge.net"
+SRC_URI="https://downloads.sourceforge.net/math-atlas/${PN}${PV}.tar.bz2
+	fortran? ( lapack? (
+		https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v${LAPACKPV}.tar.gz
+		-> lapack-${LAPACKPV}.tar.gz
+	) )
+"
+S="${WORKDIR}/ATLAS"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc fortran generic lapack static-libs threads"
+
+PATCHES=(
+	# TODO These don't apply, find out why
+	# "${FILESDIR}/${PN}-3.10.2-x32-support.patch"
+	# "${FILESDIR}/${PN}-3.10.2-format-security.patch"
+)
+
+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_configure() {
+	# hack needed to trick the flaky gcc detection
+	local mycc
+	mycc="$(type -P "$(tc-getCC)")"
+	[[ ${mycc} == *gcc* ]] && mycc=gcc
+	atlas_configure() {
+		local myconf=(
+			--cripple-atlas-performance
+			--prefix="/usr"
+			--libdir="/usr/$(get_libdir)"
+			--incdir="/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}/lapack-${LAPACKPV}.tar.gz"
+				)
+			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}" || die
+		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 soname
+	libname=$(basename "${1%.*}")
+	einfo "Installing ${libname}"
+	soname=${libname}.so.$(ver_cut 1)
+	shift
+	pushd "${S}_shared"/lib > /dev/null || die
+	${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"
+}
+
+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"
+			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
+
+	# cblas threaded
+	[[ -e libptcblas.a ]] && \
+		atlas_install_libs libptcblas.a -lm -L. -latlas "${PTLIBS}"
+
+	if use lapack; then
+		# clapack
+		atlas_install_libs libatlclapack.a -lm -L. -latlas -latlcblas
+
+		# clapack threaded
+		[[ -e libptclapack.a ]] && \
+			atlas_install_libs libptclapack.a -lm -L. -latlas -lptcblas "${PTLIBS}"
+	fi
+
+	if use fortran; then
+		LINK=$(tc-getF77)
+
+		# blas
+		atlas_install_libs libf77blas.a -lm -L. -latlas
+
+		# blas threaded
+		[[ -e libptf77blas.a ]] && \
+			atlas_install_libs libptf77blas.a -lm -L. -latlas "${PTLIBS}"
+
+		if use lapack; then
+			# lapack
+			atlas_install_libs libatllapack.a \
+				-lm -L. -latlas -latlcblas -lf77blas
+			# lapack threaded
+			[[ -e libptlapack.a ]] && \
+				atlas_install_libs libptlapack.a -lm -L. -latlas -lptcblas -lptf77blas "${PTLIBS}"
+		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] 4+ messages in thread

end of thread, other threads:[~2024-07-26 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-31 22:20 [gentoo-commits] repo/gentoo:master commit in: sci-libs/atlas/ Agostino Sarubbo
  -- strict thread matches above, loose matches on Subject: below --
2022-11-19 11:41 Andrew Ammerlaan
2024-07-26 15:23 Arthur Zamarin
2024-07-26 15:23 Arthur Zamarin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox