summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2016-03-17 15:45:31 +0100
committerTiziano Müller <dev-zero@gentoo.org>2016-03-17 15:45:31 +0100
commiteb5d6d5e83c9ce811323f665d72f42c69cc36087 (patch)
tree23d365fa60932bf0bda2d096afe1d234a6bdc41c
parentsci-chemistry/cp2k: initial commit (diff)
downloaddev-zero-eb5d6d5e83c9ce811323f665d72f42c69cc36087.tar.gz
dev-zero-eb5d6d5e83c9ce811323f665d72f42c69cc36087.tar.bz2
dev-zero-eb5d6d5e83c9ce811323f665d72f42c69cc36087.zip
sci-chemistry/cp2k: fix some issues with the openmp flag
-rw-r--r--sci-chemistry/cp2k/cp2k-3.0.ebuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/sci-chemistry/cp2k/cp2k-3.0.ebuild b/sci-chemistry/cp2k/cp2k-3.0.ebuild
index 1d2218c..c589efb 100644
--- a/sci-chemistry/cp2k/cp2k-3.0.ebuild
+++ b/sci-chemistry/cp2k/cp2k-3.0.ebuild
@@ -18,10 +18,11 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+fftw openmp"
+IUSE="+fftw +openmp"
RDEPEND="virtual/blas
- fftw? ( sci-libs/fftw:3.0=[fortran,openmp?,threads] )"
+ fftw? ( openmp? ( sci-libs/fftw:3.0=[fortran,openmp] )
+ !openmp? ( sci-libs/fftw:3.0=[fortran,threads] ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig
${PYTHON_DEPS}"
@@ -41,9 +42,9 @@ src_configure() {
if use fftw ; then
if use openmp ; then
- libs+=($(pkg-config --libs fftw3))
- else
libs+=($(pkg-config --libs fftw3_omp))
+ else
+ libs+=($(pkg-config --libs fftw3_threads))
fi
defines+=(-D__FFTW3)
echo ${defines[*]}