summaryrefslogtreecommitdiff
path: root/sci-physics/harminv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/harminv
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/harminv')
-rw-r--r--sci-physics/harminv/Manifest6
-rw-r--r--sci-physics/harminv/files/harminv-1.3.1-configure.ac.patch31
-rw-r--r--sci-physics/harminv/harminv-1.3.1-r1.ebuild33
-rw-r--r--sci-physics/harminv/metadata.xml15
4 files changed, 85 insertions, 0 deletions
diff --git a/sci-physics/harminv/Manifest b/sci-physics/harminv/Manifest
new file mode 100644
index 000000000000..84f3154ff3a4
--- /dev/null
+++ b/sci-physics/harminv/Manifest
@@ -0,0 +1,6 @@
+AUX harminv-1.3.1-configure.ac.patch 965 SHA256 a0bd665d97afb2e6d7d21bb55062cf25b89b0e2c65472f811957529ce14927a8 SHA512 c177dae71d23df73f09d1754edfcbb464970b6bb987c46f880d3eee288ab69a293b885b85414b519a32323e8c5f83f853d68339eaed2b8d4c5734c5e55a96691 WHIRLPOOL f86e6d0c90324d76bcf305c62ed368b4ee26ce7686886d9602655ecd05d211eb815abfa0d57453f4f72c2efb24daeea8e1d0db43d4b733b5808a8ede31c60021
+DIST harminv-1.3.1.tar.gz 327832 SHA256 245778c16390c22850de3fb716c3db19514d40415ee3693293bfe59c66536583 SHA512 7dc1c2f658d9722cd64558a702f04409d10b87cb4ff7247c2fbd7f8d9a24387fef1b8ba4b7b183727bef21891c32d27d83aaa3607d063f8ad60702be4bfe5c3c WHIRLPOOL 31e3e0c6a5a01431a2d6daf4fdab362576f2f72617e5d89ccb0f04cde147c59185697bfc40c35ca09168bc4a2281468e41b978b091f2445f6eea203cf8aa7a12
+EBUILD harminv-1.3.1-r1.ebuild 753 SHA256 a2e9de43dae5eb8c57822256f489667c4213f1cf96be9ae1248ed92ac8d714a1 SHA512 4eafc9b442d5463971bafcd57003073544117fa04510e42ed0e8d62032b072fee1e5d6d42c802596aed67371b66cc4647a7f814e2cde8c9334f0647e09d37729 WHIRLPOOL 9b6064d15b94821ba49daeb2012d92d40a05806ba0c8f379b79234bfebe3cadcf3c2da8cdea1e70f46b1e41d2261ecb68e22bcacc7516830b52f12f5aa21d676
+MISC ChangeLog 3028 SHA256 488ebf5671e0051d96ecc3d8f23004274cffb566d2e3bce961d113c5634a704e SHA512 dd7689767fe6cb2009fe072171558d81834465fc8f66e748c3ce30948f14755bb93d08dd1ef9e29d5e74b46eb6c24adafcae4f169c54ec136a9fb55162311e04 WHIRLPOOL d0331b6afa170444f69d62abe0db5d44b35cbf326b492b1554e7e1333e12d3e8b3520829fdbd0fa69320a2327295511cda4ef932a1f0fb67a612ff872c418dd6
+MISC ChangeLog-2015 1083 SHA256 bdbb6ffe83c66f2bd184a1a2279460702c7cbb31b5eed762e94d2ced544793db SHA512 4e982669866b8f4f17000fefeca99dc57c1c70e04e1da90e8a0ba7993ab6664f9ded2460653450027091c8412e6ba09a5df56bfcb2bf035bdca3a397f5298613 WHIRLPOOL df713dc8c34c65ad0eb306dbef33d69015cd6c8bd478b5fdcbf71b796e8e73a69d0c0589825a3edb0e573c616c513889f1d2c765f9d6f49bb6ec266071e19089
+MISC metadata.xml 632 SHA256 f20a4e89568ff29e1e341bd1b644429111659a4f0797a1b4e771c317987ea5c7 SHA512 ec47048cde692010d9b562d430992630d9107e65d401a7f429a2e0658c8edaab2f200b2d84c233fe6481330c0ded1ff6672fd3b7b9f75a5130129e3037b9da9d WHIRLPOOL fb3856384ae476629ccda644d0fc804169e32fe7ca06238c8c089a1ad47c612cd997a085dd3e994232d3adae4f2d770459a71549b41225fca587046363ba392d
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..508a8c177902
--- /dev/null
+++ b/sci-physics/harminv/files/harminv-1.3.1-configure.ac.patch
@@ -0,0 +1,31 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -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-r1.ebuild b/sci-physics/harminv/harminv-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..396cc6fe8440
--- /dev/null
+++ b/sci-physics/harminv/harminv-1.3.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs
+
+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 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RDEPEND="virtual/lapack"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-configure.ac.patch )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
+ --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
+}
diff --git a/sci-physics/harminv/metadata.xml b/sci-physics/harminv/metadata.xml
new file mode 100644
index 000000000000..5ddaae490a92
--- /dev/null
+++ b/sci-physics/harminv/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-physics@gentoo.org</email>
+ <name>Gentoo Physics Project</name>
+ </maintainer>
+ <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>