summaryrefslogtreecommitdiff
path: root/sci-libs/libint/libint-1.1.6-r1.ebuild
blob: 38ee28873890386ab59a8b4f4233b7da7e7dfe47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools fortran-2 toolchain-funcs flag-o-matic

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
	"${FILESDIR}"/${P}-cflags.patch
)

src_prepare() {
	mv configure.{in,ac} || die
	default
	eautoreconf
}

src_configure() {
	append-cflags -std=gnu17
	local myeconfargs=(
		--enable-deriv
		--enable-r12
		--with-cc="$(tc-getCC)"
		--with-cxx="$(tc-getCXX)"
		--with-cc-optflags="${CFLAGS}"
		--with-cxx-optflags="${CXXFLAGS}"
	)
	econf "${myeconfargs[@]}"
}