Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/predict/
Date: Sun, 29 Jan 2017 22:51:51
Message-Id: 1485730277.1fcd1e1f46eed6227d3cc1f76a69d00f2a948bbd.soap@gentoo
1 commit: 1fcd1e1f46eed6227d3cc1f76a69d00f2a948bbd
2 Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
3 AuthorDate: Sun Jan 29 09:53:51 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 22:51:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fcd1e1f
7
8 sci-astronomy/predict: Removing EAPI 4 build
9
10 Package-Manager: portage-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/3711
12
13 sci-astronomy/predict/predict-2.2.3-r1.ebuild | 200 --------------------------
14 1 file changed, 200 deletions(-)
15
16 diff --git a/sci-astronomy/predict/predict-2.2.3-r1.ebuild b/sci-astronomy/predict/predict-2.2.3-r1.ebuild
17 deleted file mode 100644
18 index 271c1e7..00000000
19 --- a/sci-astronomy/predict/predict-2.2.3-r1.ebuild
20 +++ /dev/null
21 @@ -1,200 +0,0 @@
22 -# Copyright 1999-2013 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=4
27 -
28 -inherit toolchain-funcs eutils multilib autotools
29 -
30 -DEB_P=${PN}_${PV}
31 -DEB_PR=3.1
32 -
33 -DESCRIPTION="Satellite tracking and orbital prediction"
34 -HOMEPAGE="http://www.qsl.net/kd2bd/predict.html"
35 -SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.orig.tar.gz
36 - mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}-${DEB_PR}.diff.gz"
37 -
38 -LICENSE="GPL-2"
39 -SLOT="0"
40 -IUSE="doc gtk nls xforms xplanet"
41 -KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
42 -
43 -RDEPEND="sys-libs/ncurses
44 - gtk? ( x11-libs/gtk+:2 )
45 - xforms? ( x11-libs/xforms )
46 - xplanet? ( x11-misc/xplanet[truetype] )"
47 -DEPEND="${RDEPEND}"
48 -
49 -src_prepare() {
50 - epatch "${FILESDIR}"/"${P}"-earthtrack.patch
51 - epatch -p1 "${WORKDIR}"/${DEB_P}-${DEB_PR}.diff
52 - sed -i -e 's:predict\(.*\)/:predict-2.2.3\1/:g' \
53 - debian/patches/140*.diff || die
54 - sed -i -e 's:\(a\|b\)/:predict-2.2.3/:g' \
55 - debian/patches/180*.diff || die
56 - EPATCH_SOURCE=debian/patches epatch -p1 $(cat debian/patches/series)
57 - # fix some further array out of bounds errors
58 - sed -i -e "s/satname\[ 26/satname\[ 25/g" \
59 - clients/gsat-1.1.0/src/db.c || die
60 - sed -i -e "s/satname\[ 26/satname\[ 25/g" \
61 - clients/gsat-1.1.0/src/comms.c || die
62 - sed -i -e "s/output\[20\];/output[21];/" \
63 - utils/moontracker/moontracker.c || die
64 - # fix underlinking
65 - sed -i -e '/AC_OUTPUT/i \
66 -AC_CHECK_LIB(m,cos) \
67 -AC_CHECK_LIB(dl,dlclose)' \
68 - -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
69 - clients/gsat-1.1.0/configure.in || die
70 - sed -i \
71 - -e 's/gcc/$(CC) $(CFLAGS) $(LDFLAGS)/g' \
72 - -e 's/-o/-lm -o/g' \
73 - clients/gsat-1.1.0/plugins/Makefile || die
74 -
75 - # fix the hardcoded /usr/lib
76 - PRED_DIR=/usr/$(get_libdir)/${PN}
77 - sed -i -e "s:/usr/lib/${PN}:${EROOT}${PRED_DIR}:g" \
78 - predict.h vocalizer/vocalizer.c || die
79 -
80 - sed -i -e "s:/usr/lib:${EROOT}usr/$(get_libdir):g" \
81 - clients/gsat-1.1.0/src/globals.h || die
82 -
83 - if use gtk; then
84 - cd "${S}"/clients/gsat-* || die
85 - rm config.sub missing || die
86 - eautoreconf
87 - fi
88 -}
89 -
90 -src_configure() {
91 - if use gtk; then
92 - cd "${S}"/clients/gsat-* || die
93 - econf $(use_enable nls)
94 - fi
95 -}
96 -
97 -src_compile() {
98 - # predict uses a ncurses based configure script
99 - # this is what it does if it was bash based ;)
100 -
101 - local COMPILER="$(tc-getCC) ${CFLAGS} ${LDFLAGS}"
102 - einfo "Compiling predict"
103 - ${COMPILER} predict.c -lm -lncurses -lpthread \
104 - -o predict || die "failed predict"
105 - einfo "Compiling predict-g1yyh"
106 - ${COMPILER} predict-g1yyh.c -lm -lncurses -lpthread -lmenu \
107 - -o predict-g1yyh || die "failed predict-g1yyh"
108 - einfo "Compiling vocalizer"
109 - ${COMPILER} vocalizer/vocalizer.c \
110 - -o vocalizer/vocalizer || die "failed vocalizer"
111 - local c
112 - for c in fodtrack geosat moontracker; do
113 - einfo "Compiling ${c}"
114 - cd "${S}"/utils/${c}* || die
115 - ${COMPILER} ${c}.c -lm -o ${c} || die "failed ${c}"
116 - done
117 - einfo "Compiling kep_reload"
118 - cd "${S}"/clients/kep_reload
119 - ${COMPILER} kep_reload.c \
120 - -o kep_reload || die "failed kep_reload"
121 -
122 - if use xplanet; then
123 - einfo "Compiling earthtrack"
124 - cd "${S}"/clients/earthtrack || die
125 - ${COMPILER} earthtrack.c \
126 - -lm -o earthtrack || die "failed earthtrack"
127 - fi
128 -
129 - if use xforms; then
130 - einfo "Compiling map"
131 - cd "${S}"/clients/map || die
132 - ${COMPILER} map.c map_cb.c map_main.c -lforms -lX11 -lm \
133 - -o map || die "Failed compiling map"
134 - fi
135 -
136 - if use gtk; then
137 - einfo "Compiling gsat"
138 - cd "${S}"/clients/gsat-* || die
139 - emake
140 - emake -C plugins
141 - fi
142 -}
143 -
144 -src_install() {
145 - dobin predict predict-g1yyh "${FILESDIR}"/predict-update
146 - dodoc CHANGES CREDITS HISTORY README NEWS debian/README.Debian
147 - doman docs/man/predict.1
148 - newman debian/predict-g1yyh.man predict-g1yyh.1
149 - insinto ${PRED_DIR}/default
150 - doins default/predict.*
151 - use doc && dodoc docs/pdf/predict.pdf
152 -
153 - cd "${S}"/vocalizer || die
154 - dobin vocalizer
155 - dosym ../../../bin/vocalizer ${PRED_DIR}/vocalizer/vocalizer
156 - insinto ${PRED_DIR}/vocalizer
157 - doins *.wav
158 -
159 - cd "${S}"/clients/kep_reload || die
160 - dobin kep_reload
161 - newdoc README README.kep_reload
162 - doman "${S}"/debian/kep_reload.1
163 -
164 - cd "${S}"/utils/fodtrack-0.1 || die
165 - insinto /etc
166 - doins fodtrack.conf
167 - doman fodtrack.conf.5 fodtrack.8
168 - dobin fodtrack
169 - newdoc README README.fodtrack
170 -
171 - cd "${S}"/utils/geosat || die
172 - dobin geosat
173 - newdoc README README.geosa
174 - newman "${S}"/debian/geosat.man geosat.1
175 -
176 - cd "${S}"/utils/moontracker || die
177 - dobin moontracker
178 - newdoc README README.moontracker
179 - doman "${S}"/debian/moontracker.1
180 -
181 - if use xplanet; then
182 - cd "${S}"/clients/earthtrack || die
183 - ln -s earthtrack earthtrack2 || die
184 - dobin earthtrack earthtrack2
185 - newdoc README README.earthtrack
186 - doman "${S}"/debian/earthtrack.1
187 - fi
188 -
189 - if use xforms; then
190 - cd "${S}"/clients/map || die
191 - newbin map predict-map
192 - newdoc CHANGES CHANGES.map
193 - newdoc README README.map
194 - doman "${S}"/debian/predict-map.1
195 - fi
196 -
197 - if use gtk; then
198 - cd "${S}"/clients/gsat-* || die
199 - exeinto /usr/$(get_libdir)/gsat/plugins
200 - doexe plugins/radio_{FT736,FT847,ICR10,print,test} plugins/rotor_{print,pictrack}
201 - dobin src/gsat
202 - doman "${S}"/debian/gsat.1
203 - local i
204 - for i in AUTHORS ChangeLog NEWS README Plugin_API; do
205 - newdoc ${i} ${i}.gsat
206 - done
207 - fi
208 -}
209 -
210 -pkg_postinst() {
211 - einfo "To use the clients the following line will"
212 - einfo "have to be inserted into /etc/services"
213 - einfo "predict 1210/udp"
214 - einfo "The port can be changed to anything"
215 - einfo "the name predict is what is needed to work"
216 - einfo "after that is set run 'predict -s'"
217 - einfo ""
218 - einfo "To get list of satellites run 'predict-update'"
219 - einfo "before running predict this script will also update"
220 - einfo "the list of satellites so they are up to date."
221 -}