1 |
commit: 637f5c37176bb8ab803447ff947d6c609006de00 |
2 |
Author: Chris Mayo <aklhfex <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jul 10 16:03:05 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 28 01:09:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=637f5c37 |
7 |
|
8 |
sci-geosciences/gpsbabel: 1.7.0 version bump, EAPI 7 |
9 |
|
10 |
GUI support is dropped because of multiple issues with resource paths. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/689586 |
13 |
Package-Manager: Portage-2.3.99, Repoman-2.3.23 |
14 |
Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/14242 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
sci-geosciences/gpsbabel/Manifest | 1 + |
19 |
.../files/gpsbabel-1.7.0-use_system_shapelib.patch | 118 +++++++++++++++++++++ |
20 |
.../gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch | 13 +++ |
21 |
sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild | 79 ++++++++++++++ |
22 |
4 files changed, 211 insertions(+) |
23 |
|
24 |
diff --git a/sci-geosciences/gpsbabel/Manifest b/sci-geosciences/gpsbabel/Manifest |
25 |
index 5e230661d07..7a5ed8964bd 100644 |
26 |
--- a/sci-geosciences/gpsbabel/Manifest |
27 |
+++ b/sci-geosciences/gpsbabel/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
DIST gpsbabel-1.5.4.tar.gz 9099765 BLAKE2B 339cc78f94fed883b73c9f74cc6e27dd214438ba86917079b27459f543a9cb360bd8ec12408af1f23b9114d774a3b8eeccfb6b9f4fa9e7dc73b63e11bac20d43 SHA512 5fdc3bc07ad52d6c1e3532b287dcb506aba612ae9bc8db393b4837d79d773d6e22ad31f8f8e65770ec52b1afbda556e452af20dada1e411de93ca6e18054225b |
30 |
DIST gpsbabel.org-style3.css 2171 BLAKE2B 7fafef65e37d7c7cd183be06caafdbf303ac334484d7c09b4e668e8845f156f850b6f4cc6ac1aa081627367e999fa30d3505400e2aabd03fa117f6389318254f SHA512 33b843e0431de6d71a83c58da35ede28435e5a4746f59e52350c6e4451659e1b443d3c0dd52df1c68001e9937787820fb96afc363ec1ae7d23430bfed31dbc83 |
31 |
+DIST gpsbabel_1_7_0.tar.gz 16718984 BLAKE2B 8b824eb2a024f61e30abed80afe5e8ba8943771aff401171e7622eb3eb3d16cd2890964ccf0abfd28925d604087c57f013dc37bfac5d16ccdb97d2386a92ec29 SHA512 9df9d9cd65c3f33c0f39b4064e448834ad651ead368a3be3ea107f754ff0ac1500eb2111cddf43ecad61fe65b3412181842571fbba3387dd3dd36ff5c23e2911 |
32 |
|
33 |
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-use_system_shapelib.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-use_system_shapelib.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..74440090696 |
36 |
--- /dev/null |
37 |
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-use_system_shapelib.patch |
38 |
@@ -0,0 +1,118 @@ |
39 |
+diff --git a/Makefile.in b/Makefile.in |
40 |
+index 5ace8da1..1acadf3e 100644 |
41 |
+--- a/Makefile.in |
42 |
++++ b/Makefile.in |
43 |
+@@ -104,7 +104,7 @@ JEEPS=jeeps/gpsapp.o jeeps/gpscom.o \ |
44 |
+ # Extra modules in Jeeps that we don't use |
45 |
+ # jeeps/gpsfmt.o jeeps/gpsinput.o jeeps/gpsproj.o |
46 |
+ |
47 |
+-SHAPE=shapelib/shpopen.o shapelib/dbfopen.o shapelib/safileio.o |
48 |
++SHAPE=-lshp |
49 |
+ |
50 |
+ ZLIB=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o \ |
51 |
+ zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/trees.o \ |
52 |
+@@ -120,7 +120,7 @@ LIBOBJS = route.o waypt.o filter_vecs.o util.o vecs.o mkshort.o \ |
53 |
+ src/core/textstream.o \ |
54 |
+ src/core/usasciicodec.o \ |
55 |
+ src/core/xmlstreamwriter.o \ |
56 |
+- $(GARMIN) $(JEEPS) $(SHAPE) @ZLIB@ $(FMTS) $(FILTERS) |
57 |
++ $(GARMIN) $(JEEPS) @ZLIB@ $(FMTS) $(FILTERS) |
58 |
+ OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@ |
59 |
+ |
60 |
+ DEPFILES = $(OBJS:.o=.d) |
61 |
+@@ -153,10 +153,10 @@ toolinfo |
62 |
+ all: gpsbabel$(EXEEXT) |
63 |
+ |
64 |
+ gpsbabel$(EXEEXT): configure Makefile $(OBJS) @USB_DEPS@ @GPSBABEL_DEBUG@ |
65 |
+- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ |
66 |
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ |
67 |
+ |
68 |
+ gpsbabel-debug: $(OBJS) @USB_DEPS@ |
69 |
+- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ |
70 |
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ |
71 |
+ |
72 |
+ Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \ |
73 |
+ gbversion.h.in gui/setup.iss.in |
74 |
+@@ -513,7 +513,7 @@ filter_vecs.o: filter_vecs.cc defs.h config.h zlib/zlib.h zlib/zconf.h \ |
75 |
+ ggv_bin.h globalsat_sport.h gpx.h src/core/xmlstreamwriter.h \ |
76 |
+ src/core/xmltag.h kml.h xmlgeneric.h legacyformat.h lowranceusr.h \ |
77 |
+ mynav.h nmea.h osm.h qstarz_bl_1000.h random.h shape.h \ |
78 |
+- shapelib/shapefil.h subrip.h unicsv.h src/core/textstream.h xcsv.h \ |
79 |
++ subrip.h unicsv.h src/core/textstream.h xcsv.h \ |
80 |
+ garmin_fs.h jeeps/gps.h jeeps/../defs.h jeeps/gpsport.h \ |
81 |
+ jeeps/gpsdevice.h jeeps/gpssend.h jeeps/gpsread.h jeeps/gpsutil.h \ |
82 |
+ jeeps/gpsapp.h jeeps/gpsprot.h jeeps/gpscom.h jeeps/gpsfmt.h \ |
83 |
+@@ -538,7 +538,7 @@ garmin.o: garmin.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ |
84 |
+ dg-100.h energympro.h garmin_fit.h geojson.h src/core/file.h ggv_bin.h \ |
85 |
+ globalsat_sport.h gpx.h src/core/xmlstreamwriter.h src/core/xmltag.h \ |
86 |
+ kml.h xmlgeneric.h legacyformat.h lowranceusr.h mynav.h nmea.h osm.h \ |
87 |
+- qstarz_bl_1000.h random.h shape.h shapelib/shapefil.h subrip.h \ |
88 |
++ qstarz_bl_1000.h random.h shape.h subrip.h \ |
89 |
+ unicsv.h src/core/textstream.h xcsv.h yahoo.h |
90 |
+ garmin_device_xml.o: garmin_device_xml.cc defs.h config.h zlib/zlib.h \ |
91 |
+ zlib/zconf.h formspec.h inifile.h gbfile.h session.h \ |
92 |
+@@ -825,7 +825,7 @@ magproto.o: magproto.cc defs.h config.h zlib/zlib.h zlib/zconf.h \ |
93 |
+ dg-100.h energympro.h garmin_fit.h geojson.h src/core/file.h ggv_bin.h \ |
94 |
+ globalsat_sport.h gpx.h src/core/xmlstreamwriter.h src/core/xmltag.h \ |
95 |
+ kml.h xmlgeneric.h legacyformat.h lowranceusr.h mynav.h nmea.h osm.h \ |
96 |
+- qstarz_bl_1000.h random.h shape.h shapelib/shapefil.h subrip.h \ |
97 |
++ qstarz_bl_1000.h random.h shape.h subrip.h \ |
98 |
+ unicsv.h src/core/textstream.h xcsv.h garmin_fs.h jeeps/gps.h \ |
99 |
+ jeeps/../defs.h jeeps/gpsport.h jeeps/gpsdevice.h jeeps/gpssend.h \ |
100 |
+ jeeps/gpsread.h jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h \ |
101 |
+@@ -841,7 +841,7 @@ main.o: main.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ |
102 |
+ garmin_fit.h geojson.h ggv_bin.h globalsat_sport.h gpx.h \ |
103 |
+ src/core/xmlstreamwriter.h src/core/xmltag.h kml.h xmlgeneric.h \ |
104 |
+ legacyformat.h lowranceusr.h mynav.h nmea.h osm.h qstarz_bl_1000.h \ |
105 |
+- random.h shape.h shapelib/shapefil.h subrip.h unicsv.h \ |
106 |
++ random.h shape.h subrip.h unicsv.h \ |
107 |
+ src/core/textstream.h xcsv.h garmin_fs.h jeeps/gps.h jeeps/../defs.h \ |
108 |
+ jeeps/gpsport.h jeeps/gpsdevice.h jeeps/gpssend.h jeeps/gpsread.h \ |
109 |
+ jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h jeeps/gpscom.h \ |
110 |
+@@ -961,10 +961,7 @@ session.o: session.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ |
111 |
+ inifile.h gbfile.h session.h src/core/datetime.h src/core/optional.h |
112 |
+ shape.o: shape.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ |
113 |
+ inifile.h gbfile.h session.h src/core/datetime.h src/core/optional.h \ |
114 |
+- shape.h format.h shapelib/shapefil.h |
115 |
+-shapelib/dbfopen.o: shapelib/dbfopen.c shapelib/shapefil.h |
116 |
+-shapelib/safileio.o: shapelib/safileio.c shapelib/shapefil.h |
117 |
+-shapelib/shpopen.o: shapelib/shpopen.c shapelib/shapefil.h |
118 |
++ shape.h format.h |
119 |
+ skyforce.o: skyforce.cc defs.h config.h zlib/zlib.h zlib/zconf.h \ |
120 |
+ formspec.h inifile.h gbfile.h session.h src/core/datetime.h \ |
121 |
+ src/core/optional.h |
122 |
+@@ -1059,7 +1056,7 @@ vecs.o: vecs.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ |
123 |
+ src/core/file.h ggv_bin.h globalsat_sport.h gpx.h \ |
124 |
+ src/core/xmlstreamwriter.h src/core/xmltag.h kml.h xmlgeneric.h \ |
125 |
+ legacyformat.h lowranceusr.h mynav.h nmea.h osm.h qstarz_bl_1000.h \ |
126 |
+- random.h shape.h shapelib/shapefil.h subrip.h unicsv.h \ |
127 |
++ random.h shape.h subrip.h unicsv.h \ |
128 |
+ src/core/textstream.h xcsv.h garmin_fs.h jeeps/gps.h jeeps/../defs.h \ |
129 |
+ jeeps/gpsport.h jeeps/gpsdevice.h jeeps/gpssend.h jeeps/gpsread.h \ |
130 |
+ jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h jeeps/gpscom.h \ |
131 |
+diff --git a/shape.cc b/shape.cc |
132 |
+index 933eb95a..f2ec5365 100644 |
133 |
+--- a/shape.cc |
134 |
++++ b/shape.cc |
135 |
+@@ -32,7 +32,7 @@ |
136 |
+ |
137 |
+ #include "defs.h" |
138 |
+ #include "shape.h" |
139 |
+-#include "shapelib/shapefil.h" |
140 |
++#include <libshp/shapefil.h> |
141 |
+ |
142 |
+ |
143 |
+ #if SHAPELIB_ENABLED |
144 |
+diff --git a/shape.h b/shape.h |
145 |
+index 0ce05af7..09931eff 100644 |
146 |
+--- a/shape.h |
147 |
++++ b/shape.h |
148 |
+@@ -27,7 +27,7 @@ |
149 |
+ |
150 |
+ #include "defs.h" // for arglist_t, ARGTYPE_STRING, Waypoint, route_head, CET_CHARSET_ASCII, FF_CAP_RW_ALL, ff_cap, ff_type, ff_type_file |
151 |
+ #include "format.h" // for Format |
152 |
+-#include "shapelib/shapefil.h" // for DBFHandle, SHPAPI_CALL, SHPHandle |
153 |
++#include <libshp/shapefil.h> // for DBFHandle, SHPAPI_CALL, SHPHandle |
154 |
+ |
155 |
+ |
156 |
+ #if SHAPELIB_ENABLED |
157 |
|
158 |
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch |
159 |
new file mode 100644 |
160 |
index 00000000000..56c60a55348 |
161 |
--- /dev/null |
162 |
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch |
163 |
@@ -0,0 +1,13 @@ |
164 |
+--- a/Makefile.in 2017-01-21 00:32:50.921546762 +0100 |
165 |
++++ b/Makefile.in 2017-01-21 00:55:45.362728521 +0100 |
166 |
+@@ -278,8 +278,8 @@ |
167 |
+ --stringparam html.cleanup "1" \ |
168 |
+ --stringparam make.clean.html "1" \ |
169 |
+ --stringparam html.valid.html "1" \ |
170 |
+- --stringparam html.stylesheet \ |
171 |
+- "https://www.gpsbabel.org/style3.css" \ |
172 |
++ --nonet \ |
173 |
++ --stringparam html.stylesheet "gpsbabel.org-style3.css" \ |
174 |
+ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ |
175 |
+ xmldoc/readme.xml |
176 |
+ |
177 |
|
178 |
diff --git a/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild |
179 |
new file mode 100644 |
180 |
index 00000000000..51a9005c067 |
181 |
--- /dev/null |
182 |
+++ b/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild |
183 |
@@ -0,0 +1,79 @@ |
184 |
+# Copyright 1999-2020 Gentoo Authors |
185 |
+# Distributed under the terms of the GNU General Public License v2 |
186 |
+ |
187 |
+EAPI=7 |
188 |
+ |
189 |
+inherit qmake-utils |
190 |
+ |
191 |
+MY_PV="${PV//./_}" |
192 |
+MY_P="${PN}_${MY_PV}" |
193 |
+ |
194 |
+DESCRIPTION="GPS waypoints, tracks and routes converter" |
195 |
+HOMEPAGE="https://www.gpsbabel.org/ https://github.com/gpsbabel/gpsbabel" |
196 |
+SRC_URI=" |
197 |
+ https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz |
198 |
+ doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css )" |
199 |
+ |
200 |
+LICENSE="GPL-2" |
201 |
+SLOT="0" |
202 |
+KEYWORDS="~amd64 ~ppc ~x86" |
203 |
+IUSE="doc" |
204 |
+ |
205 |
+DEPEND=" |
206 |
+ dev-libs/expat |
207 |
+ dev-qt/qtcore:5 |
208 |
+ sci-libs/shapelib:= |
209 |
+ sys-libs/zlib |
210 |
+ virtual/libusb:0 |
211 |
+" |
212 |
+BDEPEND=" |
213 |
+ virtual/pkgconfig |
214 |
+ doc? ( |
215 |
+ app-text/docbook-xml-dtd:4.1.2 |
216 |
+ dev-lang/perl |
217 |
+ dev-libs/libxslt |
218 |
+ ) |
219 |
+" |
220 |
+RDEPEND="${DEPEND}" |
221 |
+ |
222 |
+PATCHES=( |
223 |
+ "${FILESDIR}"/${P}-xmldoc.patch |
224 |
+ "${FILESDIR}"/${P}-use_system_shapelib.patch |
225 |
+) |
226 |
+ |
227 |
+S="${WORKDIR}/${PN}-${MY_P}" |
228 |
+ |
229 |
+src_prepare() { |
230 |
+ default |
231 |
+ |
232 |
+ # ensure bundled libs are not used |
233 |
+ rm -r shapelib zlib || die |
234 |
+ # remove prerequisite zlib/zlib.h |
235 |
+ sed -i -e "s: zlib\/[a-z]*\.h::g" Makefile.in || die |
236 |
+ # remove failing test (fixed by f91d28bf) |
237 |
+ rm testo.d/arc-project.test || die |
238 |
+ |
239 |
+ use doc && cp "${DISTDIR}/gpsbabel.org-style3.css" "${S}" |
240 |
+} |
241 |
+ |
242 |
+src_configure() { |
243 |
+ econf \ |
244 |
+ $(use_with doc doc "${S}"/doc/manual) \ |
245 |
+ QMAKE=$(qt5_get_bindir)/qmake \ |
246 |
+ --with-zlib=system |
247 |
+} |
248 |
+ |
249 |
+src_compile() { |
250 |
+ default |
251 |
+ |
252 |
+ if use doc; then |
253 |
+ perl xmldoc/makedoc || die |
254 |
+ emake gpsbabel.html |
255 |
+ fi |
256 |
+} |
257 |
+ |
258 |
+src_install() { |
259 |
+ use doc && HTML_DOCS=( "${S}"/${PN}.html "${S}"/${PN}.org-style3.css ) |
260 |
+ |
261 |
+ default |
262 |
+} |