public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Honza Macháček" <Hloupy.Honza@centrum.cz>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/abinit/
Date: Wed, 29 Jun 2011 11:31:51 +0000 (UTC)	[thread overview]
Message-ID: <60e43b80b7752dd0afb8ae3f3eb431ecd46118de.honza_machacek@gentoo> (raw)

commit:     60e43b80b7752dd0afb8ae3f3eb431ecd46118de
Author:     Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz>
AuthorDate: Wed Jun 29 11:31:08 2011 +0000
Commit:     Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz>
CommitDate: Wed Jun 29 11:31:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=60e43b80

Restored the support for threaded fftw. Works for me. NEVER DISABLE FEATURES FOR OTHERS.

---
 sci-physics/abinit/ChangeLog           |    4 ++++
 sci-physics/abinit/abinit-6.6.3.ebuild |   21 ++++++++++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/sci-physics/abinit/ChangeLog b/sci-physics/abinit/ChangeLog
index 3b8132d..237af8e 100644
--- a/sci-physics/abinit/ChangeLog
+++ b/sci-physics/abinit/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  29 Jun 2011; Honza Macháček <Hloupy.Honza@centrum.cz> abinit-6.6.3.ebuild:
+  Restored the support for threaded fftw. Works for me. NEVER DISABLE FEATURES
+  FOR OTHERS.
+
   24 Jun 2011; Justin Lecher <jlec@gentoo.org> -abinit-6.6.2.ebuild,
   abinit-6.6.3.ebuild:
   Dropped ~ppc as many deps aren't keyworded

diff --git a/sci-physics/abinit/abinit-6.6.3.ebuild b/sci-physics/abinit/abinit-6.6.3.ebuild
index eff92bd..3799d05 100644
--- a/sci-physics/abinit/abinit-6.6.3.ebuild
+++ b/sci-physics/abinit/abinit-6.6.3.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=3
+EAPI="3"
 
 inherit autotools eutils fortran-2 multilib toolchain-funcs
 
@@ -15,8 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="cuda -debug +fftw +fox gsl +hdf5 mpi +netcdf python -test +threads -vdwxc"
 
-RDEPEND="
-	>=sci-libs/bigdft-1.2.0.2
+RDEPEND=">=sci-libs/bigdft-1.2.0.2
 	sci-libs/etsf_io
 	=sci-libs/libxc-1.0[fortran]
 	sci-physics/atompaw[libxc]
@@ -72,8 +71,20 @@ src_configure() {
 	local netcdff_libs="-lnetcdff"
 	use hdf5 && netcdff_libs="${netcdff_libs} -lhdf5_fortran"
 	local fft_flavor="fftw3"
-	#fft_flavor="fftw3-threads" causes a ./configure error
-	local fft_libs="-L/usr/$(get_libdir) $(pkg-config --libs fftw3)"
+	local fft_libs="-L/usr/lib"
+	# Since now, fftw threads support is protected by black magick.
+	# Anybody removes it again, dies.
+	# If it does not work FOR YOU, disable the "threads" USE flag
+	# for the package at YOUR box. If YOU want it disabled selectively
+	# for fftw use in abinit, you may consider adding a special USE flag
+	# for that. NEVER REMOVE AN OPTION FOR OTHERS, at least if there is
+	# anybody it works for.
+	if use threads; then
+		fft_libs="${fft_libs} $(pkg-config --libs fftw3_threads)"
+		fft_flavor="fftw3-threads"
+	else
+		fft_libs="${fft_libs} $(pkg-config --libs fftw3)"
+	fi
 	if use mpi; then
 		MY_FC="mpif90"
 		MY_CC="mpicc"



             reply	other threads:[~2011-06-29 11:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 11:31 Honza Macháček [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-09-23 12:48 [gentoo-commits] proj/sci:master commit in: sci-physics/abinit/ Justin Lecher
2015-02-08 21:07 Christoph Junghans
2014-09-17 20:01 Christoph Junghans
2014-06-27 13:54 Honza Macháček
2013-10-03 12:52 Honza Macháček
2013-09-26  9:41 Honza Macháček
2013-09-20  9:48 Justin Lecher
2013-09-19 18:03 Honza Macháček
2013-09-26  9:41 ` Honza Macháček
2013-02-22 10:15 Justin Lecher
2012-06-19 14:14 Honza Macháček
2012-05-22 19:43 Justin Lecher
2012-05-15  8:27 Honza Macháček
2012-03-23  8:16 Honza Macháček
2012-03-23  8:02 Honza Macháček
2011-09-27 12:22 Honza Macháček
2011-06-29 15:28 Honza Macháček
2011-06-24 17:09 Justin Lecher
2011-06-24 17:09 Justin Lecher
2011-06-24 17:09 Justin Lecher
2011-06-21 11:54 Justin Lecher
2011-05-11 17:05 Dongxu Li
2011-05-10  9:54 Honza Macháček
2011-04-26 18:39 Dongxu Li
2011-04-09 21:11 Dongxu Li
2011-02-05 19:22 Honza Macháček

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=60e43b80b7752dd0afb8ae3f3eb431ecd46118de.honza_machacek@gentoo \
    --to=hloupy.honza@centrum.cz \
    --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