From 723bc066424c915eae96147d89662505fa7dd3f4 Mon Sep 17 00:00:00 2001 From: Reinis Danne Date: Sun, 16 Feb 2014 20:37:48 +0200 Subject: Add sci-chemistry/erkale --- sci-chemistry/erkale/ChangeLog | 10 +++++ sci-chemistry/erkale/erkale-9999.ebuild | 70 +++++++++++++++++++++++++++++++++ sci-chemistry/erkale/metadata.xml | 18 +++++++++ 3 files changed, 98 insertions(+) create mode 100644 sci-chemistry/erkale/ChangeLog create mode 100644 sci-chemistry/erkale/erkale-9999.ebuild create mode 100644 sci-chemistry/erkale/metadata.xml (limited to 'sci-chemistry/erkale') diff --git a/sci-chemistry/erkale/ChangeLog b/sci-chemistry/erkale/ChangeLog new file mode 100644 index 000000000..5c4172f8f --- /dev/null +++ b/sci-chemistry/erkale/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/erkale +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*erkale-9999 (16 Feb 2014) + + 16 Feb 2014; Reinis Danne +erkale-9999.ebuild, + +metadata.xml: + Add live ebuild for ERKALE. + diff --git a/sci-chemistry/erkale/erkale-9999.ebuild b/sci-chemistry/erkale/erkale-9999.ebuild new file mode 100644 index 000000000..1086e4479 --- /dev/null +++ b/sci-chemistry/erkale/erkale-9999.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils flag-o-matic multibuild subversion toolchain-funcs + +DESCRIPTION="Quantum chemistry program for atoms and molecules" +HOMEPAGE="https://code.google.com/p/erkale/" +ESVN_REPO_URI="https://erkale.googlecode.com/svn/trunk/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="" +IUSE="openmp" + +RDEPEND=" + sci-libs/gsl + sci-libs/hdf5 + sci-libs/libint + >=sci-libs/libxc-2.0.0 +" +DEPEND="${DEPEND} + >=sci-libs/armadillo-4[blas,lapack] + ${RDEPEND} +" + +MULTIBUILD_VARIANTS=( serial ) +use openmp && MULTIBUILD_VARIANTS+=( omp ) + +src_prepare() { + append-cxxflags "-DARMA_DONT_USE_ATLAS -DARMA_DONT_USE_WRAPPER" + cmake-utils_src_prepare +} + +src_configure() { + my_configure() { + local OMP=OFF && [[ ${MULTIBUILD_VARIANT} == "omp" ]] && OMP=ON + local basis="${EROOT}/usr/share/${PN}/basis" + local mycmakeargs=( + -DUSE_OPENMP=${OMP} + -DBUILD_SHARED_LIBS=ON + -DERKALE_SYSTEM_LIBRARY="${basis/\/\///}" + -DLAPACK_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) lapack --cflags-only-I | sed 's/-I//')" + ) + cmake-utils_src_configure + } + multibuild_foreach_variant my_configure +} + +src_compile() { + multibuild_foreach_variant cmake-utils_src_compile +} + +src_test() { + my_test() { + cd "${BUILD_DIR}/src/test" + local OMP="" && [[ ${MULTIBUILD_VARIANT} == "omp" ]] && OMP="_omp" + ERKALE_LIBRARY="${S}/basis" ./erkale_tests${OMP} || eerror "Tests failed!" + } + multibuild_foreach_variant my_test +} + +src_install() { + insinto "/usr/share/${PN}" + doins -r "${S}/basis" + + multibuild_foreach_variant cmake-utils_src_install +} diff --git a/sci-chemistry/erkale/metadata.xml b/sci-chemistry/erkale/metadata.xml new file mode 100644 index 000000000..d7f4de893 --- /dev/null +++ b/sci-chemistry/erkale/metadata.xml @@ -0,0 +1,18 @@ + + + + sci-chemistry + + rei4dan@gmail.com + + + ERKALE is a quantum chemistry program used to solve the electronic + structure of atoms, molecules and molecular clusters. It was developed at + the University of Helsinki, and is currently developed at Aalto University. + + The main use of ERKALE is the computation of x-ray properties, such as + ground-state electron momentum densities and Compton profiles, and core + (x-ray absorption and x-ray Raman scattering) and valence electron + excitation spectra of atoms and molecules. + + -- cgit v1.2.3-65-gdbad