summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-02-06 14:23:19 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-02-06 14:23:19 +0000
commit669bf9f743c8542d83cf6e8949cd1583025807f0 (patch)
treed27eade024d674e51ae91876dd6cba589e0e0a09 /sci-physics/harminv
parentsparc stable (diff)
downloadgentoo-2-669bf9f743c8542d83cf6e8949cd1583025807f0.tar.gz
gentoo-2-669bf9f743c8542d83cf6e8949cd1583025807f0.tar.bz2
gentoo-2-669bf9f743c8542d83cf6e8949cd1583025807f0.zip
Initial import. Ebuild first submitted by Ben Schwartz, see bug #170989
(Portage version: 2.1.4.1)
Diffstat (limited to 'sci-physics/harminv')
-rw-r--r--sci-physics/harminv/ChangeLog11
-rw-r--r--sci-physics/harminv/Manifest5
-rw-r--r--sci-physics/harminv/files/harminv-1.3.1-configure.ac.patch31
-rw-r--r--sci-physics/harminv/harminv-1.3.1.ebuild38
-rw-r--r--sci-physics/harminv/metadata.xml12
5 files changed, 97 insertions, 0 deletions
diff --git a/sci-physics/harminv/ChangeLog b/sci-physics/harminv/ChangeLog
new file mode 100644
index 000000000000..2ddcbf6b68a0
--- /dev/null
+++ b/sci-physics/harminv/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-physics/harminv
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/harminv/ChangeLog,v 1.1 2008/02/06 14:23:18 bicatali Exp $
+
+*harminv-1.3.1 (06 Feb 2008)
+
+ 06 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/harminv-1.3.1-configure.ac.patch, +metadata.xml,
+ +harminv-1.3.1.ebuild:
+ Initial import. Ebuild first submitted by Ben Schwartz, see bug #170989
+
diff --git a/sci-physics/harminv/Manifest b/sci-physics/harminv/Manifest
new file mode 100644
index 000000000000..0cfa1481ba60
--- /dev/null
+++ b/sci-physics/harminv/Manifest
@@ -0,0 +1,5 @@
+AUX harminv-1.3.1-configure.ac.patch 1038 RMD160 5430e58f33e639df9fd7b8babb60ab2c1635346e SHA1 9c30c6d5e4a9b84e97197d174a613ab446b7a066 SHA256 4fadb381e6d5edc95a5b3c365b1b5d36d1e9c925eb408ea56a70f3e6832273e0
+DIST harminv-1.3.1.tar.gz 327832 RMD160 340de65da54b197f70adec43ecd2907a757d6d35 SHA1 ef75161233df92393110b783d2945b5915c8291a SHA256 245778c16390c22850de3fb716c3db19514d40415ee3693293bfe59c66536583
+EBUILD harminv-1.3.1.ebuild 850 RMD160 0ceb2fe63c65ebc6c46f294b9072a0f8018ebd83 SHA1 48ab3a10cb2e9b3ffe48800871bdc7942db35f9e SHA256 05781fbc1cb9d3f841bcca9c9fbfb6c9a559c13225d6acd685d1e0ef13ba48e0
+MISC ChangeLog 363 RMD160 72c65ed765ce399cf3ae7dd29833d87d66d5bffd SHA1 bba2d9c721e6537e724f05dd6c6e3f24093d3df6 SHA256 1712497236aa3534ff5761e31ab76908f1f82300fdbab02589dd30a51ed67af5
+MISC metadata.xml 527 RMD160 8f3be8eb904aa8c91d19f0e0e35664a4bdb9adb2 SHA1 f92e77d90a8bbc6854d0911eb9cddb0355fd9185 SHA256 4111d063d0ae32e923de0286d21e7447d5ade9d7a0e7d174ec95325c5ee7ffc0
diff --git a/sci-physics/harminv/files/harminv-1.3.1-configure.ac.patch b/sci-physics/harminv/files/harminv-1.3.1-configure.ac.patch
new file mode 100644
index 000000000000..2830d5b586f3
--- /dev/null
+++ b/sci-physics/harminv/files/harminv-1.3.1-configure.ac.patch
@@ -0,0 +1,31 @@
+--- configure.ac.orig 2007-09-27 09:27:28.731439558 +0100
++++ configure.ac 2007-09-27 09:37:45.755835491 +0100
+@@ -9,7 +9,7 @@
+ # *not* the same as the "public" version number. CURRENT:REVISION:AGE
+ SHARED_VERSION_INFO="2:4:0"
+ AC_SUBST(SHARED_VERSION_INFO)
+-AM_ENABLE_SHARED(no) dnl shared libs cause too many headaches to be default
++AM_ENABLE_SHARED(yes) dnl shared libs cause too many headaches to be default
+
+ ##############################################################################
+
+@@ -123,9 +123,16 @@
+ ###########################################################################
+
+ # Checks for BLAS/LAPACK libraries:
+-
+-ACX_BLAS([], [AC_MSG_ERROR([BLAS library not found])])
+-ACX_LAPACK([], [AC_MSG_ERROR([LAPACK library not found])])
++sinclude(acx_blas.m4)
++ACX_BLAS
++if test x"$BLAS_LIBS" = x ; then
++ AC_MSG_ERROR([BLAS library not found])
++fi
++sinclude(acx_lapack.m4)
++ACX_LAPACK
++if test x"$LAPACK_LIBS" = x ; then
++ AC_MSG_ERROR([LAPACK library not found])
++fi
+
+ LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS"
+
diff --git a/sci-physics/harminv/harminv-1.3.1.ebuild b/sci-physics/harminv/harminv-1.3.1.ebuild
new file mode 100644
index 000000000000..9612704ec195
--- /dev/null
+++ b/sci-physics/harminv/harminv-1.3.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/harminv/harminv-1.3.1.ebuild,v 1.1 2008/02/06 14:23:18 bicatali Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="Extraction of complex frequencies and amplitudes from time series"
+HOMEPAGE="http://ab-initio.mit.edu/harminv/"
+SRC_URI="http://ab-initio.mit.edu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="virtual/lapack"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-configure.ac.patch
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --with-blas="$(pkg-config --libs blas)" \
+ --with-lapack="$(pkg-config --libs lapack)" \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS NEWS README || die "dodoc failed"
+}
diff --git a/sci-physics/harminv/metadata.xml b/sci-physics/harminv/metadata.xml
new file mode 100644
index 000000000000..1e2085ba073d
--- /dev/null
+++ b/sci-physics/harminv/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-physics</herd>
+<longdescription lang="en">
+ Harminv is a program to solve the problem of harmonic inversion,
+ given a discrete-time, finite-length signal that consists of a sum of
+ finitely-many sinusoids (possibly exponentially decaying) in a given
+ bandwidth, it determines the frequencies, decay constants, amplitudes,
+ and phases of those sinusoids.
+</longdescription>
+</pkgmetadata>