From 513f36486cc1bb5173a9a8628ca502d3f2f10467 Mon Sep 17 00:00:00 2001 From: Honza Macháček Date: Sat, 7 Jul 2012 23:32:49 +0200 Subject: The version of sci-physics/elk bumped to 1.4.22, the old ones removed. --- sci-physics/elk/ChangeLog | 5 ++ sci-physics/elk/Manifest | 2 +- sci-physics/elk/elk-1.4.22.ebuild | 115 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 sci-physics/elk/elk-1.4.22.ebuild (limited to 'sci-physics') diff --git a/sci-physics/elk/ChangeLog b/sci-physics/elk/ChangeLog index b184d1ce9..9a96a38d0 100644 --- a/sci-physics/elk/ChangeLog +++ b/sci-physics/elk/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*elk-1.4.22 (07 Jul 2012) + + 07 Jul 2012; Honza Macháček +elk-1.4.22.ebuild: + Version bump to 1.4.22 + *elk-1.4.18 (18 Apr 2012) 18 Apr 2012; Honza Macháček +elk-1.4.18.ebuild: diff --git a/sci-physics/elk/Manifest b/sci-physics/elk/Manifest index b0fce503e..9d7ce0e72 100644 --- a/sci-physics/elk/Manifest +++ b/sci-physics/elk/Manifest @@ -1 +1 @@ -DIST elk-1.4.22.tgz 1866287 RMD160 6af2454eab5af8c97447529db013fbfe41f016fb SHA1 71c9b7cb1ddd5ab2eb7d83e1922a7aa0c2e0ddf8 SHA256 bc8b70d42924c77c9328418bd133285fe2caa4a8b14df4016eecff647ca15ec0 SHA512 7c512ac6738d883fe1c76964c8bd44ef34269f58f4c8d97ee63949949391ef1040dc41cf0c2626492f6c94649b696d7b67eef8292011dc75c312a3c4b3c21da6 WHIRLPOOL 392804fc8bc3ce03208f9689ffafb84d4a61b343d80c09d787adcd23f25ab824dd0d6477bbad41ae2e61ab0acc9cba2f965d6c576fd7d69bb976fd29770e4a1d +DIST elk-1.4.22.tgz 1866287 SHA256 bc8b70d42924c77c9328418bd133285fe2caa4a8b14df4016eecff647ca15ec0 SHA512 7c512ac6738d883fe1c76964c8bd44ef34269f58f4c8d97ee63949949391ef1040dc41cf0c2626492f6c94649b696d7b67eef8292011dc75c312a3c4b3c21da6 WHIRLPOOL 392804fc8bc3ce03208f9689ffafb84d4a61b343d80c09d787adcd23f25ab824dd0d6477bbad41ae2e61ab0acc9cba2f965d6c576fd7d69bb976fd29770e4a1d diff --git a/sci-physics/elk/elk-1.4.22.ebuild b/sci-physics/elk/elk-1.4.22.ebuild new file mode 100644 index 000000000..27b3f3af5 --- /dev/null +++ b/sci-physics/elk/elk-1.4.22.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit eutils fortran-2 multilib toolchain-funcs + +DESCRIPTION="All-electron full-potential linearised augmented-plane wave (FP-LAPW) code with advanced features." +HOMEPAGE="http://elk.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="-debug lapack libxc mpi openmp perl test" + +RDEPEND="lapack? ( virtual/blas + virtual/lapack ) + libxc? ( =sci-libs/libxc-1*[fortran] ) + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND} + perl? ( dev-lang/perl ) + dev-util/pkgconfig" + +DOCS=( README ) + +FORTRAN_STANDARD=90 + +pkg_setup() { + # fortran-2.eclass does not handle mpi wrappers + if use mpi; then + export FC="mpif90" + export F77="mpif77" + export CC="mpicc" + export CXX="mpic++" + else + tc-export FC F77 CC CXX + fi + + if use openmp; then + FORTRAN_NEED_OPENMP=1 + fi + + fortran-2_pkg_setup + + if use openmp; then + export FC="${FC} -fopenmp" + export F77="${F77} -fopenmp" + export CC="${CC} -fopenmp" + export CXX="${CXX} -fopenmp" + fi +} + +src_prepare() { + if use libxc; then + sed -i -e's/^\(SRC_libxc =\)/#\1/' "${S}/src/Makefile" + fi + if use mpi; then + sed -i -e's/^\(SRC_mpi =\)/#\1/' "${S}/src/Makefile" + fi +} + +src_configure() { + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O3 -funroll-loops -ffast-math}}" + FCFLAGS="${FCFLAGS} -I/usr/include -I/usr/$(get_libdir)/finclude" + CFLAGS="${CFLAGS:- -O3 -funroll-loops -ffast-math}" + CXXFLAGS="${CXXFLAGS:- ${CFLAGS}}" + export FCFLAGS CFLAGS CXXFLAGS + echo "MAKE = make" > make.inc + echo "F90 = $FC" >> make.inc + echo "F90_OPTS = $FCFLAGS" >> make.inc + echo "F77 = $FC" >> make.inc + echo "F77_OPTS = $FCFLAGS" >> make.inc + echo "CC = ${CC}" >> make.inc + echo "CXX = ${CXX}" >> make.inc + echo "CFLAGS = ${CFLAGS}" >> make.inc + echo "CXXFLAGS = ${CXXFLAGS}" >> make.inc + echo "LD = $(tc-getLD)" >> make.inc + echo "AR = ar" >> make.inc + echo "LIB_SYS = " >> make.inc + if use lapack; then + echo "LIB_LPK = $(pkg-config --libs lapack)" >> make.inc + else + echo "LIB_LPK = lapack.a blas.a" >> make.inc + fi + echo "LIB_FFT = fftlib.a" >> make.inc + if use libxc; then + echo "LIB_XC = -L/usr/$(get_libdir) -lxc" >> make.inc + echo "SRC_libxc = libxc_funcs.f90 libxc.f90 libxcifc.f90" >>make.inc + fi +} + +src_compile() { + emake -j1 || die "make failed" +} + +src_test() { + emake test +} + +src_install() { + dobin src/elk src/protex src/eos/eos src/spacegroup/spacegroup + dobin utilities/elk-bands + use perl && dobin utilities/xps_exc.pl utilities/se.pl + dodoc README + for doc in docs/*; do + dodoc $doc + done + insinto /usr/share/${P} + doins -r species + doins -r utilities + doins -r examples + doins -r tests +} -- cgit v1.2.3-65-gdbad