commit:     1f50e111b6c3d97ffcc264247341b5e30b50419d
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Mon Apr 28 16:00:29 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 19:07:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f50e111

sci-libs/libint: add 2.11.0

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41836
Closes: https://github.com/gentoo/gentoo/pull/41836
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/libint/Manifest             |  1 +
 sci-libs/libint/libint-2.11.0.ebuild | 78 ++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/sci-libs/libint/Manifest b/sci-libs/libint/Manifest
index 2e220725aef7..5c42e92a40f2 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.11.0.tar.gz 21958050 BLAKE2B 
44f4317a258d4133e3045b036446644bbfb08f15d263b1dc049b37e14cc10608a9834f90154e257b16af29569e34e5b2bdff591530777bd4d7e05d22a52f7f18
 SHA512 
00e3c9b3938aaf7c0b463686f2bf245f0ebefabdab84e3b898a29a87420ca4d461769558e30ff9cf84e6c2c588a3910fcec1ded353f5c62f9ecaf4ee637b6e32
 DIST libint-2.9.0.tar.gz 21705777 BLAKE2B 
b2e8f36356f6eb8eff1207ba47c0f3bcc4471bd918cf933d03a1dd97efddd72d65464af743815d8bb633567ba97b19b8629881a5115b14f1630df1be7e6d0304
 SHA512 
6cffbd3d78dee4722b8085f4dd93085351cb610b5cb7ac090335adb2c43e87256ca06a658c202473fd763a38f7c0eeb6570b2c6a107e3f41d1258baf6e5b17de

diff --git a/sci-libs/libint/libint-2.11.0.ebuild 
b/sci-libs/libint/libint-2.11.0.ebuild
new file mode 100644
index 000000000000..35faa80ff04a
--- /dev/null
+++ b/sci-libs/libint/libint-2.11.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2025 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
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}"/libint-2.9.0-gcc15-include.patch
+)
+
+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
+}

Reply via email to