diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-radio/wspr |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-radio/wspr')
-rw-r--r-- | media-radio/wspr/Manifest | 16 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-2.00-PIL.patch | 13 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-2.00-libdir.patch | 53 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-2.00-script.patch | 25 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-2.00-verbose.patch | 12 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-3.01-PIL.patch | 11 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-3.01-numpy.patch | 23 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-3.01-script.patch | 19 | ||||
-rw-r--r-- | media-radio/wspr/files/wspr-3.01-verbose.patch | 12 | ||||
-rw-r--r-- | media-radio/wspr/metadata.xml | 8 | ||||
-rw-r--r-- | media-radio/wspr/wspr-2.00-r2.ebuild | 93 | ||||
-rw-r--r-- | media-radio/wspr/wspr-3.01-r1.ebuild | 96 | ||||
-rw-r--r-- | media-radio/wspr/wspr-3.01.ebuild | 94 |
13 files changed, 475 insertions, 0 deletions
diff --git a/media-radio/wspr/Manifest b/media-radio/wspr/Manifest new file mode 100644 index 000000000000..183cf00d84b8 --- /dev/null +++ b/media-radio/wspr/Manifest @@ -0,0 +1,16 @@ +AUX wspr-2.00-PIL.patch 455 SHA256 9653c83cac2b1a8406315912847949d4fe06f8a5321d52231040bc78761b8a60 SHA512 c54315b6febac2669d0b9327434d718201f7da9ee8fd9e67fc64d74849d4c2453a646328248c5d3791f309005a8b0b221a825f9d4e518a9c59fbd84a9743fd2b WHIRLPOOL cebf1c88067b812df5dd5d79c6e6c56c6d0a95e497d512e08ee1d72f72838bf5057ea7cfce7e939e388a3ea3b92401acb17e5819a00a21cc14d9007f7e93d339 +AUX wspr-2.00-libdir.patch 1675 SHA256 3f662904c9b3c4e41a6254c8cabb588c7372aefcec6b3a5d70d363d34326c808 SHA512 40912019b0c4605e7fc1ebacd5775927d474cd32cddc5a752df9a21067b78ce629d2cf7095d4aab05f9eeb40fd41e039617be6c803d8f49e8de2b2148770be49 WHIRLPOOL ca348b579b984a39c5d9906b2d4a83a443eb07b178674a0d2a5bdbb90ce6edd1423ecb5792b63eb7fc4c53a2fced4249ac486cd19425ddd7d44af556ab8e8590 +AUX wspr-2.00-script.patch 666 SHA256 24a8fd5a571eac5a11c1d48e00743c181ee752148df4fc1ee3a1665201a85420 SHA512 6108a94f0acf2fea143817926d570dc103f66d342803295cacd2ff6b6615a2b51ee6d53cc313730daabd4742864468cc99c202efb7d907b5c1f3a556620e8bb9 WHIRLPOOL ca9fa6afff80d8e923211be201b354ffadc719a68eac3b16665b68756b0c10e5759f0024e0a918d2a2b85ac81ffdae72f70541d4389ce477a8022de0952dd8c8 +AUX wspr-2.00-verbose.patch 457 SHA256 9eb34712226466e4bc27e576150ac72d5a3f7ba98aa2c9b74c94e8050dbe01ce SHA512 35d6aa9876bc9de80ab0f9a05616fbe694b6bc51b969bc55cdf5ab961185c41b492232601cf61e592c8cfcf9470b23451219a5953fcb03fe7ff1fbb3d3f17a79 WHIRLPOOL 11329da4ca8f562464bb0189940d4e8803ef230e52e6392e3ca83af3f068b5572161d542f3c69c156451d7c90daab9881950e500fd6a9c56a3e947a81256b99f +AUX wspr-3.01-PIL.patch 431 SHA256 421e4562fb0bc1aa6695916a1f5e32233e1f6f601ad9794cbaed7188a312a036 SHA512 021ed43cc45b840f3f9a2401ad27dd6a6322301b584a0ea618f59e38935e27cdcca99277fd85e3cb8fbb0f8126b64c097bff28547b024e51754a5720cefb0382 WHIRLPOOL 35c64d2b4906156334ad8865e005d0fe2a366366c6c44252aada5aa65ae4d47235949d983d3b1352fadc04512edfae2489cc74e804c28bc52a107e8b92a6cd81 +AUX wspr-3.01-numpy.patch 691 SHA256 101665674d6746fe0ec1d44006d4a5474329c27a60b1f8898fd0f689d1c54499 SHA512 2e5912a65b87e1770d8f041d4d170a0ce3a86650659fbffc9d2e6fa34893008627ae966cf2cba95574de4e454a23d5b366ae6df456bfbba6aa4b19147d016021 WHIRLPOOL 0e5e5d5d6979a712fec152f006c723d3046ded7ea2a6a6ad03f870d7619a07f284c4043a03c5ed0dc4d7d0fff9b81d31a5e528865649df9d5e0c291a57ad6cc2 +AUX wspr-3.01-script.patch 531 SHA256 796f1475bc0f2d1593fe8d1519a171594ce6889ca6192a97b20d06f78b3dddc4 SHA512 e3a8acb038694847cde91adbe1f040f9f5fdbb969dca999fde423f8f7aead09a3a906aed1ec81825395960f60e0fbf210f9cf8182a49effc75747ffa3727dd7c WHIRLPOOL 509303739867506c8f4519ac8e6bbf3639baaeae4ed3a56e89ee8fd10251b41317e2d75095861073b628e47e6ee734dbecd9615252bf2d953bf1cde02d03657f +AUX wspr-3.01-verbose.patch 467 SHA256 50f9850d73f0df7ca9e018a3abea1f1d9f06e2d2e446fbd6d003ea4b31b795e1 SHA512 83ffabc81539e18a0dac143811ee93bd79ba3803d1a0287c77cf80d9236d6e7dcfbaaa0af0ce0186ee7fb63a2e6e2395cbeea780d7975f9c8cf36a0acb41b2ec WHIRLPOOL 9dddafddbaff74f54466bdd566717ca53d8b2a5550b0805066ddfd510b6ad8c5d93efaf3ee805785f96904757ec5a2757455ace100661fc0c11b2d69c44bb2b4 +DIST wspr-2.00.r1714.tgz 2096056 SHA256 6a0e13f354d4e228337ee550851f36027281e268385961505a6757fda1ffc423 SHA512 221ca3c4ac433d5fb292830e183ef4ce44a9b0b31c8c1446faf30c1c2d6fe88cb471434c01126450843af49249e33bf6eccf1cbf839e6c5a09a3206c64a01d78 WHIRLPOOL c46fa1232c16ba42f8a9cf5fe1821291c339a776f2c1afe9ca4933574c026607bc789c31a496581f06d746297d9dfcc4252b79f52b1b38f8292134b445ab353b +DIST wspr-3.01.r2792.tgz 2145037 SHA256 a57218432b6086d823749ab7114c5e3f91066dd6a0969e5dd7b81ec770f5b18c SHA512 0aad8bf518b217fcf14fd0fd5ec0f8f3833c2768eff9eec20dee213dfd057dc283d81290a042f464c729e03502d3b8e1c2b22d5d1c2932eccc13b4ef1eaf0698 WHIRLPOOL bbca4146a925dbf5946f5d50ce7eb662a1d9a7a86bcc0433dc3fc01292e8affe944ffb36e7d2af8e2ac2d7e3a304d439324e2da9d6237070063c5a5c6d894a07 +EBUILD wspr-2.00-r2.ebuild 2062 SHA256 dd861c0ccd60cd8ac186c14b7fc10e85090866853c35e1d593c7acf274ab429a SHA512 08aafe319d596b4c3dc3b8a04553604b1502e6a7f441d85a882314256646702a42d8e8e5d0ed8b5ea90b23dd8ee8b59fe1afd9f8e3d08c74f9afd44e59b483b8 WHIRLPOOL b7e8bcb1dec8e6e5e3836c9de1fbd2500d98f1a1fb161009c13850c860b6563d81e8a0e40a60b06546d07a1912ed6c8507369546f30f2d975a148b9eb80d7e29 +EBUILD wspr-3.01-r1.ebuild 2228 SHA256 7e00d5094c7e2f3c0c5dab65087666d3e418bb911f62718f7cb5536e8e4a3da0 SHA512 8ffe1712a987d4e3bda3838e69c5890644aec7f1ee5ac77ddf7ef39f91acb2cee89786533bc5350313d869df2193a8840d43b7d45ad45dd65d0b49ef7a187207 WHIRLPOOL 4bf31c4e0ca1e82453994d947d45169f96fb065457d584ee9022a597c957fb9fb184980337e6e4a9351b2782459dd345e2eff345291627fccd6830c36db3fa79 +EBUILD wspr-3.01.ebuild 2157 SHA256 b2ab6954738250906b8f2d00d1003eb0e537fd8e390b978ed8e18d65ea52af4e SHA512 fb63a6bfd8d5df232b8315a2cbe66d6a765f7ec6deb005ea307c26deae454c4c6cadd8b875bdb574d3b91b8179a3dab21f018d058a3c56ad8337e6ac0a7ff2e3 WHIRLPOOL c2c8ce1e887c2c911be1bc23d99708bd22f19eb900b24c484db28b5aad94a88917790254bcd4445fd70a64127556122d15d090f09ae069c89adbab26788a5de0 +MISC ChangeLog 3045 SHA256 c03cd7d9efdd9f66035144d6bbd8e68249a37fd41b1cecf5e81b85924da647d6 SHA512 56b9d608ef8d2a89c0ecf89089814ace633c5bc79d6b33b0db4d15196860ee097d102f2ddb435e532bc61030541188dbb976333a484b9ffbf9ce5abdb058738a WHIRLPOOL a583c95ef0c57cecf89325802c8ea2387ff5a104965445ef905c63676ce27b9e1bdc9ca9ee19e60d93a9618108a4d320f2e4d4e3fa2f58d2b88050967f10ad9b +MISC ChangeLog-2015 3900 SHA256 64df512bf40d623f83ae0ea515e880c960376e2c8ec6f9a2dd6e7fc4cec5d75f SHA512 d60b9bbbed5dcdd0e351dcc6d08ddf6e08dd1f5dd6b8c0c59ee7eb9f90ff9ee9a216ac8f2defd968fc350f8bdb2dabc56ffc79bab57de21946e033e8be73351e WHIRLPOOL 0fd08ae8be4c7b5c352d4ab68c6c04c8d3b845e4fba5186e4c6a12a6834d8811850f94fb6fbcfab0aba13f8460c30b4f78647815a95753a3f54ee9ed996c287f +MISC metadata.xml 255 SHA256 337b153cf1c2865c67720f3f9ced85136b748d378bf40ce808d713972811f38b SHA512 35a18c5a178cc996bb71a27b11fb361198ae96d24ee3cbbc105a64824e1dcddd71d017270539daa3688ec2f04a8f564dd08ca491f62a3da4cca650c9bf35600d WHIRLPOOL ad70e1844cc7990014d84464768a5379cf091c9d3778d7b3f5ed1e8d2e5d2cc0100c50d684b4c09aae2fa629a746bb5d5d2488ebbb3521c1281a9dd581fcb02b diff --git a/media-radio/wspr/files/wspr-2.00-PIL.patch b/media-radio/wspr/files/wspr-2.00-PIL.patch new file mode 100644 index 000000000000..69bb853396ac --- /dev/null +++ b/media-radio/wspr/files/wspr-2.00-PIL.patch @@ -0,0 +1,13 @@ +--- wspr.py.orig 2013-06-02 18:25:02.000000000 +0200 ++++ wspr.py 2013-06-02 18:25:51.000000000 +0200 +@@ -15,7 +15,9 @@ + from Numeric import zeros + import array + import dircache +-import Image, ImageTk, ImageDraw ++from PIL import Image ++from PIL import ImageTk ++from PIL import ImageDraw + from WsprMod.palettes import colormapblue, colormapgray0, colormapHot, \ + colormapAFMHot, colormapgray1, colormapLinrad, Colormap2Palette + from types import * diff --git a/media-radio/wspr/files/wspr-2.00-libdir.patch b/media-radio/wspr/files/wspr-2.00-libdir.patch new file mode 100644 index 000000000000..e33d7b90871f --- /dev/null +++ b/media-radio/wspr/files/wspr-2.00-libdir.patch @@ -0,0 +1,53 @@ +# Upstream confused LIBDIRS with LDFLAGS in Makefile. f2py wants only +# LIBDIRS as parameter and takes LDFLAGS only from environment. +--- Makefile.in.orig 2013-01-31 13:17:23.000000000 +0000 ++++ Makefile.in 2013-01-31 13:19:19.000000000 +0000 +@@ -3,7 +3,7 @@ + INSTALL= install + CC ?= @CC@ + FFLAGS = @FFLAGS@ +-LDFLAGS = @LDFLAGS@ ++LIBDIRS = @LIBDIRS@ + LIBS = @LIBS@ -lfftw3f + CPPFLAGS = @CPPFLAGS@ + CFLAGS = @CFLAGS@ +@@ -39,7 +39,7 @@ + FCV=@FCV@ + FC_LIB_PATH += @FC_LIB_PATH@ + +-LDFLAGS += -L${FC_LIB_PATH} ++LIBDIRS += -L${FC_LIB_PATH} + + PYTHON ?= @PYTHON@ + RM ?= @RM@ +@@ -78,7 +78,7 @@ + --f77flags="${FFLAGS}" --f90flags="${FFLAGS}" \ + --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \ + --opt="-fbounds-check ${FFLAGS}" \ +- ${CPPFLAGS} ${LDFLAGS} ${LIBS} \ ++ ${CPPFLAGS} ${LIBDIRS} ${LIBS} \ + only: $(F2PYONLY) : \ + $(SRCS2F90) $(SRCS2F77) $(SRCS2C) + ${MKDIR} -p build/lib/WsprMod +# drop hardcoded libdir path, +# switch LDFLAGS naming to LIBDIRS (see above comment). +--- configure.ac.orig 2013-01-31 13:19:01.000000000 +0000 ++++ configure.ac 2013-01-31 13:19:19.000000000 +0000 +@@ -22,7 +22,7 @@ + + dnl Lets guess at some likely places for extra libs/includes XXX -db + CPPFLAGS="-I/usr/local/include ${CPPFLAGS}" +-LDFLAGS="-L/usr/local/lib ${LDFLAGS}" ++LIBDIRS="-L/usr/local/lib ${LIBDIRS}" + LIBS=" -lpthread ${LIBS}" + FFLAGS_GFORTRAN="${FFLAGS} -fno-range-check -ffixed-line-length-none\ + -Wall -fbounds-check -fno-second-underscore -fPIC" +@@ -160,7 +160,7 @@ + dnl + AC_SUBST(PREFIX, "${prefix}") + AC_SUBST(CPPFLAGS, "${CPPFLAGS}") +-AC_SUBST(LDFLAGS, "${LDFLAGS}") ++AC_SUBST(LIBDIRS, "${LIBDIRS}") + AC_SUBST(LIBS, "${LIBS}") + AC_SUBST(CFLAGS) + AC_SUBST(FFLAGS) diff --git a/media-radio/wspr/files/wspr-2.00-script.patch b/media-radio/wspr/files/wspr-2.00-script.patch new file mode 100644 index 000000000000..e75c11782786 --- /dev/null +++ b/media-radio/wspr/files/wspr-2.00-script.patch @@ -0,0 +1,25 @@ +# make python code into a script +# and fix shell script +--- wspr.py.orig 2013-02-01 13:24:30.000000000 +0000 ++++ wspr.py 2013-02-01 13:23:30.000000000 +0000 +@@ -1,3 +1,4 @@ ++#!/usr/bin/python + #------------------------------------------------------------------- WSPR + # $Date: 2013/02/07 14:35:21 $ $Revision: 1.1 $ + # +--- wspr.orig 2013-02-02 08:10:17.000000000 +0000 ++++ wspr 2013-02-02 08:10:56.000000000 +0000 +@@ -1,12 +1,7 @@ + #!/bin/sh +-if [ -e /usr/local/bin/python ] ; then +- LOCALBASE=/usr/local/ +-else +- LOCALBASE=/usr/ +-fi + if [ ! -e ~/.wspr ] ; then + mkdir ~/.wspr + mkdir ~/.wspr/save + fi + cd ~/.wspr +-python ${LOCALBASE}/bin/wspr.py ++/usr/bin/wspr.py diff --git a/media-radio/wspr/files/wspr-2.00-verbose.patch b/media-radio/wspr/files/wspr-2.00-verbose.patch new file mode 100644 index 000000000000..9036e0d868a4 --- /dev/null +++ b/media-radio/wspr/files/wspr-2.00-verbose.patch @@ -0,0 +1,12 @@ +# make f2py verbose +--- Makefile.in.orig 2013-02-07 12:22:41.000000000 +0000 ++++ Makefile.in 2013-02-07 12:23:11.000000000 +0000 +@@ -74,7 +74,7 @@ + OBJS2C = ${SRCS2C:.c=.o} + + WsprMod/w.so: ${OBJS2C} $(SRCS2F90) $(SRCS2F77) acom1.f90 +- ${F2PY} -c --quiet --noopt --debug -m w \ ++ ${F2PY} -c --noopt --debug -m w \ + --f77flags="${FFLAGS}" --f90flags="${FFLAGS}" \ + --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \ + --opt="-fbounds-check ${FFLAGS}" \ diff --git a/media-radio/wspr/files/wspr-3.01-PIL.patch b/media-radio/wspr/files/wspr-3.01-PIL.patch new file mode 100644 index 000000000000..ce4689195147 --- /dev/null +++ b/media-radio/wspr/files/wspr-3.01-PIL.patch @@ -0,0 +1,11 @@ +--- wspr.py.orig 2014-06-23 21:25:51.000000000 +0200 ++++ wspr.py 2014-06-23 21:26:03.000000000 +0200 +@@ -35,7 +35,7 @@ + from Numeric import zeros
+ import array
+ import dircache
+-import Image, ImageTk, ImageDraw
++from PIL import Image, ImageTk, ImageDraw
+ from WsprMod.palettes import colormapblue, colormapgray0, colormapHot, \
+ colormapAFMHot, colormapgray1, colormapLinrad, Colormap2Palette
+ from types import *
diff --git a/media-radio/wspr/files/wspr-3.01-numpy.patch b/media-radio/wspr/files/wspr-3.01-numpy.patch new file mode 100644 index 000000000000..2c9174dff58a --- /dev/null +++ b/media-radio/wspr/files/wspr-3.01-numpy.patch @@ -0,0 +1,23 @@ +# Numpy-1.9 dropped oldnumeric and numarray +--- WsprMod/specjt.py.orig 2015-05-18 15:49:37.000000000 +0200 ++++ WsprMod/specjt.py 2015-05-18 15:49:48.000000000 +0200 +@@ -12,7 +12,7 @@ + import w + + try: +- from numpy.oldnumeric import zeros, multiarray ++ from numpy import zeros, multiarray + except: + from Numeric import zeros, multiarray + import Image, ImageTk, ImageDraw +--- wspr.py.orig 2015-05-18 15:47:13.000000000 +0200 ++++ wspr.py 2015-05-18 15:47:38.000000000 +0200 +@@ -31,7 +31,7 @@ + from WsprMod import palettes
+ from math import log10
+ try:
+- from numpy.oldnumeric import zeros
++ from numpy import zeros
+ except:
+ from Numeric import zeros
+ import array
diff --git a/media-radio/wspr/files/wspr-3.01-script.patch b/media-radio/wspr/files/wspr-3.01-script.patch new file mode 100644 index 000000000000..f64a11b68a64 --- /dev/null +++ b/media-radio/wspr/files/wspr-3.01-script.patch @@ -0,0 +1,19 @@ +--- wspr.py.orig 2014-06-24 19:13:55.000000000 +0200 ++++ wspr.py 2014-06-24 19:14:43.000000000 +0200 +@@ -1,3 +1,4 @@ ++#!/usr/bin/python + #-------------------------------------------------------------------- WSPR
+ # $Date: 2014/06/26 09:15:53 $ $Revision: 1.1 $
+ #
+--- wspr.orig 2014-06-24 18:57:00.000000000 +0200 ++++ wspr 2014-06-24 19:09:50.000000000 +0200 +@@ -1,2 +1,7 @@ +-LD_LIBRARY_PATH=./lib +-python -O wspr.py ++#!/bin/sh ++if [ ! -e ~/.wspr ] ; then ++ mkdir ~/.wspr ++ mkdir ~/.wspr/save ++fi ++cd ~/.wspr ++/usr/bin/wspr.py diff --git a/media-radio/wspr/files/wspr-3.01-verbose.patch b/media-radio/wspr/files/wspr-3.01-verbose.patch new file mode 100644 index 000000000000..b697cfe444dd --- /dev/null +++ b/media-radio/wspr/files/wspr-3.01-verbose.patch @@ -0,0 +1,12 @@ +# make f2py verbose +--- Makefile.in.orig 2014-06-23 21:14:51.000000000 +0200 ++++ Makefile.in 2014-06-23 21:15:11.000000000 +0200 +@@ -95,7 +95,7 @@ + OBJS2C = ${SRCS2C:.c=.o} + + WsprMod/w.so: ${OBJS2C} $(SRCS2C) $(SRCS2F90) $(SRCS2F77) acom1.f90 +- ${F2PY} -c --quiet --noopt --debug -m w \ ++ ${F2PY} -c --noopt --debug -m w \ + --f77flags="${FFLAGS}" --f90flags="${FFLAGS}" \ + --fcompiler=${FCV} --f77exec=${FC} --f90exec=${FC} \ + --opt="-fbounds-check ${FFLAGS}" \ diff --git a/media-radio/wspr/metadata.xml b/media-radio/wspr/metadata.xml new file mode 100644 index 000000000000..d187eed5ac80 --- /dev/null +++ b/media-radio/wspr/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tomjbe@gentoo.org</email> + <name>Thomas Beierlein</name> + </maintainer> +</pkgmetadata> diff --git a/media-radio/wspr/wspr-2.00-r2.ebuild b/media-radio/wspr/wspr-2.00-r2.ebuild new file mode 100644 index 000000000000..471e7570411f --- /dev/null +++ b/media-radio/wspr/wspr-2.00-r2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit autotools fortran-2 distutils-r1 flag-o-matic multilib 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-python/pillow[tk,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + virtual/python-pmw[${PYTHON_USEDEP}] + sci-libs/fftw:3.0 + media-libs/hamlib + media-libs/portaudio + media-libs/libsamplerate" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( BUGS WSPR_Announcement.TXT WSPR_Instructions.TXT WSPR_Quick_Start.TXT ) + +pkg_setup() { + fortran-2_pkg_setup +} + +get_fcomp() { + case $(tc-getFC) in + *gfortran* ) FCOMP="gfortran" ;; + * ) FCOMP=$(tc-getFC) ;; + esac +} + +python_prepare_all() { + tc-export FC + get_fcomp + export FC="${FCOMP}" + + local PATCHES=( + "${FILESDIR}"/${P}-libdir.patch + "${FILESDIR}"/${P}-verbose.patch + "${FILESDIR}"/${P}-script.patch + "${FILESDIR}"/${P}-PIL.patch + ) + + distutils-r1_python_prepare_all + + sed -i -e "s#/usr/local/lib#/usr/$(get_libdir)#" configure.ac || die + sed -i -e '/makedirs/d' setup.py || die + eautoreconf +} + +# Note: very hacky build system. +# autoconf which doesn't really need Python +# then custom Makefile which compiles the Python module with f2py +# and finally hacked setup.py which relies on w.so created by make + +src_configure() { + # configure the build of the fortran module + econf --with-portaudio-lib-dir=/usr/$(get_libdir) + + # then fork the sources + python_copy_sources + DISTUTILS_IN_SOURCE_BUILD=1 +} + +python_compile() { + # -shared is neded by f2py but cannot be set earlier as configure does + # not like it + local LDFLAGS=${LDFLAGS} + append-ldflags -shared + emake +} + +python_install_all() { + distutils-r1_python_install_all + + dobin wspr + insinto /usr/share/${PN} + doins hamlib_rig_numbers +} diff --git a/media-radio/wspr/wspr-3.01-r1.ebuild b/media-radio/wspr/wspr-3.01-r1.ebuild new file mode 100644 index 000000000000..3990f2bef69e --- /dev/null +++ b/media-radio/wspr/wspr-3.01-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit autotools fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs + +MY_P=${P}.r2792 + +DESCRIPTION="Weak Signal Propagation Reporter" +HOMEPAGE="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html" +SRC_URI="https://dev.gentoo.org/~tomjbe/distfiles/${MY_P}.tgz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-python/pillow[tk,${PYTHON_USEDEP}] + >=dev-python/numpy-1.9.0[${PYTHON_USEDEP}] + virtual/python-pmw[${PYTHON_USEDEP}] + sci-libs/fftw:3.0 + media-libs/hamlib + media-libs/portaudio + media-libs/libsamplerate" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( BUGS WSPR_Announcement.TXT WSPR0_Instructions.TXT WSPR_Quick_Start.TXT ) + +pkg_setup() { + fortran-2_pkg_setup +} + +get_fcomp() { + case $(tc-getFC) in + *gfortran* ) FCOMP="gfortran" ;; + * ) FCOMP=$(tc-getFC) ;; + esac +} + +python_prepare_all() { + tc-export FC + get_fcomp + export FC="${FCOMP}" + + local PATCHES=( + "${FILESDIR}"/${PN}-2.00-libdir.patch + "${FILESDIR}"/${P}-verbose.patch + "${FILESDIR}"/${PN}-3.01-script.patch + "${FILESDIR}"/${P}-PIL.patch + # adapt to numpy-1.9 - bug #544504 + "${FILESDIR}"/${P}-numpy.patch + ) + + distutils-r1_python_prepare_all + + sed -i -e "s/LDFLAGS} ${LIBS}/LDFLAGS} -fPIC ${LIBS}/" Makefile.in || die + sed -i -e "s#/usr/local/lib#/usr/$(get_libdir)#" configure.ac || die + sed -i -e '/makedirs/d' setup.py || die + eautoreconf +} + +# Note: very hacky build system. +# autoconf which doesn't really need Python +# then custom Makefile which compiles the Python module with f2py +# and finally hacked setup.py which relies on w.so created by make + +src_configure() { + # configure the build of the fortran module + econf --with-portaudio-lib-dir=/usr/$(get_libdir) + + # then fork the sources + python_copy_sources + DISTUTILS_IN_SOURCE_BUILD=1 +} + +python_compile() { + # -shared is neded by f2py but cannot be set earlier as configure does + # not like it + local LDFLAGS=${LDFLAGS} + append-ldflags -shared + emake -j1 +} + +python_install_all() { + distutils-r1_python_install_all + + dobin wspr + insinto /usr/share/${PN} + doins hamlib_rig_numbers +} diff --git a/media-radio/wspr/wspr-3.01.ebuild b/media-radio/wspr/wspr-3.01.ebuild new file mode 100644 index 000000000000..a9f4a1520ca0 --- /dev/null +++ b/media-radio/wspr/wspr-3.01.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit autotools fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs + +MY_P=${P}.r2792 + +DESCRIPTION="Weak Signal Propagation Reporter" +HOMEPAGE="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html" +SRC_URI="https://dev.gentoo.org/~tomjbe/distfiles/${MY_P}.tgz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-python/pillow[tk,${PYTHON_USEDEP}] + <dev-python/numpy-1.9.0[${PYTHON_USEDEP}] + virtual/python-pmw[${PYTHON_USEDEP}] + sci-libs/fftw:3.0 + media-libs/hamlib + media-libs/portaudio + media-libs/libsamplerate" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( BUGS WSPR_Announcement.TXT WSPR0_Instructions.TXT WSPR_Quick_Start.TXT ) + +pkg_setup() { + fortran-2_pkg_setup +} + +get_fcomp() { + case $(tc-getFC) in + *gfortran* ) FCOMP="gfortran" ;; + * ) FCOMP=$(tc-getFC) ;; + esac +} + +python_prepare_all() { + tc-export FC + get_fcomp + export FC="${FCOMP}" + + local PATCHES=( + "${FILESDIR}"/${PN}-2.00-libdir.patch + "${FILESDIR}"/${P}-verbose.patch + "${FILESDIR}"/${PN}-3.01-script.patch + "${FILESDIR}"/${P}-PIL.patch + ) + + distutils-r1_python_prepare_all + + sed -i -e "s/LDFLAGS} ${LIBS}/LDFLAGS} -fPIC ${LIBS}/" Makefile.in || die + sed -i -e "s#/usr/local/lib#/usr/$(get_libdir)#" configure.ac || die + sed -i -e '/makedirs/d' setup.py || die + eautoreconf +} + +# Note: very hacky build system. +# autoconf which doesn't really need Python +# then custom Makefile which compiles the Python module with f2py +# and finally hacked setup.py which relies on w.so created by make + +src_configure() { + # configure the build of the fortran module + econf --with-portaudio-lib-dir=/usr/$(get_libdir) + + # then fork the sources + python_copy_sources + DISTUTILS_IN_SOURCE_BUILD=1 +} + +python_compile() { + # -shared is neded by f2py but cannot be set earlier as configure does + # not like it + local LDFLAGS=${LDFLAGS} + append-ldflags -shared + emake -j1 +} + +python_install_all() { + distutils-r1_python_install_all + + dobin wspr + insinto /usr/share/${PN} + doins hamlib_rig_numbers +} |