Gentoo Archives: gentoo-commits

From: "Thomas Beierlein (tomjbe)" <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-radio/wspr: metadata.xml ChangeLog wspr-2.00.ebuild
Date: Sun, 03 Apr 2011 06:51:06
Message-Id: 20110403065056.7B5AE20054@flycatcher.gentoo.org
1 tomjbe 11/04/03 06:50:56
2
3 Added: metadata.xml ChangeLog wspr-2.00.ebuild
4 Log:
5 Moved from Sunrise
6
7 (Portage version: 2.1.9.45/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-radio/wspr/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/wspr/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/wspr/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>no-herd</herd>
21 <maintainer>
22 <email>tomjbe@g.o</email>
23 <name>Thomas Beierlein</name>
24 </maintainer>
25 </pkgmetadata>
26
27
28
29 1.1 media-radio/wspr/ChangeLog
30
31 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/wspr/ChangeLog?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/wspr/ChangeLog?rev=1.1&content-type=text/plain
33
34 Index: ChangeLog
35 ===================================================================
36 # ChangeLog for media-radio/wspr
37 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
38 # $Header: /var/cvsroot/gentoo-x86/media-radio/wspr/ChangeLog,v 1.1 2011/04/03 06:50:56 tomjbe Exp $
39
40 *wspr-2.00 (03 Apr 2011)
41
42 03 Apr 2011; Thomas Beierlein <tomjbe@g.o> +wspr-2.00.ebuild,
43 +metadata.xml:
44 Moved from sunrise
45
46 14 Mar 2011; Justin Lecher <jlec@g.o> wspr-2.00.ebuild:
47 Removed almost deprecated fortran.eclass
48
49 01 Apr 2010; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-2.00.ebuild:
50 fix for changes in python.eclass
51
52 25 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> metadata.xml:
53 fix metadata.xml
54
55 22 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-2.00.ebuild:
56 use fortran.eclass
57
58 21 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-2.00.ebuild:
59 added dependency on gcc[fortran]
60
61 20 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-2.00.ebuild:
62 Simplify MY_P. Thanks Tommy[D]
63
64 20 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-2.00.ebuild:
65 simplify sed expression
66
67 20 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-2.00.ebuild:
68 added || die to insinto
69
70 19 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> -wspr-1.12.ebuild,
71 +wspr-2.00.ebuild:
72 Version bump
73
74 17 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> wspr-1.12.ebuild:
75 fix minor configuration problem
76
77 03 Nov 2009; Thomas Beierlein (TomJBE) <tb@××××××××.de> +wspr-1.12.ebuild,
78 +metadata.xml:
79 New ebuild for bug 291186. Thanks Tommy[D] for thorough review and help.
80
81
82
83
84 1.1 media-radio/wspr/wspr-2.00.ebuild
85
86 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/wspr/wspr-2.00.ebuild?rev=1.1&view=markup
87 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/wspr/wspr-2.00.ebuild?rev=1.1&content-type=text/plain
88
89 Index: wspr-2.00.ebuild
90 ===================================================================
91 # Copyright 1999-2011 Gentoo Foundation
92 # Distributed under the terms of the GNU General Public License v2
93 # $Header: /var/cvsroot/gentoo-x86/media-radio/wspr/wspr-2.00.ebuild,v 1.1 2011/04/03 06:50:56 tomjbe Exp $
94
95 EAPI="2"
96
97 PYTHON_DEPEND="2"
98 inherit autotools distutils flag-o-matic multilib python toolchain-funcs
99
100 MY_P=${P}.r1714
101
102 DESCRIPTION="Weak Signal Propagation Reporter"
103 HOMEPAGE="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
104 SRC_URI="http://www.physics.princeton.edu/pulsar/K1JT/${MY_P}.tgz"
105 LICENSE="GPL-2"
106
107 SLOT="0"
108 KEYWORDS="~amd64 ~x86"
109 IUSE=""
110
111 RDEPEND="dev-lang/python[tk]
112 dev-python/numpy
113 dev-python/imaging[tk]
114 dev-python/pmw
115 sci-libs/fftw:3.0
116 media-libs/hamlib
117 media-libs/portaudio
118 media-libs/libsamplerate"
119 DEPEND="${RDEPEND}"
120
121 S="${WORKDIR}/${MY_P}"
122
123 get_fcomp() {
124 case $(tc-getFC) in
125 *gfortran* )
126 FCOMP="gfortran" ;;
127 * )
128 FCOMP=$(tc-getFC) ;;
129 esac
130 }
131
132 src_prepare() {
133 tc-export FC
134 get_fcomp
135 export FC="${FCOMP}"
136 # upstream confused LIBDIRS with LDFLAGS in Makefile. f2py wants only
137 # LIBDIRS as parameter and takes LDFLAGS only from environment.
138 sed -i \
139 -e "s/LDFLAGS/LIBDIRS/g" \
140 Makefile.in || die "sed failed"
141
142 # drop hardcoded libdir path,
143 # switch LDFLAGS naming to LIBDIRS (see above comment).
144 sed -i -e "s/, f2py/, f2py$(python_get_version)/" \
145 -e "s:-L/usr/local/lib:-L/usr/$(get_libdir):" \
146 -e "s/LDFLAGS/LIBDIRS/g" \
147 configure.ac || die "sed failed"
148 eautoreconf
149 }
150
151 src_compile() {
152 # -shared is neded by f2py but cannot be set earlier as configure does
153 # not like it
154 append-ldflags -shared
155 emake || die "emake failed."
156 }
157
158 src_install() {
159 rm -rf build || die "removing build directory failed"
160 distutils_src_install
161 dobin wspr || die "dobin failed"
162 dodoc BUGS WSPR_*.TXT || die "dodoc failed"
163 insinto /usr/share/${PN}
164 doins hamlib_rig_numbers || die "doins failed"
165 }