summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2003-08-24 04:31:17 +0000
committerGeorge Shapovalov <george@gentoo.org>2003-08-24 04:31:17 +0000
commit9575bf8eddd2b2b978aac9162efbf15941881dec (patch)
treeeaccf9a17c3bbed70e1c4e4733978fc1df45346b /dev-libs
parentVersion Bump (diff)
downloadgentoo-2-9575bf8eddd2b2b978aac9162efbf15941881dec.tar.gz
gentoo-2-9575bf8eddd2b2b978aac9162efbf15941881dec.tar.bz2
gentoo-2-9575bf8eddd2b2b978aac9162efbf15941881dec.zip
new (much advanced) version, added metadata.xml (herd sci)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/fftw/ChangeLog10
-rw-r--r--dev-libs/fftw/Manifest7
-rw-r--r--dev-libs/fftw/fftw-3.0.1.ebuild95
-rw-r--r--dev-libs/fftw/files/digest-fftw-3.0.11
-rw-r--r--dev-libs/fftw/metadata.xml5
5 files changed, 115 insertions, 3 deletions
diff --git a/dev-libs/fftw/ChangeLog b/dev-libs/fftw/ChangeLog
index 8c820523b44b..6e40402713ed 100644
--- a/dev-libs/fftw/ChangeLog
+++ b/dev-libs/fftw/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-libs/fftw
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/fftw/ChangeLog,v 1.11 2003/07/22 12:56:02 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/fftw/ChangeLog,v 1.12 2003/08/24 04:31:05 george Exp $
+
+*fftw-3.0.1 (23 Aug 2003)
+
+ 23 Aug 2003; George Shapovalov <george@gentoo.org> fftw-3.0.1.ebuild, metadata.xml :
+ new version (#20048)
+ thanks to Ingo Luetkebohle gentoo@blank.pages.de and Sam Yates <sam@quux.dropbear.id.au>
+ for ebuild submissions
+ added metadata.xml (herd sci)
22 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> fftw-2.1.5.ebuild :
Changed flag altering.
diff --git a/dev-libs/fftw/Manifest b/dev-libs/fftw/Manifest
index 5b13a5782cdf..728724db2585 100644
--- a/dev-libs/fftw/Manifest
+++ b/dev-libs/fftw/Manifest
@@ -1,5 +1,8 @@
-MD5 aaaa9a47e71f9708a62d8b91f95f6f14 ChangeLog 1617
-MD5 9e62b2fde5336fb8cbd0769051dad906 fftw-2.1.5.ebuild 3889
+MD5 e1e6ba8aa0a5716edf04b1374fb681e3 fftw-3.0.1.ebuild 2383
MD5 6f9702b1e189d407c6821321980955ec fftw-2.1.3-r1.ebuild 3365
+MD5 9e62b2fde5336fb8cbd0769051dad906 fftw-2.1.5.ebuild 3889
+MD5 4f6674aba0773af149774df4013129e4 ChangeLog 1906
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
MD5 236dda9695005c9f306fb2c55f020686 files/digest-fftw-2.1.5 63
+MD5 cd32698a34d886267d48a8ccb99747b1 files/digest-fftw-3.0.1 63
MD5 4fe6c4cc41aedf02139d010087125ec2 files/digest-fftw-2.1.3-r1 63
diff --git a/dev-libs/fftw/fftw-3.0.1.ebuild b/dev-libs/fftw/fftw-3.0.1.ebuild
new file mode 100644
index 000000000000..2984110b24ac
--- /dev/null
+++ b/dev-libs/fftw/fftw-3.0.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/fftw/fftw-3.0.1.ebuild,v 1.1 2003/08/24 04:31:05 george Exp $
+
+IUSE="3dnow sse mpi"
+
+inherit flag-o-matic
+
+DESCRIPTION="C subroutine library for computing the Discrete Fourier Transform (DFT)"
+SRC_URI="http://www.fftw.org/${P}.tar.gz"
+HOMEPAGE="http://www.fftw.org"
+
+SLOT="3.0"
+LICENSE="GPL-2"
+DEPEND="virtual/glibc"
+
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+
+#-fpmath=xx is reported to cause trouble on pentium4 m series
+#(for 3.0.x: this sort of thing should be handled by the --enable-sse
+#style configure flags. these are set below using the use variables,
+#but under gcc-3.2.x, sse2 seems to cause trouble.)
+filter-mfpmath
+
+# in gcc 3.2.3 at least, using sse or sse2 causes trouble with -O3
+# according to the docs, -O0 can cause trouble too! So pending further
+# testing, ...
+
+if [ `use sse` ]; then
+ filter-flags -O3 -O1 -O -Os
+ append-flags -O2
+fi
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ cd "${WORKDIR}"
+ mv ${P} ${P}-single
+
+ unpack "${P}.tar.gz"
+ cd "${WORKDIR}"
+ mv ${P} ${P}-double
+}
+
+
+src_compile() {
+ local myconf=""
+ local myconfsingle=""
+ local myconfdouble=""
+
+ use mpi && myconf="${myconf} --enable-mpi"
+ #mpi is not a valid flag yet. In this revision it is used merely to block --enable-mpi option
+ #it might be needed if it is decided that lam is an optional dependence
+
+ if [ `use sse` ]; then
+ myconfsingle="$myconfsingle --enable-sse"
+ myconfdouble="$myconfdouble --enable-sse2"
+ elif [ `use 3dnow` ]; then
+ myconfsingle="$myconfsingle --enable-3dnow"
+ fi
+
+ cd "${S}-single"
+ econf \
+ --enable-shared \
+ --enable-threads \
+ --enable-float \
+ ${myconf} ${myconfsingle} || die "./configure failed"
+ emake || die
+
+ #the only difference here is no --enable-float
+ cd "${S}-double"
+ econf \
+ --enable-shared \
+ --enable-threads \
+ ${myconf} ${myconfdouble} || die "./configure failed"
+ emake || die
+}
+
+src_install () {
+ #both builds are installed in the same place
+ #libs have distinuguished names; include files, docs etc. identical.
+ cd "${S}-single"
+ make DESTDIR=${D} install || die
+
+ cd "${S}-double"
+ make DESTDIR=${D} install || die
+
+ # Install documentation.
+ cd "${S}-single"
+
+ dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
+ dodoc COPYRIGHT CONVENTIONS
+
+ cd doc/html
+ dohtml -r .
+}
diff --git a/dev-libs/fftw/files/digest-fftw-3.0.1 b/dev-libs/fftw/files/digest-fftw-3.0.1
new file mode 100644
index 000000000000..0dcc37da443b
--- /dev/null
+++ b/dev-libs/fftw/files/digest-fftw-3.0.1
@@ -0,0 +1 @@
+MD5 76cd21ecc9a7bed6343566c473c36477 fftw-3.0.1.tar.gz 1946361
diff --git a/dev-libs/fftw/metadata.xml b/dev-libs/fftw/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/dev-libs/fftw/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>