1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 AUTOTOOLS_AUTORECONF=true
8 inherit autotools-utils flag-o-matic fortran-2 multilib
12 DESCRIPTION="A library of exchange-correlation functionals for use in DFT"
13 HOMEPAGE="https://octopus-code.org/wiki/Libxc"
14 SRC_URI="https://www.tddft.org/programs/octopus/download/${PN}/${P}.tar.gz"
18 KEYWORDS="amd64 ~x86 ~amd64-linux"
19 IUSE="fortran static-libs -test"
21 S="${WORKDIR}"/${MY_P}
24 use fortran && fortran-2_pkg_setup
29 -e "s:${PN}.f90:${PN}.F90:g" \
30 -i src/Makefile.am || die
31 autotools-utils_src_prepare
35 local myeconfargs=( $(use_enable fortran) )
36 autotools-utils_src_configure
39 ## Upstream recommends not running the test suite because it requires
40 ## human expert interpretation to determine whether output is an error or
41 ## expected under certain circumstances. Nevertheless, experts might want the option.
42 # The autotools src_test function modified not to die. Runs emake check in build directory.
44 debug-print-function ${FUNCNAME} "$@"
47 pushd "${BUILD_DIR}" > /dev/null || die
48 make check || ewarn "Make check failed. See above for details."
49 einfo "emake check done"
50 popd > /dev/null || die
54 autotools-utils_src_install