summaryrefslogtreecommitdiff
path: root/geography/opencpn-plugin-weather_routing
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2018-08-27 16:19:21 +0000
committerbouyer <bouyer@pkgsrc.org>2018-08-27 16:19:21 +0000
commit3c80ebcbcb4e857efcaf039a3f77cccd0b30e018 (patch)
treef6b8c113266a95dffc28d58cf78956e185243ea4 /geography/opencpn-plugin-weather_routing
parent61d6944a34660b51d842183652caf18ac23617fd (diff)
downloadpkgsrc-3c80ebcbcb4e857efcaf039a3f77cccd0b30e018.tar.gz
Update to 20180827. Changes since 20180405:
- fix and cleanup wind barb rendering along route - ADD max wind in ReportDialog - ADD comfort status in the WeatherRouting panel and ReportDialog This allows to: * Display directly in the table what will be the worst sailing comfort conditions found on the way. * Display in the ReportDialog the most comfortable route and date to start. - ADD option for a safety distance from land The idea is to add a safety distance to calculate the weather route from any land that can be found on the way. - various cleanups and bug fixes
Diffstat (limited to 'geography/opencpn-plugin-weather_routing')
-rw-r--r--geography/opencpn-plugin-weather_routing/Makefile21
-rw-r--r--geography/opencpn-plugin-weather_routing/distinfo11
-rw-r--r--geography/opencpn-plugin-weather_routing/patches/patch-src_RouteMapOverlay.cpp13
3 files changed, 36 insertions, 9 deletions
diff --git a/geography/opencpn-plugin-weather_routing/Makefile b/geography/opencpn-plugin-weather_routing/Makefile
index de259f998cc..5cb656b324f 100644
--- a/geography/opencpn-plugin-weather_routing/Makefile
+++ b/geography/opencpn-plugin-weather_routing/Makefile
@@ -1,14 +1,13 @@
-# $NetBSD: Makefile,v 1.18 2018/07/19 17:58:58 bouyer Exp $
+# $NetBSD: Makefile,v 1.19 2018/08/27 16:19:21 bouyer Exp $
#
-VERSION= 20180405
+VERSION= 20180827
DISTNAME= weather_routing_pi-${VERSION}
PKGNAME= opencpn-plugin-weather_routing-${VERSION}
-PKGREVISION= 3
CATEGORIES= geography
MASTER_SITES= ${MASTER_SITE_GITHUB:=seandepagnier/}
GITHUB_PROJECT= weather_routing_pi
-GITHUB_TAG= c4dc8231ef0da6c7da52be22f2cded1c2880dfa4
+GITHUB_TAG= 44695011d39c390784220589b9bd25932b73af3e
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= https://opencpn.org/OpenCPN/plugins/weatherroute.html
@@ -26,6 +25,20 @@ CMAKE_MODULE_PATH_OVERRIDE = \
cmake/PluginLocalization.cmake \
cmake/PluginPackage.cmake
+SUBST_CLASSES+= isnan
+SUBST_STAGE.isnan= pre-configure
+SUBST_MESSAGE.isnan= replace wxIsNaN with std::isnan
+SUBST_FILES.isnan= src/BoatDialog.cpp \
+ src/ReportDialog.cpp \
+ src/EditPolarDialog.cpp \
+ src/Polar.cpp \
+ src/RouteMap.cpp \
+ src/RouteMapOverlay.cpp \
+ src/SailboatTransform.cpp \
+ src/WeatherRouting.cpp
+SUBST_SED.isnan= -e s,wxIsNaN,std::isnan,g
+
+
.include "../../devel/cmake/buildlink3.mk"
.include "../../x11/wxGTK30/buildlink3.mk"
.include "../../textproc/tinyxml/buildlink3.mk"
diff --git a/geography/opencpn-plugin-weather_routing/distinfo b/geography/opencpn-plugin-weather_routing/distinfo
index 733685f6e5c..add1b1cfb2a 100644
--- a/geography/opencpn-plugin-weather_routing/distinfo
+++ b/geography/opencpn-plugin-weather_routing/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2018/04/05 16:49:15 bouyer Exp $
+$NetBSD: distinfo,v 1.11 2018/08/27 16:19:21 bouyer Exp $
-SHA1 (weather_routing_pi-20180405-c4dc8231ef0da6c7da52be22f2cded1c2880dfa4.tar.gz) = 9e6147e75957637129bc91a44d2eab592e1e1c6a
-RMD160 (weather_routing_pi-20180405-c4dc8231ef0da6c7da52be22f2cded1c2880dfa4.tar.gz) = c3573cabfb0a18ac6f1c47da6cf951960989f0a9
-SHA512 (weather_routing_pi-20180405-c4dc8231ef0da6c7da52be22f2cded1c2880dfa4.tar.gz) = 3584effab662dc3343e14b12d37399f06116b0386f92491c5cc4bd46c08915f1cc6e8861ac1dbadebfe5c3bc3383f31a2c7634574cf333d23f7865c82b46feb2
-Size (weather_routing_pi-20180405-c4dc8231ef0da6c7da52be22f2cded1c2880dfa4.tar.gz) = 918697 bytes
+SHA1 (weather_routing_pi-20180827-44695011d39c390784220589b9bd25932b73af3e.tar.gz) = 101dcb74c5537a9e57b42e6f20f0c3507a0a4ae8
+RMD160 (weather_routing_pi-20180827-44695011d39c390784220589b9bd25932b73af3e.tar.gz) = af27094ab8c526f8998087a0639ed1a4c6237990
+SHA512 (weather_routing_pi-20180827-44695011d39c390784220589b9bd25932b73af3e.tar.gz) = d69c065b55f9aa8308fc77e199562c4308fd295e6a71b60d2811b09dede1e636aeff16281610258269597117a29b99622346cb08e74f83077be5680d5cfb77c3
+Size (weather_routing_pi-20180827-44695011d39c390784220589b9bd25932b73af3e.tar.gz) = 921177 bytes
SHA1 (patch-cmake_PluginConfigure.cmake) = 5f0b145d34c064870090eaa598b5474020eb887d
+SHA1 (patch-src_RouteMapOverlay.cpp) = 4ab2ad49eba7540dfe6bc43c100c5942bb40c5a2
diff --git a/geography/opencpn-plugin-weather_routing/patches/patch-src_RouteMapOverlay.cpp b/geography/opencpn-plugin-weather_routing/patches/patch-src_RouteMapOverlay.cpp
new file mode 100644
index 00000000000..485ae52935b
--- /dev/null
+++ b/geography/opencpn-plugin-weather_routing/patches/patch-src_RouteMapOverlay.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_RouteMapOverlay.cpp,v 1.3 2018/08/27 16:19:22 bouyer Exp $
+
+--- src/RouteMapOverlay.cpp.orig 2018-08-27 16:21:31.958800595 +0200
++++ src/RouteMapOverlay.cpp 2018-08-27 16:21:42.479225410 +0200
+@@ -1448,7 +1448,7 @@
+ }
+ Unlock();
+
+- if(isinf(mindt)) {
++ if(std::isinf(mindt)) {
+ goto not_able_to_propagate;
+ }
+ destination_position = new Position(configuration.EndLat, configuration.EndLon,