From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 06168138CA2 for ; Wed, 22 Apr 2015 14:43:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FD84E0900; Wed, 22 Apr 2015 14:43:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20A15E0900 for ; Wed, 22 Apr 2015 14:43:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13AFF340A4E for ; Wed, 22 Apr 2015 14:43:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 873F2167D4 for ; Wed, 22 Apr 2015 14:43:31 +0000 (UTC) From: "Honza Macháček" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Honza Macháček" Message-ID: <1429713781.c9ca85e6d5b8a2f3212a7046ab9e617c5a6b4d30.honza_machacek@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/wannier90/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/wannier90/ChangeLog sci-libs/wannier90/wannier90-2.0.1.ebuild X-VCS-Directories: sci-libs/wannier90/ X-VCS-Committer: honza_machacek X-VCS-Committer-Name: Honza Macháček X-VCS-Revision: c9ca85e6d5b8a2f3212a7046ab9e617c5a6b4d30 X-VCS-Branch: master Date: Wed, 22 Apr 2015 14:43:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3bb56a27-e497-4f63-aed1-c7129a85f7c3 X-Archives-Hash: 4820126de754e81bf6c1634943f5f0fd commit: c9ca85e6d5b8a2f3212a7046ab9e617c5a6b4d30 Author: Honza Macháček centrum cz> AuthorDate: Wed Apr 22 14:43:01 2015 +0000 Commit: Honza Macháček centrum cz> CommitDate: Wed Apr 22 14:43:01 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c9ca85e6 Version bump to sci-libs/wannier90-2.0.1, new dependency on dev-tex/revtex introduced if USE=doc Package-Manager: portage-2.2.18 sci-libs/wannier90/ChangeLog | 9 ++++- sci-libs/wannier90/wannier90-2.0.1.ebuild | 66 +++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/sci-libs/wannier90/ChangeLog b/sci-libs/wannier90/ChangeLog index c778e5e..8d5bf12 100644 --- a/sci-libs/wannier90/ChangeLog +++ b/sci-libs/wannier90/ChangeLog @@ -1,7 +1,14 @@ # ChangeLog for sci-libs/wannier90 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*wannier90-2.0.1 (22 Apr 2015) + + 22 Apr 2015; Honza Macháček + +wannier90-2.0.1.ebuild: + Version bump to sci-libs/wannier90-2.0.1, new dependency on dev-tex/revtex + introduced if USE=doc + *wannier90-2.0.0 (10 Dec 2014) *wannier90-1.2-r3 (10 Dec 2014) diff --git a/sci-libs/wannier90/wannier90-2.0.1.ebuild b/sci-libs/wannier90/wannier90-2.0.1.ebuild new file mode 100644 index 0000000..b0125e6 --- /dev/null +++ b/sci-libs/wannier90/wannier90-2.0.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils fortran-2 multilib toolchain-funcs + +DESCRIPTION="Calculates maximally localized Wannier functions (MLWFs)" +HOMEPAGE="http://www.wannier.org/" +SRC_URI="http://wannier.org/code/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="doc examples perl test" + +RDEPEND=" + virtual/blas + virtual/lapack + perl? ( dev-lang/perl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( virtual/latex-base + dev-texlive/texlive-latexextra + dev-tex/revtex + )" + +src_configure() { + cat <<- EOF >> "${S}"/make.sys + F90 = $(tc-getFC) + FCOPTS = ${FCFLAGS:- ${FFLAGS:- -O2}} + LDOPTS = ${LDFLAGS} + LIBS = $($(tc-getPKG_CONFIG) --libs blas lapack) + EOF +} + +src_compile() { + emake -j1 wannier + emake -j1 lib + if use doc; then + VARTEXFONTS="${T}/fonts" + emake -j1 doc + fi +} + +src_test() { + einfo "Compare the 'Standard' and 'Current' outputs of this test." + pushd tests + emake test + cat wantest.log +} + +src_install() { + dobin wannier90.x + use perl && dobin utility/kmesh.pl + dolib.a libwannier.a + insinto /usr/include + doins src/obj/*.mod + if use examples; then + insinto /usr/share/${PN} + doins -r examples + fi + use doc && dodoc doc/*.pdf + dodoc README README.install CHANGE.log +}