aboutsummaryrefslogtreecommitdiff
path: root/gis/qmapshack
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-19 23:49:48 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-20 15:13:28 +0700
commitd6c86638a72edbb7f1ef1c57b0b4e25ed33b6741 (patch)
treea40849cfef31dd3f64f07812966ca9d7b936f610 /gis/qmapshack
parent942a8237e0b584df896cc814f099f372c7921e8f (diff)
gis/qmapshack: Updated for version 1.16.1.
Fix build on 15.0. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/qmapshack')
-rw-r--r--gis/qmapshack/QPainterPath.patch22
-rw-r--r--gis/qmapshack/proj.patch.gzbin0 -> 2343 bytes
-rw-r--r--gis/qmapshack/qmapshack.SlackBuild16
-rw-r--r--gis/qmapshack/qmapshack.info6
4 files changed, 9 insertions, 35 deletions
diff --git a/gis/qmapshack/QPainterPath.patch b/gis/qmapshack/QPainterPath.patch
deleted file mode 100644
index 7290f76f09c12..0000000000000
--- a/gis/qmapshack/QPainterPath.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -Naur qmapshack-V_1.15.0/src/qmapshack/helpers/CDraw.h qmapshack-V_1.15.0_X/src/qmapshack/helpers/CDraw.h
---- qmapshack-V_1.15.0/src/qmapshack/helpers/CDraw.h 2020-06-14 12:22:49.000000000 +0200
-+++ qmapshack-V_1.15.0_X/src/qmapshack/helpers/CDraw.h 2020-06-14 20:55:16.675484111 +0200
-@@ -21,6 +21,7 @@
- #define CPAINTER_H
-
- #include <QPainter>
-+#include <QPainterPath>
- #include <QPolygonF>
- #include <QRectF>
-
-diff -Naur qmapshack-V_1.15.0/src/qmaptool/helpers/CDraw.h qmapshack-V_1.15.0_X/src/qmaptool/helpers/CDraw.h
---- qmapshack-V_1.15.0/src/qmaptool/helpers/CDraw.h 2020-06-14 12:22:49.000000000 +0200
-+++ qmapshack-V_1.15.0_X/src/qmaptool/helpers/CDraw.h 2020-06-14 20:54:50.688816110 +0200
-@@ -21,6 +21,7 @@
- #define CPAINTER_H
-
- #include <QPainter>
-+#include <QPainterPath>
- #include <QPolygonF>
- #include <QRectF>
-
diff --git a/gis/qmapshack/proj.patch.gz b/gis/qmapshack/proj.patch.gz
new file mode 100644
index 0000000000000..4d67d373faa55
--- /dev/null
+++ b/gis/qmapshack/proj.patch.gz
Binary files differ
diff --git a/gis/qmapshack/qmapshack.SlackBuild b/gis/qmapshack/qmapshack.SlackBuild
index 26d740c4e0f3a..197c0d1b77764 100644
--- a/gis/qmapshack/qmapshack.SlackBuild
+++ b/gis/qmapshack/qmapshack.SlackBuild
@@ -12,7 +12,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qmapshack
-VERSION=${VERSION:-1.15.2}
+VERSION=${VERSION:-1.16.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -57,16 +57,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-V_${VERSION}
-tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+tar xvf $CWD/${PRGNAM}-V_${VERSION}.tar.gz
cd ${PRGNAM}-V_${VERSION}
-
-# Fix missing header file
-patch -p1 < $CWD/QPainterPath.patch
-
-# Apply patches provided in the source tree
-patch -p1 < FindPROJ4.patch
-patch -p1 < FindQuaZip5.patch
-
+# cmake / autotools problem in proj package if proj switches to cmake in
+# future, cmake should be able to find proj here.
+# thanks debian maintainers
+zcat $CWD/proj.patch.gz | patch -p1
chown -R root:root .
find -L . \
diff --git a/gis/qmapshack/qmapshack.info b/gis/qmapshack/qmapshack.info
index 79b620b0a7141..0dfb13a29d8a8 100644
--- a/gis/qmapshack/qmapshack.info
+++ b/gis/qmapshack/qmapshack.info
@@ -1,10 +1,10 @@
PRGNAM="qmapshack"
-VERSION="1.15.2"
+VERSION="1.16.1"
HOMEPAGE="https://github.com/Maproom/qmapshack/wiki"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/Maproom/qmapshack/archive/V_1.15.2/qmapshack-1.15.2.tar.gz"
-MD5SUM_x86_64="5fcf9e5d31fb0abe8d5ce442ba516b30"
+DOWNLOAD_x86_64="https://github.com/Maproom/qmapshack/archive/V_1.16.1/qmapshack-V_1.16.1.tar.gz"
+MD5SUM_x86_64="7520305c2309af093cf873130d599ee9"
REQUIRES="gdal routino"
MAINTAINER="Daniel Stolarski"
EMAIL="daniel.stolarski@gmail.com"