mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-26 07:28:10 -07:00
Bug: https://bugs.gentoo.org/473598 Bug: https://bugs.gentoo.org/720224 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
38 lines
836 B
Bash
38 lines
836 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools fortran-2 toolchain-funcs
|
|
|
|
MY_PV="$(ver_rs 0- -)"
|
|
|
|
DESCRIPTION="Matrix elements (integrals) evaluation over Cartesian Gaussian functions"
|
|
HOMEPAGE="https://github.com/evaleev/libint"
|
|
SRC_URI="https://github.com/evaleev/libint/archive/release-${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}-release-${MY_PV}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="1"
|
|
KEYWORDS="amd64 ~x86"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-as-needed.patch )
|
|
|
|
src_prepare() {
|
|
mv configure.{in,ac} || die
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
--enable-deriv
|
|
--enable-r12
|
|
--with-cc="$(tc-getCC)"
|
|
--with-cxx="$(tc-getCXX)"
|
|
--with-cc-optflags="${CFLAGS}"
|
|
--with-cxx-optflags="${CXXFLAGS}"
|
|
)
|
|
econf "${myeconfargs[@]}"
|
|
}
|