diff --git a/science/gis/gdal/actions.py b/science/gis/gdal/actions.py
index ffb4a7d16b..072bcdd17a 100644
--- a/science/gis/gdal/actions.py
+++ b/science/gis/gdal/actions.py
@@ -45,7 +45,7 @@ def setup():
--with-python \
--without-poppler \
--with-xerces \
- --without-openjpeg \
+ --with-openjpeg \
--without-libtool \
--without-hdf4 \
--without-fme \
@@ -82,8 +82,8 @@ def install():
#remove egg
# pisitools.removeDir("/usr/lib/python2.7/site-packages/GDAL-*")
- pisitools.domove("/usr/man/man3/*", "/usr/share/man/man3")
- pisitools.removeDir("/usr/man/")
+ #pisitools.domove("/usr/man/man3/*", "/usr/share/man/man3")
+ #pisitools.removeDir("/usr/man/")
#pisitools.domove("/usr/etc/bash_completion.d/*", "/etc/bash_completion.d")
#pisitools.removeDir("/usr/etc")
diff --git a/science/gis/gdal/files/man.patch b/science/gis/gdal/files/man.patch
new file mode 100644
index 0000000000..1bff3a2088
--- /dev/null
+++ b/science/gis/gdal/files/man.patch
@@ -0,0 +1,12 @@
+diff -Nuar a/configure b/configure
+--- a/configure 2018-06-23 18:05:47.000000000 +0300
++++ b/configure 2018-09-07 15:07:36.398094137 +0300
+@@ -35383,7 +35383,7 @@
+ datarootdir='${prefix}/share/gdal'
+ fi
+
+-mandir='${prefix}/man'
++mandir='${prefix}/share/man'
+
+
+ if test "$prefix" = "NONE" ; then
diff --git a/science/gis/gdal/pspec.xml b/science/gis/gdal/pspec.xml
index 79e48e66cd..aa1157dd33 100644
--- a/science/gis/gdal/pspec.xml
+++ b/science/gis/gdal/pspec.xml
@@ -12,7 +12,7 @@
library
A translator library for raster geospatial data formats (includes OGR support)
GDAL is a translator library for raster geospatial data formats which presents a single abstract data model to the calling application for all supported formats.
- http://download.osgeo.org/gdal/2.2.3/gdal-2.2.3.tar.gz
+ http://download.osgeo.org/gdal/2.3.1/gdal-2.3.1.tar.gz
bash-completion
python-numpy
@@ -23,7 +23,7 @@
tiff-devel
webp-devel
giflib-devel
-
+ openjpeg2-devel
netcdf-devel
podofo-devel
cfitsio-devel
@@ -43,6 +43,7 @@
gdal-completion.patch
+ man.patch
@@ -62,6 +63,7 @@
unixODBC
xerces-c
libfreexl
+ openjpeg2
libgeotiff
libjpeg-turbo
postgresql-lib
@@ -131,6 +133,13 @@
+
+ 2018-2018-07
+ 2.3.1
+ Version Bump
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2018-02-15
2.2.3