From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1612043-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E64B158041 for <garchives@archives.gentoo.org>; Sun, 17 Mar 2024 10:42:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39F63E29B7; Sun, 17 Mar 2024 10:42:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E7F2EE29B7 for <gentoo-commits@lists.gentoo.org>; Sun, 17 Mar 2024 10:42:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A0A733BF29 for <gentoo-commits@lists.gentoo.org>; Sun, 17 Mar 2024 10:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4890FBEB for <gentoo-commits@lists.gentoo.org>; Sun, 17 Mar 2024 10:42:18 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1710672106.5e0c88b630a733242dea94eae1a00e833d4242ee.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libint/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/libint/Manifest sci-libs/libint/libint-2.9.0.ebuild X-VCS-Directories: sci-libs/libint/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5e0c88b630a733242dea94eae1a00e833d4242ee X-VCS-Branch: master Date: Sun, 17 Mar 2024 10:42:18 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: acf8e12c-46d0-463a-a7d0-367e1a792553 X-Archives-Hash: 96e9d3f6bbd853c480b557839acaf8f5 commit: 5e0c88b630a733242dea94eae1a00e833d4242ee Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Mar 17 10:37:26 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Mar 17 10:41:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e0c88b6 sci-libs/libint: add 2.9.0 Filter LTO given it's a tonne of code generating stuff and it takes hours to build. Filld with reinterpret_cast. Closes: https://bugs.gentoo.org/862894 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/libint/Manifest | 1 + sci-libs/libint/libint-2.9.0.ebuild | 74 +++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/sci-libs/libint/Manifest b/sci-libs/libint/Manifest index f9aba9659d87..037fb5fba076 100644 --- a/sci-libs/libint/Manifest +++ b/sci-libs/libint/Manifest @@ -1,2 +1,3 @@ DIST libint-1.1.6.tar.gz 256404 BLAKE2B c754e25f0c3bc6c52eb434beafd2cb794a2e715003ee9409d76e8ae06e0ce19a42a9331ad4db9be2745d6820e7248210d10b4c004146e99192fd16fd2c31966d SHA512 cb39d73e89431c324e32d4a71593fe913c7ae2132677d4600e63ce1ed99e8e431758f0aa3d130991da841e98a1064fa931eb0e82dbe80af4c0ece10ee3a4f2d7 DIST libint-2.6.0.tar.gz 24743255 BLAKE2B 3ab7baba012828485c6c8425bce100e1ab50d2a3c8443ea2ef5cf173d58d8aa211a07e837b10a7f89d7e57f2e15b9384060bbf7b9885f32e9426525e65e15960 SHA512 56343c64b0dfb829702f4bb2fe14a04ad063acd7cb8b5a21cd1a45a830944c1ee98c888c9a28d6746b1bc17459aefcfb0aafe6ef310bfe554056212ad19e43ef +DIST libint-2.9.0.tar.gz 21705777 BLAKE2B b2e8f36356f6eb8eff1207ba47c0f3bcc4471bd918cf933d03a1dd97efddd72d65464af743815d8bb633567ba97b19b8629881a5115b14f1630df1be7e6d0304 SHA512 6cffbd3d78dee4722b8085f4dd93085351cb610b5cb7ac090335adb2c43e87256ca06a658c202473fd763a38f7c0eeb6570b2c6a107e3f41d1258baf6e5b17de diff --git a/sci-libs/libint/libint-2.9.0.ebuild b/sci-libs/libint/libint-2.9.0.ebuild new file mode 100644 index 000000000000..f2d1c2fa4e39 --- /dev/null +++ b/sci-libs/libint/libint-2.9.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Matrix elements (integrals) evaluation over Cartesian Gaussian functions" +HOMEPAGE="https://github.com/evaleev/libint" +SRC_URI="https://github.com/evaleev/libint/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs doc" + +DEPEND=" + dev-libs/boost + dev-libs/gmp[cxx(+)] + doc? ( + dev-texlive/texlive-latex + dev-tex/latex2html + ) +" + +src_prepare() { + default + eautoreconf + + # bug 725454 + sed -i -e '/RANLIB/d' src/bin/libint/Makefile || die +} + +src_configure() { + # bug #862894 + append-flags -fno-strict-aliasing + filter-lto + + econf \ + --with-cxx="$(tc-getCXX)" \ + --with-cxx-optflags="${CXXFLAGS}" \ + --with-cxxgen-optflags="${CXXFLAGS}" \ + --with-cxxdepend="$(tc-getCXX)" \ + --with-ranlib="$(tc-getRANLIB)" \ + --with-ar="$(tc-getAR)" \ + --with-ld="$(tc-getLD)" \ + --enable-eri=2 --enable-eri3=2 --enable-eri2=2 \ + --with-eri-max-am=7,5,4 --with-eri-opt-am=3 \ + --with-eri3-max-am=7 --with-eri2-max-am=7 \ + --with-g12-max-am=5 --with-g12-opt-am=3 \ + --with-g12dkh-max-am=5 --with-g12dkh-opt-am=3 \ + --enable-contracted-ints \ + --enable-shared \ + $(use_enable static-libs static) +} + +src_compile() { + emake LDFLAGS="${LDFLAGS}" + + use doc && emake html pdf +} + +src_install() { + default + if ! use static-libs; then + find "${ED}" -name '*.la' -delete || die "Failed to remove .la files" + fi + + if use doc; then + DOCS=( doc/progman/progman.pdf ) + HTML_DOCS=( doc/progman/progman/*.{html,png,css} ) + einstalldocs + fi +}