aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gis/openorienteering-mapper/fix_doc_path.diff12
-rw-r--r--gis/openorienteering-mapper/openorienteering-mapper.SlackBuild7
-rw-r--r--gis/openorienteering-mapper/openorienteering-mapper.info6
3 files changed, 18 insertions, 7 deletions
diff --git a/gis/openorienteering-mapper/fix_doc_path.diff b/gis/openorienteering-mapper/fix_doc_path.diff
new file mode 100644
index 000000000000..494cf3a9759a
--- /dev/null
+++ b/gis/openorienteering-mapper/fix_doc_path.diff
@@ -0,0 +1,12 @@
+diff -Naur mapper-0.8.2.orig/CMakeLists.txt mapper-0.8.2/CMakeLists.txt
+--- mapper-0.8.2.orig/CMakeLists.txt 2018-08-12 11:01:50.129865377 +0300
++++ mapper-0.8.2/CMakeLists.txt 2018-08-12 11:03:52.807861119 +0300
+@@ -152,7 +152,7 @@
+ set(MAPPER_RUNTIME_DESTINATION "bin")
+ set(MAPPER_LIBRARY_DESTINATION "lib/${Mapper_PACKAGE_NAME}")
+ set(MAPPER_DATA_DESTINATION "share/${Mapper_PACKAGE_NAME}")
+- set(MAPPER_ABOUT_DESTINATION "share/doc/${Mapper_PACKAGE_NAME}")
++ set(MAPPER_ABOUT_DESTINATION "doc/${Mapper_PACKAGE_NAME}-${Mapper_VERSION}")
+ endif()
+
+ if(CMAKE_CROSSCOMPILING)
diff --git a/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild b/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
index d8b545a406e3..8c2027576bd1 100644
--- a/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
+++ b/gis/openorienteering-mapper/openorienteering-mapper.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openorienteering-mapper
-VERSION=${VERSION:-0.8.1}
+VERSION=${VERSION:-0.8.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/fix_doc_path.diff
+
mkdir -p build
cd build
cmake \
@@ -89,10 +91,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING INSTALL.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/doc/openorienteering-mapper/* $PKG/usr/doc/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/gis/openorienteering-mapper/openorienteering-mapper.info b/gis/openorienteering-mapper/openorienteering-mapper.info
index 715bea5114c3..77b75c9b755e 100644
--- a/gis/openorienteering-mapper/openorienteering-mapper.info
+++ b/gis/openorienteering-mapper/openorienteering-mapper.info
@@ -1,8 +1,8 @@
PRGNAM="openorienteering-mapper"
-VERSION="0.8.1"
+VERSION="0.8.2"
HOMEPAGE="https://www.openorienteering.org/apps/mapper/"
-DOWNLOAD="https://github.com/OpenOrienteering/mapper/archive/v0.8.1/mapper-0.8.1.tar.gz"
-MD5SUM="203aa28e8fba24772f600ec9a55b3df9"
+DOWNLOAD="https://github.com/OpenOrienteering/mapper/archive/v0.8.2/mapper-0.8.2.tar.gz"
+MD5SUM="e84499ee9bb8d005537fe0581cdfc615"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gdal polyclipping proj qt5"