diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
commit | e748ba9741f6540f4675c23e3e37b73e822c13a4 (patch) | |
tree | 23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /sci-geosciences/gpsbabel | |
parent | 908778078736bd36f7a60a2d576d415cb8e000fa (diff) |
gentoo resync : 31.05.2021
Diffstat (limited to 'sci-geosciences/gpsbabel')
-rw-r--r-- | sci-geosciences/gpsbabel/Manifest | 6 | ||||
-rw-r--r-- | sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-use_system_shapelib.patch | 118 | ||||
-rw-r--r-- | sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch | 13 | ||||
-rw-r--r-- | sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild | 87 | ||||
-rw-r--r-- | sci-geosciences/gpsbabel/gpsbabel-9999.ebuild | 96 |
5 files changed, 253 insertions, 67 deletions
diff --git a/sci-geosciences/gpsbabel/Manifest b/sci-geosciences/gpsbabel/Manifest index a70b02eda336..da462d2ad403 100644 --- a/sci-geosciences/gpsbabel/Manifest +++ b/sci-geosciences/gpsbabel/Manifest @@ -8,10 +8,14 @@ AUX gpsbabel-1.5.4-use_system_shapelib.patch 2868 BLAKE2B c21666bc49b5ec6f433ca4 AUX gpsbabel-1.5.4-use_system_zlib.patch 2814 BLAKE2B 58fb1dd0dc25897613125e45495bb9a9253aa9c6ac944b6f41a234295633e7740e497fb90aeb250b871c434d2298ed5cbf3c1cd3203053644ebd7007fb64ab56 SHA512 dbda711da83232e4ad38bda19ab2be28a4aded357d037443e9b2f34edbb1ae36afbbff33f3a36326154d9942a29f5a8458cfe459d7c1085f7044da0a231bcf15 AUX gpsbabel-1.5.4-xmldoc.patch 497 BLAKE2B 5843fb604ec984324258e6cd00aa5bddf37b6012b4f2fc957cca46f9d767955b7902671ce07d869d8290efb96a2636621cecbede623cbfe6b6e7dd7b849fae73 SHA512 d3e1d7f02a54ab5f8d3c552e8849f9450da6469f4ba0d2741c00b30a0b07896dba55d68485f519962d6886626583872c7f0c3603deb6bd69e386f29a2bf48899 AUX gpsbabel-1.6.0-disable_update_check.patch 4812 BLAKE2B 1b335ff48eeeb2e836091fc4841557693d66c4b6549752cd42e3817af0be934418c8cc824d8899f9c7fbf7ea4b73eeaf848213614ce544b610d207cfb8c96978 SHA512 a9729f4734edb318a045ed8b42ea2ef2725dd010792d8421fd637f68d30fc01f1d9e89a1fe3118c7e9670171db912746891bdf4c027c801118d84239ae33b1c9 +AUX gpsbabel-1.7.0-use_system_shapelib.patch 5998 BLAKE2B 7e1228aae03a7ceab05754ff5f1f5c7f346001a7f0533c9d66744b11d8a748de57783a01ec970e246823f97342283f429a0707939e7ddfd4de429ead6b212de0 SHA512 e73e28becd2c9953501f552a30540511422265647a6d9798499d6558927a5b4d36d019f6c4fd1901d2338ea897ea5fc831e827af4c8a18ffdc7bb38d161b50ad +AUX gpsbabel-1.7.0-xmldoc.patch 498 BLAKE2B a080771489891b16edb2888a6925b3a37b609fb960cd6a2fbff64707eca040199aae36c93272d27d9b955815d47aa190d4481fc96b4d9d80e0b2b3469f8c136b SHA512 5a8bbaecd5975db4e1be8a1df50ff37937cd537e5fe51d4269a16d8cb8b6a390c05d5ff81925ab4ac7d7055b3822d328287d717a141adbc3534954b75e5f6965 AUX gpsbabel-9999-use_system_shapelib.patch 6398 BLAKE2B a4db5d0547bb38432742ea1bd66c881d9fe33132e8053295d97e76d21ccbf7a6d3ab6065a272b6a6653652b18de27310376a2af84a9cac1ebc0ec7cfa9d92ae8 SHA512 367640b306b36e5cf6cf6f41d829e6b84b0f36ea4ad0462ccd2a72d277ceba305f9b817b7ad3628051442e514a4813cb2fe4364cc956d5b94ac1e53035551162 AUX gpsbabel-9999-xmldoc.patch 856 BLAKE2B afec4b243b15862af7f0ae7a83ce16dc2406b4748bbf9d84c88934bda2ee0a2a8fe626f993b731f773ffe6b49f3a910bfc629b38b1021c5737f704e5c95573e6 SHA512 585dcbbd3bffee60b971cbd420d44790d2b7a090608938d39712264d8f444c95980377ea5fe4ce2dc7de8262413b58f55c056db95f3961038edef1afb23031ba DIST gpsbabel-1.5.4.tar.gz 9099765 BLAKE2B 339cc78f94fed883b73c9f74cc6e27dd214438ba86917079b27459f543a9cb360bd8ec12408af1f23b9114d774a3b8eeccfb6b9f4fa9e7dc73b63e11bac20d43 SHA512 5fdc3bc07ad52d6c1e3532b287dcb506aba612ae9bc8db393b4837d79d773d6e22ad31f8f8e65770ec52b1afbda556e452af20dada1e411de93ca6e18054225b DIST gpsbabel.org-style3.css 2171 BLAKE2B 7fafef65e37d7c7cd183be06caafdbf303ac334484d7c09b4e668e8845f156f850b6f4cc6ac1aa081627367e999fa30d3505400e2aabd03fa117f6389318254f SHA512 33b843e0431de6d71a83c58da35ede28435e5a4746f59e52350c6e4451659e1b443d3c0dd52df1c68001e9937787820fb96afc363ec1ae7d23430bfed31dbc83 +DIST gpsbabel_1_7_0.tar.gz 16718984 BLAKE2B 8b824eb2a024f61e30abed80afe5e8ba8943771aff401171e7622eb3eb3d16cd2890964ccf0abfd28925d604087c57f013dc37bfac5d16ccdb97d2386a92ec29 SHA512 9df9d9cd65c3f33c0f39b4064e448834ad651ead368a3be3ea107f754ff0ac1500eb2111cddf43ecad61fe65b3412181842571fbba3387dd3dd36ff5c23e2911 EBUILD gpsbabel-1.5.4-r1.ebuild 2547 BLAKE2B c1a046ccf5fc308176ccc880bc33bbe1c345b1bd8ee2f49e2d87e64775e8cb7ee69bce3a71241fef85f65e28a5698210457f82c8acf16cfa1aefa67de2627c40 SHA512 e98bafe27f2793784270526bba6994e5aff39c3f8589edee4720524cba5b6695873471b439617a3808f5ddcbf27cbe989eb496c7ef2d50638fc4bef12c9d834c -EBUILD gpsbabel-9999.ebuild 2570 BLAKE2B 086fbbd764f882b270898c4a614e18eea590210b2eb2abd9694cfbfbad6733af739bbdcd91387cd9c927583e2f18bbadd8eece57e9386dc8181af78f964155ad SHA512 143b9af289ace00e9bed5d9970176ec174722ec67f082e90017f676652d2fa7cd36e9d20d6e04857e8baf5a0a0ebcf3158bc626bd2c52a867ae764bdbc272216 +EBUILD gpsbabel-1.7.0.ebuild 1787 BLAKE2B df16b3a7b1d6de3a742aa206e30926e6ef77480f8ab17c84b951426fb16bdbca4ef42b55e0cee9d3afcfb0b0fc7557965be668611e347648ea46181c385f16a1 SHA512 d886a8ce1c2b263b5cd3b23a3c01df6ee2017b88abe18d727ff681b7d830f18d95474ad49b99d681fe3ca79248c14a7d98cc111f6dce31f5376684e26f09d371 +EBUILD gpsbabel-9999.ebuild 1787 BLAKE2B df16b3a7b1d6de3a742aa206e30926e6ef77480f8ab17c84b951426fb16bdbca4ef42b55e0cee9d3afcfb0b0fc7557965be668611e347648ea46181c385f16a1 SHA512 d886a8ce1c2b263b5cd3b23a3c01df6ee2017b88abe18d727ff681b7d830f18d95474ad49b99d681fe3ca79248c14a7d98cc111f6dce31f5376684e26f09d371 MISC metadata.xml 351 BLAKE2B 202695326c207a7b3596c8e1f598839897c0214fd242537ec0b50d4a4a7117b7733f9b6f866fcbc9f87fa57daeccde3b2b8c0bf89868324b53e07c96acb4a0e5 SHA512 b6e29834c731b6cb611ec6cb3a9cd38fbd91461aa8d3a3118ba746c40c41d39e3eab92cca689a32f65540869316a7f416cee2cae7d2310368265aa241a181e1c 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 new file mode 100644 index 000000000000..744400906963 --- /dev/null +++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-use_system_shapelib.patch @@ -0,0 +1,118 @@ +diff --git a/Makefile.in b/Makefile.in +index 5ace8da1..1acadf3e 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -104,7 +104,7 @@ JEEPS=jeeps/gpsapp.o jeeps/gpscom.o \ + # Extra modules in Jeeps that we don't use + # jeeps/gpsfmt.o jeeps/gpsinput.o jeeps/gpsproj.o + +-SHAPE=shapelib/shpopen.o shapelib/dbfopen.o shapelib/safileio.o ++SHAPE=-lshp + + ZLIB=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o \ + zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/trees.o \ +@@ -120,7 +120,7 @@ LIBOBJS = route.o waypt.o filter_vecs.o util.o vecs.o mkshort.o \ + src/core/textstream.o \ + src/core/usasciicodec.o \ + src/core/xmlstreamwriter.o \ +- $(GARMIN) $(JEEPS) $(SHAPE) @ZLIB@ $(FMTS) $(FILTERS) ++ $(GARMIN) $(JEEPS) @ZLIB@ $(FMTS) $(FILTERS) + OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@ + + DEPFILES = $(OBJS:.o=.d) +@@ -153,10 +153,10 @@ toolinfo + all: gpsbabel$(EXEEXT) + + gpsbabel$(EXEEXT): configure Makefile $(OBJS) @USB_DEPS@ @GPSBABEL_DEBUG@ +- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ + + gpsbabel-debug: $(OBJS) @USB_DEPS@ +- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@ + + Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \ + gbversion.h.in gui/setup.iss.in +@@ -513,7 +513,7 @@ filter_vecs.o: filter_vecs.cc defs.h config.h zlib/zlib.h zlib/zconf.h \ + ggv_bin.h globalsat_sport.h gpx.h src/core/xmlstreamwriter.h \ + src/core/xmltag.h kml.h xmlgeneric.h legacyformat.h lowranceusr.h \ + mynav.h nmea.h osm.h qstarz_bl_1000.h random.h shape.h \ +- shapelib/shapefil.h subrip.h unicsv.h src/core/textstream.h xcsv.h \ ++ subrip.h unicsv.h src/core/textstream.h xcsv.h \ + garmin_fs.h jeeps/gps.h jeeps/../defs.h jeeps/gpsport.h \ + jeeps/gpsdevice.h jeeps/gpssend.h jeeps/gpsread.h jeeps/gpsutil.h \ + jeeps/gpsapp.h jeeps/gpsprot.h jeeps/gpscom.h jeeps/gpsfmt.h \ +@@ -538,7 +538,7 @@ garmin.o: garmin.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ + dg-100.h energympro.h garmin_fit.h geojson.h src/core/file.h ggv_bin.h \ + globalsat_sport.h gpx.h src/core/xmlstreamwriter.h src/core/xmltag.h \ + kml.h xmlgeneric.h legacyformat.h lowranceusr.h mynav.h nmea.h osm.h \ +- qstarz_bl_1000.h random.h shape.h shapelib/shapefil.h subrip.h \ ++ qstarz_bl_1000.h random.h shape.h subrip.h \ + unicsv.h src/core/textstream.h xcsv.h yahoo.h + garmin_device_xml.o: garmin_device_xml.cc defs.h config.h zlib/zlib.h \ + zlib/zconf.h formspec.h inifile.h gbfile.h session.h \ +@@ -825,7 +825,7 @@ magproto.o: magproto.cc defs.h config.h zlib/zlib.h zlib/zconf.h \ + dg-100.h energympro.h garmin_fit.h geojson.h src/core/file.h ggv_bin.h \ + globalsat_sport.h gpx.h src/core/xmlstreamwriter.h src/core/xmltag.h \ + kml.h xmlgeneric.h legacyformat.h lowranceusr.h mynav.h nmea.h osm.h \ +- qstarz_bl_1000.h random.h shape.h shapelib/shapefil.h subrip.h \ ++ qstarz_bl_1000.h random.h shape.h subrip.h \ + unicsv.h src/core/textstream.h xcsv.h garmin_fs.h jeeps/gps.h \ + jeeps/../defs.h jeeps/gpsport.h jeeps/gpsdevice.h jeeps/gpssend.h \ + jeeps/gpsread.h jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h \ +@@ -841,7 +841,7 @@ main.o: main.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ + garmin_fit.h geojson.h ggv_bin.h globalsat_sport.h gpx.h \ + src/core/xmlstreamwriter.h src/core/xmltag.h kml.h xmlgeneric.h \ + legacyformat.h lowranceusr.h mynav.h nmea.h osm.h qstarz_bl_1000.h \ +- random.h shape.h shapelib/shapefil.h subrip.h unicsv.h \ ++ random.h shape.h subrip.h unicsv.h \ + src/core/textstream.h xcsv.h garmin_fs.h jeeps/gps.h jeeps/../defs.h \ + jeeps/gpsport.h jeeps/gpsdevice.h jeeps/gpssend.h jeeps/gpsread.h \ + jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h jeeps/gpscom.h \ +@@ -961,10 +961,7 @@ session.o: session.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ + inifile.h gbfile.h session.h src/core/datetime.h src/core/optional.h + shape.o: shape.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ + inifile.h gbfile.h session.h src/core/datetime.h src/core/optional.h \ +- shape.h format.h shapelib/shapefil.h +-shapelib/dbfopen.o: shapelib/dbfopen.c shapelib/shapefil.h +-shapelib/safileio.o: shapelib/safileio.c shapelib/shapefil.h +-shapelib/shpopen.o: shapelib/shpopen.c shapelib/shapefil.h ++ shape.h format.h + skyforce.o: skyforce.cc defs.h config.h zlib/zlib.h zlib/zconf.h \ + formspec.h inifile.h gbfile.h session.h src/core/datetime.h \ + src/core/optional.h +@@ -1059,7 +1056,7 @@ vecs.o: vecs.cc defs.h config.h zlib/zlib.h zlib/zconf.h formspec.h \ + src/core/file.h ggv_bin.h globalsat_sport.h gpx.h \ + src/core/xmlstreamwriter.h src/core/xmltag.h kml.h xmlgeneric.h \ + legacyformat.h lowranceusr.h mynav.h nmea.h osm.h qstarz_bl_1000.h \ +- random.h shape.h shapelib/shapefil.h subrip.h unicsv.h \ ++ random.h shape.h subrip.h unicsv.h \ + src/core/textstream.h xcsv.h garmin_fs.h jeeps/gps.h jeeps/../defs.h \ + jeeps/gpsport.h jeeps/gpsdevice.h jeeps/gpssend.h jeeps/gpsread.h \ + jeeps/gpsutil.h jeeps/gpsapp.h jeeps/gpsprot.h jeeps/gpscom.h \ +diff --git a/shape.cc b/shape.cc +index 933eb95a..f2ec5365 100644 +--- a/shape.cc ++++ b/shape.cc +@@ -32,7 +32,7 @@ + + #include "defs.h" + #include "shape.h" +-#include "shapelib/shapefil.h" ++#include <libshp/shapefil.h> + + + #if SHAPELIB_ENABLED +diff --git a/shape.h b/shape.h +index 0ce05af7..09931eff 100644 +--- a/shape.h ++++ b/shape.h +@@ -27,7 +27,7 @@ + + #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 + #include "format.h" // for Format +-#include "shapelib/shapefil.h" // for DBFHandle, SHPAPI_CALL, SHPHandle ++#include <libshp/shapefil.h> // for DBFHandle, SHPAPI_CALL, SHPHandle + + + #if SHAPELIB_ENABLED diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch new file mode 100644 index 000000000000..56c60a553485 --- /dev/null +++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.7.0-xmldoc.patch @@ -0,0 +1,13 @@ +--- a/Makefile.in 2017-01-21 00:32:50.921546762 +0100 ++++ b/Makefile.in 2017-01-21 00:55:45.362728521 +0100 +@@ -278,8 +278,8 @@ + --stringparam html.cleanup "1" \ + --stringparam make.clean.html "1" \ + --stringparam html.valid.html "1" \ +- --stringparam html.stylesheet \ +- "https://www.gpsbabel.org/style3.css" \ ++ --nonet \ ++ --stringparam html.stylesheet "gpsbabel.org-style3.css" \ + http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ + xmldoc/readme.xml + diff --git a/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild new file mode 100644 index 000000000000..d49758284666 --- /dev/null +++ b/sci-geosciences/gpsbabel/gpsbabel-1.7.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit qmake-utils + +MY_PV="${PV//./_}" +MY_P="${PN}_${MY_PV}" + +DESCRIPTION="GPS waypoints, tracks and routes converter" +HOMEPAGE="https://www.gpsbabel.org/ https://github.com/gpsbabel/gpsbabel" +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/gpsbabel/gpsbabel.git" + SRC_URI="doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css )" +else + SRC_URI=" + https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_${MY_PV}.tar.gz + doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css ) + " + KEYWORDS="~amd64 ~ppc ~x86" + S="${WORKDIR}/gpsbabel-gpsbabel_${MY_PV}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="doc" + +DEPEND=" + dev-libs/expat + dev-qt/qtcore:5 + sci-libs/shapelib:= + sys-libs/zlib + virtual/libusb:0 +" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-text/docbook-xml-dtd:4.1.2 + dev-lang/perl + dev-libs/libxslt + ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.0-xmldoc.patch + "${FILESDIR}"/${PN}-1.7.0-use_system_shapelib.patch +) + +S="${WORKDIR}/${PN}-${MY_P}" + +src_prepare() { + default + + # ensure bundled libs are not used + rm -r shapelib zlib || die + # remove prerequisite zlib/zlib.h + sed -i -e "s: zlib\/[a-z]*\.h::g" Makefile.in || die + # remove failing test (fixed by f91d28bf) + rm testo.d/arc-project.test || die + + use doc && cp "${DISTDIR}/gpsbabel.org-style3.css" "${S}" +} + +src_configure() { + econf \ + $(use_with doc doc "${S}"/doc/manual) \ + QMAKE=$(qt5_get_bindir)/qmake \ + --with-zlib=system +} + +src_compile() { + default + + if use doc; then + perl xmldoc/makedoc || die + emake gpsbabel.html + fi +} + +src_install() { + use doc && HTML_DOCS=( "${S}"/${PN}.html "${S}"/${PN}.org-style3.css ) + + default +} diff --git a/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild b/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild index 5a4fa28eacd7..d49758284666 100644 --- a/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild +++ b/sci-geosciences/gpsbabel/gpsbabel-9999.ebuild @@ -1,15 +1,15 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -MY_PV=${PV//./_} -inherit autotools desktop qmake-utils +inherit qmake-utils + +MY_PV="${PV//./_}" +MY_P="${PN}_${MY_PV}" DESCRIPTION="GPS waypoints, tracks and routes converter" HOMEPAGE="https://www.gpsbabel.org/ https://github.com/gpsbabel/gpsbabel" -LICENSE="GPL-2" - if [[ ${PV} == 9999 ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/gpsbabel/gpsbabel.git" @@ -23,84 +23,56 @@ else S="${WORKDIR}/gpsbabel-gpsbabel_${MY_PV}" fi +LICENSE="GPL-2" SLOT="0" -IUSE="doc +gui" +IUSE="doc" +DEPEND=" + dev-libs/expat + dev-qt/qtcore:5 + sci-libs/shapelib:= + sys-libs/zlib + virtual/libusb:0 +" BDEPEND=" + virtual/pkgconfig doc? ( app-text/docbook-xml-dtd:4.1.2 dev-lang/perl dev-libs/libxslt ) - gui? ( dev-qt/linguist-tools:5 ) " -RDEPEND=" - dev-libs/expat - dev-qt/qtcore:5 - sci-libs/shapelib:= - sys-libs/zlib[minizip] - virtual/libusb:0 - gui? ( - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtwebchannel:5 - dev-qt/qtwebengine:5[widgets] - dev-qt/qtwidgets:5 - dev-qt/qtxml:5 - ) -" -DEPEND="${RDEPEND}" - -DOCS=( AUTHORS README.{contrib,igc,mapconverter,md,xmapwpt} ) +RDEPEND="${DEPEND}" PATCHES=( - "${FILESDIR}"/${PN}-1.5.4-disable_statistic_uploading.patch - "${FILESDIR}"/${PN}-1.6.0-disable_update_check.patch - "${FILESDIR}"/${PN}-1.5.4-disable_version_check.patch - "${FILESDIR}"/${PN}-9999-use_system_shapelib.patch - "${FILESDIR}"/${PN}-9999-xmldoc.patch + "${FILESDIR}"/${PN}-1.7.0-xmldoc.patch + "${FILESDIR}"/${PN}-1.7.0-use_system_shapelib.patch ) -RESTRICT="test" # bug 421699 +S="${WORKDIR}/${PN}-${MY_P}" src_prepare() { default - # remove bundled libs and cleanup - rm -r shapelib || die - - if use doc; then - cp "${DISTDIR}/gpsbabel.org-style3.css" . || die - fi + # ensure bundled libs are not used + rm -r shapelib zlib || die + # remove prerequisite zlib/zlib.h + sed -i -e "s: zlib\/[a-z]*\.h::g" Makefile.in || die + # remove failing test (fixed by f91d28bf) + rm testo.d/arc-project.test || die - eautoreconf + use doc && cp "${DISTDIR}/gpsbabel.org-style3.css" "${S}" } src_configure() { - local myeconfargs=( - $(use_with doc doc doc/manual) - LRELEASE=$(qt5_get_bindir)/lrelease - LUPDATE=$(qt5_get_bindir)/lupdate - QMAKE=$(qt5_get_bindir)/qmake + econf \ + $(use_with doc doc "${S}"/doc/manual) \ + QMAKE=$(qt5_get_bindir)/qmake \ --with-zlib=system - ) - econf "${myeconfargs[@]}" - - if use gui; then - pushd gui > /dev/null || die - $(qt5_get_bindir)/lrelease *.ts || die - eqmake5 - popd > /dev/null - fi } src_compile() { default - if use gui; then - pushd gui > /dev/null || die - emake - popd > /dev/null - fi if use doc; then perl xmldoc/makedoc || die @@ -109,15 +81,7 @@ src_compile() { } src_install() { - use doc && local HTML_DOCS=( ${PN}.html ${PN}.org-style3.css ) + use doc && HTML_DOCS=( "${S}"/${PN}.html "${S}"/${PN}.org-style3.css ) default - - if use gui; then - dobin gui/objects/gpsbabelfe - insinto /usr/share/${PN}/translations/ - doins gui/gpsbabel*_*.qm - newicon gui/images/appicon.png ${PN}.png - make_desktop_entry gpsbabelfe ${PN} ${PN} "Science;Geoscience" - fi } |