From c7f816faaacf7010c30d1e07d757764e7024d637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Mach=C3=A1=C4=8Dek?= Date: Thu, 19 Sep 2013 15:27:07 +0200 Subject: sci-libs/wannier90-1.2-r2.ebuild modified from -r1 to avoid sandbox violation when generating TeX fonts. Package-Manager: portage-2.2.1 --- sci-libs/wannier90/ChangeLog | 6 +++ sci-libs/wannier90/wannier90-1.2-r1.ebuild | 73 ---------------------------- sci-libs/wannier90/wannier90-1.2-r2.ebuild | 76 ++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 73 deletions(-) delete mode 100644 sci-libs/wannier90/wannier90-1.2-r1.ebuild create mode 100644 sci-libs/wannier90/wannier90-1.2-r2.ebuild diff --git a/sci-libs/wannier90/ChangeLog b/sci-libs/wannier90/ChangeLog index bb0da8817..ff8ee508f 100644 --- a/sci-libs/wannier90/ChangeLog +++ b/sci-libs/wannier90/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*wannier90-1.2-r2 (19 Sep 2013) + + 19 Sep 2013; Honza Macháček + -wannier90-1.2-r1.ebuild, +wannier90-1.2-r2.ebuild: + Avoid sandbox violation when generating TeX fonts. + *wannier90-1.2-r1 (17 Jun 2013) 17 Jun 2013; Honza Macháček diff --git a/sci-libs/wannier90/wannier90-1.2-r1.ebuild b/sci-libs/wannier90/wannier90-1.2-r1.ebuild deleted file mode 100644 index 252792245..000000000 --- a/sci-libs/wannier90/wannier90-1.2-r1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2013 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 - app-text/tetex - app-tex/ptex - ) - )" - -src_prepare() { - # Patch taken from sci-physics/abinit-5.7.3 bundled version - epatch \ - "${FILESDIR}"/${PN}-1.1-0001.patch \ - "${FILESDIR}"/${PN}-1.1-0002.patch -} - -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 - use doc & emake -j1 doc -} - -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/$(get_libdir)/finclude - doins src/*.mod - if use examples; then - insinto /usr/share/${PN} - doins -r examples - fi - use doc && dodoc doc/*.pdf - dodoc README README.install CHANGE.log -} diff --git a/sci-libs/wannier90/wannier90-1.2-r2.ebuild b/sci-libs/wannier90/wannier90-1.2-r2.ebuild new file mode 100644 index 000000000..481ce2b9a --- /dev/null +++ b/sci-libs/wannier90/wannier90-1.2-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 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 + app-text/tetex + app-tex/ptex + ) + )" + +src_prepare() { + # Patch taken from sci-physics/abinit-5.7.3 bundled version + epatch \ + "${FILESDIR}"/${PN}-1.1-0001.patch \ + "${FILESDIR}"/${PN}-1.1-0002.patch +} + +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/$(get_libdir)/finclude + doins src/*.mod + if use examples; then + insinto /usr/share/${PN} + doins -r examples + fi + use doc && dodoc doc/*.pdf + dodoc README README.install CHANGE.log +} -- cgit v1.2.3