public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Christoph Junghans" <ottxor@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/fftw/
Date: Sat,  7 Sep 2013 20:19:52 +0000 (UTC)	[thread overview]
Message-ID: <1378585184.10348efec41c894a27c192ed2d94233119eac89e.ottxor@gentoo> (raw)

commit:     10348efec41c894a27c192ed2d94233119eac89e
Author:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  7 20:19:20 2013 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Sat Sep  7 20:19:44 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=10348efe

final clean up

Package-Manager: portage-2.2.1

---
 sci-libs/fftw/ChangeLog            |  4 ++++
 sci-libs/fftw/fftw-3.3.3-r3.ebuild | 26 ++++++++++----------------
 sci-libs/fftw/fftw-9999.ebuild     | 26 ++++++++++----------------
 3 files changed, 24 insertions(+), 32 deletions(-)

diff --git a/sci-libs/fftw/ChangeLog b/sci-libs/fftw/ChangeLog
index 1d66bfd..5bac252 100644
--- a/sci-libs/fftw/ChangeLog
+++ b/sci-libs/fftw/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  07 Sep 2013; Christoph Junghans <ottxor@gentoo.org> fftw-3.3.3-r3.ebuild,
+  fftw-9999.ebuild:
+  final clean up
+
   02 Sep 2013; Christoph Junghans <ottxor@gentoo.org> fftw-3.3.3-r3.ebuild,
   fftw-9999.ebuild:
   clean up

diff --git a/sci-libs/fftw/fftw-3.3.3-r3.ebuild b/sci-libs/fftw/fftw-3.3.3-r3.ebuild
index c839eb5..fb35995 100644
--- a/sci-libs/fftw/fftw-3.3.3-r3.ebuild
+++ b/sci-libs/fftw/fftw-3.3.3-r3.ebuild
@@ -20,8 +20,6 @@ if [[ ${PV} = *9999 ]]; then
 else
 	SRC_URI="http://www.fftw.org/${P}.tar.gz"
 	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-	PATCHES=( "${FILESDIR}/${P}-install-header.patch" )
-	AUTOTOOLS_AUTORECONF=1
 fi
 
 LICENSE="GPL-2"
@@ -40,7 +38,6 @@ MULTILIB_WRAPPED_HEADERS=(
 	/usr/include/fftw3-mpi.h
 	/usr/include/fftw3l-mpi.f03
 	/usr/include/fftw3-mpi.f03
-	/usr/include/fftw3l.f03
 	/usr/include/fftw3q.f03
 )
 
@@ -68,12 +65,10 @@ pkg_setup() {
 }
 
 src_prepare() {
-	local ext="info"
-	[[ ${PV} = *9999 ]] && ext="texi"
 	# fix info file for category directory
-	sed -i \
+	[[ ${PV} = *9999 ]] || sed -i \
 		-e 's/Texinfo documentation system/Libraries/' \
-		doc/fftw3."${ext}" || die "failed to fix info file"
+		doc/fftw3."info" || die "failed to fix info file"
 
 	autotools-utils_src_prepare
 }
@@ -85,7 +80,9 @@ src_configure() {
 	replace-flags -Os -O2
 
 	my_configure() {
-		local x=${FFTW_PRECISION}
+		#a bit hacky improve after #483758 is solved
+		local x=${BUILD_DIR%-${ABI}}
+		x=${x##*-}
 		# there is no abi_x86_32 port of virtual/mpi right now
 		local enable_mpi=$(use_enable mpi)
 		multilib_is_native_abi || enable_mpi="--disable-mpi"
@@ -138,14 +135,7 @@ src_configure() {
 		autotools-utils_src_configure
 	}
 
-	my_abi_configure() {
-		#multilib_parallel_foreach_abi changes MULTIBUILD_VARIANT
-		export FFTW_PRECISION=${MULTIBUILD_VARIANT}
-		multilib_parallel_foreach_abi my_configure
-		unset FFTW_PRECISION
-	}
-
-	multibuild_foreach_variant my_abi_configure
+	multibuild_foreach_variant multilib_parallel_foreach_abi my_configure
 }
 
 src_compile() {
@@ -169,6 +159,10 @@ src_install () {
 	#copied from autotools-multilib_secure_install
 	my_abi_src_install() {
 		autotools-utils_src_install
+		#https://github.com/FFTW/fftw3/pull/6
+		# f03 are installed unconditionally, not a big problem as the quad
+		# header is the only one to be wrapped.
+		[[ ${BUILD_DIR} = *-quad* ]] || rm -f "${ED}/usr/include/fftw3q.f03"
 		if [[ ${#MULTIBUILD_VARIANTS[@]} -gt 1 ]]; then
 			multilib_prepare_wrappers
 			multilib_check_headers

diff --git a/sci-libs/fftw/fftw-9999.ebuild b/sci-libs/fftw/fftw-9999.ebuild
index c839eb5..fb35995 100644
--- a/sci-libs/fftw/fftw-9999.ebuild
+++ b/sci-libs/fftw/fftw-9999.ebuild
@@ -20,8 +20,6 @@ if [[ ${PV} = *9999 ]]; then
 else
 	SRC_URI="http://www.fftw.org/${P}.tar.gz"
 	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-	PATCHES=( "${FILESDIR}/${P}-install-header.patch" )
-	AUTOTOOLS_AUTORECONF=1
 fi
 
 LICENSE="GPL-2"
@@ -40,7 +38,6 @@ MULTILIB_WRAPPED_HEADERS=(
 	/usr/include/fftw3-mpi.h
 	/usr/include/fftw3l-mpi.f03
 	/usr/include/fftw3-mpi.f03
-	/usr/include/fftw3l.f03
 	/usr/include/fftw3q.f03
 )
 
@@ -68,12 +65,10 @@ pkg_setup() {
 }
 
 src_prepare() {
-	local ext="info"
-	[[ ${PV} = *9999 ]] && ext="texi"
 	# fix info file for category directory
-	sed -i \
+	[[ ${PV} = *9999 ]] || sed -i \
 		-e 's/Texinfo documentation system/Libraries/' \
-		doc/fftw3."${ext}" || die "failed to fix info file"
+		doc/fftw3."info" || die "failed to fix info file"
 
 	autotools-utils_src_prepare
 }
@@ -85,7 +80,9 @@ src_configure() {
 	replace-flags -Os -O2
 
 	my_configure() {
-		local x=${FFTW_PRECISION}
+		#a bit hacky improve after #483758 is solved
+		local x=${BUILD_DIR%-${ABI}}
+		x=${x##*-}
 		# there is no abi_x86_32 port of virtual/mpi right now
 		local enable_mpi=$(use_enable mpi)
 		multilib_is_native_abi || enable_mpi="--disable-mpi"
@@ -138,14 +135,7 @@ src_configure() {
 		autotools-utils_src_configure
 	}
 
-	my_abi_configure() {
-		#multilib_parallel_foreach_abi changes MULTIBUILD_VARIANT
-		export FFTW_PRECISION=${MULTIBUILD_VARIANT}
-		multilib_parallel_foreach_abi my_configure
-		unset FFTW_PRECISION
-	}
-
-	multibuild_foreach_variant my_abi_configure
+	multibuild_foreach_variant multilib_parallel_foreach_abi my_configure
 }
 
 src_compile() {
@@ -169,6 +159,10 @@ src_install () {
 	#copied from autotools-multilib_secure_install
 	my_abi_src_install() {
 		autotools-utils_src_install
+		#https://github.com/FFTW/fftw3/pull/6
+		# f03 are installed unconditionally, not a big problem as the quad
+		# header is the only one to be wrapped.
+		[[ ${BUILD_DIR} = *-quad* ]] || rm -f "${ED}/usr/include/fftw3q.f03"
 		if [[ ${#MULTIBUILD_VARIANTS[@]} -gt 1 ]]; then
 			multilib_prepare_wrappers
 			multilib_check_headers


             reply	other threads:[~2013-09-07 20:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-07 20:19 Christoph Junghans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-11-21 15:14 [gentoo-commits] proj/sci:master commit in: sci-libs/fftw/ Christoph Junghans
2015-04-13  6:34 Justin Lecher
2015-02-19 21:12 Christoph Junghans
2015-02-17  0:13 Christoph Junghans
2015-02-02 12:06 Justin Lecher
2014-07-04  7:10 Justin Lecher
2014-01-06 18:33 Justin Lecher
2013-09-17 19:13 Christoph Junghans
2013-09-02 19:17 Christoph Junghans
2011-08-31 19:37 Christoph Junghans
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=1378585184.10348efec41c894a27c192ed2d94233119eac89e.ottxor@gentoo \
    --to=ottxor@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