summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2011-04-03 06:50:56 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2011-04-03 06:50:56 +0000
commitd7e96e087e53aadfd19a29cd50ff8104fe8bd268 (patch)
tree37856da3d48f63ad5866a99fb58029dd6a1d1cc4 /media-radio
parentCleanup (diff)
downloadgentoo-2-d7e96e087e53aadfd19a29cd50ff8104fe8bd268.tar.gz
gentoo-2-d7e96e087e53aadfd19a29cd50ff8104fe8bd268.tar.bz2
gentoo-2-d7e96e087e53aadfd19a29cd50ff8104fe8bd268.zip
Moved from Sunrise
(Portage version: 2.1.9.45/cvs/Linux x86_64)
Diffstat (limited to 'media-radio')
-rw-r--r--media-radio/wspr/ChangeLog45
-rw-r--r--media-radio/wspr/metadata.xml9
-rw-r--r--media-radio/wspr/wspr-2.00.ebuild75
3 files changed, 129 insertions, 0 deletions
diff --git a/media-radio/wspr/ChangeLog b/media-radio/wspr/ChangeLog
new file mode 100644
index 000000000000..dc4e681398ca
--- /dev/null
+++ b/media-radio/wspr/ChangeLog
@@ -0,0 +1,45 @@
+# ChangeLog for media-radio/wspr
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/wspr/ChangeLog,v 1.1 2011/04/03 06:50:56 tomjbe Exp $
+
+*wspr-2.00 (03 Apr 2011)
+
+ 03 Apr 2011; Thomas Beierlein <tomjbe@gentoo.org> +wspr-2.00.ebuild,
+ +metadata.xml:
+ Moved from sunrise
+
+ 14 Mar 2011; Justin Lecher <jlec@gentoo.org> wspr-2.00.ebuild:
+ Removed almost deprecated fortran.eclass
+
+ 01 Apr 2010; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-2.00.ebuild:
+ fix for changes in python.eclass
+
+ 25 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> metadata.xml:
+ fix metadata.xml
+
+ 22 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-2.00.ebuild:
+ use fortran.eclass
+
+ 21 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-2.00.ebuild:
+ added dependency on gcc[fortran]
+
+ 20 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-2.00.ebuild:
+ Simplify MY_P. Thanks Tommy[D]
+
+ 20 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-2.00.ebuild:
+ simplify sed expression
+
+ 20 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-2.00.ebuild:
+ added || die to insinto
+
+ 19 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> -wspr-1.12.ebuild,
+ +wspr-2.00.ebuild:
+ Version bump
+
+ 17 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> wspr-1.12.ebuild:
+ fix minor configuration problem
+
+ 03 Nov 2009; Thomas Beierlein (TomJBE) <tb@forth-ev.de> +wspr-1.12.ebuild,
+ +metadata.xml:
+ New ebuild for bug 291186. Thanks Tommy[D] for thorough review and help.
+
diff --git a/media-radio/wspr/metadata.xml b/media-radio/wspr/metadata.xml
new file mode 100644
index 000000000000..f6bf5297750d
--- /dev/null
+++ b/media-radio/wspr/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>tomjbe@gentoo.org</email>
+ <name>Thomas Beierlein</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-radio/wspr/wspr-2.00.ebuild b/media-radio/wspr/wspr-2.00.ebuild
new file mode 100644
index 000000000000..073bebf09eba
--- /dev/null
+++ b/media-radio/wspr/wspr-2.00.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/wspr/wspr-2.00.ebuild,v 1.1 2011/04/03 06:50:56 tomjbe Exp $
+
+EAPI="2"
+
+PYTHON_DEPEND="2"
+inherit autotools distutils flag-o-matic multilib python toolchain-funcs
+
+MY_P=${P}.r1714
+
+DESCRIPTION="Weak Signal Propagation Reporter"
+HOMEPAGE="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
+SRC_URI="http://www.physics.princeton.edu/pulsar/K1JT/${MY_P}.tgz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/python[tk]
+ dev-python/numpy
+ dev-python/imaging[tk]
+ dev-python/pmw
+ sci-libs/fftw:3.0
+ media-libs/hamlib
+ media-libs/portaudio
+ media-libs/libsamplerate"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+get_fcomp() {
+ case $(tc-getFC) in
+ *gfortran* )
+ FCOMP="gfortran" ;;
+ * )
+ FCOMP=$(tc-getFC) ;;
+ esac
+}
+
+src_prepare() {
+ tc-export FC
+ get_fcomp
+ export FC="${FCOMP}"
+ # upstream confused LIBDIRS with LDFLAGS in Makefile. f2py wants only
+ # LIBDIRS as parameter and takes LDFLAGS only from environment.
+ sed -i \
+ -e "s/LDFLAGS/LIBDIRS/g" \
+ Makefile.in || die "sed failed"
+
+ # drop hardcoded libdir path,
+ # switch LDFLAGS naming to LIBDIRS (see above comment).
+ sed -i -e "s/, f2py/, f2py$(python_get_version)/" \
+ -e "s:-L/usr/local/lib:-L/usr/$(get_libdir):" \
+ -e "s/LDFLAGS/LIBDIRS/g" \
+ configure.ac || die "sed failed"
+ eautoreconf
+}
+
+src_compile() {
+ # -shared is neded by f2py but cannot be set earlier as configure does
+ # not like it
+ append-ldflags -shared
+ emake || die "emake failed."
+}
+
+src_install() {
+ rm -rf build || die "removing build directory failed"
+ distutils_src_install
+ dobin wspr || die "dobin failed"
+ dodoc BUGS WSPR_*.TXT || die "dodoc failed"
+ insinto /usr/share/${PN}
+ doins hamlib_rig_numbers || die "doins failed"
+}