public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/bigdft/
Date: Fri, 22 Feb 2013 10:15:45 +0000 (UTC)	[thread overview]
Message-ID: <1361527918.d1c619c129a1f78f4b030114621bc3adbe15d810.jlec@gentoo> (raw)

commit:     d1c619c129a1f78f4b030114621bc3adbe15d810
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 22 10:11:58 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Feb 22 10:11:58 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d1c619c1

sci-libs/bigdft: Use tc-getPKG_CONFIG from toolchain-funcs.eclass instead of plain pkg-config; drop old

Package-Manager: portage-2.2.0_alpha163

---
 sci-libs/bigdft/ChangeLog                 |    5 +
 sci-libs/bigdft/bigdft-1.6.0-r2.ebuild    |   18 ++--
 sci-libs/bigdft/bigdft-1.6_pre1-r4.ebuild |  130 -----------------------------
 sci-libs/bigdft/bigdft-1.7_pre12.ebuild   |   19 ++--
 sci-libs/bigdft/metadata.xml              |   20 +++--
 5 files changed, 36 insertions(+), 156 deletions(-)

diff --git a/sci-libs/bigdft/ChangeLog b/sci-libs/bigdft/ChangeLog
index 0765022..224a6f3 100644
--- a/sci-libs/bigdft/ChangeLog
+++ b/sci-libs/bigdft/ChangeLog
@@ -4,6 +4,11 @@
 
 <<<<<<< HEAD
 
+  22 Feb 2013; Justin Lecher <jlec@gentoo.org> -bigdft-1.6_pre1-r4.ebuild,
+  bigdft-1.6.0-r2.ebuild, bigdft-1.7_pre12.ebuild, metadata.xml:
+  Use tc-getPKG_CONFIG from toolchain-funcs.eclass instead of plain pkg-config;
+  drop old
+
   20 Feb 2013; Honza Macháček <Hloupy.Honza@centrum.cz>
   bigdft-1.7_pre12.ebuild:
   The setup of python for the compilation of the GPU support in

diff --git a/sci-libs/bigdft/bigdft-1.6.0-r2.ebuild b/sci-libs/bigdft/bigdft-1.6.0-r2.ebuild
index 0935054..e43d7e4 100644
--- a/sci-libs/bigdft/bigdft-1.6.0-r2.ebuild
+++ b/sci-libs/bigdft/bigdft-1.6.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
@@ -37,7 +37,7 @@ RDEPEND="
 				)
 			)"
 DEPEND="${RDEPEND}
-	dev-util/pkgconfig
+	virtual/pkgconfig
 	>=sys-devel/autoconf-2.59
 	doc? ( virtual/latex-base )"
 
@@ -79,10 +79,10 @@ src_configure() {
 		--enable-binaries
 		--disable-minima-hopping
 		--with-moduledir="${modules}"
-		--with-ext-linalg="$(pkg-config --libs-only-l lapack) \
-			$(pkg-config --libs-only-l blas)"
-		--with-ext-linalg-path="$(pkg-config --libs-only-L lapack) \
-			$(pkg-config --libs-only-L blas)"
+		--with-ext-linalg="$($(tc-getPKG_CONFIG) --libs-only-l lapack) \
+			$($(tc-getPKG_CONFIG) --libs-only-l blas)"
+		--with-ext-linalg-path="$($(tc-getPKG_CONFIG) --libs-only-L lapack) \
+			$($(tc-getPKG_CONFIG) --libs-only-L blas)"
 		--disable-internal-libxc
 		--with-libxc-path="/usr"
 		--with-libxc-include="${modules}"
@@ -93,9 +93,9 @@ src_configure() {
 		$(use_with opencl ocl-path "${EPREFIX}/usr")
 		$(use_with etsf_io etsf-io)
 		$(use_with etsf_io etsf-io-path "${EPREFIX}/usr")
-		$(use_with etsf_io netcdf-path "$(pkg-config --libs-only-L netcdf)")
-		"$(use etsf_io && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
-		FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} -I${modules}"
+		$(use_with etsf_io netcdf-path "$($(tc-getPKG_CONFIG) --libs-only-L netcdf)")
+		"$(use etsf_io && echo "--with-netcdf-libs=$($(tc-getPKG_CONFIG) --libs netcdf) ${netcdff_libs}")"
+		FCFLAGS+=" -I${modules}"
 		LD="$(tc-getLD)"
 		CPP="$(tc-getCPP)"
 		)

diff --git a/sci-libs/bigdft/bigdft-1.6_pre1-r4.ebuild b/sci-libs/bigdft/bigdft-1.6_pre1-r4.ebuild
deleted file mode 100644
index 95bbebf..0000000
--- a/sci-libs/bigdft/bigdft-1.6_pre1-r4.ebuild
+++ /dev/null
@@ -1,130 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-inherit autotools-utils eutils flag-o-matic fortran-2 toolchain-funcs
-
-REAL_P="${P/_pre/-tuto.}"
-REAL_P="${REAL_P/-tuto.0/-tuto}"
-
-DESCRIPTION="A DFT electronic structure code using a wavelet basis set"
-HOMEPAGE="http://inac.cea.fr/L_Sim/BigDFT/"
-SRC_URI="http://inac.cea.fr/L_Sim/BigDFT/${REAL_P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
-IUSE="cuda doc etsf_io mpi netcdf opencl test"
-
-RDEPEND="
-	=sci-libs/libxc-1*[fortran]
-	virtual/blas
-	virtual/fortran
-	virtual/lapack
-	mpi? ( virtual/mpi )
-	cuda? ( dev-util/nvidia-cuda-sdk )
-	opencl? (
-		|| (
-			dev-util/nvidia-cuda-sdk
-			dev-util/amdstream
-			)
-		)
-	etsf_io? ( sci-libs/etsf_io )
-	netcdf? ( || (
-				sci-libs/netcdf[fortran]
-				sci-libs/netcdf-fortran
-				)
-			)"
-DEPEND="${RDEPEND}
-	dev-util/pkgconfig
-	>=sys-devel/autoconf-2.59
-	doc? ( virtual/latex-base )"
-
-S="${WORKDIR}/${REAL_P}"
-
-DOCS=( README INSTALL ChangeLog AUTHORS NEWS )
-
-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"
-	else
-		tc-export FC F77 CC
-	fi
-
-	fortran-2_pkg_setup
-}
-
-src_prepare() {
-	epatch \
-		"${FILESDIR}"/"${REAL_P}"-libxc_dir_include.patch \
-		"${FILESDIR}"/"${REAL_P}"-bigdft.pc-1.patch \
-		"${FILESDIR}"/"${REAL_P}"-gcc-4.6.patch \
-		"${FILESDIR}"/"${REAL_P}"-GPUlibs-1.patch
-	sed -i -e's/capitalize_module_ext/ax_fc_mod_ext/g' "${S}"/configure || die
-	sed -i -e's/capitalize_module_ext/ax_fc_mod_ext/g' "${S}"/configure.ac || die
-	eautoreconf
-}
-
-src_configure() {
-	local modules="${EPREFIX}/usr/$(get_libdir)/finclude"
-	local netcdff_libs="-lnetcdff"
-	filter-flags '-m*' '-O*' "-pipe"
-	local nvcflags="${CFLAGS}"
-#	_filter-var nvcflags '-m*' '-O*' "-pipe"
-	local myeconfargs=(
-		$(use_enable mpi)
-		--enable-optimised-convolution
-		--enable-pseudo
-		--enable-libbigdft
-		--enable-binaries
-		--disable-minima-hopping
-		--with-moduledir="${modules}"
-		--with-ext-linalg="$(pkg-config --libs-only-l lapack) \
-			$(pkg-config --libs-only-l blas)"
-		--with-ext-linalg-path="$(pkg-config --libs-only-L lapack) \
-			$(pkg-config --libs-only-L blas)"
-		--enable-libxc
-		--disable-internal-libxc
-		--with-libxc-path="/usr"
-		--with-libxc-include="${modules}"
-		$(use_enable cuda cuda-gpu)
-		$(use_with cuda cuda-path /opt/cuda)
-		$(use_with cuda nvcc-flags "${nvcflags}")
-		$(use_enable opencl)
-		$(use_with opencl ocl-path "${EPREFIX}/usr")
-		$(use_with etsf_io etsf-io)
-		$(use_with etsf_io etsf-io-path "${EPREFIX}/usr")
-		$(use_with etsf_io netcdf-path "$(pkg-config --libs-only-L netcdf)")
-		"$(use etsf_io && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
-		FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} -I${modules}"
-		LD="$(tc-getLD)"
-		CPP="$(tc-getCPP)"
-		)
-	autotools-utils_src_configure
-}
-
-src_compile() {
-	#autotools-utils_src_compile() expanded
-	_check_build_dir
-	pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
-	emake -j1
-	sed -i -e's%\$(top_builddir)/[^ ]*/lib\([^ /$-]*\)\.a%-l\1%g' bigdft.pc
-	popd > /dev/null
-
-	use doc && autotools-utils_src_compile doc
-}
-
-src_test() {
-	use test && autotools-utils_src_test
-}
-
-src_install() {
-	autotools-utils_src_install HAVE_LIBXC=1
-}

diff --git a/sci-libs/bigdft/bigdft-1.7_pre12.ebuild b/sci-libs/bigdft/bigdft-1.7_pre12.ebuild
index 45623f0..7028453 100644
--- a/sci-libs/bigdft/bigdft-1.7_pre12.ebuild
+++ b/sci-libs/bigdft/bigdft-1.7_pre12.ebuild
@@ -40,7 +40,7 @@ RDEPEND="
 				)
 			)"
 DEPEND="${RDEPEND}
-	dev-util/pkgconfig
+	virtual/pkgconfig
 	>=sys-devel/autoconf-2.59
 	doc? ( virtual/latex-base )
 	cuda? ( ${PYTHON_DEPS} )
@@ -65,9 +65,8 @@ pkg_setup() {
 	fi
 
 	fortran-2_pkg_setup
-	if use openmp; then
-                tc-has-openmp || \
-                        die "Please select an openmp capable compiler like gcc[openmp]"
+	if use openmp && [[ $(tc-getCC)$ == *gcc* ]] &&	! tc-has-openmp; then
+		die "Please select an openmp capable compiler like gcc[openmp]"
 	fi
 	python-any-r1_pkg_setup
 }
@@ -99,10 +98,10 @@ src_configure() {
 		--disable-internal-libyaml
 		--enable-internal-libabinit
 		--with-moduledir="${modules}"
-		--with-ext-linalg="$(pkg-config --libs-only-l lapack) \
-			$(pkg-config --libs-only-l blas)"
-		--with-ext-linalg-path="$(pkg-config --libs-only-L lapack) \
-			$(pkg-config --libs-only-L blas)"
+		--with-ext-linalg="$($(tc-getPKG_CONFIG) --libs-only-l lapack) \
+			$($(tc-getPKG_CONFIG) --libs-only-l blas)"
+		--with-ext-linalg-path="$($(tc-getPKG_CONFIG) --libs-only-L lapack) \
+			$($(tc-getPKG_CONFIG) --libs-only-L blas)"
 		--enable-libxc
 		--disable-internal-libxc
 		--with-libxc-include="${modules}"
@@ -111,8 +110,8 @@ src_configure() {
 		$(use_with cuda nvcc-flags "${nvcflags}")
 		$(use_enable opencl)
 		$(use_with etsf_io etsf-io)
-		"$(use etsf_io && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
-		FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} ${openmp} -I${modules}"
+		"$(use etsf_io && echo "--with-netcdf-libs=$($(tc-getPKG_CONFIG) --libs netcdf) ${netcdff_libs}")"
+		FCFLAGS+=" ${openmp} -I${modules}"
 		LD="$(tc-getLD)"
 		CPP="$(tc-getCPP)"
 		)

diff --git a/sci-libs/bigdft/metadata.xml b/sci-libs/bigdft/metadata.xml
index 3c06155..71f04f4 100644
--- a/sci-libs/bigdft/metadata.xml
+++ b/sci-libs/bigdft/metadata.xml
@@ -1,11 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<herd>sci</herd>
-	<maintainer>
-		<email>sci@gentoo.org</email>
-	</maintainer>
-	<use>
-		<flag name="cuda">Add cuda support</flag>
-	</use>
+  <herd>sci</herd>
+  <maintainer>
+    <email>sci@gentoo.org</email>
+  </maintainer>
+  <use>
+    <flag name="cuda">Add cuda support</flag>
+  </use>
+  <use>
+    <flag name="etsf_io">Undocumented USE</flag>
+  </use>
+  <use>
+    <flag name="opencl">Undocumented USE</flag>
+  </use>
 </pkgmetadata>


             reply	other threads:[~2013-02-22 10:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-22 10:15 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-02-20 12:10 [gentoo-commits] proj/sci:master commit in: sci-libs/bigdft/ Honza Macháček
2012-06-22 22:49 Alexey Shvetsov
2012-05-22 19:43 Justin Lecher
2012-05-15  6:49 Honza Macháček
2012-02-19 12:44 Justin Lecher
2011-07-11 11:24 Honza Macháček
2011-06-24 17:09 Justin Lecher
2011-06-21 11:54 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1361527918.d1c619c129a1f78f4b030114621bc3adbe15d810.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox