1 |
commit: dbae9a64201ff5546f5cd3e56d7623eb5fc8a115 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 12 05:25:01 2016 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 12 05:25:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbae9a64 |
7 |
|
8 |
media-radio/xastir: Version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
media-radio/xastir/Manifest | 1 + |
13 |
.../files/xastir-2.0.8-no-builtin-shapelib.diff | 58 ++++++++++++++ |
14 |
media-radio/xastir/files/xastir-2.0.8-scripts.diff | 91 ++++++++++++++++++++++ |
15 |
media-radio/xastir/xastir-2.0.8.ebuild | 85 ++++++++++++++++++++ |
16 |
4 files changed, 235 insertions(+) |
17 |
|
18 |
diff --git a/media-radio/xastir/Manifest b/media-radio/xastir/Manifest |
19 |
index b630719..bdf87d5 100644 |
20 |
--- a/media-radio/xastir/Manifest |
21 |
+++ b/media-radio/xastir/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST xastir-2.0.6.tar.gz 2662042 SHA256 e46debd3f67ea5c08e2f85f03e26653871a9cdd6d692c8eeee436c3bc8a8dd43 SHA512 422bfd5c243ce2761279908b2294f94598df4e51e8dc9eea1eede12c460934c97392e8d99d40d67d92b4e31fe09806e9c33190e146696a49d968df6562e858f3 WHIRLPOOL 39a097dba585d5bcdcdb880ddb5e530eb118bd1645abf911948ed2c0b562a4b12cf4b453b0295db1f37d00380873440e251466f7b12440cd41f50578ae90f170 |
24 |
+DIST xastir-2.0.8.tar.gz 2697256 SHA256 775db0e3c4355051a9030b8398a1d995d48b3b721fa1c9bce5e3010300c1ebb6 SHA512 fd98a880392e9fcb049c6049ebc6a6a5e600571b7b59fd7061a72404abd68530ae6f152c9eabdc39be0458b33b363ce7fa3fdd5330003298bca8eaac62a6982f WHIRLPOOL 970750a3cc0d1ab51bd754450ab348a88efba26d6e8e3c3ced95b9885e63dffbc2d4ed94ced42d1a309b2fa8d23f203fb98bae6021c5556d3e39bcc79835be89 |
25 |
|
26 |
diff --git a/media-radio/xastir/files/xastir-2.0.8-no-builtin-shapelib.diff b/media-radio/xastir/files/xastir-2.0.8-no-builtin-shapelib.diff |
27 |
new file mode 100644 |
28 |
index 0000000..8cbdbc2 |
29 |
--- /dev/null |
30 |
+++ b/media-radio/xastir/files/xastir-2.0.8-no-builtin-shapelib.diff |
31 |
@@ -0,0 +1,58 @@ |
32 |
+--- configure.ac.orig 2016-07-12 07:08:17.988160777 +0200 |
33 |
++++ configure.ac 2016-07-12 07:11:42.591138389 +0200 |
34 |
+@@ -382,27 +382,17 @@ |
35 |
+ |
36 |
+ # Check for Shapelib |
37 |
+ use_shapelib=yes |
38 |
+-force_internal_shapelib=no |
39 |
+ shapelib_desired=yes |
40 |
+ LIBSHP="" |
41 |
+ SUBSHP="" |
42 |
+ # This symbol will be blank if the proj library hasn't been found, and will |
43 |
+ # have the three programs that need proj if it has |
44 |
+ CONTSHP="" |
45 |
+-AC_ARG_WITH(internal-shapelib,[ --with-internal-shapelib Force use of internal shapelib library.],force_internal_shapelib=$withval) |
46 |
+ AC_ARG_WITH(shapelib,[ --without-shapelib Disable shapelib features.],shapelib_desired=$withval) |
47 |
+ if test "${shapelib_desired}" = "no"; then |
48 |
+ use_shapelib=no |
49 |
+- force_internal_shapelib=no |
50 |
+ fi |
51 |
+-if test "${force_internal_shapelib}" = "yes"; then |
52 |
+- AC_MSG_WARN([***************************************************************** ]) |
53 |
+- AC_MSG_WARN([Internal Shapelib library has been forced. ]) |
54 |
+- AC_MSG_WARN([***************************************************************** ]) |
55 |
+- # Temporary setting to get into if block below |
56 |
+- use_shapelib=no |
57 |
+-fi |
58 |
+-if test "${shapelib_desired}" = "yes" -a "${force_internal_shapelib}" = "no"; then |
59 |
++if test "${shapelib_desired}" = "yes" ; then |
60 |
+ use_shapelib=no |
61 |
+ AC_CHECK_HEADERS(shapefil.h libshp/shapefil.h, [AC_CHECK_LIB(shp, DBFOpen, use_shapelib=yes |
62 |
+ LIBS="$LIBS -lshp" |
63 |
+@@ -411,26 +401,6 @@ |
64 |
+ AC_DEFINE(HAVE_LIBSHP, , Define to 1 if you have the `shp' library (-lshp). ) |
65 |
+ break)]) |
66 |
+ fi |
67 |
+-if test "${shapelib_desired}" = "yes" -a "${use_shapelib}" = "no"; then |
68 |
+- AC_MSG_WARN([**************************************************************** ]) |
69 |
+- AC_MSG_WARN([Your system does not have shapelib installed. Using an internal ]) |
70 |
+- AC_MSG_WARN([version. This may lead to a larger filesize for the executable. ]) |
71 |
+- AC_MSG_WARN([Install shapelib on your system to eliminate this warning. ]) |
72 |
+- AC_MSG_WARN([**************************************************************** ]) |
73 |
+- LIBSHP="-Lshapelib -lshape" |
74 |
+- CPPFLAGS="-I\$(top_srcdir)/src/shapelib $CPPFLAGS" |
75 |
+- SUBSHP="shapelib" |
76 |
+- use_shapelib=yes |
77 |
+- force_internal_shapelib=yes |
78 |
+- AC_DEFINE(HAVE_DBFGETFIELDINDEX, , Define to 1 if your `shp' library has DBFGetFieldIndex. ) |
79 |
+- AC_DEFINE(HAVE_LIBSHP, , Define to 1 if you have the `shp' library (-lshp). ) |
80 |
+- AC_DEFINE(HAVE_SHAPEFIL_H, , Define to 1 if you have the `shapefil.h' header. ) |
81 |
+- |
82 |
+- if test $use_proj = "yes" |
83 |
+- then |
84 |
+- CONTSHP="shpcentrd$(EXEEXT) shpproj$(EXEEXT) shpdata$(EXEEXT) shpwkb$(EXEEXT)" |
85 |
+- fi |
86 |
+-fi |
87 |
+ AC_SUBST(SUBSHP) |
88 |
+ AC_SUBST(CONTSHP) |
89 |
+ AC_SUBST(LIBSHP) |
90 |
|
91 |
diff --git a/media-radio/xastir/files/xastir-2.0.8-scripts.diff b/media-radio/xastir/files/xastir-2.0.8-scripts.diff |
92 |
new file mode 100644 |
93 |
index 0000000..35c7324 |
94 |
--- /dev/null |
95 |
+++ b/media-radio/xastir/files/xastir-2.0.8-scripts.diff |
96 |
@@ -0,0 +1,91 @@ |
97 |
+# patch scripts location (bug #407185). partially backported from upstream. |
98 |
+--- xastir-2.0.0-orig/scripts/Makefile.am.orig 2012-11-27 05:41:23.000000000 +0100 |
99 |
++++ xastir-2.0.0/scripts/Makefile.am 2012-12-05 06:21:59.000000000 +0100 |
100 |
+@@ -43,10 +41,8 @@ |
101 |
+ values \ |
102 |
+ values.pl \ |
103 |
+ waypoint-get.pl \ |
104 |
+- xastir-fixcfg.sh \ |
105 |
+- xastir-migrate.sh \ |
106 |
+ Xastir_tigerpoly.py |
107 |
+ |
108 |
+ install-data-hook: |
109 |
+ cd $(DESTDIR)$(scriptsdir) && \ |
110 |
+- chmod a+x *.sh *.pl *.py get-* gpx2* *.bash |
111 |
++ chmod a+x *.pl *.py get-* gpx2* *.bash |
112 |
+diff -Nur -u xastir-2.0.0.orig/scripts/coord-convert.pl xastir-2.0.0/scripts/coord-convert.pl |
113 |
+--- xastir-2.0.0.orig/scripts/coord-convert.pl 2010-07-03 22:09:48.000000000 +0000 |
114 |
++++ xastir-2.0.0/scripts/coord-convert.pl 2012-03-07 15:46:01.000000000 +0000 |
115 |
+@@ -26,7 +26,7 @@ |
116 |
+ # |
117 |
+ |
118 |
+ |
119 |
+-use lib "${prefix}/lib"; |
120 |
++use lib /usr/share/xastir/scripts; |
121 |
+ use Coordinate; # WE7U's Coordinate.pm module |
122 |
+ |
123 |
+ |
124 |
+diff -Nur -u xastir-2.0.0.orig/scripts/permutations.pl xastir-2.0.0/scripts/permutations.pl |
125 |
+--- xastir-2.0.0.orig/scripts/permutations.pl 2010-07-03 22:09:48.000000000 +0000 |
126 |
++++ xastir-2.0.0/scripts/permutations.pl 2012-03-07 15:42:34.000000000 +0000 |
127 |
+@@ -34,7 +34,7 @@ |
128 |
+ # |
129 |
+ |
130 |
+ |
131 |
+-use lib "/usr/local/lib"; |
132 |
++use lib "/usr/share/xastir/scripts"; |
133 |
+ use Coordinate; # WE7U's Coordinate.pm module |
134 |
+ |
135 |
+ |
136 |
+diff -Nur -u xastir-2.0.0.orig/scripts/test_coord.pl xastir-2.0.0/scripts/test_coord.pl |
137 |
+--- xastir-2.0.0.orig/scripts/test_coord.pl 2010-01-31 02:12:23.000000000 +0000 |
138 |
++++ xastir-2.0.0/scripts/test_coord.pl 2012-03-07 15:42:34.000000000 +0000 |
139 |
+@@ -33,7 +33,7 @@ |
140 |
+ |
141 |
+ #------------------------------------------------------------------------------------------------ |
142 |
+ |
143 |
+-use lib "/usr/local/lib"; |
144 |
++use lib "/usr/share/xastir/scripts"; |
145 |
+ use Coordinate; # Snag WE7U's Coordinate module |
146 |
+ |
147 |
+ |
148 |
+diff -Nur -u xastir-2.0.0.orig/scripts/toporama250k.pl xastir-2.0.0/scripts/toporama250k.pl |
149 |
+--- xastir-2.0.0.orig/scripts/toporama250k.pl 2010-01-31 02:12:23.000000000 +0000 |
150 |
++++ xastir-2.0.0/scripts/toporama250k.pl 2012-03-07 15:46:49.000000000 +0000 |
151 |
+@@ -28,14 +28,14 @@ |
152 |
+ # map files for the whole of Canada! |
153 |
+ # |
154 |
+ # |
155 |
+-# - "cd /usr/local/share/xastir/maps" |
156 |
++# - "cd /usr/share/xastir/maps" |
157 |
+ # |
158 |
+ # - Assure you have write privileges in the directory above either |
159 |
+ # by becoming root using the "su" command, using "sudo", or |
160 |
+ # temporarily changing ownership and/or privileges on the |
161 |
+ # "maps" directory. |
162 |
+ # |
163 |
+-# - "/usr/local/lib/xastir/toporama250k.pl" |
164 |
++# - "/usr/share/xastir/scripts/toporama250k.pl" |
165 |
+ # |
166 |
+ # - The script will create/populate this directory heirarchy: |
167 |
+ # .../maps/toporama/images/ |
168 |
+diff -Nur -u xastir-2.0.0.orig/scripts/toporama50k.pl xastir-2.0.0/scripts/toporama50k.pl |
169 |
+--- xastir-2.0.0.orig/scripts/toporama50k.pl 2010-01-31 02:12:23.000000000 +0000 |
170 |
++++ xastir-2.0.0/scripts/toporama50k.pl 2012-03-07 15:47:01.000000000 +0000 |
171 |
+@@ -27,14 +27,14 @@ |
172 |
+ # map files for the whole of Canada! |
173 |
+ # |
174 |
+ # |
175 |
+-# - "cd /usr/local/share/xastir/maps" |
176 |
++# - "cd /usr/share/xastir/maps" |
177 |
+ # |
178 |
+ # - Assure you have write privileges in the directory above either |
179 |
+ # by becoming root using the "su" command, using "sudo", or |
180 |
+ # temporarily changing ownership and/or privileges on the |
181 |
+ # "maps" directory. |
182 |
+ # |
183 |
+-# - "/usr/local/lib/xastir/toporama50k.pl" |
184 |
++# - "/usr/share/xastir/scripts/toporama50k.pl" |
185 |
+ # |
186 |
+ # - The script will create/populate this directory heirarchy: |
187 |
+ # .../maps/toporama/images/ |
188 |
|
189 |
diff --git a/media-radio/xastir/xastir-2.0.8.ebuild b/media-radio/xastir/xastir-2.0.8.ebuild |
190 |
new file mode 100644 |
191 |
index 0000000..a69122e |
192 |
--- /dev/null |
193 |
+++ b/media-radio/xastir/xastir-2.0.8.ebuild |
194 |
@@ -0,0 +1,85 @@ |
195 |
+# Copyright 1999-2016 Gentoo Foundation |
196 |
+# Distributed under the terms of the GNU General Public License v2 |
197 |
+# $Id$ |
198 |
+ |
199 |
+EAPI=5 |
200 |
+inherit autotools eutils flag-o-matic toolchain-funcs |
201 |
+ |
202 |
+DESCRIPTION="X Amateur Station Tracking and Information Reporting" |
203 |
+HOMEPAGE="http://xastir.org/" |
204 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
205 |
+ |
206 |
+LICENSE="GPL-2" |
207 |
+SLOT="0" |
208 |
+KEYWORDS="~amd64 ~x86" |
209 |
+IUSE="festival gdal geotiff graphicsmagick" |
210 |
+ |
211 |
+DEPEND=">=x11-libs/motif-2.3:0 |
212 |
+ x11-libs/libXt |
213 |
+ x11-libs/libX11 |
214 |
+ x11-libs/libXpm |
215 |
+ x11-apps/xfontsel |
216 |
+ dev-libs/libpcre |
217 |
+ net-misc/curl |
218 |
+ sys-libs/db:4.8 |
219 |
+ sci-libs/shapelib |
220 |
+ !graphicsmagick? ( media-gfx/imagemagick[-hdri,-q32] ) |
221 |
+ graphicsmagick? ( media-gfx/graphicsmagick[-q32] ) |
222 |
+ geotiff? ( sci-libs/proj |
223 |
+ sci-libs/libgeotiff |
224 |
+ media-libs/tiff:0 ) |
225 |
+ gdal? ( sci-libs/gdal ) |
226 |
+ festival? ( app-accessibility/festival )" |
227 |
+RDEPEND="${DEPEND}" |
228 |
+ |
229 |
+src_prepare() { |
230 |
+ # fix script location (bug #407185) |
231 |
+ epatch "${FILESDIR}"/${P}-scripts.diff |
232 |
+ |
233 |
+ # fix __FORTIFY_SOURCE warning (bug #337365) |
234 |
+ epatch "${FILESDIR}"/${PN}-2.0.4-fortify.diff |
235 |
+ |
236 |
+ # do not use builtin shapelib if sci-libs/shapelib is not installed |
237 |
+ # instead build without shapelib support (bug #430704) |
238 |
+ epatch "${FILESDIR}"/${P}-no-builtin-shapelib.diff |
239 |
+ |
240 |
+ # do not filter duplicate flags (see bug 411095) |
241 |
+ epatch "${FILESDIR}"/${PN}-2.0.0-dont-filter-flags.diff |
242 |
+ |
243 |
+ eautoreconf |
244 |
+} |
245 |
+ |
246 |
+src_configure() { |
247 |
+ # provide include path to GraphicsMagic for configure stage |
248 |
+ use graphicsmagick && append-cflags -I/usr/include/GraphicsMagick |
249 |
+ econf --with-pcre \ |
250 |
+ --with-shapelib \ |
251 |
+ --with-dbfawk \ |
252 |
+ --without-ax25 \ |
253 |
+ --without-gpsman \ |
254 |
+ $(use_with !graphicsmagick imagemagick) \ |
255 |
+ $(use_with graphicsmagick) \ |
256 |
+ $(use_with geotiff libproj) \ |
257 |
+ $(use_with geotiff) \ |
258 |
+ $(use_with gdal) \ |
259 |
+ $(use_with festival) |
260 |
+} |
261 |
+ |
262 |
+src_compile() { |
263 |
+ emake AR="$(tc-getAR)" |
264 |
+} |
265 |
+ |
266 |
+src_install() { |
267 |
+ emake DESTDIR="${D}" install |
268 |
+ |
269 |
+ rm -rf "${D}"/usr/share/doc/${PN} |
270 |
+ dodoc AUTHORS ChangeLog FAQ README README.Contributing \ |
271 |
+ README.Getting-Started README.MAPS |
272 |
+} |
273 |
+ |
274 |
+pkg_postinst() { |
275 |
+ elog "Kernel mode AX.25 and GPSman library not supported." |
276 |
+ elog |
277 |
+ elog "Remember you have to be root to add addditional scripts," |
278 |
+ elog "maps and other configuration data under /usr/share/xastir." |
279 |
+} |