From d4dbcb6b701911e4b60df6e75da54502c583ddf9 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Sat, 4 May 2019 21:56:18 +0200 Subject: [PATCH] New package --- sci-libs/libxc/Manifest | 1 + sci-libs/libxc/libxc-4.3.4.ebuild | 52 +++++++++++++++++++++++++++++++ sci-libs/libxc/metadata.xml | 31 ++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 sci-libs/libxc/Manifest create mode 100644 sci-libs/libxc/libxc-4.3.4.ebuild create mode 100644 sci-libs/libxc/metadata.xml diff --git a/sci-libs/libxc/Manifest b/sci-libs/libxc/Manifest new file mode 100644 index 0000000..dafb017 --- /dev/null +++ b/sci-libs/libxc/Manifest @@ -0,0 +1 @@ +DIST libxc-4.3.4.tar.gz 15602575 BLAKE2B 07d1b9be62344727b2b364ea7b6eb7abcb62a76cb5b17c3601847d0528a86d23762f17cdde383611b842b65342c81467af1896dbcf55569165e2be26aa348616 SHA512 9e364b27fe0bf903e5d08f5814130e2059a001a6ea08938221e20d87d0072d51177d0d21217a744c8f5828a7c88437dc624a9cf173a203783c96d2d681b71e82 diff --git a/sci-libs/libxc/libxc-4.3.4.ebuild b/sci-libs/libxc/libxc-4.3.4.ebuild new file mode 100644 index 0000000..47ffc30 --- /dev/null +++ b/sci-libs/libxc/libxc-4.3.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools fortran-2 + +DESCRIPTION="A library of exchange-correlation functionals for use in DFT" +HOMEPAGE="http://octopus-code.org/wiki/Libxc" +SRC_URI="http://www.tddft.org/programs/octopus/down.php?file=libxc/${PV}/${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="fortran static-libs -test" + +pkg_setup() { + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --enable-shared \ + $(use_enable fortran) \ + $(use_enable static-libs static) +} + +## Upstream recommends not running the test suite because it requires +## human expert interpretation to determine whether output is an error or +## expected under certain circumstances. Nevertheless, experts might want the option. +# The autotools src_test function modified not to die. Runs emake check in build directory. +src_test() { + debug-print-function ${FUNCNAME} "$@" + + _check_build_dir + pushd "${BUILD_DIR}" > /dev/null || die + make check || ewarn "Make check failed. See above for details." + einfo "emake check done" + popd > /dev/null || die +} + +src_install() { + default + find "${ED%/}" -name '*.la' -type f -delete || die + if ! use fortran; then + rm "${ED%/}"/usr/$(get_libdir)/pkgconfig/libxcf{03,90}.pc || die + fi +} diff --git a/sci-libs/libxc/metadata.xml b/sci-libs/libxc/metadata.xml new file mode 100644 index 0000000..62f70c0 --- /dev/null +++ b/sci-libs/libxc/metadata.xml @@ -0,0 +1,31 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + Hloupy.Honza@centrum.cz + Honza Macháček + + + Libxc is a library of exchange-correlation functionals for density-functional theory. + The aim is to provide a portable, well tested and reliable set of exchange and correlation + functionals that can be used by all the ETSF codes and also other codes. + + In Libxc you can find different types of functionals: LDA, GGA, hybrids, and mGGA (experimental). + These functionals depend on local information, in the sense that the value of the potential + at a given point depends only on the values of the density -- and the gradient of the density + and the kinetic energy density, for the GGA and mGGA cases. + + It can calculate the functional itself and its derivative; for some functionals, + higher-order derivatives are available. + + Libxc is written in C and has Fortran bindings. It is released under the MPL2 license. + Contributions are welcome. + + + http://octopus-code.org/wiki/Libxc:manual + +