commit:     27391030a177df42543e32afd77abbbabbd0073d
Author:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 18 04:04:21 2017 +0000
Commit:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 04:04:21 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27391030

sci-libs/nfft: version bump

Package-Manager: portage-2.3.0

 sci-libs/nfft/Manifest          |  2 +-
 sci-libs/nfft/metadata.xml      |  5 ++++-
 sci-libs/nfft/nfft-3.2.3.ebuild | 32 --------------------------
 sci-libs/nfft/nfft-3.3.2.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+), 34 deletions(-)

diff --git a/sci-libs/nfft/Manifest b/sci-libs/nfft/Manifest
index 51833b3..8f1d341 100644
--- a/sci-libs/nfft/Manifest
+++ b/sci-libs/nfft/Manifest
@@ -1 +1 @@
-DIST nfft-3.2.3.tar.gz 3977407 SHA256 
5c920f4be63230083756f36ad78bbdd083c4c2298ec361741dc74243c4d67818 SHA512 
d7b3345e0917e8dad9931adc5974f3412a82feda2d43925fe83fa4027f36cf037d4e185da85c53c87dc2e56a72f28c52b6b6a7ac56275d96888238a95610949e
 WHIRLPOOL 
83e3445ed58a3b711762664f1776672239b51e085a4b52b90c47b2643445963697243ca6e36250f3a15576b36fb4dccb2772e867190393f0e7e9dc09873cc0dd
+DIST nfft-3.3.2.tar.gz 2821259 SHA256 
9dcebd905a82c4f0a339d0d5e666b68c507169d9173b66d5ac588aae5d50b57c SHA512 
66bcd2439c9ba27063aa1db01c526a580c5c67938e2db332068ce20035ede1d8766e8f134a0e5dac5263aca14121573ca4f5a906b452c43f218636f5f6161c02
 WHIRLPOOL 
9e15d7517d504a37b15b221a850e0b6574aeefc9af70d2a265bd0f2aa37f8a498462697c5ab73c47a4487f58978cf0cdd74d58e3073dc2b54361f0a216aba8c5

diff --git a/sci-libs/nfft/metadata.xml b/sci-libs/nfft/metadata.xml
index bcb9182..b759151 100644
--- a/sci-libs/nfft/metadata.xml
+++ b/sci-libs/nfft/metadata.xml
@@ -5,8 +5,11 @@
                <email>[email protected]</email>
                <name>Christoph Junghans</name>
        </maintainer>
-<maintainer type="project">
+       <maintainer type="project">
                <email>[email protected]</email>
                <name>Gentoo Science Project</name>
        </maintainer>
+       <upstream>
+               <remote-id type="github">NFFT/nfft</remote-id>
+       </upstream>
 </pkgmetadata>

diff --git a/sci-libs/nfft/nfft-3.2.3.ebuild b/sci-libs/nfft/nfft-3.2.3.ebuild
deleted file mode 100644
index e6f5802..00000000
--- a/sci-libs/nfft/nfft-3.2.3.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-inherit autotools-utils toolchain-funcs
-
-DESCRIPTION="library for nonequispaced discrete Fourier transformations"
-HOMEPAGE="http://www-user.tu-chemnitz.de/~potts/nfft";
-SRC_URI="http://www-user.tu-chemnitz.de/~potts/nfft/download/${P}.tar.gz";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="openmp static-libs"
-
-RDEPEND="sci-libs/fftw:3.0[threads,openmp?]"
-DEPEND="${RDEPEND}"
-
-pkg_pretend() {
-       use openmp && ! tc-has-openmp && \
-               die "Please switch to an openmp compatible compiler"
-}
-
-src_configure() {
-       local myeconfargs=(
-           --enable-all
-               $(use_enable openmp)
-       )
-       autotools-utils_src_configure
-}

diff --git a/sci-libs/nfft/nfft-3.3.2.ebuild b/sci-libs/nfft/nfft-3.3.2.ebuild
new file mode 100644
index 00000000..46c2217
--- /dev/null
+++ b/sci-libs/nfft/nfft-3.3.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="library for nonequispaced discrete Fourier transformations"
+HOMEPAGE="http://www-user.tu-chemnitz.de/~potts/nfft";
+SRC_URI="https://github.com/NFFT/nfft/releases/download/${PV}/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc openmp static-libs"
+
+RDEPEND="sci-libs/fftw:3.0[threads,openmp?]"
+DEPEND="${RDEPEND}"
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+               if ! tc-has-openmp; then
+                       ewarn "OpenMP is not available in your current selected 
compiler"
+
+                       if tc-is-clang; then
+                               ewarn "OpenMP support in sys-devel/clang is 
provided by sys-libs/libomp,"
+                               ewarn "which you will need to build 
${CATEGORY}/${PN} with USE=\"openmp\""
+                       fi
+
+                       die "need openmp capable compiler"
+               fi
+       fi
+}
+
+src_configure() {
+       econf \
+           --enable-all \
+               --enable-shared \
+               $(use_enable openmp) \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       use doc || rm -r "${ED}/usr/share/doc/${P}/html" || die
+
+       # infft uses pkg-config to record its private dependencies
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to