Diff libint-1.1.6 with a libint-2.6.0-r5

/usr/portage/sci-libs/libint/libint-2.6.0-r5.ebuild 2023-10-09 14:52:35.080368491 +0300
5 5

  
6 6
inherit autotools fortran-2 toolchain-funcs
7 7

  
8
MY_PV="$(ver_rs 0- -)"
9

  
10 8
DESCRIPTION="Matrix elements (integrals) evaluation over Cartesian Gaussian functions"
11 9
HOMEPAGE="https://github.com/evaleev/libint"
12
SRC_URI="https://github.com/evaleev/libint/archive/release-${MY_PV}.tar.gz -> ${P}.tar.gz"
13
S="${WORKDIR}/${PN}-release-${MY_PV}"
10
SRC_URI="https://github.com/evaleev/libint/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 11

  
12
SLOT="2"
15 13
LICENSE="GPL-2"
16
SLOT="1"
17 14
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
15
IUSE="static-libs doc"
18 16

  
19
PATCHES=( "${FILESDIR}"/${P}-as-needed.patch )
17
DEPEND="
18
	dev-libs/boost
19
	dev-libs/gmp[cxx(+)]
20
	doc? (
21
		dev-texlive/texlive-latex
22
		dev-tex/latex2html
23
	)"
20 24

  
21 25
src_prepare() {
22
	mv configure.{in,ac} || die
23 26
	default
24 27
	eautoreconf
28

  
29
	# bug 725454
30
	sed -i -e '/RANLIB/d' src/bin/libint/Makefile || die
25 31
}
26 32

  
27 33
src_configure() {
28
	local myeconfargs=(
29
		--enable-deriv
30
		--enable-r12
31
		--with-cc="$(tc-getCC)"
32
		--with-cxx="$(tc-getCXX)"
33
		--with-cc-optflags="${CFLAGS}"
34
		--with-cxx-optflags="${CXXFLAGS}"
35
	)
36
	econf "${myeconfargs[@]}"
34
	econf \
35
		--with-cxx="$(tc-getCXX)" \
36
		--with-cxx-optflags="${CXXFLAGS}" \
37
		--with-cxxgen-optflags="${CXXFLAGS}" \
38
		--with-cxxdepend="$(tc-getCXX)" \
39
		--with-ranlib="$(tc-getRANLIB)" \
40
		--with-ar="$(tc-getAR)" \
41
		--with-ld="$(tc-getLD)" \
42
		--enable-eri=2 --enable-eri3=2 --enable-eri2=2 \
43
		--with-eri-max-am=7,5,4 --with-eri-opt-am=3 \
44
		--with-eri3-max-am=7 --with-eri2-max-am=7 \
45
		--with-g12-max-am=5 --with-g12-opt-am=3 \
46
		--with-g12dkh-max-am=5 --with-g12dkh-opt-am=3 \
47
		--enable-contracted-ints \
48
		--enable-shared \
49
		$(use_enable static-libs static)
50
}
51

  
52
src_compile() {
53
	emake LDFLAGS="${LDFLAGS}"
54

  
55
	use doc && emake html pdf
56
}
57

  
58
src_install() {
59
	default
60
	if ! use static-libs; then
61
		find "${ED}" -name '*.la' -delete || die "Failed to remove .la files"
62
	fi
63

  
64
	if use doc; then
65
		DOCS=( doc/progman/progman.pdf )
66
		HTML_DOCS=( doc/progman/progman/*.{html,png,css} )
67
		einstalldocs
68
	fi
37 69
}
Thank you!