summaryrefslogtreecommitdiff
path: root/sci-geosciences
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/bt747/Manifest8
-rw-r--r--sci-geosciences/bt747/bt747-2.1.7-r1.ebuild70
-rw-r--r--sci-geosciences/bt747/bt747-2.1.7-r2.ebuild70
-rw-r--r--sci-geosciences/bt747/files/jchart2d-3.2.patch15
-rw-r--r--sci-geosciences/bt747/metadata.xml21
-rw-r--r--sci-geosciences/congen/Manifest6
-rw-r--r--sci-geosciences/congen/congen-1.6.2-r1.ebuild33
-rw-r--r--sci-geosciences/congen/congen-1.6.2.ebuild33
-rw-r--r--sci-geosciences/congen/metadata.xml5
-rw-r--r--sci-geosciences/foxtrotgps/Manifest5
-rw-r--r--sci-geosciences/foxtrotgps/foxtrotgps-1.2.0.ebuild28
-rw-r--r--sci-geosciences/foxtrotgps/metadata.xml11
-rw-r--r--sci-geosciences/gdal-grass/Manifest7
-rw-r--r--sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild53
-rw-r--r--sci-geosciences/gdal-grass/gdal-grass-2.1.0.ebuild53
-rw-r--r--sci-geosciences/gdal-grass/metadata.xml15
-rw-r--r--sci-geosciences/gebabbel/Manifest6
-rw-r--r--sci-geosciences/gebabbel/files/gebabbel-0.3-gcc45.patch15
-rw-r--r--sci-geosciences/gebabbel/gebabbel-0.4.ebuild48
-rw-r--r--sci-geosciences/gebabbel/metadata.xml11
-rw-r--r--sci-geosciences/geocode-glib/Manifest7
-rw-r--r--sci-geosciences/geocode-glib/geocode-glib-3.20.1.ebuild45
-rw-r--r--sci-geosciences/geocode-glib/geocode-glib-3.24.0.ebuild44
-rw-r--r--sci-geosciences/geocode-glib/metadata.xml8
-rw-r--r--sci-geosciences/gmapcatcher/Manifest6
-rw-r--r--sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch18
-rw-r--r--sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild41
-rw-r--r--sci-geosciences/gmapcatcher/metadata.xml8
-rw-r--r--sci-geosciences/gmt/Manifest25
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.0-no-strip.patch62
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.6-respect-ldflags.patch56
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.8-bfr-overflow.patch27
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.8-impl-dec.patch16
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.9-no-strip.patch38
-rw-r--r--sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch19
-rw-r--r--sci-geosciences/gmt/gmt-4.5.6.ebuild95
-rw-r--r--sci-geosciences/gmt/gmt-4.5.8.ebuild91
-rw-r--r--sci-geosciences/gmt/gmt-4.5.9.ebuild92
-rw-r--r--sci-geosciences/gmt/metadata.xml17
-rw-r--r--sci-geosciences/gnome-maps/Manifest7
-rw-r--r--sci-geosciences/gnome-maps/gnome-maps-3.22.2.ebuild44
-rw-r--r--sci-geosciences/gnome-maps/gnome-maps-3.24.3.ebuild44
-rw-r--r--sci-geosciences/gnome-maps/metadata.xml8
-rw-r--r--sci-geosciences/gpsbabel/Manifest15
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.4.3-fix_binary_name.patch12
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_statistic_uploading.patch11
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_update_check.patch108
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_version_check.patch45
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch105
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch70
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_shapelib.patch68
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_zlib.patch80
-rw-r--r--sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-xmldoc.patch13
-rw-r--r--sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild115
-rw-r--r--sci-geosciences/gpsbabel/metadata.xml14
-rw-r--r--sci-geosciences/gpscorrelate/Manifest6
-rw-r--r--sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-makefile.patch47
-rw-r--r--sci-geosciences/gpscorrelate/gpscorrelate-1.6.1.ebuild48
-rw-r--r--sci-geosciences/gpscorrelate/metadata.xml11
-rw-r--r--sci-geosciences/gpsd/Manifest25
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.10-dbus.patch32
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.10-nmea-disabled.patch54
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.10-rpath.patch13
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.10-udev-install.patch40
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.15-broken-install.patch28
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.15-dynamic-libs.patch100
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.15-libgpsd.patch81
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch12
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.16-sysmacros.patch31
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.17-do_not_rm_library.patch12
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.3-setup.py17
-rw-r--r--sci-geosciences/gpsd/files/gpsd-3.8-ldflags.patch15
-rw-r--r--sci-geosciences/gpsd/files/gpsd-9999-do_not_rm_library.patch12
-rw-r--r--sci-geosciences/gpsd/files/gpsd.conf-27
-rw-r--r--sci-geosciences/gpsd/files/gpsd.init-238
-rw-r--r--sci-geosciences/gpsd/gpsd-3.10.ebuild167
-rw-r--r--sci-geosciences/gpsd/gpsd-3.16.ebuild170
-rw-r--r--sci-geosciences/gpsd/gpsd-3.17.ebuild163
-rw-r--r--sci-geosciences/gpsd/gpsd-9999.ebuild163
-rw-r--r--sci-geosciences/gpsd/metadata.xml24
-rw-r--r--sci-geosciences/gpx-viewer/Manifest6
-rw-r--r--sci-geosciences/gpx-viewer/files/gpx-viewer-0.4.0-crash-backport24
-rw-r--r--sci-geosciences/gpx-viewer/gpx-viewer-0.4.0-r1.ebuild53
-rw-r--r--sci-geosciences/gpx-viewer/metadata.xml8
-rw-r--r--sci-geosciences/gpxpy/Manifest5
-rw-r--r--sci-geosciences/gpxpy/gpxpy-0.8.6.ebuild26
-rw-r--r--sci-geosciences/gpxpy/metadata.xml11
-rw-r--r--sci-geosciences/grass/Manifest8
-rw-r--r--sci-geosciences/grass/files/grass-7.0.1-declare-inespg.patch15
-rw-r--r--sci-geosciences/grass/grass-7.0.5-r1.ebuild270
-rw-r--r--sci-geosciences/grass/grass-7.2.0.ebuild270
-rw-r--r--sci-geosciences/grass/metadata.xml23
-rw-r--r--sci-geosciences/gshhs-data/Manifest5
-rw-r--r--sci-geosciences/gshhs-data/gshhs-data-2.2.0.ebuild24
-rw-r--r--sci-geosciences/gshhs-data/metadata.xml17
-rw-r--r--sci-geosciences/gshhs/Manifest5
-rw-r--r--sci-geosciences/gshhs/gshhs-1.13.ebuild41
-rw-r--r--sci-geosciences/gshhs/metadata.xml17
-rw-r--r--sci-geosciences/gtk-g-rays2/Manifest5
-rw-r--r--sci-geosciences/gtk-g-rays2/gtk-g-rays2-2.05.ebuild44
-rw-r--r--sci-geosciences/gtk-g-rays2/metadata.xml8
-rw-r--r--sci-geosciences/harmonics-dwf-free-noncomm/Manifest5
-rw-r--r--sci-geosciences/harmonics-dwf-free-noncomm/harmonics-dwf-free-noncomm-20111230-r1.ebuild23
-rw-r--r--sci-geosciences/harmonics-dwf-free-noncomm/metadata.xml5
-rw-r--r--sci-geosciences/harmonics-dwf-free/Manifest7
-rw-r--r--sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20121224.ebuild21
-rw-r--r--sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20131228.ebuild22
-rw-r--r--sci-geosciences/harmonics-dwf-free/metadata.xml5
-rw-r--r--sci-geosciences/josm/Manifest6
-rw-r--r--sci-geosciences/josm/josm-10966.ebuild68
-rw-r--r--sci-geosciences/josm/josm-99999.ebuild50
-rw-r--r--sci-geosciences/josm/metadata.xml11
-rw-r--r--sci-geosciences/laszip/Manifest5
-rw-r--r--sci-geosciences/laszip/files/laszip-2.2.0_fix-build-system.patch50
-rw-r--r--sci-geosciences/laszip/laszip-2.2.0.ebuild26
-rw-r--r--sci-geosciences/laszip/metadata.xml19
-rw-r--r--sci-geosciences/liblas/Manifest7
-rw-r--r--sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch30
-rw-r--r--sci-geosciences/liblas/liblas-1.8.0.ebuild39
-rw-r--r--sci-geosciences/liblas/liblas-1.8.1.ebuild48
-rw-r--r--sci-geosciences/liblas/metadata.xml21
-rw-r--r--sci-geosciences/libtcd/Manifest9
-rw-r--r--sci-geosciences/libtcd/libtcd-2.2.5_p2.ebuild32
-rw-r--r--sci-geosciences/libtcd/libtcd-2.2.6.ebuild32
-rw-r--r--sci-geosciences/libtcd/libtcd-2.2.7.ebuild32
-rw-r--r--sci-geosciences/libtcd/metadata.xml5
-rw-r--r--sci-geosciences/mapnik-world-boundaries/Manifest6
-rw-r--r--sci-geosciences/mapnik-world-boundaries/mapnik-world-boundaries-20090514.ebuild29
-rw-r--r--sci-geosciences/mapnik-world-boundaries/metadata.xml11
-rw-r--r--sci-geosciences/mapnik/Manifest8
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch20
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch11
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch11
-rw-r--r--sci-geosciences/mapnik/mapnik-3.0.9.ebuild104
-rw-r--r--sci-geosciences/mapnik/metadata.xml18
-rw-r--r--sci-geosciences/mapserver/Manifest10
-rw-r--r--sci-geosciences/mapserver/files/mapserver-7.0.0-no-applicable-code.patch34
-rw-r--r--sci-geosciences/mapserver/files/mapserver-7.0.0-sec-format.patch13
-rw-r--r--sci-geosciences/mapserver/files/mapserver-7.0.5-missing-macro.patch21
-rw-r--r--sci-geosciences/mapserver/mapserver-7.0.3.ebuild194
-rw-r--r--sci-geosciences/mapserver/mapserver-7.0.5.ebuild196
-rw-r--r--sci-geosciences/mapserver/metadata.xml15
-rw-r--r--sci-geosciences/mc2bsbh/Manifest5
-rw-r--r--sci-geosciences/mc2bsbh/mc2bsbh-0.0.9.ebuild28
-rw-r--r--sci-geosciences/mc2bsbh/metadata.xml7
-rw-r--r--sci-geosciences/merkaartor/Manifest6
-rw-r--r--sci-geosciences/merkaartor/merkaartor-0.18.3-r1.ebuild89
-rw-r--r--sci-geosciences/merkaartor/merkaartor-9999.ebuild95
-rw-r--r--sci-geosciences/merkaartor/metadata.xml15
-rw-r--r--sci-geosciences/metadata.xml36
-rw-r--r--sci-geosciences/mtkbabel/Manifest7
-rw-r--r--sci-geosciences/mtkbabel/metadata.xml15
-rw-r--r--sci-geosciences/mtkbabel/mtkbabel-0.8.2-r1.ebuild25
-rw-r--r--sci-geosciences/mtkbabel/mtkbabel-0.8.3.1-r1.ebuild27
-rw-r--r--sci-geosciences/opencpn-plugin-br24radar/Manifest10
-rw-r--r--sci-geosciences/opencpn-plugin-br24radar/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.1-r1.ebuild36
-rw-r--r--sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.31.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-2.1.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-climatology/Manifest7
-rw-r--r--sci-geosciences/opencpn-plugin-climatology/metadata.xml16
-rw-r--r--sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-1.0-r1.ebuild42
-rw-r--r--sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-9999.ebuild44
-rw-r--r--sci-geosciences/opencpn-plugin-dr/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-dr/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-1.1.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-findit/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-findit/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-1.1007.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-gxradar/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-gxradar/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-1.1.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-iacfleet/Manifest7
-rw-r--r--sci-geosciences/opencpn-plugin-iacfleet/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.8.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.9.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-launcher/Manifest8
-rw-r--r--sci-geosciences/opencpn-plugin-launcher/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.0-r1.ebuild33
-rw-r--r--sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.1.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-logbookkonni/Manifest10
-rw-r--r--sci-geosciences/opencpn-plugin-logbookkonni/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.2018-r1.ebuild57
-rw-r--r--sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.3002.ebuild61
-rw-r--r--sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-9999.ebuild61
-rw-r--r--sci-geosciences/opencpn-plugin-objsearch/Manifest8
-rw-r--r--sci-geosciences/opencpn-plugin-objsearch/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.5.1-r1.ebuild33
-rw-r--r--sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.7.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-ocpn_draw/Manifest7
-rw-r--r--sci-geosciences/opencpn-plugin-ocpn_draw/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.0.12.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.3.14.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-ocpndebugger/Manifest10
-rw-r--r--sci-geosciences/opencpn-plugin-ocpndebugger/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.0-r1.ebuild33
-rw-r--r--sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.2.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.3.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-otcurrent/Manifest5
-rw-r--r--sci-geosciences/opencpn-plugin-otcurrent/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-1.2.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-polar/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-polar/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-1.1007.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-radar/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-radar/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-0.98.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-route/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-route/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-1.2.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-squiddio/Manifest5
-rw-r--r--sci-geosciences/opencpn-plugin-squiddio/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-0.7.ebuild40
-rw-r--r--sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-9999.ebuild40
-rw-r--r--sci-geosciences/opencpn-plugin-statusbar/Manifest6
-rw-r--r--sci-geosciences/opencpn-plugin-statusbar/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-0.5-r1.ebuild35
-rw-r--r--sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-watchdog/Manifest4
-rw-r--r--sci-geosciences/opencpn-plugin-watchdog/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-1.9.051.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-weather_routing/Manifest6
-rw-r--r--sci-geosciences/opencpn-plugin-weather_routing/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-1.10.1.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-weatherfax/Manifest6
-rw-r--r--sci-geosciences/opencpn-plugin-weatherfax/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-1.3-r1.ebuild35
-rw-r--r--sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-9999.ebuild37
-rw-r--r--sci-geosciences/opencpn-plugin-wmm/Manifest5
-rw-r--r--sci-geosciences/opencpn-plugin-wmm/metadata.xml15
-rw-r--r--sci-geosciences/opencpn-plugin-wmm/opencpn-plugin-wmm-1.0-r1.ebuild33
-rw-r--r--sci-geosciences/opencpn-plugins-meta/Manifest3
-rw-r--r--sci-geosciences/opencpn-plugins-meta/metadata.xml12
-rw-r--r--sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.0.0.ebuild25
-rw-r--r--sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.2.0-r1.ebuild36
-rw-r--r--sci-geosciences/opencpn/Manifest15
-rw-r--r--sci-geosciences/opencpn/metadata.xml16
-rw-r--r--sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild67
-rw-r--r--sci-geosciences/opencpn/opencpn-4.2.0.ebuild59
-rw-r--r--sci-geosciences/opencpn/opencpn-4.4.0.ebuild59
-rw-r--r--sci-geosciences/opencpn/opencpn-4.6.1.ebuild61
-rw-r--r--sci-geosciences/opencpn/opencpn-4.8.0-r1.ebuild63
-rw-r--r--sci-geosciences/osm-gps-map/Manifest7
-rw-r--r--sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-gtk-doc-module.patch11
-rw-r--r--sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-no-maintainer-mode.patch30
-rw-r--r--sci-geosciences/osm-gps-map/metadata.xml11
-rw-r--r--sci-geosciences/osm-gps-map/osm-gps-map-1.1.0.ebuild43
-rw-r--r--sci-geosciences/osm2pgsql/Manifest6
-rw-r--r--sci-geosciences/osm2pgsql/metadata.xml20
-rw-r--r--sci-geosciences/osm2pgsql/osm2pgsql-0.92.0.ebuild42
-rw-r--r--sci-geosciences/osm2pgsql/osm2pgsql-99999999.ebuild43
-rw-r--r--sci-geosciences/qgis/Manifest16
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.12-cmake-lib-suffix.patch11
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.12-sip.patch185
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.3-app-icon.patch13
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.3-qscintilla-2.10.patch24
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.1.patch42
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.patch237
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.3-webkit.patch112
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.6-featuresummary.patch31
-rw-r--r--sci-geosciences/qgis/files/qgis-2.18.6-python.patch25
-rw-r--r--sci-geosciences/qgis/metadata.xml23
-rw-r--r--sci-geosciences/qgis/qgis-2.18.12-r100.ebuild234
-rw-r--r--sci-geosciences/qgis/qgis-2.18.12.ebuild213
-rw-r--r--sci-geosciences/qmapshack/Manifest10
-rw-r--r--sci-geosciences/qmapshack/metadata.xml21
-rw-r--r--sci-geosciences/qmapshack/qmapshack-1.6.3.ebuild25
-rw-r--r--sci-geosciences/qmapshack/qmapshack-1.7.1.ebuild25
-rw-r--r--sci-geosciences/qmapshack/qmapshack-1.8.0-r1.ebuild26
-rw-r--r--sci-geosciences/qmapshack/qmapshack-1.9.0.ebuild26
-rw-r--r--sci-geosciences/readosm/Manifest5
-rw-r--r--sci-geosciences/readosm/metadata.xml8
-rw-r--r--sci-geosciences/readosm/readosm-1.0.0e-r1.ebuild29
-rw-r--r--sci-geosciences/routino/Manifest8
-rw-r--r--sci-geosciences/routino/files/routino-3.1.1.patch34
-rw-r--r--sci-geosciences/routino/files/routino-3.2.patch30
-rw-r--r--sci-geosciences/routino/metadata.xml20
-rw-r--r--sci-geosciences/routino/routino-3.1.1.ebuild23
-rw-r--r--sci-geosciences/routino/routino-3.2.ebuild23
-rw-r--r--sci-geosciences/seawater/Manifest7
-rw-r--r--sci-geosciences/seawater/metadata.xml8
-rw-r--r--sci-geosciences/seawater/seawater-2.0.1.ebuild21
-rw-r--r--sci-geosciences/seawater/seawater-3.3.4.ebuild29
-rw-r--r--sci-geosciences/swmm/Manifest6
-rw-r--r--sci-geosciences/swmm/files/swmm-5.0.022-QA.patch14
-rw-r--r--sci-geosciences/swmm/metadata.xml5
-rw-r--r--sci-geosciences/swmm/swmm-5.0.022.ebuild52
-rw-r--r--sci-geosciences/tappy/Manifest5
-rw-r--r--sci-geosciences/tappy/metadata.xml8
-rw-r--r--sci-geosciences/tappy/tappy-0.9.0.ebuild22
-rw-r--r--sci-geosciences/tcd-utils/Manifest6
-rw-r--r--sci-geosciences/tcd-utils/metadata.xml5
-rw-r--r--sci-geosciences/tcd-utils/tcd-utils-20120115-r1.ebuild16
-rw-r--r--sci-geosciences/tcd-utils/tcd-utils-20120115.ebuild16
-rw-r--r--sci-geosciences/tilecache/Manifest6
-rw-r--r--sci-geosciences/tilecache/files/tilecache-2.11-pil.patch21
-rw-r--r--sci-geosciences/tilecache/metadata.xml8
-rw-r--r--sci-geosciences/tilecache/tilecache-2.11-r1.ebuild32
-rw-r--r--sci-geosciences/viking/Manifest6
-rw-r--r--sci-geosciences/viking/metadata.xml28
-rw-r--r--sci-geosciences/viking/viking-1.6.2.ebuild74
-rw-r--r--sci-geosciences/xtide/Manifest8
-rw-r--r--sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch21
-rw-r--r--sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch88
-rw-r--r--sci-geosciences/xtide/files/xtide-2.13.2-clang.patch33
-rw-r--r--sci-geosciences/xtide/metadata.xml8
-rw-r--r--sci-geosciences/xtide/xtide-2.13.2.ebuild62
322 files changed, 10904 insertions, 0 deletions
diff --git a/sci-geosciences/bt747/Manifest b/sci-geosciences/bt747/Manifest
new file mode 100644
index 000000000000..80481f1ed822
--- /dev/null
+++ b/sci-geosciences/bt747/Manifest
@@ -0,0 +1,8 @@
+AUX jchart2d-3.2.patch 563 SHA256 65b1a1c05e2134bb07613cc2d14681ee56656aa76351e5e85e9fda143b64d274 SHA512 54a95203b7566819e27cae7a0d6ee0a9542817e3b172cfbaf384042c54d1340301114f15b1bcb337ffe7b03a53927cb92be897ef95ede1a4d422d54b00a10419 WHIRLPOOL 7da6cad0a4777cfe668fd54c5fb9fae42aaf9ab8b1df8e8904de34c513c3a14c8e5ad3e97825db20fce3e9220d9db9d28cebd79a9c6fce35e160ec63f0f8fbad
+DIST BT747_2.1.7_full.zip 9649645 SHA256 d8a9c3920a6b5de75cac41da74e3fa49f134104ea9293504386ebc7a81fc91df SHA512 362533ccbf6b9252d6d7e09497a75038b0776e76a2c2f73f05e2abc0c521d0a640d0ae9e7d5d40da1d14850838a2924f17622d91535e90b900a5ae97b66f6b3d WHIRLPOOL 02b1eb02d9eaea592643240de605ecf231856a47276fc7b450cfd052455c621e3329c34bd27cf3260304437ab340a9c1f51661a4f20e827d0904b23a65de7bf6
+DIST bt747.gif 5903 SHA256 6e2aa20d9fcdf44b8ac779f0a12a87480cd6f3f1b47127b250bac978c1d42149 SHA512 55c3bbc9ec5fe12261b2604980c7b5d4416afa3ec73f7834c62d3ebbdf4580b247c1feb2ac112f876e7110a8aabe652da39d2181f01661435ba465671a631252 WHIRLPOOL 15413f4fcfb23051f770c91c9a73bc5a41dc1268b3a985c4d3e33e4dbd36d6aee510c7fdcdf8b26dac296226c175fa6cb927c9f6e8537ab1cf8616f37c2da552
+EBUILD bt747-2.1.7-r1.ebuild 1684 SHA256 5ac42abcd4789e2a79a0f69863d0ab71454e990a0263ae72c85046125743c4aa SHA512 5b37ecd247226cbcc21f6f6af537cd53c5f88f1ae6e216c48f25a455731d2d180b99529693c54d6f0ed5628fec9ec28957b823acd1fe7bce499d313bba6de93b WHIRLPOOL 6365cb31193f84013340c4c5daeb9029372679cb97d256994944ae8b4d654c9d67a01bfe609e21e51a6030ae873fb71561fdbe5df8030cf6c460af5a2281e750
+EBUILD bt747-2.1.7-r2.ebuild 1679 SHA256 91d3fd71b449df7d8992a3c936162cf0f03763efe3ccb56d996564fe12f96629 SHA512 8e5aa145e1201b8898cdafac3f3c7df76c50a629ef684966df39a3e66fc73325f2971a204578cd4cc6982c5df76cb49721ef7d3e5c7507a2c14740a42e9b258b WHIRLPOOL 22194e28585d88815a5632f37b7869afd59885022379fabe4128962de8487441ddcdbbcb764a74586ebbd752a9072d94f66c405cf4795bb7ed27123bbacea9b2
+MISC ChangeLog 3856 SHA256 23559b4e83b7eac03c2230f290bb8cbd56344a6cca0fcd276f41ec092cec8cc9 SHA512 1fb84feb0bf43a7f3dc3c29d60e3aa10430a3088f8b5cb92005064fda114c295ec02723a36c842737e56250e73f87055c198721b5c18ae82cb5dc6d7a648bd49 WHIRLPOOL c37883af6b0879a08966975be2d67a6d3209934cd79d4f8e267cd087824a97c405d9579fc7a49a90f6c8ee634fb473565650d2980cf2cdb1929cb30bfe9665fa
+MISC ChangeLog-2015 1270 SHA256 2f67c352c0ad153400dee7ce6f5f3ce879371e98e4956fae52d1f6e29abf881a SHA512 03e89cc0d386c064d2076901f1d756fb7b17ae89c1e310fb577d118292f241f43b0eb7ce6a443e9378f4af61cb55748263c86f4c58812850e45bd2f94337e7bd WHIRLPOOL 4c41dfbf4e38cc1ab727413417838086dc5ff5bd48fa8248d57f3a5be884ce7a0e4322500c01d4b72fa8be58480571d993c6206e7c371bee721ad37cb684e53c
+MISC metadata.xml 936 SHA256 6af13272ab1fb9b12d4f6c03d731c22ee47ce9a9484a8c12fcd4ab74aa029986 SHA512 2728dc332da587012500de41eecd145f1f9dbbd197612b284be02d7334f67e877fdce8f973e9b3331a03d39653c35f3409dbf3c85a4371c0edb497d0922d2938 WHIRLPOOL 59f21a496a1adabd23805839f046f6b212ac7cebb3bc77c9f5f80474eb98644f77076fb29d45d436e24690bb5123ecc2dc5c39f0cb171f9122da89ffebba57bb
diff --git a/sci-geosciences/bt747/bt747-2.1.7-r1.ebuild b/sci-geosciences/bt747/bt747-2.1.7-r1.ebuild
new file mode 100644
index 000000000000..94c6f870e372
--- /dev/null
+++ b/sci-geosciences/bt747/bt747-2.1.7-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="MTK GPS Datalogger Device Control"
+HOMEPAGE="http://www.bt747.org"
+SRC_URI="mirror://sourceforge/${PN}/Stable/BT747_${PV}_full.zip
+ http://www.bt747.org/icon/bt747_128x128.gif -> ${PN}.gif"
+
+LICENSE="GPL-3"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+ dev-java/commons-imaging:0
+ dev-java/jcalendar:1.2
+ dev-java/jchart2d:0
+ dev-java/jopt-simple:0
+ >=dev-java/rxtx-2.2_pre2:2
+ dev-java/swing-layout:1
+ dev-java/swingx:1.6
+ dev-java/swingx-ws:bt747
+"
+
+RDEPEND="
+ ${CDEPEND}
+ dev-libs/glib:2[dbus]
+ >=virtual/jre-1.7
+"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.7
+ app-arch/unzip
+"
+
+EANT_BUILD_TARGET="dist.j2se"
+EANT_EXTRA_ARGS="-Dskip.proguard=yes -Dsvn=true -Dsvnversion=true -Dbuild.current.revision=Gentoo"
+EANT_GENTOO_CLASSPATH="commons-imaging,jcalendar-1.2,jchart2d,jopt-simple-4.4,rxtx-2,swing-layout-1,swingx-1.6,swingx-ws-bt747"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+S="${WORKDIR}"
+
+java_prepare() {
+ # Fix for newer jchart2d.
+ epatch "${FILESDIR}/jchart2d-3.2.patch"
+
+ # Remove all the bundled stuff.
+ rm -rv dist/ lib/ || die
+
+ # GraphicsUtilities moved in later SwingX versions.
+ sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
+ src_j2se/net/sf/bt747/j2se/app/list/FileListCellRenderer.java || die
+
+ eapply_user
+}
+
+src_install() {
+ dodoc {ChangeLog,README}.txt
+
+ java-pkg_dojar dist/*.jar
+ java-pkg_dolauncher ${PN} --main bt747.j2se_view.BT747Main \
+ --java-args="-Xmx192m"
+
+ doicon "${DISTDIR}/${PN}.gif"
+ make_desktop_entry ${PN} BT747 bt747.gif
+}
diff --git a/sci-geosciences/bt747/bt747-2.1.7-r2.ebuild b/sci-geosciences/bt747/bt747-2.1.7-r2.ebuild
new file mode 100644
index 000000000000..17c7ae799eb6
--- /dev/null
+++ b/sci-geosciences/bt747/bt747-2.1.7-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="MTK GPS Datalogger Device Control"
+HOMEPAGE="http://www.bt747.org"
+SRC_URI="mirror://sourceforge/${PN}/Stable/BT747_${PV}_full.zip
+ http://www.bt747.org/icon/bt747_128x128.gif -> ${PN}.gif"
+
+LICENSE="GPL-3"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+ dev-java/commons-imaging:0
+ dev-java/jcalendar:1.2
+ dev-java/jchart2d:0
+ dev-java/jopt-simple:0
+ >=dev-java/rxtx-2.2_pre2:2
+ dev-java/swing-layout:1
+ dev-java/swingx:1.6
+ dev-java/swingx-ws:bt747
+"
+
+RDEPEND="
+ ${CDEPEND}
+ dev-libs/glib:2[dbus]
+ >=virtual/jre-1.7
+"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.7
+ app-arch/unzip
+"
+
+EANT_BUILD_TARGET="dist.j2se"
+EANT_EXTRA_ARGS="-Dskip.proguard=yes -Dsvn=true -Dsvnversion=true -Dbuild.current.revision=Gentoo"
+EANT_GENTOO_CLASSPATH="commons-imaging,jcalendar-1.2,jchart2d,jopt-simple,rxtx-2,swing-layout-1,swingx-1.6,swingx-ws-bt747"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ # Fix for newer jchart2d.
+ epatch "${FILESDIR}/jchart2d-3.2.patch"
+
+ # Remove all the bundled stuff.
+ rm -rv dist/ lib/ || die
+
+ # GraphicsUtilities moved in later SwingX versions.
+ sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
+ src_j2se/net/sf/bt747/j2se/app/list/FileListCellRenderer.java || die
+
+ eapply_user
+}
+
+src_install() {
+ dodoc {ChangeLog,README}.txt
+
+ java-pkg_dojar dist/*.jar
+ java-pkg_dolauncher ${PN} --main bt747.j2se_view.BT747Main \
+ --java-args="-Xmx192m"
+
+ doicon "${DISTDIR}/${PN}.gif"
+ make_desktop_entry ${PN} BT747 bt747.gif
+}
diff --git a/sci-geosciences/bt747/files/jchart2d-3.2.patch b/sci-geosciences/bt747/files/jchart2d-3.2.patch
new file mode 100644
index 000000000000..8f81a5a4a59d
--- /dev/null
+++ b/sci-geosciences/bt747/files/jchart2d-3.2.patch
@@ -0,0 +1,15 @@
+--- src_j2se/net/sf/bt747/j2se/app/trackgraph/TrackDisplay.java.orig 2010-03-08 22:15:41.000000000 +0000
++++ src_j2se/net/sf/bt747/j2se/app/trackgraph/TrackDisplay.java 2016-02-10 22:17:02.188118721 +0000
+@@ -46,9 +46,9 @@
+ heightAxis.getAxisTitle().setTitle("Height");
+ speedAxis.getAxisTitle().setTitle("Speed");
+
+- setAxisXBottom(timeAxis);
+- setAxisYLeft(heightAxis);
+- setAxisYRight(speedAxis);
++ setAxisXBottom(timeAxis, 0);
++ setAxisYLeft(heightAxis, 0);
++ setAxisYRight(speedAxis, 0);
+
+ }
+
diff --git a/sci-geosciences/bt747/metadata.xml b/sci-geosciences/bt747/metadata.xml
new file mode 100644
index 000000000000..179b0d19f5c9
--- /dev/null
+++ b/sci-geosciences/bt747/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription lang="en">
+BT747 is software that can:
+ * Download recorded position data from GPS Data Loggers based on the MTK chipset.
+ * Convert GPS position data in many formats (HTML, GPX, KML, KMZ, ...)
+ * Geotag JPG pictures and position any other filetype on the map (voice, documents, ...)
+ * Runs on Handheld Devices (Palm, WinCE, Mobile Phones supporting Java (J2ME))
+ * Runs on Desktops (Windows, MacOSX, Linux flavors)
+ * Configure MTK Chipset Based Devices and Loggers
+ * Upload AGPS(EPO) data to MTK II Chipset Based Devices and Loggers
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">bt747</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/congen/Manifest b/sci-geosciences/congen/Manifest
new file mode 100644
index 000000000000..b77815299c0b
--- /dev/null
+++ b/sci-geosciences/congen/Manifest
@@ -0,0 +1,6 @@
+DIST congen-1.6.2.tar.bz2 293130 SHA256 8a8a458a2e797feb78183aa84656aad8064b8a40f0c0bb7a4d813d7d25e1f83c SHA512 21cabdf0fba8cfa8e72068db44e6db0288ce932f81f526f04421272550244de9c617dc12d2c162186cbb9f70d9a44aca48b6f132317fc2fa3c47860d2f58bad6 WHIRLPOOL d51588d177b32ad145c4594a8e8cf65814207f476708a6f5b26fefc77e994b19a9c44a3b18aa545bd735d130d096232df2488e38eb08f99b67846a66a77320db
+EBUILD congen-1.6.2-r1.ebuild 648 SHA256 b11796bed1431e4860544fdef1b84801f9bd56630ec0b6bcbe8240b481253115 SHA512 b85577888115fc3b2efa1dc91daa9dd7f64d34c99a3489cf9e596625dac36fc27cebe66cd186a4d29fea72a71102978a472b6576f86227462f033b73b99d2633 WHIRLPOOL b5d7b61de2d86214e6fa53055129c1b9352684a4253bf09f3e95eb54fa6aaff66dfb0d866b564fdbdf005f9bc9f177a22f2b6ea22e5b6656aad47869e82e07d0
+EBUILD congen-1.6.2.ebuild 646 SHA256 42c9a3b57e04ddc188f3bd72eeaf2ef98e036a869b41bdadc20178a400c5a778 SHA512 7c17606190ec8fcd4a83a39b51688be79a5fabbd503c6ed53e621554613a5e7363a2c534680df2343c7d4386a9484d570b67165f6a2f23bb169bca7343d249d0 WHIRLPOOL cceacf509ec1b527a7b5ddc1c89fe11979c0b1c35364a70601419433bf2d0c22bf76e69261e7bd14ef10806dc9ce0653385432c16d0e470ae34345af70943c3f
+MISC ChangeLog 3042 SHA256 39c0f865b854796a03e2f118b277106b289e02113fbae6cccf888ee8ded08123 SHA512 c184fb330e544d5f29e45ff50a640a5d62760d1cf0bd08d22404be81df0a94417e0321d48ab214fe36fbcc03855db5b234d16c3b0769558a822bfafbd1a3a190 WHIRLPOOL 481c3ed13ccc09b533339d4018ccea7be4c3ead4ae6418ad49fe9f74842f4bcf7027896dc6fc3849584af347e7eb9f3c885a2dc2d8eabc802dd5d15ff63b9f84
+MISC ChangeLog-2015 976 SHA256 8a9845e310a6d868ad25c3bdb55aa19cce666f41978e4ea02baffb88988446f1 SHA512 fd8d92b1baa19a58dc96a1875ef8e3f7b2a30ff5b866b463feaf6e40ef8e4eb8c47264caf13b03ad476e1a0ba51f426ec5c47ef49bbe95b81dec6bcba974dd83 WHIRLPOOL f5cb940dd298e6b994af45946c30693040b3acd48a9482a581726645507ec5d52a6a6d82d6095cc6a0e34b80e91dfdb6c9b899ee81cd66d4dd9d6040f4a5c9e0
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sci-geosciences/congen/congen-1.6.2-r1.ebuild b/sci-geosciences/congen/congen-1.6.2-r1.ebuild
new file mode 100644
index 000000000000..23c270b570a5
--- /dev/null
+++ b/sci-geosciences/congen/congen-1.6.2-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+MY_P=${P/_p/-r}
+DESCRIPTION="Calculate speeds, equilibrium arguments, node factors of tidal constituents"
+HOMEPAGE="http://www.flaterco.com/xtide/files.html"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+DEPEND=">=sci-geosciences/libtcd-2.2.3"
+RDEPEND="${DEPEND}"
+
+MAKEOPTS+=" -j1"
+
+S=${WORKDIR}/${P%_p*}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files
+}
diff --git a/sci-geosciences/congen/congen-1.6.2.ebuild b/sci-geosciences/congen/congen-1.6.2.ebuild
new file mode 100644
index 000000000000..758756a967d3
--- /dev/null
+++ b/sci-geosciences/congen/congen-1.6.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_P=${P/_p/-r}
+DESCRIPTION="Calculate speeds, equilibrium arguments, node factors of tidal constituents"
+HOMEPAGE="http://www.flaterco.com/xtide/files.html"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="static-libs"
+
+DEPEND=">=sci-geosciences/libtcd-2.2.3"
+RDEPEND="${DEPEND}"
+
+MAKEOPTS+=" -j1"
+
+S=${WORKDIR}/${P%_p*}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files
+}
diff --git a/sci-geosciences/congen/metadata.xml b/sci-geosciences/congen/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sci-geosciences/congen/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sci-geosciences/foxtrotgps/Manifest b/sci-geosciences/foxtrotgps/Manifest
new file mode 100644
index 000000000000..30ba51a1a5d6
--- /dev/null
+++ b/sci-geosciences/foxtrotgps/Manifest
@@ -0,0 +1,5 @@
+DIST foxtrotgps-1.2.0.tar.xz 1666752 SHA256 95b4f2d27af3d0ef7e8946d056cc10fb8b5a18c07c634f718522c8be3056a280 SHA512 fdea60bb22b223512ba75651386dcd3c2f7843f18dea8bde85b7498d8909931d44c2d877338c57d3a3b9e46ede9a29e14ecb918182142bce7e8cb5f4e674cb1b WHIRLPOOL f74b32c244ac5d4c844b6d336aec0e6c38a45e4bcbb6045ac10bef2e81c938cb8c6e28080887e27855a1275f03c0a66abb3dc6a8e6b25b519cfa8a9083babb76
+EBUILD foxtrotgps-1.2.0.ebuild 571 SHA256 b899b459b0ffdacc2505fa7997f896f232d0b72a112a5fd522f77e0febcd0559 SHA512 c58687d81bd2988d7a5dd815cb28eeaaafbeeb1481aad7792cad4d71aa6f9087be96ab6d20271988c9e65786e601f6130b6b78703648c3068d40872c1920c853 WHIRLPOOL eef6f79c4da706ed3ca945e2937f507046dca93b5c9d3f0248f024cb5554862a47dc7cec1ab48cfa64135d7356407e61831d1dee1783dab38b1b6f8284f9f1da
+MISC ChangeLog 2941 SHA256 a9cce1a69ca39d849044ecd708de09c329b5347cf42e1511cced80ecb132e57a SHA512 4e142839b2a9f020f8cf4d04fb8e335cdf65db82661960842de6786d5cd81c242db60eb3a5f1d4f9ac4d58b8215340ddb1725af3473c184744be94bb58309bdd WHIRLPOOL 192500cb47b35373bb5ef3f74e47f40deeff0cc730e85be1f97600c707fb6469fcf38b031ecdcf29fd9a917632dde018e9a36d8cbcda05cd4e17f2371292b686
+MISC ChangeLog-2015 1763 SHA256 0cd23ce39ec140a53ffc6f3556e2b84f1e1ba4e612b1c610df974f125f66c03c SHA512 9e90137aba57f232729a005a9ac5c7ed400c3ca62ae923fb2fcde633bece67ea622632fd1ca9de08b64cc55dc43e5d22431c5cec3657cf1d78442e911d850254 WHIRLPOOL d4032f61c37083d339b2ee252c21577f283c3e6c99c259951a9617ff5e460efc88926ca66f41d5a67055fe03ceb49a1638b73ce81d66c186061a55f0bf1b31a6
+MISC metadata.xml 638 SHA256 9bfb6e19cf26f92b8cf574fdec37e8fa599f4fd19db1b55fc813ae61ab4f7765 SHA512 e527ac4bbf4c1b1ee71264ca8d533bab5daecdc3bcb2e75f9464f79de4ff678d22c37c82bd6dae7cb64c65f67d56c13897dcc8f3eedf559cd584762db4b6c5e9 WHIRLPOOL 8694736271c976d9b429ccc3929d32ca851252f952d8bd193d88c0113c32c7f19c4976deb33a65dab5e6230dad3e63dd9675516916ee8fc72f0552fd536bb8a0
diff --git a/sci-geosciences/foxtrotgps/foxtrotgps-1.2.0.ebuild b/sci-geosciences/foxtrotgps/foxtrotgps-1.2.0.ebuild
new file mode 100644
index 000000000000..4afbd286b6a7
--- /dev/null
+++ b/sci-geosciences/foxtrotgps/foxtrotgps-1.2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit gnome2
+
+DESCRIPTION="Easy to use, fast and lightweight mapping application (fork of tangogps)"
+HOMEPAGE="http://www.foxtrotgps.org/"
+SRC_URI="http://www.foxtrotgps.org/releases/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ dev-libs/libxml2:2
+ gnome-base/gconf:2
+ gnome-base/libglade
+ media-libs/libexif
+ net-misc/curl
+ >=sci-geosciences/gpsd-2.90
+ sys-apps/dbus
+ x11-libs/gtk+:2
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+"
diff --git a/sci-geosciences/foxtrotgps/metadata.xml b/sci-geosciences/foxtrotgps/metadata.xml
new file mode 100644
index 000000000000..d196f9fe5744
--- /dev/null
+++ b/sci-geosciences/foxtrotgps/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription lang="en">
+FoxtrotGPS is an offshoot of Marcus Bauer's excellent Free &amp; Open Source tangoGPS application, with a focus on cooperation and fostering community innovation. FoxtrotGPS is freely available to the public for use, redistribution, and modification under the terms of the GNU General Public License 2.0 (GPLv2).
+</longdescription>
+</pkgmetadata>
diff --git a/sci-geosciences/gdal-grass/Manifest b/sci-geosciences/gdal-grass/Manifest
new file mode 100644
index 000000000000..134e71c5e698
--- /dev/null
+++ b/sci-geosciences/gdal-grass/Manifest
@@ -0,0 +1,7 @@
+DIST gdal-grass-2.0.0.tar.gz 56286 SHA256 e05b4bedb67d624b86b84fc23a680fc408c6c3444dc94555f6f6febc3c506e69 SHA512 cefa60773c2acd5c1627b896e3298d02f51979c12f70ce67b88c0b886a13de2f62821a3d3e50984f5c676ef37819c685795949b06db57004a0edf8039e898d7e WHIRLPOOL c6c0bf3a06388188a173c14f6f8f4cbe295f849c5950c68f413a357fb4efaf2ddb5a78ea4ced7bd4b6786c979299b7dc5754196ee68ee87a31962f578599a90a
+DIST gdal-grass-2.1.0.tar.gz 54299 SHA256 1faa5d244ebcb5295cab7814c661ba1dee72b27c0e3848677e34b0c97c8111d0 SHA512 fb06b71839849de413f68beb8f2cd1c2273cc48b5205fe1b255ffc4976f8f913b4b226eba186a24f5b40fe5fbb1ceeab760d06915222e4a4b269a6fbc7bc9417 WHIRLPOOL 661b45ed7292a5d43bcf5b483c0d93edc42c7cd55281ef53331fc2690a36d527736c3fcf15a63b4e5f71e2987f9612ad70f2665650b67eff8e4316f39dfcaf7c
+EBUILD gdal-grass-2.0.0-r1.ebuild 1243 SHA256 4a0fd98ae077d300e2ef3e9c775d415cd42d5270e45fdb988097b47cb4bd666f SHA512 0bc907a202bd935f4e5291feb6e64dbdda086f0dd9150b778675b64e3f6e1025e9ff8e9904a5dc581a7a638a390e1d1a98cf74092c94962d3fa445c2467dff44 WHIRLPOOL 9ecf1be14cc567c3df5d61336dd73bdff2412a4a27829ad325f3589a1898e810c1eb26b9ca3d36219f9ec2cd8fcd09fbe3be453a58ae440168e2fe1bb7bb1c9a
+EBUILD gdal-grass-2.1.0.ebuild 1243 SHA256 4a0fd98ae077d300e2ef3e9c775d415cd42d5270e45fdb988097b47cb4bd666f SHA512 0bc907a202bd935f4e5291feb6e64dbdda086f0dd9150b778675b64e3f6e1025e9ff8e9904a5dc581a7a638a390e1d1a98cf74092c94962d3fa445c2467dff44 WHIRLPOOL 9ecf1be14cc567c3df5d61336dd73bdff2412a4a27829ad325f3589a1898e810c1eb26b9ca3d36219f9ec2cd8fcd09fbe3be453a58ae440168e2fe1bb7bb1c9a
+MISC ChangeLog 3956 SHA256 c0fb2aa8073fb6047a1daaf576a3cf192d40b9c0209d5f3a563a142daeab258a SHA512 95bfc7233f92b0c9b5e2653ae6f3357d981c314de0ea917adf60873fb42dd9bd1eeb8a459bbdeb47cd7faece72be1e2cc8095405115036dfb75e5bb520bc8b66 WHIRLPOOL 24f5985bca07a77816b9a8c4e211bb411005d959276a1aff5f59b425fd339f888f8fd02d2f10d93907518a7acb8fe4f0c168c66d510942761749040ef5b507ba
+MISC ChangeLog-2015 1302 SHA256 e8bbf5064a5bc4c226e43c5126f7c318d76ea9a79e7d178267185b068464cb48 SHA512 92a8224ed65b37b9867d3e7a7a81eb7885ec8e864434d813ef45d169b5329077ad0f426c76b91dec9995a2abe583f3f19435a632719b0bf15b3763f6b6023baa WHIRLPOOL fca0bcb0c5e8d507938afdb2d3a30c5b7491dc192004503fde027db3a5d6efb0f6156b0a377821b5c64bbfbda4c0c1a81cbac940743f2cc6c41e19978c23dbca
+MISC metadata.xml 483 SHA256 eacac4c0fa07cfd6ea989f9ae646fd38a032981f58344696035142c14ffb1f9a SHA512 83e82a4e02986964a80b60fed33ac6828d7be430ac7296ddcfec13fc1e867b77d18a30f4e9043e335a80140fc358711ca289265ed20b603d9b6a9af74157dd62 WHIRLPOOL 3be38fc22bceecb978a9885d5c12e13e400b024abcbc1a37c87a819616829d70b86794c3835ad51e3d78416b384dd87b9f28c7f59006c5eb30bb9cd01cfc77fe
diff --git a/sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild b/sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..15f158c06f4f
--- /dev/null
+++ b/sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="GDAL plugin to access GRASS data"
+HOMEPAGE="http://www.gdal.org/"
+SRC_URI="http://download.osgeo.org/gdal/${PV}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="postgres"
+RDEPEND="
+ >=sci-libs/gdal-2.0.0
+ sci-geosciences/grass:0=
+"
+DEPEND="${RDEPEND}
+ dev-libs/expat
+ dev-libs/json-c
+ virtual/jpeg
+ media-libs/tiff
+ sci-libs/libgeotiff
+ sci-libs/proj
+ sys-libs/zlib
+ postgres? ( dev-db/postgresql )"
+
+# these drivers are copied at install from the already installed GRASS
+QA_PREBUILT="/usr/share/gdal/grass/driver/db/*"
+
+src_prepare() {
+ sed -e 's:mkdir ${GRASSTABLES_DIR}$:mkdir -p ${GRASSTABLES_DIR}:' \
+ -i Makefile.in || die
+ default
+}
+
+src_configure() {
+ econf \
+ --with-grass="/usr/$(get_libdir)/grass70" \
+ --with-gdal="/usr/bin/gdal-config" \
+ $(use_with postgres postgres-includes "/usr/include/postgresql")
+}
+
+src_install() {
+ #pass the right variables to 'make install' to prevent a sandbox access violation
+ emake DESTDIR="${D}" \
+ GRASSTABLES_DIR="${D}$(gdal-config --prefix)/share/gdal/grass" \
+ AUTOLOAD_DIR="${D}/usr/$(get_libdir)/gdalplugins" \
+ install
+}
diff --git a/sci-geosciences/gdal-grass/gdal-grass-2.1.0.ebuild b/sci-geosciences/gdal-grass/gdal-grass-2.1.0.ebuild
new file mode 100644
index 000000000000..15f158c06f4f
--- /dev/null
+++ b/sci-geosciences/gdal-grass/gdal-grass-2.1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="GDAL plugin to access GRASS data"
+HOMEPAGE="http://www.gdal.org/"
+SRC_URI="http://download.osgeo.org/gdal/${PV}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="postgres"
+RDEPEND="
+ >=sci-libs/gdal-2.0.0
+ sci-geosciences/grass:0=
+"
+DEPEND="${RDEPEND}
+ dev-libs/expat
+ dev-libs/json-c
+ virtual/jpeg
+ media-libs/tiff
+ sci-libs/libgeotiff
+ sci-libs/proj
+ sys-libs/zlib
+ postgres? ( dev-db/postgresql )"
+
+# these drivers are copied at install from the already installed GRASS
+QA_PREBUILT="/usr/share/gdal/grass/driver/db/*"
+
+src_prepare() {
+ sed -e 's:mkdir ${GRASSTABLES_DIR}$:mkdir -p ${GRASSTABLES_DIR}:' \
+ -i Makefile.in || die
+ default
+}
+
+src_configure() {
+ econf \
+ --with-grass="/usr/$(get_libdir)/grass70" \
+ --with-gdal="/usr/bin/gdal-config" \
+ $(use_with postgres postgres-includes "/usr/include/postgresql")
+}
+
+src_install() {
+ #pass the right variables to 'make install' to prevent a sandbox access violation
+ emake DESTDIR="${D}" \
+ GRASSTABLES_DIR="${D}$(gdal-config --prefix)/share/gdal/grass" \
+ AUTOLOAD_DIR="${D}/usr/$(get_libdir)/gdalplugins" \
+ install
+}
diff --git a/sci-geosciences/gdal-grass/metadata.xml b/sci-geosciences/gdal-grass/metadata.xml
new file mode 100644
index 000000000000..927df4a9049c
--- /dev/null
+++ b/sci-geosciences/gdal-grass/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wraeth@gentoo.org</email>
+ <name>Sam Jorna</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <use>
+ <flag name="postgres">Include support for <pkg>dev-db/postgresql</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/gebabbel/Manifest b/sci-geosciences/gebabbel/Manifest
new file mode 100644
index 000000000000..be4d8f456572
--- /dev/null
+++ b/sci-geosciences/gebabbel/Manifest
@@ -0,0 +1,6 @@
+AUX gebabbel-0.3-gcc45.patch 427 SHA256 778680e2542f7f2154d1be036190d8e8ee0e8a3459cb71ce1241473c161f9117 SHA512 ff98d0bb776dd02c06884d73b08a809a5915d8f43ded34ce28249b9383a91c3b43cac32d1d5b91a69ef96e264c6550023386836e20f818ce2d1cc1e86e4c0d27 WHIRLPOOL da2d053cfa243208a4fd0655fd8afa25872e2812f8805efe4be3c5b9c387bfbafec5fbfccba6a941d9b4f707fbd66f5d934982c2e287fbcf06b920e2f794677e
+DIST Gebabbel-0.4-Src.tar.gz 9698769 SHA256 dcf3543412525959eaad755673fa65412077735fec400e6e62b1bd2c94ec1adf SHA512 96750cf1d3e627b8071d1693c7b31a2fb056f533c6e9de09e4de3550d7a923388c6b8f9634695d19708fd509ec9da537a0b1d477554d7249204754b55dd684f2 WHIRLPOOL 9592f32467505ae4bdd7858750648aa6c798768b94d95fcc97439de5e297ec366d8098010a7085de6babd08d24880ab8c4d28844fcd9a908f89d0f83784b6d17
+EBUILD gebabbel-0.4.ebuild 807 SHA256 104471e0b69a9227e2ba9b328ea5dca42cd3b0e3e0e0860a478c515dbb9a54a3 SHA512 acb4db287b00824e92b6ea1501c5ee53ee0971e6d83973df31b6cf68fcb90ea4ac4290ef29f1297a9e729193f16c87c59f2abeb0e0a56e239e79d6cd892d7676 WHIRLPOOL 36f15ba5b8cd26d367a15843e662765f7fc5d215193b9942c14c93505c3da20da2874e274d8dcf60ade8ebe78d11c5871fd1a9f8bd207fdce4d98b2047d4ca87
+MISC ChangeLog 2585 SHA256 7c95b24d2df9aaf3111ea4dadac12c60bb46b5a488495be5b68711311c286ce1 SHA512 9439b59dfba7f773cbf69d2d4ff01fb6a1544cd7723f1ececfc59f4bf5ce8d772a39f01226cc029ea700942ae72824832170d533521b1b396b5661a5d74bd21f WHIRLPOOL 8dd3acfe560379e32bd03aedff19a523aed3c61bacda02af3a7c7255dd0aa1f6a674b7326963a4421a385282f633942b95cc94960d76c0f55e1b7e81fd90faaf
+MISC ChangeLog-2015 1696 SHA256 948707547c3c31d3188baab59e755e417188069db0dd84443e32e00bafbcf7a2 SHA512 f07d1a400d4468509f40bf2e7327e73f1a2c759aa1e57fe1790947bfb21c10984b8376db76e5e563f3df1f4ef12caa058670959ce5f8e420f6601cf694e73614 WHIRLPOOL 08f99eb1495534bc7c108bb24e977f1efeb8012a4ff119bdbd23f05099f92bf149dea4a6397171945275072d91dbb1d8b5f2f1b7bf22c040c4861d476a39c46b
+MISC metadata.xml 347 SHA256 ce13000f8cc409bf3a9ffdf1136e1969500755c01c720b97e5a6164d8f0de76c SHA512 c5570209bced7856e1f4db36d0e976f766010525bd3076c26bcadec76c1935bd58561ca02163042a7e2d58ec1397f96500a5ab896b94165b2099dd76818b705b WHIRLPOOL cc25303af034575135849935f550d80b02fa3b73b2d83fdef07f00338c60fd4868d862b3f2e7831a68af92a923a12a3927884ed098068e39ffa3d4bf5dd41b12
diff --git a/sci-geosciences/gebabbel/files/gebabbel-0.3-gcc45.patch b/sci-geosciences/gebabbel/files/gebabbel-0.3-gcc45.patch
new file mode 100644
index 000000000000..f8e7b47f338d
--- /dev/null
+++ b/sci-geosciences/gebabbel/files/gebabbel-0.3-gcc45.patch
@@ -0,0 +1,15 @@
+Fixing build with gcc 4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=318579
+
+--- a/src/MyMainWindow.cpp
++++ b/src/MyMainWindow.cpp
+@@ -219,7 +219,7 @@
+
+ // Creating the toolbar
+ MainToolBar = addToolBar( tr( "Main Toolbar" ) );
+- MainToolBar->setIconSize( QSize::QSize( 16, 16 ) );
++ MainToolBar->setIconSize( QSize( 16, 16 ) );
+ MainToolBar->setAllowedAreas( Qt::TopToolBarArea );
+ MainToolBar->setMovable( false );
+
diff --git a/sci-geosciences/gebabbel/gebabbel-0.4.ebuild b/sci-geosciences/gebabbel/gebabbel-0.4.ebuild
new file mode 100644
index 000000000000..38141acd13ba
--- /dev/null
+++ b/sci-geosciences/gebabbel/gebabbel-0.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P=${P/g/G}
+
+inherit qmake-utils
+
+DESCRIPTION="Qt-Frontend to load and convert gps tracks with gpsbabel"
+HOMEPAGE="http://gebabbel.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-Src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4[accessibility]
+"
+RDEPEND="${DEPEND}
+ sci-geosciences/gpsbabel
+"
+
+DOCS=( CHANGELOG CREDITS )
+
+PATCHES=( "${FILESDIR}"/${PN}-0.3-gcc45.patch )
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+ # do not mess with cflags
+ sed \
+ -e "/QMAKE_CXXFLAGS/s:=.*$:= ${CXXFLAGS}:g" \
+ -i *.pro || die
+}
+
+src_configure() {
+ eqmake4 Gebabbel.pro
+}
+
+src_install() {
+ dobin bin/${PN}
+ einstalldocs
+}
diff --git a/sci-geosciences/gebabbel/metadata.xml b/sci-geosciences/gebabbel/metadata.xml
new file mode 100644
index 000000000000..e9dd5e2e89a6
--- /dev/null
+++ b/sci-geosciences/gebabbel/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gebabbel</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/geocode-glib/Manifest b/sci-geosciences/geocode-glib/Manifest
new file mode 100644
index 000000000000..43d24a2198d2
--- /dev/null
+++ b/sci-geosciences/geocode-glib/Manifest
@@ -0,0 +1,7 @@
+DIST geocode-glib-3.20.1.tar.xz 371200 SHA256 669fc832cabf8cc2f0fc4194a8fa464cdb9c03ebf9aca5353d7cf935ba8637a2 SHA512 0016b04928d3d7e9e3339bf1457d5ba7951af7af53b72a185f9cb3e92e9d1b1deb7ca11f95de1bcb0a3521a5b200ce3c25bb35eaf8bf15b81672846ec01b718f WHIRLPOOL 5aab167244191ac29489fee4f7b68cd7c41a820d4ad127fd6412f8adbf00b7dfba03a1d372ac064054429d9442d5178314597b93ada19c0c1e66bd6f4781736b
+DIST geocode-glib-3.24.0.tar.xz 413536 SHA256 19c1fef4fd89eb4bfe6decca45ac45a2eca9bb7933be560ce6c172194840c35e SHA512 0e3910e99d164fdf5afd6befbcb7139a56779834fb1f2a318951c03e5196a31c4dafd7f88c37c7014377f15cd4d4b81e7080a440881e2c50aadaadf621abe3b6 WHIRLPOOL 23e19aa31ccbc0196d890e71c76d45c6b2d585a7a635d146a9e50a655a7c108562a641b242637ba5279c7d6bb5b362e8ad3c1f3e3e760b88cdde3604339b7097
+EBUILD geocode-glib-3.20.1.ebuild 1150 SHA256 24f558bd1af8152e554f9397913e5f3e5ffdfe3ca5b337dd4c110e6677ff4fa7 SHA512 d8225ebb02239aaf5a3791b6ebbc035bc7eaef41a400443f496e7703c905d9ccade3b1c0d218dcbd8ee269f949c3fc24cb815c6f8367f9329868ac9d5c242ce0 WHIRLPOOL 76e9e095d25dc200766dc6bdd8c7370d4204e9816dc88530deaeb4f1836010d9de3289b918fa92233bcec4e5b8cbe386b3a4af152ad6223c4ad3b32f2941732f
+EBUILD geocode-glib-3.24.0.ebuild 1128 SHA256 94e962c9b25bd42c3b6e2096a29ba97b786b32859b30fe25fac898cfa0ba5fdd SHA512 7c3e9418d5f234d558f4070df96e5dbd16222f71851ff052d7498ea0fbe5cf77b9f5797ce7dee22dcacd8819ff24593d9ef2670b1c036e23c12382cadc26898c WHIRLPOOL ccef77557c700249ee0a06ef4e2891eb98633b6389b5913bc6ec59ee2968c664c3d2216592ba0af1be66c50ad63d68381875db191e78d83c23bdc8ec76e0526b
+MISC ChangeLog 5623 SHA256 b6226eadcc9c5fd397b5ffb7a677f931fa8b61d32038881aa15c95758f268384 SHA512 b59f3b82703e8214d5f958c1eb2083f19acc4a23a0f727709e8e92fe93678b80a1f5e7363754114f0bc3c2c16a34625b9b8061796341b5a68114855b850ac7ab WHIRLPOOL 4c878a9007d2e509bc30e04216294806c4a75a84fe94a2ebd64334bb1b450780961fd8fcc3031d4985efe87fbbf21739dfae551ac001c8ef3412be31c7bf8705
+MISC ChangeLog-2015 4035 SHA256 fe00f6bfee84c0223ec5993513f9262522bebbcbe5e97164b758386c0eb18d9c SHA512 ad0a82b8d3a4a48d029b962da6a09342c729ce4dad4e37ac1f8dbb816baa4585ee1775dc2c981a3a2ba3648109e447f7a31662859ba43c55350b21ce3c6bd741 WHIRLPOOL aca4a4d034cf278b1c7ca1f3e627668503b50f648c94662590d8994352c27f89737eb219b88d0e654842422ebb7feba088e79fe5bf854992b9aabecc49540e3b
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/sci-geosciences/geocode-glib/geocode-glib-3.20.1.ebuild b/sci-geosciences/geocode-glib/geocode-glib-3.20.1.ebuild
new file mode 100644
index 000000000000..20b873a33c43
--- /dev/null
+++ b/sci-geosciences/geocode-glib/geocode-glib-3.20.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="GLib geocoding library that uses the Yahoo! Place Finder service"
+HOMEPAGE="https://git.gnome.org/browse/geocode-glib"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="+introspection test"
+
+RDEPEND="
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/json-glib-0.99.2[introspection?]
+ gnome-base/gvfs[http]
+ >=net-libs/libsoup-2.42:2.4[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-0.6.3:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.13
+ >=sys-devel/gettext-0.18
+ virtual/pkgconfig
+ test? ( sys-apps/dbus )
+"
+# eautoreconf requires:
+# dev-libs/gobject-introspection-common
+# gnome-base/gnome-common
+
+# FIXME: need network #424719, recheck
+# need various locales to be present
+RESTRICT="test"
+
+src_configure() {
+ gnome2_src_configure $(use_enable introspection)
+}
+
+src_test() {
+ export GVFS_DISABLE_FUSE=1
+ export GIO_USE_VFS=gvfs
+ ewarn "Tests require network access to http://where.yahooapis.com"
+ dbus-launch emake check || die "tests failed"
+}
diff --git a/sci-geosciences/geocode-glib/geocode-glib-3.24.0.ebuild b/sci-geosciences/geocode-glib/geocode-glib-3.24.0.ebuild
new file mode 100644
index 000000000000..d2a1d05bf0f5
--- /dev/null
+++ b/sci-geosciences/geocode-glib/geocode-glib-3.24.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="GLib geocoding library that uses the Yahoo! Place Finder service"
+HOMEPAGE="https://git.gnome.org/browse/geocode-glib"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+introspection test"
+
+RDEPEND="
+ >=dev-libs/glib-2.44:2
+ >=dev-libs/json-glib-0.99.2[introspection?]
+ gnome-base/gvfs[http]
+ >=net-libs/libsoup-2.42:2.4[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-0.6.3:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.13
+ >=sys-devel/gettext-0.19.6
+ virtual/pkgconfig
+ test? ( sys-apps/dbus )
+"
+# eautoreconf requires:
+# dev-libs/gobject-introspection-common
+
+# FIXME: need network #424719, recheck
+# need various locales to be present
+RESTRICT="test"
+
+src_configure() {
+ gnome2_src_configure $(use_enable introspection)
+}
+
+src_test() {
+ export GVFS_DISABLE_FUSE=1
+ export GIO_USE_VFS=gvfs
+ ewarn "Tests require network access to http://where.yahooapis.com"
+ dbus-launch emake check || die "tests failed"
+}
diff --git a/sci-geosciences/geocode-glib/metadata.xml b/sci-geosciences/geocode-glib/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/sci-geosciences/geocode-glib/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/gmapcatcher/Manifest b/sci-geosciences/gmapcatcher/Manifest
new file mode 100644
index 000000000000..fb8e1ff1f6e1
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/Manifest
@@ -0,0 +1,6 @@
+AUX gmapcatcher-0.8.0.4-setuppy-docs.patch 836 SHA256 840abad39048a17e00236290ce940066782bdd46536cac43337fe9244964cddf SHA512 784c5557839d975bb4bbe179f5585c330eee1f09739f91edee41498b6b2091a5a07a7492c926c1c874826bb1dc525f5253d8681facaa5a2f5b0cfe422f322ce2 WHIRLPOOL dbd2bcc999e75329c7e381b35f47cc600e052b2bfe5b8cc839cb14016c44d1b5a93a67802b79c3584ec7d195d0046d5589876630332087260d1d99e4b15501a1
+DIST gmapcatcher-0.8.0.4.tar.gz 3782763 SHA256 c08a8116c9be323801bb897474d0b312157d1e523658500ae85898a68abe72b1 SHA512 9ff11ca2c61f01090e7cd616c5fe0c4faf7fb1eb11962071601d87a7f84b309b25de36c82d713c1d08ffdb0f806c8fcccfc877ac7fc5eadf3d49625ce360d719 WHIRLPOOL 045c84b78421b9db48b697682b7b8b863480286a214cc81f72f2cffcb97c652c827d940a22c333c929a30eb88ec96fc806315c6a53290df56471de23c9950928
+EBUILD gmapcatcher-0.8.0.4.ebuild 1161 SHA256 25441ff95d079e907e2816d3b711a298ff83d4c0d89b95be4f9c58dc925aff0c SHA512 478d83149bfc8e00467135989ef16db91534b198f991a537fd24f2837c4778d931d1c77e7a7daa432c381262ff9e659a3f106a6ee3d911f1ea7568c699db4d95 WHIRLPOOL f17ccce8089ce8504f7ee11280f6a70aa92af4df02e758a136dd04534e2573e69b50fa49ac584371be4afc2a42675a689b1f45762c52d3c8f44f38e303feb8a0
+MISC ChangeLog 4034 SHA256 b78f18f3c3058f176957f2842d8bd0a7d0e9ae691b5b0ad22056d7818557da4d SHA512 9ce009a8cc4790e3c3f46856777563ea4c96c48dfd4cbd1784f91d46ea53058600ee6627d370f05e38fe38987ac4974f72259349471e90d38ad46da21388b08c WHIRLPOOL 7180d97dc553e71bf82868f7717a5133e50cb2ad9bef9560ab289a440b189f26c60edf25c9378a633b2bbce50ebff5135d64cf43ecb350a6b05ac8e37d3c10ce
+MISC ChangeLog-2015 792 SHA256 9b239f13d0fd98cfb9166945413a90e31f4ec3b1ea36f093d218013dc36d85d8 SHA512 867798589cce5c325d21540409676ae3d63e872959a8b0f4b83499006afb7df3ac7b51107265ca8d867c847a48098a4443875adee0f60f61a6c85bb78534f27d WHIRLPOOL 7b1f3edccf04a6e953684b159b35691961611469bfbd0526babe2f1e582773cbdef2a33dd1433dea8f33576cd4c662bf3b9b952932f265ed578d730ad1b418b2
+MISC metadata.xml 253 SHA256 002dfdeaaa53663f7512229bd2a28dbd77d8a7ed35a17bb7346905220934ee26 SHA512 a1c29277a89a78932d522342eb0cca76efb127dffdbd1ab26c2feadaa844d354ff0da3db4dbbf2a0ae1e3205752539b31fb461ec261e3097bdba4e900c0bf90e WHIRLPOOL 126ef3b46e66f959ef9a4ed1740fb40c97dad6605433ed2e1a9d48eb97aa163ead9496d117f1f030346868bca40e5362b3e1c9d6d765faa3763e95e9014003e3
diff --git a/sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch b/sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch
new file mode 100644
index 000000000000..77383f198992
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch
@@ -0,0 +1,18 @@
+Drop docs from setup.py, distutils-r1 takes care of it.
+Handle the man pages in the ebuild because the tarball does not
+contain compressed man files.
+
+--- a/setup.py
++++ b/setup.py
+@@ -13,10 +13,7 @@
+ description = 'Offline Map Viewer',
+ version = VERSION,
+ url = WEB_ADDRESS,
+- data_files = [('share/doc/mapcatcher', ['README', 'changelog']),
+- ('share/applications', ['gmapcatcher.desktop']),
+- ('share/man/man1',
+- ['man/mapcatcher.1.gz', 'man/mapdownloader.1.gz']),
++ data_files = [('share/applications', ['gmapcatcher.desktop']),
+ ('share/pixmaps', ['images/mapcatcher.png']),
+ ('share/pixmaps/gmapcatcher',
+ map(lambda(thestr): "images/" + thestr, os.listdir('images')))
diff --git a/sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild b/sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild
new file mode 100644
index 000000000000..50cf9f4b23ab
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit vcs-snapshot distutils-r1
+
+MY_COMMIT_HASH="b3156dc56d105bcab8a1123793dcc16b7f9f3a9a"
+DESCRIPTION="An offline viewer for different map providers"
+HOMEPAGE="https://github.com/heldersepu/GMapCatcher"
+SRC_URI="https://github.com/heldersepu/GMapCatcher/archive/${MY_COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+PATCHES=("${FILESDIR}"/${P}-setuppy-docs.patch)
+
+src_prepare() {
+ # Move things around to make setup.py happy
+ mv installer/setup.py "${S}/" || die
+ mv maps.py mapcatcher || die
+ mv download.py mapdownloader || die
+ mv images/map.png images/mapcatcher.png || die
+ sed -i -e "/Version=/d" -e "s/Application;//" gmapcatcher.desktop || die
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ doman man/mapcatcher.1 man/mapdownloader.1
+}
diff --git a/sci-geosciences/gmapcatcher/metadata.xml b/sci-geosciences/gmapcatcher/metadata.xml
new file mode 100644
index 000000000000..fb6f59fe329f
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">heldersepu/GMapCatcher</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/gmt/Manifest b/sci-geosciences/gmt/Manifest
new file mode 100644
index 000000000000..67756d6f86d4
--- /dev/null
+++ b/sci-geosciences/gmt/Manifest
@@ -0,0 +1,25 @@
+AUX gmt-4.5.0-no-strip.patch 1963 SHA256 c08daec9357087e52026faeec2398a888fc0b7c145511f01016734e41bbc1fea SHA512 8ef2ca6acf17b092989ce7b8c91a3f42b82b074d606d2635c7b5a03355fcd3f83b3d08ef83747e51f5eb6e6ed9cb9a683208797d49da7b8f0714ed0c8f2e6155 WHIRLPOOL 6d10111b14637f020d529dedcb248a240a09218e2a06ad43f593400a4ec98763f182c0c8cbf34c53359d15391aeef13a7b0f3e34a4a888af4d056efa95c1bf44
+AUX gmt-4.5.6-respect-ldflags.patch 2396 SHA256 c690c160cd7fad23a0ce0171aae47a4a275ff03203418de27d77fbab5d2b525a SHA512 c2cc4986a1211a75856391cd0c731f37d9cf8e2ad28fdf29f532ed03308f2ef7f309a0bc525bb08c976c4535e8cbe77789546eb8585ddcedf016af32769e5420 WHIRLPOOL 868c7c567f69c1e54dc56b26723e9cef09e03a1cdfd86ad2f2f821dff96aa3f37fe20064c2495bf15cb84f60cec3ddec3fcfbef5712270fe70ce1307d0b6f45b
+AUX gmt-4.5.8-bfr-overflow.patch 1576 SHA256 61602cbdd6d233882b9bda79f96897a1dcd82e5a572267102c61d6b68ec084a2 SHA512 fd2c137047333ef4494bba28339c1f8a34e83acc2646db514e0d2289e60acca5f6ac360d1dab27d84a088ce4a1c8c3af5f5cd4ae57485bb14eb08a668ea8ecc9 WHIRLPOOL 4ae526a59b2776cb54da27b377fdad47d8af344bc44e75bc9a8f21c3eeeca31401abb508f6ec777186bdc27c27744c09e6e8d92770c16b2b27640201c343a131
+AUX gmt-4.5.8-impl-dec.patch 291 SHA256 b244567f01a35515249f85c5a8a4142aa2c1765c51a2b1315860574ba75ee67b SHA512 ed977bd1a19024a60682d6e422c202cb3c29ed5da1450d85558544d6aa300ac967595811c90143a4858213a6b60b8fffee453de8351666c55676371e00b144ad WHIRLPOOL 24b0d923e7f02a521c3692feb8774fde4794d71a91e10ba83fa86bf874ac711eb37844a0b421312635e5cf6e7344cf0ff8e4d7346b27fc45911913529eed6a6b
+AUX gmt-4.5.9-no-strip.patch 1246 SHA256 b72d6528aacd8869bc4d9f00e4d4bc72c1dab8aada2d911f72a36f03ff322b5a SHA512 271be4c32607bd4776cace933ed0a81a76fb5ea8ccc0c92f0f11cdf17f6b4f8740e2345323236af94dd4eb52323625cc82e5c661e22a008dcdc85f4d1d452b23 WHIRLPOOL 485c01f259dca075bbba6f709995488277af410f6adf4a63f2699cee0e8c8dd88ca6e4717a027068b21fb9f5b2908be0b64b7822faa7d8708f115fba03a225f4
+AUX gmt-4.5.9-unistd.h.patch 358 SHA256 396acb0dcc6990f91a2f29391bcd15fa448ad905c7fe5eedf935ada07f410639 SHA512 877e73b161d9fbb1fe17d5f575852be67cfd9eec31ff8b74ffeb7b00569e3061d5a85c55e6633c06f12147bf7e3ab2838ab2738c5fe4adf93065ce55e7884df6 WHIRLPOOL b04e63e5dd486b6d1f2116da89592e9b6786906c8e51940859f635358638b971eb037a853c7fb891686a2759180f88673d855dedc4d616c37571b920a9e21455
+DIST gmt-4.5.6-doc.tar.bz2 25230761 SHA256 9fbdf427ef06e666d83871c9e1241e5b578906b82e5c382d38fe75dfb40645dd SHA512 97d3ab39b8f015c7488d039af1578c9187f8fdd82e8492729150afb1ec658b2e5221d92145e0776348ecfd1a720004e9766760e3a20337b00f43f309150ae302 WHIRLPOOL 36a13a4a5bfae1f660fb684c5ebb6b2785cb3bef89d2840360f0cd61e4228c7ae4f147a1fcbd83f1dcb4d40f7d1afdfad1303ae354291424ccd630ae6f1aafd1
+DIST gmt-4.5.6-share.tar.bz2 43704 SHA256 364fcd62e1ed422d40399b92815e1196e916ea86f5a460cc799406754220234d SHA512 7b1ca938a291f06be83421d1324612851da74a2156bc7568da01b05f2a235eb2f36854abd4fac5c357f9e22df4f98a69410fc3e2e2117f72994db60c00780fc0 WHIRLPOOL a30b9b3bff58a0db9f70529c262c3db0a73a39aed962063f0299f3147973eae952f6edd0bbb58e4cfdb9b8530213bf16661d8970391852267354284f81a515d0
+DIST gmt-4.5.6-src.tar.bz2 1134118 SHA256 f58b24320e9ffd2a2196aa68689dbc8b3bf01a13c4efc30a28aba2dd5b65e7b4 SHA512 0cb06f6be7cf6a3f586f7d9b4579d5520fb15f6ef14eec216c60aa4b3fa9a3ca3308bf4683c8cc0bcf71f3c02ba74a0f9bf296fec4c1980d10adc4ba4a12024e WHIRLPOOL e58762ee4c2dd4cc553e8e1eb0e6a972f1060221944e1cebfe712bfbda19b579e5937a4ce1937d0743978989b087246b63c2fcad730b69e5685ef63e16107edc
+DIST gmt-4.5.6-suppl.tar.bz2 4137369 SHA256 572d23252055ed1e1d72f07e7aee86d92c4cd15b47fd55b0ecf39bfb7f014bee SHA512 7e1cd35da0a7f75800074cac4dd7f82ce17721953251c951c4f585f0cf159af6c2450fba20d9c02fad69ec7a689483de55cc652fcc600535255cf17ab528a027 WHIRLPOOL 55abc1471e582385420392a81c4d46c045cf85c94cbade0db6f6c9c0bb88e2a0cba7182125c686e1b4464f74ce8a06d99d4f57f55ebcccf62f538cbd29e8b646
+DIST gmt-4.5.6-triangle.tar.bz2 103426 SHA256 0ef5ca66eebd1386b1f59e2577cedb2d7e68c8bff83d4b57a648d1b04026a05c SHA512 3daabba610a50e72c2e9e5dd7fb22ff02547c598ff22f40f145f3f794447cde995ddbdcd2560954478806fc5edc2af4fb59615e405622daa4292e6dc2f0e4f5e WHIRLPOOL de80a48ddfa9edb82a4312843ec604c2e78e73b756212293f88d0ae4cdaf259f6de5eae5c0178b7fed53c7f640147f1705b4f685c21f2e4840f66330eea12b0d
+DIST gmt-4.5.8-non-gpl.tar.bz2 109125 SHA256 f68c9ee5d0376f0931643be9afc34f21f2f8752117c7fdfb46a7239c1acdc98f SHA512 04b3eefd1490b194d7797af86fc726dd84960d65dd955e5ddefaf6ea4ec5a98f6f00085acc0cc846aa70e986facf65221256dd6a625f918c6abe6ba0b6b06f64 WHIRLPOOL 882789617e091bd844ae2e30e80d328492d5b2a5b033ec2ac876ea2a95c0b1fb8e2b75f0d5529c4d9d20a74a2c782ebff4a8c61d53c0a651a96f0e0cb37df1e8
+DIST gmt-4.5.8.tar.bz2 39350328 SHA256 de3398acaf3ecb34f48c8a61a916c6037276793bd4b13bef376282a7731e54d4 SHA512 5bc3be1f7963df6a3035195e2123645d8a8b7a8a9aa17c89a6dd50560485706c628e0e0aca779930c4a28f2305fcc184981db728085d3373b2cad89e59d5c6fd WHIRLPOOL 2e09cd006818c3b656bacd54b9f28642993f26a5ada6d92ce52026bf0530746705fdba4a46aa44bd30855784b3f8cebc0047b2e3c683d24bdcb8d7c0025ffc69
+DIST gmt-4.5.9-non-gpl.tar.bz2 103494 SHA256 29103015063d61b5b6103775a1bd7cc56b053018bb2fa680213839a98215897b SHA512 a41cd94acbd014bed780797be1ac1b492388c7c8e0fcfc5e773e894e803a024bdc60b897589ad4db9af973f20606a87ac9cff606f0391641236bca95c0b7a4c5 WHIRLPOOL d59d894b2d6b5822a71501e51ab0e328c2fe9367c1d1c64591971004c594554fe8a692d84a1a76b84f614556f8c8d31ae83245a1c6fbc9a70aed53934272c7c1
+DIST gmt-4.5.9.tar.bz2 39325492 SHA256 9b13be96ccf4bbd38c14359c05dfa7eeeb4b5f06d6f4be9c33d6c3ea276afc86 SHA512 1edda71787fa2e1434a6891618d4523c39d04c2db285dadc66c1d52b425cfff6866c492926cae41d78d2a4e5118e8d003ef3d71d164e0c0695d71aaddb598242 WHIRLPOOL ca890bc544f0861bf722f623773d41fac294874be76b25222a71ac0f9ef725069982ca9f77c5ca7558eadcd2a8b8e8bd1a934bf467ba1ef873ccbbc1f9a024fb
+DIST gshhs-2.1.1-coast.tar.bz2 4322743 SHA256 9d78154cc316553e7ade8c79792d15e97469615f67e256e91b35da4bf0e64730 SHA512 6009139cc4760925817e789e0c9980ec6bde1310f521e6f43e5643b9eba1e859bb9a23bdc4bb661e66d32f4886ad3ad93f5af76ca93ac847307f9acd37eeb332 WHIRLPOOL 6658cd37fe2db73baa629566765e1657f5ecb214ccfad88c2cff7dd0524b45f89897f87ca7a8d1698e9ebd3a7592c437764a99c333c0967fa6bc18058381f653
+DIST gshhs-2.1.1-full.tar.bz2 29916230 SHA256 a81f6cdf64cad78c36b71c550079f11ebc11305b399f2c5354dc0d4087977938 SHA512 f4759d21514a63b1cf3a65c75aeab951740091235e3f19d832ad2c09416d2ab8d516a8f5bf0f6068c81f6c18f76734c4bf3772c37406c1df5abd4ae445f3d375 WHIRLPOOL acb9edd5d4d468b8903646155a6d85f80bdebd54debc7af0f04934010fb211b4da8c94396177de7410a9c92caef02e3a3dddc9e89075dfcda34843f45b1543f8
+DIST gshhs-2.1.1-high.tar.bz2 9712697 SHA256 a19e1e4b205419d56ae3dca98a71dd0001eb5aab2ebc5f436c1d7e6e741945c7 SHA512 a9c22d7ce285320d4ae22a1a446e7d7d446d1b0641abeb39d50e358d65011fd3e39761a61a41820a373df4d4ef950160f5aab71d2df899a8425caf7d162e6e0e WHIRLPOOL da74e96a61c3458591f196b15a48da79e8296d4a4475834c2c9f07bd98eab60676f4e04d0ecc6a5bfa95cda0b28c84fc982396438dd7a3fbcf7cad99341ba20a
+DIST gshhs-2.2.0.tar.bz2 47021761 SHA256 e6c6c93ae10c9476c33934d46f5fb54a4d12463bdfb46f8e1c2f189ed4a4dfd2 SHA512 a9c1550f24feeefbc7ae633cce41e737f8153bb7df974e942fb5b9f0c931a49707c737f34bf6316ac89aa9bf487a091ada08ca8d798e2a5385e75f3dc05fdf83 WHIRLPOOL 125aa0f8e4da1b1f62b0380250cd06ec2f5d1e0f7b8c2316feebd6a49bb229a8608156d1555e2e241772c716fc452f6c7cc38d64877e7ee44c1e76f0b09d3c59
+EBUILD gmt-4.5.6.ebuild 2311 SHA256 9a4afc47713d0b3b436c928faa432a34865b5d49ccca5a05de55af8bad7c8371 SHA512 c3ce34dbd2e000416eae85e98b582e4729de4ee4b1e09107e8930c9802970207b35a56c76e918bf89bbff4f582f8310b6dc8bc3d89a346b25cd4ac20e021cf8c WHIRLPOOL 9433b458546700976cc2809696891d11b4b5a4bebf39c91d9ed7fe291f3cd0ec98b71c396917f94eaf2d0694e22979d8aa5aa3ef1ee760afbd68bf449e2f4821
+EBUILD gmt-4.5.8.ebuild 1972 SHA256 b64eda7cd96ac020c9f838691d42af38e9bca4c5e41626403de634f93e9dfad5 SHA512 c8f810de340e6205c5b97a6e9c2accccda2f589941c435b2f09670761960858c43ab6fb42b20fdf62895052c96f6e59969036c71df3ee2f551e51f7dd110bee1 WHIRLPOOL b27c799664b55474319b76c22b6ec21fcdca8ecefac8d289d6418dcc6ed1865ed161a608998ac03c96c1a62aff399c2848d1b68cdfbb39f11ad9edae9c1a60b7
+EBUILD gmt-4.5.9.ebuild 1954 SHA256 c24c98721ea55cad38702e2106f600df8896394eb5636e6283c9bda0113d0401 SHA512 31974c6a7e26f02cf457aa4b178e32a5c556b1fce8226162b7178211e73569a2eb9df0f0e14d45c878a7c561a26e04a8e8d7e917aab9f7379c9dfba7dc1ab996 WHIRLPOOL 7e23131cfdcb6d76c86dad99759e228eec6656cc78b87b4ee4b13a2d736f14d4618fbd25090df0f63ee09af2d011188629f06f7e794fcdca2e921676d1fea5e2
+MISC ChangeLog 2893 SHA256 d7d764c1332a2c9f5258cbb8e7cee8d0e81ced06d19a55be78743c395c952dc3 SHA512 fccefde6c4004eda9ea5df3786dedfaa0a6bbf0e3a9635d1e342db1a4d6311c474453e37b623799feb589ec94c8483d814e6ea57bb15a16d2b887e83326639fe WHIRLPOOL 34343c77f6196ee007514887ee3dfd8da9645817ddaa59f65479039c4499ddc2b9dc80116ca99c24fa8e2125232d81295a4b9dd92f45c094fcb081813d94544d
+MISC ChangeLog-2015 6318 SHA256 f631a875a68936d4136cbe668f235b4e50ad1a3f49ecbd864c6124423d119c62 SHA512 1428f4a137e70b40a0b9650822c5189ea54efa66887a10d816c4f203d6dc118e829011a40063c6a69cb6b42b7f0f162d666cb524f0f722a3eeda4c337c166bc2 WHIRLPOOL d5035ac4944a45d5198d7380eaf8afc5c058cc8b8f5731758be247ee0c9ad4f9a9cf24b8d7616bf2e248024d476496723b7fafb4619f9ac7356d7a3eba638d87
+MISC metadata.xml 810 SHA256 a957f58792350fa5c2a312c2c7a6363a2728d5b424ff9ebb1753ce9a6d13df10 SHA512 647d1a082313d0894a6203cde5afbe729d084e3ed923a9f22850022acb632b0af1fe2dd14aaba6801b5656d1277be39559fa5f76a03e621a88eb6634fa2ec645 WHIRLPOOL 81a670d740be75cf6f9ed65d4d6e905da11c733e019252c9402573f5543ad28e9b8597cc052ed31e674d62ece0fe3eb7bb7b708c3032f307c1b6cae7fe1f44ad
diff --git a/sci-geosciences/gmt/files/gmt-4.5.0-no-strip.patch b/sci-geosciences/gmt/files/gmt-4.5.0-no-strip.patch
new file mode 100644
index 000000000000..f0fe4c3e833e
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.0-no-strip.patch
@@ -0,0 +1,62 @@
+Drop manipulation of several flags:
+
+* stripping of -g from CFLAGS, as it interferes with deliberate
+ generation of debug symbols and breaks on flags like -ggdb.
+* Addition of -s resp. -Wl,-x to LDFLAGS, as stipping of binaries is
+ done as a separate step on Gentoo (and many other distros) in order
+ to faciliate retention or splitting of debug symbols.
+* Setting of optimization flags, as the user should be free to choose
+ them.
+
+2009-07-27 Martin von Gagern
+
+Reference: http://bugs.gentoo.org/279268
+
+Index: GMT4.5.0/configure
+===================================================================
+--- GMT4.5.0.orig/configure
++++ GMT4.5.0/configure
+@@ -10665,19 +10665,6 @@ if test "X$enable_debug" = "Xyes" ; then
+ echo "${ECHO_T}yes" >&6; }
+ CFLAGS="$CFLAGS -g"
+ else
+- CFLAGS=`echo $CFLAGS | sed 's/-g//'`
+- if test "$os" = "Darwin" ; then
+- LDFLAGS="$LDFLAGS -Wl,-x"
+- else
+- LDFLAGS="$LDFLAGS -s"
+- fi
+- if test "$GCC" = "yes" || test "$os" = "Linux" || test "$os" = "AIX"; then
+- CFLAGS="$CFLAGS -O2"
+- elif test "$chip" = "alpha" || test "$os" = "AUX" || test "$os" = "HP-UX"; then
+- CFLAGS="$CFLAGS"
+- else
+- CFLAGS="$CFLAGS -O"
+- fi
+ { echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6; }
+ fi
+Index: GMT4.5.0/configure.ac
+===================================================================
+--- GMT4.5.0.orig/configure.ac
++++ GMT4.5.0/configure.ac
+@@ -527,19 +527,6 @@ if test "X$enable_debug" = "Xyes" ; then
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -g"
+ else
+- CFLAGS=`echo $CFLAGS | sed 's/-g//'`
+- if test "$os" = "Darwin" ; then
+- LDFLAGS="$LDFLAGS -Wl,-x"
+- else
+- LDFLAGS="$LDFLAGS -s"
+- fi
+- if test "$GCC" = "yes" || test "$os" = "Linux" || test "$os" = "AIX"; then
+- CFLAGS="$CFLAGS -O2"
+- elif test "$chip" = "alpha" || test "$os" = "AUX" || test "$os" = "HP-UX"; then
+- CFLAGS="$CFLAGS"
+- else
+- CFLAGS="$CFLAGS -O"
+- fi
+ AC_MSG_RESULT(no)
+ fi
+ dnl -----------------------------------------------------------------
diff --git a/sci-geosciences/gmt/files/gmt-4.5.6-respect-ldflags.patch b/sci-geosciences/gmt/files/gmt-4.5.6-respect-ldflags.patch
new file mode 100644
index 000000000000..07494380fdfb
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.6-respect-ldflags.patch
@@ -0,0 +1,56 @@
+diff -urN GMT4.5.6/src/Makefile GMT4.5.6.new/src/Makefile
+--- GMT4.5.6/src/Makefile 2011-03-03 22:02:50.000000000 +0100
++++ GMT4.5.6.new/src/Makefile 2011-06-07 14:48:00.969500019 +0200
+@@ -195,13 +195,13 @@
+ $(RANLIB) $@
+
+ libpsl.$(SL): libpsl.a
+- $(LD) $(LD_OPT) pslib.o $(LIBS) -o $@
++ $(LD) $(LD_OPT) $(LDFLAGS) pslib.o $(LIBS) -o $@
+
+ libgmt.$(SL): libgmt.a
+- $(LD) $(LD_OPT) $(LIB_O) $(TRIANGLE_O) $(ALPHA_SINCOS_O) $(NETCDF_LIB) $(GDAL_LIB) $(LIBS) -o $@
++ $(LD) $(LD_OPT) $(LDFLAGS) $(LIB_O) $(TRIANGLE_O) $(ALPHA_SINCOS_O) $(NETCDF_LIB) $(GDAL_LIB) $(LIBS) -o $@
+
+ libgmtps.$(SL): libgmtps.a libgmt.$(SL) libpsl.$(SL)
+- $(LD) $(LD_OPT) $(LIBPS_O) libgmt.$(SL) libpsl.$(SL) $(LIBS) -o $@
++ $(LD) $(LD_OPT) $(LDFLAGS) $(LIBPS_O) libgmt.$(SL) libpsl.$(SL) $(LIBS) -o $@
+
+ #-------------------------------------------------------------------------------
+ # program rules
+diff -urN GMT4.5.6/src/mgd77/Makefile GMT4.5.6.new/src/mgd77/Makefile
+--- GMT4.5.6/src/mgd77/Makefile 2010-11-01 23:39:16.000000000 +0100
++++ GMT4.5.6.new/src/mgd77/Makefile 2011-06-07 14:53:46.394181616 +0200
+@@ -93,7 +93,7 @@
+ $(RANLIB) $@
+
+ libmgd77.$(SL): libmgd77.a
+- $(LD) $(LD_OPT) $(LIB_O) $(GMT_LIB) $(NETCDF_LIB) $(LIBS) -o $@
++ $(LD) $(LD_OPT) $(LDFLAGS) $(LIB_O) $(GMT_LIB) $(NETCDF_LIB) $(LIBS) -o $@
+
+ #-------------------------------------------------------------------------------
+ # program rules
+diff -urN GMT4.5.6/src/mgg/Makefile GMT4.5.6.new/src/mgg/Makefile
+--- GMT4.5.6/src/mgg/Makefile 2010-11-01 23:39:16.000000000 +0100
++++ GMT4.5.6.new/src/mgg/Makefile 2011-06-07 14:54:48.096410233 +0200
+@@ -95,7 +95,7 @@
+ $(RANLIB) $@
+
+ libgmt_mgg.$(SL): libgmt_mgg.a
+- $(LD) $(LD_OPT) $(LIB_O) $(GMT_LIB) $(NETCDF_LIB) $(LIBS) -o $@
++ $(LD) $(LD_OPT) $(LDFLAGS) $(LIB_O) $(GMT_LIB) $(NETCDF_LIB) $(LIBS) -o $@
+
+ #-------------------------------------------------------------------------------
+ # program rules
+diff -urN GMT4.5.6/src/x2sys/Makefile GMT4.5.6.new/src/x2sys/Makefile
+--- GMT4.5.6/src/x2sys/Makefile 2010-11-01 23:39:16.000000000 +0100
++++ GMT4.5.6.new/src/x2sys/Makefile 2011-06-07 14:54:15.124822433 +0200
+@@ -83,7 +83,7 @@
+ $(RANLIB) $@
+
+ libx2sys.$(SL): libx2sys.a
+- $(LD) $(LD_OPT) x2sys.o $(ALLLIB) -o $@
++ $(LD) $(LD_OPT) $(LDFLAGS) x2sys.o $(ALLLIB) -o $@
+
+ #-------------------------------------------------------------------------------
+ # program rules
diff --git a/sci-geosciences/gmt/files/gmt-4.5.8-bfr-overflow.patch b/sci-geosciences/gmt/files/gmt-4.5.8-bfr-overflow.patch
new file mode 100644
index 000000000000..216149d93f78
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.8-bfr-overflow.patch
@@ -0,0 +1,27 @@
+diff --git a/src/mgd77/mgd77.c b/src/mgd77/mgd77.c
+index b27b1d9..6a25576 100644
+--- a/src/mgd77/mgd77.c
++++ b/src/mgd77/mgd77.c
+@@ -854,7 +854,7 @@ int MGD77_Decode_Header_m77t (struct MGD77_HEADER_PARAMS *P, char *record)
+ case 3: strcpy (P->Parameters_Surveyed_Code, word); break;
+ case 4: strncpy (P->File_Creation_Year, word, 4);
+ strncpy (P->File_Creation_Month, &word[4], 2);
+- strncpy (P->File_Creation_Day, &word[6], 4); break;
++ strncpy (P->File_Creation_Day, &word[6], 2); break;
+ case 5: strcpy (P->Source_Institution, word); break;
+ case 6: strcpy (P->Country, word); break;
+ case 7: strcpy (P->Platform_Name, word); break;
+@@ -865,11 +865,11 @@ int MGD77_Decode_Header_m77t (struct MGD77_HEADER_PARAMS *P, char *record)
+ case 12: strcpy (P->Funding, word); break;
+ case 13: strncpy (P->Survey_Departure_Year, word, 4);
+ strncpy (P->Survey_Departure_Month, &word[4], 2);
+- strncpy (P->Survey_Departure_Day, &word[6], 4); break;
++ strncpy (P->Survey_Departure_Day, &word[6], 2); break;
+ case 14: strcpy (P->Port_of_Departure, word); break;
+ case 15: strncpy (P->Survey_Arrival_Year, word, 4);
+ strncpy (P->Survey_Arrival_Month, &word[4], 2);
+- strncpy (P->Survey_Arrival_Day, &word[6], 4); break;
++ strncpy (P->Survey_Arrival_Day, &word[6], 2); break;
+ case 16: strcpy (P->Port_of_Arrival, word); break;
+ case 17: strcpy (P->Navigation_Instrumentation, word); break;
+ case 18: strcpy (P->Geodetic_Datum_Position_Determination_Method, word); break;
diff --git a/sci-geosciences/gmt/files/gmt-4.5.8-impl-dec.patch b/sci-geosciences/gmt/files/gmt-4.5.8-impl-dec.patch
new file mode 100644
index 000000000000..5c63bb209578
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.8-impl-dec.patch
@@ -0,0 +1,16 @@
+diff --git a/src/gmt.h b/src/gmt.h
+index d4c9c20..ea6ddc5 100644
+--- a/src/gmt.h
++++ b/src/gmt.h
+@@ -34,9 +34,11 @@ extern "C" {
+
+ /* GMT is POSIX.1 COMPLIANT */
+
++/*
+ #ifndef _POSIX_SOURCE
+ #define _POSIX_SOURCE 1
+ #endif
++*/
+
+ /* Declaration modifiers for DLL support (MSC et al) */
+ \ No newline at end of file
diff --git a/sci-geosciences/gmt/files/gmt-4.5.9-no-strip.patch b/sci-geosciences/gmt/files/gmt-4.5.9-no-strip.patch
new file mode 100644
index 000000000000..f57f1d811b05
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.9-no-strip.patch
@@ -0,0 +1,38 @@
+Drop manipulation of several flags:
+
+* stripping of -g from CFLAGS, as it interferes with deliberate
+ generation of debug symbols and breaks on flags like -ggdb.
+* Addition of -s resp. -Wl,-x to LDFLAGS, as stipping of binaries is
+ done as a separate step on Gentoo (and many other distros) in order
+ to faciliate retention or splitting of debug symbols.
+* Setting of optimization flags, as the user should be free to choose
+ them.
+
+2009-07-27 Martin von Gagern
+
+Reference: http://bugs.gentoo.org/279268
+
+Index: GMT4.5.0/configure.ac
+===================================================================
+--- GMT4.5.0.orig/configure.ac
++++ GMT4.5.0/configure.ac
+@@ -527,19 +527,6 @@ if test "X$enable_debug" = "Xyes" ; then
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -g"
+ else
+- CFLAGS=`echo $CFLAGS | sed 's/-g//'`
+- if test "$os" = "Darwin" ; then
+- LDFLAGS="$LDFLAGS -Wl,-x"
+- else
+- LDFLAGS="$LDFLAGS -s"
+- fi
+- if test "$GCC" = "yes" || test "$os" = "Linux" || test "$os" = "AIX"; then
+- CFLAGS="$CFLAGS -O2"
+- elif test "$chip" = "alpha" || test "$os" = "AUX" || test "$os" = "HP-UX"; then
+- CFLAGS="$CFLAGS"
+- else
+- CFLAGS="$CFLAGS -O"
+- fi
+ AC_MSG_RESULT(no)
+ fi
+ dnl -----------------------------------------------------------------
diff --git a/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch b/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch
new file mode 100644
index 000000000000..e724b4ceab79
--- /dev/null
+++ b/sci-geosciences/gmt/files/gmt-4.5.9-unistd.h.patch
@@ -0,0 +1,19 @@
+Fix "gmtdigitize.c:77:2: error: unknown type name 'gid_t'"
+build failure; patch from upstream version 4.5.11
+
+https://bugs.gentoo.org/show_bug.cgi?id=543624
+
+--- a/src/misc/gmtdigitize.c
++++ b/src/misc/gmtdigitize.c
+@@ -37,6 +37,11 @@
+ *
+ */
+
++#define _XOPEN_SOURCE
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++
+ #include "gmt.h"
+
+ #ifndef WIN32
diff --git a/sci-geosciences/gmt/gmt-4.5.6.ebuild b/sci-geosciences/gmt/gmt-4.5.6.ebuild
new file mode 100644
index 000000000000..9e73c830b201
--- /dev/null
+++ b/sci-geosciences/gmt/gmt-4.5.6.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib autotools eutils
+
+GSHHS="gshhs-2.1.1"
+
+DESCRIPTION="Powerful map generator"
+HOMEPAGE="http://gmt.soest.hawaii.edu/"
+SRC_URI="mirror://gmt/legacy/${P}-src.tar.bz2
+ mirror://gmt/legacy/${P}-share.tar.bz2
+ mirror://gmt/legacy/${GSHHS}-coast.tar.bz2
+ mirror://gmt/legacy/${P}-suppl.tar.bz2
+ doc? ( mirror://gmt/legacy/${P}-doc.tar.bz2 )
+ gmtfull? ( mirror://gmt/legacy/${GSHHS}-full.tar.bz2 )
+ gmthigh? ( mirror://gmt/legacy/${GSHHS}-high.tar.bz2 )
+ gmttria? ( mirror://gmt/legacy/${P}-triangle.tar.bz2 )"
+
+LICENSE="GPL-2 gmttria? ( Artistic )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc debug gmtfull gmthigh gmttria +metric mex +netcdf octave postscript"
+
+RDEPEND="
+ !sci-biology/probcons
+ netcdf? ( >=sci-libs/netcdf-4.1 )
+ octave? ( sci-mathematics/octave )
+"
+DEPEND="${RDEPEND}"
+
+RESTRICT="mirror" # for the gmttria
+
+S="${WORKDIR}/GMT${PV}"
+
+# mex can use matlab too which i can't test
+REQUIRED_USE="
+ mex? ( octave )
+ gmthigh? ( !gmtfull ) gmtfull? ( !gmthigh )
+"
+
+# hand written make files that are not parallel safe
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ mv -f "${WORKDIR}/share/"* "${S}/share/" || die
+
+ epatch \
+ "${FILESDIR}/${PN}-4.5.0-no-strip.patch" \
+ "${FILESDIR}/${PN}-4.5.6-respect-ldflags.patch" \
+ "${FILESDIR}"/${PN}-4.5.9-unistd.h.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ # triangle disabled due to non-comercial license
+ econf \
+ --libdir=/usr/$(get_libdir)/${P} \
+ --includedir=/usr/include/${P} \
+ --datadir=/usr/share/${P} \
+ --docdir=/usr/share/doc/${PF} \
+ --disable-update \
+ --disable-debug \
+ --disable-gdal \
+ --disable-matlab \
+ --disable-xgrid \
+ --enable-shared \
+ $(use_enable netcdf) \
+ $(use_enable octave) \
+ $(use_enable debug devdebug) \
+ $(use_enable !metric US) \
+ $(use_enable postscript eps) \
+ $(use_enable mex) \
+ $(use_enable gmttria triangle)
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ install-gmt install-data install-suppl install-man
+
+ # remove static libs
+ find "${D}/usr/$(get_libdir)" -name '*.a' -exec rm -f {} +
+
+ dodoc README
+ use doc && dodoc -r "${S}"/share/doc/${PN}/*
+
+ cat << _EOF_ > "${T}/99gmt"
+GMTHOME=${EPREFIX}/usr/share/${P}
+GMT_SHAREDIR=${EPREFIX}/usr/share/${P}
+_EOF_
+ doenvd "${T}/99gmt"
+}
diff --git a/sci-geosciences/gmt/gmt-4.5.8.ebuild b/sci-geosciences/gmt/gmt-4.5.8.ebuild
new file mode 100644
index 000000000000..69ac9baca347
--- /dev/null
+++ b/sci-geosciences/gmt/gmt-4.5.8.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils multilib
+
+GSHHS="gshhs-2.2.0"
+
+DESCRIPTION="Powerful map generator"
+HOMEPAGE="http://gmt.soest.hawaii.edu/"
+SRC_URI="
+ mirror://gmt/legacy/${P}.tar.bz2
+ mirror://gmt/legacy/${GSHHS}.tar.bz2
+ gmttria? ( mirror://gmt/legacy/${P}-non-gpl.tar.bz2 )"
+
+LICENSE="GPL-2 gmttria? ( Artistic )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +gdal gmttria +metric mex +netcdf octave postscript"
+
+RDEPEND="
+ !sci-biology/probcons
+ gdal? ( sci-libs/gdal )
+ netcdf? ( >=sci-libs/netcdf-4.1 )
+ octave? ( sci-mathematics/octave )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/GMT${PV}"
+
+# mex can use matlab too which i can't test
+REQUIRED_USE="
+ mex? ( octave )
+"
+
+# hand written make files that are not parallel safe
+MAKEOPTS+=" -j1"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.5.0-no-strip.patch
+ "${FILESDIR}"/${PN}-4.5.6-respect-ldflags.patch
+ "${FILESDIR}"/${P}-bfr-overflow.patch
+ "${FILESDIR}"/${P}-impl-dec.patch
+ )
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ mv -f "${WORKDIR}/share/"* "${S}/share/" || die
+
+ tc-export AR RANLIB
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --libdir=/usr/$(get_libdir)/${P}
+ --includedir=/usr/include/${P}
+ --datadir=/usr/share/${P}
+ --docdir=/usr/share/doc/${PF}
+ --disable-update
+ --disable-matlab
+ --disable-xgrid
+ --disable-debug
+ $(use_enable gdal)
+ $(use_enable netcdf)
+ $(use_enable octave)
+ $(use_enable debug devdebug)
+ $(use_enable !metric US)
+ $(use_enable postscript eps)
+ $(use_enable mex)
+ $(use_enable gmttria triangle)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install install-all
+
+ # remove static libs
+ find "${ED}/usr/$(get_libdir)" -name '*.a' -exec rm -f {} +
+
+ cat <<- _EOF_ > "${T}/99gmt"
+ GMTHOME="${EPREFIX}/usr/share/${P}"
+ GMT_SHAREDIR="${EPREFIX}/usr/share/${P}"
+ _EOF_
+ doenvd "${T}/99gmt"
+}
diff --git a/sci-geosciences/gmt/gmt-4.5.9.ebuild b/sci-geosciences/gmt/gmt-4.5.9.ebuild
new file mode 100644
index 000000000000..7aefd90eb08c
--- /dev/null
+++ b/sci-geosciences/gmt/gmt-4.5.9.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils multilib
+
+GSHHS="gshhs-2.2.0"
+
+DESCRIPTION="Powerful map generator"
+HOMEPAGE="http://gmt.soest.hawaii.edu/"
+SRC_URI="
+ mirror://gmt/legacy/${P}.tar.bz2
+ mirror://gmt/legacy/${GSHHS}.tar.bz2
+ gmttria? ( mirror://gmt/legacy/${P}-non-gpl.tar.bz2 )"
+
+LICENSE="GPL-2 gmttria? ( Artistic )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +gdal gmttria +metric mex +netcdf octave postscript"
+
+RDEPEND="
+ !sci-biology/probcons
+ gdal? ( sci-libs/gdal )
+ netcdf? ( >=sci-libs/netcdf-4.1 )
+ octave? ( sci-mathematics/octave )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/GMT${PV}"
+
+# mex can use matlab too which i can't test
+REQUIRED_USE="
+ mex? ( octave )
+"
+
+# hand written make files that are not parallel safe
+MAKEOPTS+=" -j1"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.5.9-no-strip.patch
+ "${FILESDIR}"/${PN}-4.5.6-respect-ldflags.patch
+ "${FILESDIR}"/${PN}-4.5.9-unistd.h.patch
+ )
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ mv -f "${WORKDIR}/share/"* "${S}/share/" || die
+
+ tc-export AR RANLIB
+
+ autotools-utils_src_prepare
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --libdir=/usr/$(get_libdir)/${P}
+ --includedir=/usr/include/${P}
+ --datadir=/usr/share/${P}
+ --docdir=/usr/share/doc/${PF}
+ --disable-update
+ --disable-matlab
+ --disable-xgrid
+ --disable-debug
+ $(use_enable gdal)
+ $(use_enable netcdf)
+ $(use_enable octave)
+ $(use_enable debug devdebug)
+ $(use_enable !metric US)
+ $(use_enable postscript eps)
+ $(use_enable mex)
+ $(use_enable gmttria triangle)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install install-all
+
+ # remove static libs
+ find "${ED}/usr/$(get_libdir)" -name '*.a' -exec rm -f {} +
+
+ cat <<- _EOF_ > "${T}/99gmt"
+ GMTHOME="${EPREFIX}/usr/share/${P}"
+ GMT_SHAREDIR="${EPREFIX}/usr/share/${P}"
+ _EOF_
+ doenvd "${T}/99gmt"
+}
diff --git a/sci-geosciences/gmt/metadata.xml b/sci-geosciences/gmt/metadata.xml
new file mode 100644
index 000000000000..c31969b5f364
--- /dev/null
+++ b/sci-geosciences/gmt/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <use>
+ <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag>
+ <flag name="gmtfull">Full resolution bathymetry database</flag>
+ <flag name="gmthigh">Add high resolution bathymetry database</flag>
+ <flag name="gmttria">Non GNU triangulation method, more efficient</flag>
+ <flag name="metric">Use SI (cm) units instead of US (inches) ones</flag>
+ <flag name="mex">Enable compilation of mex supplement which requires Octave/Matlab</flag>
+ <flag name="octave">Enable octave support</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/gnome-maps/Manifest b/sci-geosciences/gnome-maps/Manifest
new file mode 100644
index 000000000000..4b2c0405a28b
--- /dev/null
+++ b/sci-geosciences/gnome-maps/Manifest
@@ -0,0 +1,7 @@
+DIST gnome-maps-3.22.2.tar.xz 1086264 SHA256 1cc5c3a82fbb47435925c6268df220c0a788c9f6aa9054ae019e61c992d93948 SHA512 bdff6c55c811c9a12f2a56adfb2acbad4dfd3ceba761a4c50463b025eb9df01f5849f871b7934eae659ab8f90db7cd612694de40fdecbc9d63a3b59d343ee997 WHIRLPOOL 2675c02e1fa04c7ba0a069a2844fc2003b1cd9acb2fcf286205c9f018a704c2777e0a45b7a5dd1be665a48fb3ff1e2c4a2bb857bb80cf09f6f1c50512710d939
+DIST gnome-maps-3.24.3.tar.xz 1145872 SHA256 5ef3ec36aa76eb9a49a15ee61539bea7b59e8aa0a802483df6cedcc65566d0d6 SHA512 b4a4c278359803e11b1aa43fb522a84b95eecfc349a134322f45db7acfe93867a61f6bd48e55a07d5d602b8161cdf5949a6b5d4da1212659e133260063ab6198 WHIRLPOOL 20f6e517d4ad2593bb3ac19cac9495e4ebb470d6f49ef74769adf7be2271ba5772a7a49dbb7cb326e8ff29a6a76152e927d5e447ec081842f02cfe314aebbc8f
+EBUILD gnome-maps-3.22.2.ebuild 1266 SHA256 c72a2afc2cab1cb653dd8cde6f80a9cc621b818b8eb449e0afaa7169d4c32609 SHA512 44e4f35367af35d2813d53cd4a7e8ab90b5b40d9d7cbb1bb87a62fe1524d655ff65f3ae81845ce19dbc657bafedbf614423edda1d6b69a1c32641dfbf0e358b8 WHIRLPOOL 8e9ccce5b287442aca8cb244947c886331b8be4c77ea1da66ceffae7b4b1f2bbdceacb5866ea9261566a00e932c28cdf6edbfc85fdd55b4cd276188c7fb679f9
+EBUILD gnome-maps-3.24.3.ebuild 1275 SHA256 2f9123a04d5206ab385d43812f646aa36fa547423a0c29fdf15786a5c7b46cb1 SHA512 ea843709695c78bd64cbfcaf326f6b20250dfadb714c46042d55072f58a19e3c38e4f2c88209816915b473ae1a363bf801f2af7dd18caa892373fdb407728843 WHIRLPOOL a916495dd8287e449af90a661c75b01c05aaa96185022ec16b705b355457125fcf7c67ea1b1a5630d1f3c0a2d75cb836bd4da3d89d98f0b84628e052a94e45c7
+MISC ChangeLog 6618 SHA256 1f1d0ffd757b7e4d149f385deffd040a3ca50c69091820f6240cf66165aeac01 SHA512 942470840011e70386d781cc21d0d5abb1b2a56bb4aa7d3c9b2d518c1f1215c333636e0ee2e75e6f7af54a02fa5a51e54a9919d78960f24a93c9b2ba3f4ff97f WHIRLPOOL 1eabdd8c67840e1d7d0f72e14e43b0b2d76d1409879149a14c3c92c0fb83fdf00110c19499f1e104fcb997515f4c2b944673899b246037d425044a08ba6a3bcb
+MISC ChangeLog-2015 1892 SHA256 9b91604bb92027b615527fdf7bdf93fc65549739b3c91b3da5bb02a0e5787fd5 SHA512 7bab819699e74d89b3d5ccd3d430ea4d1f5956034f22dc25739de1d6dc2feda1993d264c7c911dc1845bea6df32bee6f37430cde3baa92fe4bdbffe9629de266 WHIRLPOOL e89acdac8a1073a2d7919ae10eed30ad3c5618b47019a1b411ee3dfb3b4dab76180b2d3011d50cc89007686bbf43036649ab83d9b81482e0ffe9e8401cbb69fc
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/sci-geosciences/gnome-maps/gnome-maps-3.22.2.ebuild b/sci-geosciences/gnome-maps/gnome-maps-3.22.2.ebuild
new file mode 100644
index 000000000000..2441838d16ae
--- /dev/null
+++ b/sci-geosciences/gnome-maps/gnome-maps-3.22.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="A map application for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Maps"
+
+LICENSE="GPL-2+ LGPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0"
+SLOT="0"
+IUSE=""
+KEYWORDS="amd64 x86"
+
+COMMON_DEPEND="
+ >=app-misc/geoclue-0.12.99:2.0[introspection]
+ >=dev-libs/folks-0.10
+ >=dev-libs/gjs-1.44.0
+ >=dev-libs/gobject-introspection-0.6.3:=
+ >=dev-libs/glib-2.39.3:2
+ >=dev-libs/libgee-0.16:0.8[introspection]
+ dev-libs/libxml2:2
+ >=media-libs/libchamplain-0.12.14:0.12[gtk,introspection]
+ net-libs/rest:0.7[introspection]
+ >=sci-geosciences/geocode-glib-3.15.2[introspection]
+ >=x11-libs/gtk+-3.15.9:3[introspection]
+"
+# Found by grepping imports.gi in ${S}
+RDEPEND="${COMMON_DEPEND}
+ app-crypt/libsecret[introspection]
+ dev-libs/libgweather[introspection]
+ media-libs/clutter-gtk:1.0[introspection]
+ media-libs/clutter:1.0[introspection]
+ media-libs/cogl:1.0[introspection]
+ net-libs/gnome-online-accounts[introspection]
+ net-libs/libgfbgraph[introspection]
+ net-libs/libsoup:2.4[introspection]
+ net-libs/webkit-gtk:4[introspection]
+ x11-libs/gdk-pixbuf:2[introspection]
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
diff --git a/sci-geosciences/gnome-maps/gnome-maps-3.24.3.ebuild b/sci-geosciences/gnome-maps/gnome-maps-3.24.3.ebuild
new file mode 100644
index 000000000000..a421d604de77
--- /dev/null
+++ b/sci-geosciences/gnome-maps/gnome-maps-3.24.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="A map application for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Maps"
+
+LICENSE="GPL-2+ LGPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+COMMON_DEPEND="
+ >=app-misc/geoclue-0.12.99:2.0[introspection]
+ >=dev-libs/folks-0.10
+ >=dev-libs/gjs-1.44.0
+ >=dev-libs/gobject-introspection-0.6.3:=
+ >=dev-libs/glib-2.39.3:2
+ >=dev-libs/libgee-0.16:0.8[introspection]
+ dev-libs/libxml2:2
+ >=media-libs/libchamplain-0.12.14:0.12[gtk,introspection]
+ >=net-libs/rest-0.7.90:0.7[introspection]
+ >=sci-geosciences/geocode-glib-3.15.2[introspection]
+ >=x11-libs/gtk+-3.22:3[introspection]
+"
+# Found by grepping imports.gi in ${S}
+RDEPEND="${COMMON_DEPEND}
+ app-crypt/libsecret[introspection]
+ dev-libs/libgweather[introspection]
+ media-libs/clutter-gtk:1.0[introspection]
+ media-libs/clutter:1.0[introspection]
+ media-libs/cogl:1.0[introspection]
+ net-libs/gnome-online-accounts[introspection]
+ net-libs/libgfbgraph[introspection]
+ net-libs/libsoup:2.4[introspection]
+ net-libs/webkit-gtk:4[introspection]
+ x11-libs/gdk-pixbuf:2[introspection]
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
diff --git a/sci-geosciences/gnome-maps/metadata.xml b/sci-geosciences/gnome-maps/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/sci-geosciences/gnome-maps/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/gpsbabel/Manifest b/sci-geosciences/gpsbabel/Manifest
new file mode 100644
index 000000000000..9cbab0d47c2e
--- /dev/null
+++ b/sci-geosciences/gpsbabel/Manifest
@@ -0,0 +1,15 @@
+AUX gpsbabel-1.4.3-fix_binary_name.patch 270 SHA256 a5e48aecff0597700c49fe3660a74046ff3a53d585a291f2ab769dd29a297b37 SHA512 3098a4d5900c70569e8991a531b447bef24fd19e7ebb8f5a3e484854d2d48f41384a40a8b2fb717b696eab106ad9801bff925d0f984ddaec27f300832fa87eff WHIRLPOOL b8883c425c514c5ded6c3debb09e8c5326fd755956d1ab238c92b4d6a9ad0ec61829e92bd79b3ed0af8b846e01f8f90c9e5073a2b745e44d0a82dd78d5cbe1ae
+AUX gpsbabel-1.5.4-disable_statistic_uploading.patch 373 SHA256 65823f79c122da860ee9ead011e943454ce01657e0c5c22564fafae5d84bfef8 SHA512 239488c5a8b9d1fefa98afe94614c600109fa1e1fdf815942d3912c5a1061131bd1c6c81bd8d0cc5e4de088babf80357ef2cb2b8f11b7e0f33f6ec14125c9e91 WHIRLPOOL d66fd3062dde0d17cb02bbed53573eafdee493f22cdbe96d62fd71d028bad0ea6c11870c1f9ac1890b8e5388dd86cc69cbe26b3341a9e5950412d172c9a166ff
+AUX gpsbabel-1.5.4-disable_update_check.patch 4139 SHA256 379e90ee935f05203aa9fb4cf7af3b71b72c3530b81df6c2c1f982a663941a1c SHA512 a746f6e8d23cada6facf67da70a92629af205811441e6973cd7d4e5414c038a81c984d5ced5f351a5669fe6a8a69e608377ea1d4396ce448d5d5657315dcb8cc WHIRLPOOL c30c2dd24f11f59a9f086414143f5e74051755bd683aecf8cde81de06482edd1262deba375516e4538b60938e20e303c8a002252b9cd0df92e74f0843d5b74f1
+AUX gpsbabel-1.5.4-disable_version_check.patch 1600 SHA256 ef9bb597e84bac0a300e38e0d7b7bde46184833564b8a63e280e764abfcf7353 SHA512 b49746dbd9059693dafde408ef7389515644e569c73da89dd40e6efcef2f9888e6866d26d0672838be18ba0cb37a0a5cb95a8be3085ce009de1129de59583cc3 WHIRLPOOL 42337e54b9b87ce15e92c16e3360046e51c7edb067e7014c2527488d797bef68910674b5cd9de1fa09fb708f29c6a470f0dd1fd60f407b4e93acfd130bd1b726
+AUX gpsbabel-1.5.4-qt-5.9-1.patch 4501 SHA256 53fbe2bcce348bb62c545d5e050666169b265b14221eba56aa8d66bebc802d9b SHA512 28e766203f7dd31be70ddf5bba0337ab7ae7c3969a8723ef27ec09872e67cf27fdea9cc7e5d12a473fac91f1fad48267dacebe786cf30152eaba801567d646ab WHIRLPOOL c525c05664a726c35d8c3a5e1be2c15cb5d943e4acb341423b0176ded298947d11f648173a838f623308cd767eda8b1299aa443c75a42dab6b4955fc50133754
+AUX gpsbabel-1.5.4-qt-5.9-2.patch 3488 SHA256 adb2e97520798cfd9651238023658abaa46b52d4696259af83846cce16c16ee8 SHA512 59ac09846bd2bb15e65ff09a477ff5192621e15a8931cdfdd9ede43a87de539ed5ed72323b981a26027b98a6eac55de2aa69ebaef83c44ca7b8115d033da0f58 WHIRLPOOL df18471fec8a4e4238e00cd91318c14f4979a93e38e888c7ba66a72c5280ebd5d4083eba9f9fada633c7ee827c6bdbe3fd944e493e24e14694d525c6df1b36b8
+AUX gpsbabel-1.5.4-use_system_shapelib.patch 2868 SHA256 4c6e69f927cbe4ad5c348a1534647a1f757c64913c527a77be10b7fe7ef5437c SHA512 437a15bea31b6b6e45571ce14540d337a0d46afdae4a1c72f3dbfcdbe9314b1368f734e009d9039200814a419390d51ccce03fd30c8857ad7208230be092da10 WHIRLPOOL 1226109b6c925ecbf1c841199dfc33e5bda3bf5f62c7b79b9022d7e2fccb343e4a94c27a30daa6b19ead82e261b42902e719f0ffb80e1846432d6219d155f260
+AUX gpsbabel-1.5.4-use_system_zlib.patch 2814 SHA256 a04f1d75e1434f5dc2b76cab3b9e805158078539f19579699de3e9b06e586787 SHA512 dbda711da83232e4ad38bda19ab2be28a4aded357d037443e9b2f34edbb1ae36afbbff33f3a36326154d9942a29f5a8458cfe459d7c1085f7044da0a231bcf15 WHIRLPOOL 3371320cc889c8121430e042ec5dbc2a9a2b6b7d2d7b02c4ccb64c15361fd4875ee3ccdd81df65922997ebc0fd239640e7720c0003a2a96d325c8f8eb5e867b9
+AUX gpsbabel-1.5.4-xmldoc.patch 497 SHA256 6830cc5fa334648e4f15243595d8d65018963d31b449fb5132b27147bc18bf47 SHA512 d3e1d7f02a54ab5f8d3c552e8849f9450da6469f4ba0d2741c00b30a0b07896dba55d68485f519962d6886626583872c7f0c3603deb6bd69e386f29a2bf48899 WHIRLPOOL 670cbbb7fb4620551cd16c64698aeae30096a881f03a5f243205919d27ee7eee8cc5eabac5b9800135efb3b9dd12dbd6490f9137cb44620db5e69782346ca2a0
+DIST gpsbabel-1.5.4.tar.gz 9099765 SHA256 59e29b83a16af16556fffc9315d3d3626d11fc7f2f50d6ec1f99dfc64412989e SHA512 5fdc3bc07ad52d6c1e3532b287dcb506aba612ae9bc8db393b4837d79d773d6e22ad31f8f8e65770ec52b1afbda556e452af20dada1e411de93ca6e18054225b WHIRLPOOL a3de57048f43582fa64b85a3d37de5d378226842c7eca634f4334481f3dbbc99cee8b9d14bccb949fdc1976116a5b9bcc6318033138501e197c44b48cc244aec
+DIST gpsbabel.org-style3.css 2171 SHA256 3f87b917e014e94562b44070c2b885abeef56e6459ce08d2cac785db197964ff SHA512 33b843e0431de6d71a83c58da35ede28435e5a4746f59e52350c6e4451659e1b443d3c0dd52df1c68001e9937787820fb96afc363ec1ae7d23430bfed31dbc83 WHIRLPOOL 419e1b8c386e3cbf96247ec231873bb0263e35e540451dfcda50e6c6f6452cef03825f527e3c970e452600d869721260e7970dabbe89070b9117d09c95da815a
+EBUILD gpsbabel-1.5.4-r1.ebuild 2529 SHA256 a1213e1a5ff9a0f2af93c04f1664178e74096618d8a959a472b1886310c3dff4 SHA512 e43b995d831442d47e429033bd9683af233084a810c65279d0f2af166c935208fbe52c9b3beaf58909323a41b5961c556eb1aca0ed72ddb026651c4953fa42fa WHIRLPOOL 6ef63b4c86809d8c29178e75893ec1bad7aa0a72cd89fec13b3dce5e42814b920264e509b8e87b40bc2ce7586d8bb6354397a1e52f3ca6dbd4fd235e42c9226e
+MISC ChangeLog 2856 SHA256 51e5d51fd343862d9d0d189dbe196adc811bb5b18167bf63c9e0b8cdfb800f35 SHA512 541b23f6a69de26231c96ec18336983200138bfe13737e035cfb59f45639015ccc8eacc7ea5999c3f45ed809b245b4dcd589d280b2c251329c3e0493803c78ff WHIRLPOOL 153f9cc0ec59dad2339f6529ae92a03af275e127555148ada8cf39c9ae7a1c54e9a3d842c5bec07148a40b09dd089093c21b7faa9ed98ea4424c7580fb17de22
+MISC ChangeLog-2015 5807 SHA256 6023fe760bd1bd48bdaaedfb0bdc57880fc46666635e343d903344beb9a3dc6a SHA512 cd6e7cae4bb44f7890016943a163b5970eea69201ad931ec1f91d762414f9050a00e9915bf5af9a6b5ad1678b040a4044aa3f5fe14226d600dea50b415b15425 WHIRLPOOL a73afe7c17fc63b39ed983bb3e5ef96a5de4bda40497ab7731ff2d05629befd406b4fbe78cf4db0eee3b7cadf734612c31da88c051796860f88dcaca89f9cd43
+MISC metadata.xml 469 SHA256 7e88955e338ca26be4d46142bc48e2912d825eed49be344931edcc7248a53a65 SHA512 64f5336e351022d894ebb2331b46f0c75931b7c9c0113006948e995f87d7994555418164325eb625860d22af0284018f4b16c6f7a3539c45e1643e4c327b0382 WHIRLPOOL b6545854aa82f0d486ba858f9e551fc9da1dc8723e453b25e9fbeb9aaef0ba46f4941d4f9bab1a0a8aeca29253e91babbee433a8cbe8d53c4e428ea33cd0d2bb
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.4.3-fix_binary_name.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.4.3-fix_binary_name.patch
new file mode 100644
index 000000000000..2ab8d5e10c69
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.4.3-fix_binary_name.patch
@@ -0,0 +1,12 @@
+Rename gpsbabelfe binary.
+--- gpsbabel-1.4.3/gui/app.pro
++++ gpsbabel-1.4.3/gui/app.pro
+@@ -30,7 +30,7 @@
+ TARGET=GPSBabelFE
+ QMAKE_LFLAGS_RELEASE += -static-libgcc
+ }
+-unix:TARGET=gpsbabelfe-bin
++unix:TARGET=gpsbabelfe
+ mac:TARGET=GPSBabelFE
+
+ FORMS += aboutui.ui
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_statistic_uploading.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_statistic_uploading.patch
new file mode 100644
index 000000000000..b65413c3d7c5
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_statistic_uploading.patch
@@ -0,0 +1,11 @@
+--- a/gui/babeldata.h 2017-01-02 06:05:19.000000000 +0100
++++ b/gui/babeldata.h 2017-01-21 00:33:30.858046004 +0100
+@@ -64,7 +64,7 @@
+ upgradeOffers_(0),
+ runCount_(0),
+ startupVersionCheck_(true),
+- reportStatistics_(true),
++ reportStatistics_(false),
+ allowBetaUpgrades_(false),
+ ignoreVersionMismatch_(false),
+ disableDonateDialog_(false),
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_update_check.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_update_check.patch
new file mode 100644
index 000000000000..b618106df3f0
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_update_check.patch
@@ -0,0 +1,108 @@
+Disable check for newer versions on start.
+
+--- a/gui/preferences.ui 2017-01-02 06:05:19.000000000 +0100
++++ b/gui/preferences.ui 2017-01-21 00:38:44.929972188 +0100
+@@ -40,13 +40,6 @@
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_4">
+ <item>
+- <widget class="QCheckBox" name="startupCheck">
+- <property name="text">
+- <string>Check for newer version on start.</string>
+- </property>
+- </widget>
+- </item>
+- <item>
+ <widget class="QCheckBox" name="reportStatisticsCheck">
+ <property name="text">
+ <string>Anonymously report usage data.</string>
+--- a/gui/preferences.cc 2017-01-02 06:05:19.000000000 +0100
++++ b/gui/preferences.cc 2017-01-21 00:39:20.648418701 +0100
+@@ -39,7 +39,6 @@
+ {
+ ui_.setupUi(this);
+
+- ui_.startupCheck->setChecked(babelData_.startupVersionCheck_);
+ ui_.reportStatisticsCheck->setChecked(babelData_.reportStatistics_);
+ ui_.ignoreVersionMismatchCheck->setChecked(babelData_.ignoreVersionMismatch_);
+ // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1.
+@@ -82,7 +81,6 @@
+ formatList_[i].setHidden(item->checkState() == Qt::Unchecked);
+ }
+
+- babelData_.startupVersionCheck_ = ui_.startupCheck->isChecked();
+ babelData_.reportStatistics_ = ui_.reportStatisticsCheck->isChecked();
+ babelData_.ignoreVersionMismatch_ = ui_.ignoreVersionMismatchCheck->isChecked();
+ accept();
+--- a/gui/babeldata.h 2017-01-21 00:33:30.858046004 +0100
++++ b/gui/babeldata.h 2017-01-21 00:40:03.888959247 +0100
+@@ -63,7 +63,7 @@
+ upgradeErrors_(0),
+ upgradeOffers_(0),
+ runCount_(0),
+- startupVersionCheck_(true),
++ startupVersionCheck_(false),
+ reportStatistics_(false),
+ allowBetaUpgrades_(false),
+ ignoreVersionMismatch_(false),
+--- a/gui/mainwinui.ui 2017-01-02 06:05:19.000000000 +0100
++++ b/gui/mainwinui.ui 2017-01-21 00:40:40.453416335 +0100
+@@ -637,7 +637,6 @@
+ <addaction name="actionHelp"/>
+ <addaction name="separator"/>
+ <addaction name="actionAbout"/>
+- <addaction name="actionUpgradeCheck"/>
+ <addaction name="separator"/>
+ <addaction name="actionVisit_Website"/>
+ <addaction name="actionMake_a_Donation"/>
+@@ -666,11 +665,6 @@
+ <string>Preferences...</string>
+ </property>
+ </action>
+- <action name="actionUpgradeCheck">
+- <property name="text">
+- <string>Check for Upgrade</string>
+- </property>
+- </action>
+ <action name="actionVisit_Website">
+ <property name="text">
+ <string>Visit Website...</string>
+--- a/gui/mainwindow.cc 2017-01-02 06:05:19.000000000 +0100
++++ b/gui/mainwindow.cc 2017-01-21 00:42:02.939447485 +0100
+@@ -147,7 +147,6 @@
+ connect(ui_.actionAbout, SIGNAL(triggered()), this, SLOT(aboutActionX()));
+ connect(ui_.actionVisit_Website, SIGNAL(triggered()), this, SLOT(visitWebsiteActionX()));
+ connect(ui_.actionMake_a_Donation, SIGNAL(triggered()), this, SLOT(donateActionX()));
+- connect(ui_.actionUpgradeCheck, SIGNAL(triggered()), this, SLOT(upgradeCheckActionX()));
+ connect(ui_.actionPreferences, SIGNAL(triggered()), this, SLOT(preferencesActionX()));
+
+ connect(ui_.inputFormatCombo, SIGNAL(currentIndexChanged(int)),
+@@ -208,17 +208,6 @@
+ restoreSettings();
+
+ upgrade = new UpgradeCheck(parent, formatList_, babelData_);
+- if (babelData_.startupVersionCheck_) {
+- upgrade->checkForUpgrade(babelVersion_, babelData_.upgradeCheckTime_,
+- allowBetaUpgrades());
+- }
+-
+- if (!babelData_.ignoreVersionMismatch_ && babelVersion_ != VERSION) {
+- VersionMismatch vm(0, babelVersion_, QString(VERSION));
+-
+- vm.exec();
+- babelData_.ignoreVersionMismatch_ = vm.neverAgain();
+- }
+ }
+
+ //------------------------------------------------------------------------
+@@ -1021,10 +1010,6 @@
+ //------------------------------------------------------------------------
+ void MainWindow::closeActionX()
+ {
+- QDateTime wt= upgrade->getUpgradeWarningTime();
+- if (wt.isValid()) {
+- babelData_.upgradeCheckTime_ = wt;
+- }
+ babelData_.runCount_++;
+
+ QDateTime now = QDateTime::currentDateTime();
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_version_check.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_version_check.patch
new file mode 100644
index 000000000000..e9d56d0a460b
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-disable_version_check.patch
@@ -0,0 +1,45 @@
+--- a/gui/preferences.ui 2017-01-21 00:38:44.929972188 +0100
++++ b/gui/preferences.ui 2017-01-21 00:50:05.314477610 +0100
+@@ -46,13 +46,6 @@
+ </property>
+ </widget>
+ </item>
+- <item>
+- <widget class="QCheckBox" name="ignoreVersionMismatchCheck">
+- <property name="text">
+- <string>Ignore mismatch between command line and GUI version.</string>
+- </property>
+- </widget>
+- </item>
+ </layout>
+ </widget>
+ </widget>
+--- a/gui/preferences.cc 2017-01-21 00:39:20.648418701 +0100
++++ b/gui/preferences.cc 2017-01-21 00:50:33.451829352 +0100
+@@ -40,7 +40,6 @@
+ ui_.setupUi(this);
+
+ ui_.reportStatisticsCheck->setChecked(babelData_.reportStatistics_);
+- ui_.ignoreVersionMismatchCheck->setChecked(babelData_.ignoreVersionMismatch_);
+ // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1.
+ if (VERSION == QString("1.4.1"))
+ babelData_.ignoreVersionMismatch_ = false;
+@@ -82,7 +81,6 @@
+ }
+
+ babelData_.reportStatistics_ = ui_.reportStatisticsCheck->isChecked();
+- babelData_.ignoreVersionMismatch_ = ui_.ignoreVersionMismatchCheck->isChecked();
+ accept();
+ }
+
+--- a/gui/babeldata.h 2017-01-21 00:40:03.888959247 +0100
++++ b/gui/babeldata.h 2017-01-21 00:51:05.753233149 +0100
+@@ -66,7 +66,7 @@
+ startupVersionCheck_(false),
+ reportStatistics_(false),
+ allowBetaUpgrades_(false),
+- ignoreVersionMismatch_(false),
++ ignoreVersionMismatch_(true),
+ disableDonateDialog_(false),
+ donateSplashed_(QDateTime(QDate(2010, 1, 1), QTime(0, 0, 0)))
+ {
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch
new file mode 100644
index 000000000000..36db615f9dec
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch
@@ -0,0 +1,105 @@
+From 30a345577a644125502f6e4f8b58ea3077ec8dad Mon Sep 17 00:00:00 2001
+From: Robert Lipe <robertlipe@gpsbabel.org>
+Date: Mon, 4 Sep 2017 23:20:00 -0500
+Subject: [PATCH] Prefer QStringLiteral over implicit conversion from Latin1
+ for Q5 5.9. Based on work by Bernd Zeimetz.
+
+---
+ gpx.cc | 14 +++++++-------
+ magproto.cc | 6 +++---
+ unicsv.cc | 8 ++++----
+ 3 files changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/gpx.cc b/gpx.cc
+index 3b3b963c..36701e52 100644
+--- a/gpx.cc
++++ b/gpx.cc
+@@ -494,7 +494,7 @@ tag_cache_desc(const QXmlStreamAttributes& attr)
+ {
+ cache_descr_is_html = 0;
+ if (attr.hasAttribute("html")) {
+- if (attr.value("html").toString().compare("True") == 0) {
++ if (attr.value("html").toString() == QStringLiteral("True")) {
+ cache_descr_is_html = 1;
+ }
+ }
+@@ -509,16 +509,16 @@ tag_gs_cache(const QXmlStreamAttributes& attr)
+ gc_data->id = attr.value("id").toString().toInt();
+ }
+ if (attr.hasAttribute("available")) {
+- if (attr.value("available").toString().compare("True", Qt::CaseInsensitive) == 0) {
++ if (attr.value("available").toString().compare(QStringLiteral("True"), Qt::CaseInsensitive) == 0) {
+ gc_data->is_available = status_true;
+- } else if (attr.value("available").toString().compare("False", Qt::CaseInsensitive) == 0) {
++ } else if (attr.value("available").toString().compare(QStringLiteral("False"), Qt::CaseInsensitive) == 0) {
+ gc_data->is_available = status_false;
+ }
+ }
+ if (attr.hasAttribute("archived")) {
+- if (attr.value("archived").toString().compare("True", Qt::CaseInsensitive) == 0) {
++ if (attr.value("archived").toString().compare(QStringLiteral("True"), Qt::CaseInsensitive) == 0) {
+ gc_data->is_archived = status_true;
+- } else if (attr.value("archived").toString().compare("False", Qt::CaseInsensitive) == 0) {
++ } else if (attr.value("archived").toString().compare(QStringLiteral("False"), Qt::CaseInsensitive) == 0) {
+ gc_data->is_archived = status_false;
+ }
+ }
+@@ -972,7 +972,7 @@ gpx_end(const QString& el)
+ * last date we saw in this log.
+ */
+ case tt_cache_log_type:
+- if ((cdatastr.compare("Found it") == 0) &&
++ if ((cdatastr.compare(QStringLiteral("Found it")) == 0) &&
+ (0 == wpt_tmp->gc_data->last_found.toTime_t())) {
+ wpt_tmp->AllocGCData()->last_found = gc_log_date;
+ }
+@@ -1423,7 +1423,7 @@ fprint_xml_chain(xml_tag* tag, const Waypoint* wpt)
+ fprint_xml_chain(tag->child, wpt);
+ }
+ if (wpt && wpt->gc_data->exported.isValid() &&
+- tag->tagname.compare("groundspeak:cache") == 0) {
++ tag->tagname.compare(QStringLiteral("groundspeak:cache")) == 0) {
+ writer->writeTextElement("time",
+ wpt->gc_data->exported.toPrettyString());
+ }
+diff --git a/magproto.cc b/magproto.cc
+index 7c82e9fb..0deb7f33 100644
+--- a/magproto.cc
++++ b/magproto.cc
+@@ -819,11 +819,11 @@ mag_rd_init_common(const QString& portname)
+ */
+ QString exten = QFileInfo(curfname).suffix();
+ if (exten.length() > 0) {
+- if (0 == exten.compare("upt", Qt::CaseInsensitive)) {
++ if (0 == exten.compare(QStringLiteral("upt"), Qt::CaseInsensitive)) {
+ extension_hint = WPTDATAMASK;
+- } else if (0 == exten.compare("log", Qt::CaseInsensitive)) {
++ } else if (0 == exten.compare(QStringLiteral("log"), Qt::CaseInsensitive)) {
+ extension_hint = TRKDATAMASK;
+- } else if (0 == exten.compare("rte", Qt::CaseInsensitive)) {
++ } else if (0 == exten.compare(QStringLiteral("rte"), Qt::CaseInsensitive)) {
+ extension_hint = RTEDATAMASK;
+ }
+ }
+diff --git a/unicsv.cc b/unicsv.cc
+index 4a7d78ed..6312e9d2 100644
+--- a/unicsv.cc
++++ b/unicsv.cc
+@@ -430,13 +430,13 @@ unicsv_parse_time(const QString& str, int* msec, time_t* date)
+ static status_type
+ unicsv_parse_status(const QString& str)
+ {
+- if (str.compare("true", Qt::CaseInsensitive) == 0 ||
+- str.compare("yes", Qt::CaseInsensitive) == 0 ||
++ if (str.compare(QStringLiteral("true"), Qt::CaseInsensitive) == 0 ||
++ str.compare(QStringLiteral("yes"), Qt::CaseInsensitive) == 0 ||
+ str == "1") {
+ return status_true;
+ }
+- if (str.compare("false", Qt::CaseInsensitive) == 0 ||
+- str.compare("no", Qt::CaseInsensitive) == 0 ||
++ if (str.compare(QStringLiteral("false"), Qt::CaseInsensitive) == 0 ||
++ str.compare(QStringLiteral("no"), Qt::CaseInsensitive) == 0 ||
+ str == "0") {
+ return status_false;
+ }
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch
new file mode 100644
index 000000000000..ce1b0489146f
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch
@@ -0,0 +1,70 @@
+From 604178aa8ad4d3c3ad218df24c1e9a6a1f683bb3 Mon Sep 17 00:00:00 2001
+From: Harel Mazor <harel.mazor@gmail.com>
+Date: Tue, 24 Jan 2017 00:35:04 +0200
+Subject: [PATCH] Added geojson read capablity, moved magic strings to
+ constants, fixed windows compilation issues.
+
+---
+ tef_xml.cc | 24 +++----
+
+* Removed any unrelated changes except for s/windows/Qt-5.9/ compilation issues.
+
+diff --git a/tef_xml.cc b/tef_xml.cc
+index b32d69b3..37dd85ba 100644
+--- a/tef_xml.cc
++++ b/tef_xml.cc
+@@ -72,11 +72,11 @@ tef_start(xg_string args, const QXmlStreamAttributes* attrv)
+ bool valid = false;
+
+ foreach(QXmlStreamAttribute attr, *attrv) {
+- if (attr.name().compare("Comment", Qt::CaseInsensitive) == 0) {
+- if (attr.value().compare("TourExchangeFormat", Qt::CaseInsensitive) == 0) {
++ if (attr.name().compare(QString("Comment"), Qt::CaseInsensitive) == 0) {
++ if (attr.value().compare(QString("TourExchangeFormat"), Qt::CaseInsensitive) == 0) {
+ valid = true;
+ }
+- } else if (attr.name().compare("Version", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("Version"), Qt::CaseInsensitive) == 0) {
+ version = attr.value().toString().toDouble();
+ }
+ }
+@@ -95,9 +95,9 @@ tef_header(xg_string args, const QXmlStreamAttributes* attrv)
+ {
+ route = route_head_alloc();
+ foreach(QXmlStreamAttribute attr, *attrv) {
+- if (attr.name().compare("Name", Qt::CaseInsensitive) == 0) {
++ if (attr.name().compare(QString("Name"), Qt::CaseInsensitive) == 0) {
+ route->rte_name = attr.value().toString().trimmed();
+- } else if (attr.name().compare("Software", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("Software"), Qt::CaseInsensitive) == 0) {
+ route->rte_desc = attr.value().toString().trimmed();
+ }
+ }
+@@ -248,20 +248,20 @@ tef_item_start(xg_string args, const QXmlStreamAttributes* attrv)
+ QString attrstr = attr.value().toString();
+ QByteArray attrtext = attrstr.toUtf8();
+
+- if (attr.name().compare("SegDescription", Qt::CaseInsensitive) == 0) {
++ if (attr.name().compare(QString("SegDescription"), Qt::CaseInsensitive) == 0) {
+ wpt_tmp->shortname = attrstr.trimmed();
+- } else if (attr.name().compare("PointDescription", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("PointDescription"), Qt::CaseInsensitive) == 0) {
+ wpt_tmp->description = attrstr.trimmed();
+- } else if (attr.name().compare("ViaStation", Qt::CaseInsensitive) == 0 &&
+- attr.value().compare("true", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("ViaStation"), Qt::CaseInsensitive) == 0 &&
++ attr.value().compare(QString("true"), Qt::CaseInsensitive) == 0) {
+ wpt_tmp->wpt_flags.fmt_use = 1; /* only a flag */
+
+ /* new in TEF V2 */
+- } else if (attr.name().compare("Instruction", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("Instruction"), Qt::CaseInsensitive) == 0) {
+ wpt_tmp->description = attrstr.trimmed();
+- } else if (attr.name().compare("Altitude", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("Altitude"), Qt::CaseInsensitive) == 0) {
+ wpt_tmp->altitude = attrstr.toDouble();
+- } else if (attr.name().compare("TimeStamp", Qt::CaseInsensitive) == 0) {
++ } else if (attr.name().compare(QString("TimeStamp"), Qt::CaseInsensitive) == 0) {
+ /* nothing for the moment */
+ }
+ }
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_shapelib.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_shapelib.patch
new file mode 100644
index 000000000000..d3a4fa0c16a3
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_shapelib.patch
@@ -0,0 +1,68 @@
+--- a/configure.in 2017-01-02 06:05:19.000000000 +0100
++++ b/configure.in 2017-01-21 00:26:02.239786037 +0100
+@@ -402,7 +402,7 @@
+ AC_SUBST(QT_SYSINC_OPT)
+ AC_SUBST(QT_LIBS)
+
+-AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty])
++AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile zlib/empty])
+ AC_CONFIG_FILES([gui/makelinuxdist.sh], [chmod +x gui/makelinuxdist.sh])
+ AC_OUTPUT
+
+--- a/Makefile.in 2017-01-02 06:05:19.000000000 +0100
++++ b/Makefile.in 2017-01-21 00:29:05.715731486 +0100
+@@ -100,7 +100,7 @@
+ # 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
+
+ MINIZIP=zlib/contrib/minizip/zip.o \
+ zlib/contrib/minizip/ioapi.o
+@@ -119,7 +119,7 @@
+ src/core/xmlstreamwriter.o \
+ src/core/usasciicodec.o\
+ src/core/ziparchive.o \
+- $(GARMIN) $(JEEPS) $(SHAPE) @ZLIB@ $(FMTS) $(FILTERS)
++ $(GARMIN) $(JEEPS) @ZLIB@ $(FMTS) $(FILTERS)
+ OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@
+
+ DEPFILES = $(OBJS:.o=.d)
+@@ -148,10 +148,10 @@
+ all: gpsbabel$(EXEEXT)
+
+ gpsbabel$(EXEEXT): configure Makefile $(OBJS) @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)
+- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
+
+ Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \
+ gbversion.h.in gui/setup.iss.in
+@@ -894,11 +894,7 @@
+ session.o: session.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
+ gbfile.h cet.h inifile.h session.h src/core/datetime.h
+ shape.o: shape.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
+- gbfile.h cet.h inifile.h session.h src/core/datetime.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
++ gbfile.h cet.h inifile.h session.h src/core/datetime.h
+ skyforce.o: skyforce.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
+ gbfile.h cet.h inifile.h session.h src/core/datetime.h
+ skytraq.o: skytraq.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
+--- a/shape.cc 2017-01-02 06:05:19.000000000 +0100
++++ b/shape.cc 2017-01-21 00:29:58.514391517 +0100
+@@ -20,7 +20,7 @@
+
+ */
+ #include "defs.h"
+-#include "shapelib/shapefil.h"
++#include <libshp/shapefil.h>
+ #include <stdlib.h>
+
+ #if SHAPELIB_ENABLED
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_zlib.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_zlib.patch
new file mode 100644
index 000000000000..ce3591715492
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-use_system_zlib.patch
@@ -0,0 +1,80 @@
+--- a/configure.in 2017-01-21 03:17:05.480317203 +0100
++++ b/configure.in 2017-01-21 03:26:53.743671224 +0100
+@@ -402,7 +402,7 @@
+ AC_SUBST(QT_SYSINC_OPT)
+ AC_SUBST(QT_LIBS)
+
+-AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile zlib/empty])
++AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile])
+ AC_CONFIG_FILES([gui/makelinuxdist.sh], [chmod +x gui/makelinuxdist.sh])
+ AC_OUTPUT
+
+--- a/Makefile.in 2017-01-21 03:17:05.530317828 +0100
++++ b/Makefile.in 2017-01-21 03:32:19.447032690 +0100
+@@ -102,14 +102,7 @@
+
+ SHAPE=-lshp
+
+-MINIZIP=zlib/contrib/minizip/zip.o \
+- zlib/contrib/minizip/ioapi.o
+-
+-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 \
+- zlib/uncompr.o zlib/gzlib.o zlib/gzclose.o zlib/gzread.o \
+- zlib/gzwrite.o zlib/zutil.o $(MINIZIP)
+-
++ZLIB=-lz -lminizip
+
+ LIBOBJS = queue.o route.o waypt.o filter_vecs.o util.o vecs.o mkshort.o \
+ csv_util.o strptime.o grtcirc.o util_crc.o xmlgeneric.o \
+@@ -119,7 +112,7 @@
+ src/core/xmlstreamwriter.o \
+ src/core/usasciicodec.o\
+ src/core/ziparchive.o \
+- $(GARMIN) $(JEEPS) @ZLIB@ $(FMTS) $(FILTERS)
++ $(GARMIN) $(JEEPS) $(FMTS) $(FILTERS)
+ OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@
+
+ DEPFILES = $(OBJS:.o=.d)
+@@ -148,10 +141,10 @@
+ all: gpsbabel$(EXEEXT)
+
+ gpsbabel$(EXEEXT): configure Makefile $(OBJS) @GPSBABEL_DEBUG@
+- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) $(ZLIB) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
+
+ gpsbabel-debug: $(OBJS)
+- $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) $(ZLIB) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
+
+ Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \
+ gbversion.h.in gui/setup.iss.in
+--- a/src/core/ziparchive.cc 2017-01-02 06:05:19.000000000 +0100
++++ b/src/core/ziparchive.cc 2017-01-21 03:51:30.402421165 +0100
+@@ -23,7 +23,7 @@
+
+ #include "defs.h"
+ #include "src/core/logging.h"
+-#include "zlib/contrib/minizip/zip.h"
++#include <minizip/zip.h>
+
+ #include <QtCore/QFile>
+ #include <QtCore/QDebug>
+@@ -89,4 +89,4 @@
+ return true;
+ }
+ return false;
+-}
+\ No newline at end of file
++}
+--- a/src/core/ziparchive.h 2017-01-02 06:05:19.000000000 +0100
++++ b/src/core/ziparchive.h 2017-01-21 03:51:05.931115241 +0100
+@@ -21,7 +21,7 @@
+
+ #include <QtCore/QString>
+ #include <QtCore/QStringList>
+-#include "zlib/contrib/minizip/zip.h"
++#include <minizip/zip.h>
+
+ class ZipArchive
+ {
diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-xmldoc.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-xmldoc.patch
new file mode 100644
index 000000000000..3fdd274927eb
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-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 \
+- "http://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.5.4-r1.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild
new file mode 100644
index 000000000000..142868085915
--- /dev/null
+++ b/sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils qmake-utils
+
+DESCRIPTION="GPS waypoints, tracks and routes converter"
+HOMEPAGE="https://www.gpsbabel.org/ https://github.com/gpsbabel/gpsbabel"
+SRC_URI="
+ https://dev.gentoo.org/~asturm/${P}.tar.gz
+ doc? ( https://www.gpsbabel.org/style3.css -> gpsbabel.org-style3.css )"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
+IUSE="doc +gui"
+
+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}
+ doc? (
+ app-text/docbook-xml-dtd:4.1.2
+ dev-lang/perl
+ dev-libs/libxslt
+ )
+ gui? ( dev-qt/linguist-tools:5 )
+"
+
+DOCS=( AUTHORS README.{contrib,igc,mapconverter,md,xmapwpt} )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.4.3-fix_binary_name.patch
+ "${FILESDIR}"/${P}-disable_statistic_uploading.patch
+ "${FILESDIR}"/${P}-disable_update_check.patch
+ "${FILESDIR}"/${P}-disable_version_check.patch
+ "${FILESDIR}"/${P}-use_system_shapelib.patch
+ "${FILESDIR}"/${P}-use_system_zlib.patch
+ "${FILESDIR}"/${P}-xmldoc.patch
+ "${FILESDIR}"/${P}-qt-5.9-{1,2}.patch
+)
+
+RESTRICT="test" # bug 421699
+
+src_prepare() {
+ default
+
+ # remove bundled libs and cleanup
+ rm -r shapelib zlib || die
+ sed -i -e "s: zlib\/[a-z]*\.h::g" Makefile.in || die
+
+ mv configure.in configure.ac || die
+ sed -i -e "/^configure:/s/configure.in/configure.ac/" Makefile.in || die
+
+ use doc && cp "${DISTDIR}/gpsbabel.org-style3.css" "${S}"
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with doc doc "${S}"/doc/manual) \
+ LRELEASE=$(qt5_get_bindir)/lrelease \
+ LUPDATE=$(qt5_get_bindir)/lupdate \
+ QMAKE=$(qt5_get_bindir)/qmake \
+ --with-zlib=system
+
+ if use gui; then
+ pushd "${S}/gui" > /dev/null || die
+ $(qt5_get_bindir)/lrelease *.ts || die
+ eqmake5
+ popd > /dev/null
+ fi
+}
+
+src_compile() {
+ default
+ if use gui; then
+ pushd "${S}/gui" > /dev/null || die
+ emake
+ popd > /dev/null
+ fi
+
+ 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
+
+ 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
+}
diff --git a/sci-geosciences/gpsbabel/metadata.xml b/sci-geosciences/gpsbabel/metadata.xml
new file mode 100644
index 000000000000..be769e6d50b3
--- /dev/null
+++ b/sci-geosciences/gpsbabel/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">gpsbabel/gpsbabel</remote-id>
+ </upstream>
+ <use>
+ <flag name="gui">Enable the graphical user interface (requires <pkg>dev-qt/qtwebengine</pkg>)</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/gpscorrelate/Manifest b/sci-geosciences/gpscorrelate/Manifest
new file mode 100644
index 000000000000..f5edd0d794a5
--- /dev/null
+++ b/sci-geosciences/gpscorrelate/Manifest
@@ -0,0 +1,6 @@
+AUX gpscorrelate-1.6.1-makefile.patch 1609 SHA256 23bfac1bd3f25dcfc511019c4da97e3cb44094cdf88e78fd173933ffc02216a0 SHA512 274a3db1a2a752338966beae989e2075f81b6d51b1d7f51d9810d7b6e01ea581468e2add05e631f6f8626ee234a6c7e700cf90ce7dc08a7d5c5cad282a6f7f59 WHIRLPOOL 23828d060957ceee799540dbe4e4e0d483a6a45a4d838c4e0e65700a2a573f6b60b1a129906de9959f4ffc77aa30ba80c61e581db0d727471220173cf7225d96
+DIST gpscorrelate-1.6.1.tar.gz 154531 SHA256 966285c0a6df5ac2cc63c1f9650e65c70e303cf11d08dc283357bcd745cb5201 SHA512 c7e50980adc7173e6addb15b0a6451f44d8bbac5511643445b9bed85226abb4153b67032a5e9f95f6fe2f192d5b3d1965fecd3c00a21709a0d6e5dc59720132f WHIRLPOOL 49284a0ee75aef0d661c82d4ac4f2ca6dfa52cdabdb659718f030ced433c24f67af823aa93966df75d037ef7942c2c8191e8e399e8845cb561ef04adc80018e2
+EBUILD gpscorrelate-1.6.1.ebuild 944 SHA256 956b6172b2267b733c7fa83eb0a03519a385a4fce162cf8bcdd6451f753ace12 SHA512 198d0e6428d6ce9d0609620067c8440065ec0b92855e63b059a43361f4102e451c6afa6ab4ce7b6fb27e0844eb8109e714538ca8829537aeb882005638612ffc WHIRLPOOL 3a99ea911a071f074e52eb569580d07a10f7309c6ce4ed485c38bd1fc956ae7743290d3cd4b541ef9353fd03a6bb3c97069cc4ca6e50336f5a0682c2f7d17414
+MISC ChangeLog 2612 SHA256 935b30a9b111bfafebdce548dd54cad3bb3c48c9d2187f3ec39d68b3e8ec44eb SHA512 0c3062c3d042c6283911eee8a4c6c05ab164bf54993725e6c6a3e636c0cb795b81c715783249a1d829beb786f0acb3c67ed50b19b92d52b9d6ceb7580fb6b257 WHIRLPOOL 06a5d930b767cbb743ae0c0229329b90bed1ec7da89b84a44534eb76bf328bc83b94fb5d6e4ef75197a68f3e3c506015d69d4a4429f80ed418fe54e9db251f1c
+MISC ChangeLog-2015 2638 SHA256 489e3aa52f673d9f327dc6c7701fce9f6a4ee83591b4836beda119d31cff8b4f SHA512 e87d9955e237d100fddb237f4e3ce2c1753cd0e6ae22ff6d65b5e46c7d59124d4db4253fa4b048fdeb3c2d56591da9d2faacaad7f73bee2ba139db593739b048 WHIRLPOOL baea7fa183794471b182eabfc3f7d4916de33b85e3e82efaa73a77f1cf8a0ce37a8fe9dadf4ba33f4aed4c1c8520963ed40504b71c20672f104e0a25fe936e22
+MISC metadata.xml 356 SHA256 187573fb4e5db1fbe05e2538f3701c3a4e7a4ba2cea20faf89fc0d06bc47b9f7 SHA512 e9c7c6dc654cb5276c1b211c8e4817fd09cb0ed3689b53d423733e651ec4a912b4f54dbbd08299bd80c6ae637ee41e91ca1ebb323ff2cc29e3b36dbe40566fb2 WHIRLPOOL 0a509449a460056bfa6b21e491d434bf80d19941d14c04bb36931c05b5524ae90e47f99b8aea16296b12b73fb46466bcb22649465d35d275df46c84d18fc3adf
diff --git a/sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-makefile.patch b/sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-makefile.patch
new file mode 100644
index 000000000000..f48dba1882f2
--- /dev/null
+++ b/sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-makefile.patch
@@ -0,0 +1,47 @@
+diff -urN gpscorrelate-1.6.1.old/Makefile gpscorrelate-1.6.1/Makefile
+--- gpscorrelate-1.6.1.old/Makefile 2011-06-08 13:51:06.000000000 +0200
++++ gpscorrelate-1.6.1/Makefile 2011-06-08 14:13:18.000000000 +0200
+@@ -4,11 +4,15 @@
+
+ COBJS = main-command.o unixtime.o gpx-read.o correlate.o exif-gps.o
+ GOBJS = main-gui.o gui.o unixtime.o gpx-read.o correlate.o exif-gps.o
+-CFLAGS = -Wall
+-override CFLAGS += $(shell pkg-config --cflags libxml-2.0 gtk+-2.0) -I/usr/include/exiv2
+-OFLAGS = -Wall
+-override OFLAGS += $(shell pkg-config --libs libxml-2.0 gtk+-2.0) -lm -lexiv2
+-prefix = /usr/local
++CFLAGS += $(shell pkg-config --cflags libxml-2.0) -I/usr/include/exiv2
++CXXFLAGS += $(shell pkg-config --cflags libxml-2.0) -I/usr/include/exiv2
++CLIBS = $(shell pkg-config --libs libxml-2.0) -lm -lexiv2 -lstdc++
++ifdef BUILD_GUI
++CXXFLAGS += $(shell pkg-config --cflags gtk+-2.0)
++CFLAGS += $(shell pkg-config --cflags gtk+-2.0)
++CLIBS += $(shell pkg-config --libs gtk+-2.0)
++endif
++prefix ?= /usr/local
+ bindir = $(prefix)/bin
+ datadir = $(prefix)/share
+ mandir = $(datadir)/man
+@@ -18,16 +22,16 @@
+ all: gpscorrelate gpscorrelate-gui gpscorrelate.1
+
+ gpscorrelate: $(COBJS)
+- g++ $(OFLAGS) -o $@ $(COBJS)
++ $(CXX) $(LDFLAGS) $(COBJS) $(CLIBS) -o $@
+
+ gpscorrelate-gui: $(GOBJS)
+- g++ $(OFLAGS) -o $@ $(GOBJS)
++ $(CXX) $(LDFLAGS) $(GOBJS) $(CLIBS) -o $@
+
+-.c.o:
+- gcc $(CFLAGS) -c -o $*.o $<
++%.o: %.c
++ $(CC) -c -o $@ $< $(CFLAGS)
+
+-.cpp.o:
+- g++ $(CFLAGS) -c -o $*.o $<
++%.o: %.cpp $(DEPS)
++ $(CXX) -c -o $@ $< $(CXXFLAGS)
+
+ clean:
+ rm -f *.o gpscorrelate{,.exe} gpscorrelate-gui{,.exe}
diff --git a/sci-geosciences/gpscorrelate/gpscorrelate-1.6.1.ebuild b/sci-geosciences/gpscorrelate/gpscorrelate-1.6.1.ebuild
new file mode 100644
index 000000000000..07204797db36
--- /dev/null
+++ b/sci-geosciences/gpscorrelate/gpscorrelate-1.6.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Tool for adjusting EXIF tags of your photos with a recorded GPS trace"
+HOMEPAGE="https://github.com/freefoote/gpscorrelate"
+SRC_URI="http://freefoote.dview.net/linux/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="doc gtk"
+
+RDEPEND="
+ dev-libs/libxml2:2
+ media-gfx/exiv2:=
+ gtk? ( x11-libs/gtk+:2 )
+"
+DEPEND="${RDEPEND}
+ app-text/docbook-xml-dtd:4.2
+ dev-libs/libxslt
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}/${PN}-1.6.1-makefile.patch" )
+
+src_compile() {
+ tc-export CC CXX
+ local opts="gpscorrelate gpscorrelate.1"
+ use gtk && opts+=" gpscorrelate-gui BUILD_GUI=1"
+ emake ${opts}
+}
+
+src_install() {
+ dobin ${PN}
+ if use gtk; then
+ dobin ${PN}-gui
+ doicon ${PN}-gui.svg
+ domenu ${PN}.desktop
+ fi
+ if use doc; then
+ dohtml doc/*
+ fi
+ doman ${PN}.1
+}
diff --git a/sci-geosciences/gpscorrelate/metadata.xml b/sci-geosciences/gpscorrelate/metadata.xml
new file mode 100644
index 000000000000..6f9cf14be5be
--- /dev/null
+++ b/sci-geosciences/gpscorrelate/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">freefoote/gpscorrelate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/gpsd/Manifest b/sci-geosciences/gpsd/Manifest
new file mode 100644
index 000000000000..16d55893f4ca
--- /dev/null
+++ b/sci-geosciences/gpsd/Manifest
@@ -0,0 +1,25 @@
+AUX gpsd-3.10-dbus.patch 888 SHA256 ddff0fd7adc970af01815f01e644278d81135d2421735253c6991f682cdd92ad SHA512 26a8259f5d18ada712220c537a09d4488a908755190a11470fca36a9d2a2b83be264803d29e6aec1377dca4ad5a465283eaedff5d2f318c1cba57f3506e88a7d WHIRLPOOL e1c4654ba9e567a216762994919620d3147c1faef364137a163f73a29de3fa5b7f61a771459d5b97d69b7a1f44be6e72dd14c9c199149c7f28bf056f961b1bec
+AUX gpsd-3.10-nmea-disabled.patch 1818 SHA256 371bff4f18b23f6f93b0a237c7043eaaa98cf7dc4537dc4abc9f6d681bf46ad6 SHA512 e4e4653cb5cb4f6477a58b0cdc27de74c138cdb09af01eb922b276c6286d95171e460aa9a749f360b556e463e0aeca33008ba0dc3d8771934380261eb8c750ad WHIRLPOOL 1c2171600dc7578ed35257d0edc7e99d191c891b726f0fdd62f9e7839f754b143fe505af363ef13393aedb4443ebea17a1c3f63ef010b545df859868bc5ba2b2
+AUX gpsd-3.10-rpath.patch 476 SHA256 a09ffb9052563b8f9d93a30c6ded7508a4219fd424c02e06b1c1da03cadf5348 SHA512 f83743ea2045edd6ef35c4d92155c0e07c6be64e67a36a31c7455718214c55db5bedf18ce9ffed22e9a80bc8c04c4e7e728723f0e6bc3dc35ec14c3e94b0b0fa WHIRLPOOL 2c69c65843ff3682428aa72e04fb3c4a5f18412b5012da6d9277481dd9d04845d32382d0c9fccb51bd1e38a64bfda744ac5b1c61294b643f3728832dec9b9578
+AUX gpsd-3.10-udev-install.patch 1400 SHA256 02eed61a8f91e62304ab5c26d87e1db72634a5590214fdcd08299449383c7c0d SHA512 9dc807b779850aca345ecb893e90d9cbd47d19b36e4058afa91ab6d3ea386940dacfcf8cffc3f204bc8076df6add73eceabd7dc15be4a2c6a03f58c2b6c43b93 WHIRLPOOL f4f9a207733fda2fe4705cc2639871047d6aae2e1ed76f95b3f39a35797a39683d98ecade9f0f74cdd31fd8c0cf91b2759f80c020db62f1cbb370eeb73d25c7b
+AUX gpsd-3.15-broken-install.patch 1135 SHA256 80fb8318d8c35d0b8500d642ea4f1befc6623e473c58192a2a3f9208034edd84 SHA512 ac01e2d7d9f98828e26f1d72c4d2077db05ba9d9ce18cba3f4f32d2fa20a5b1cdc7a69fb0649e58f8e8e69e2b4381dc72383f7a6b77149226ae4290c7b0f4d75 WHIRLPOOL a2da7d9e747dc661c0ce36c9ab2915fb5408f73bd4ceaf245471373c38cf5dfb2c1db71635a4fae882bcb5e97c33e8814943bc41391c51a985bdbd63eca86191
+AUX gpsd-3.15-dynamic-libs.patch 4061 SHA256 cf8a0ca8a920d39ab826a929c03e82ea3532b8f1f2766ae3536165f96f6ab9b5 SHA512 5feb21e238ff8e5178cdb1b27df8a36eba8acfb8ddfe7cca94457b29a0e6180abdc981090697c34a0fa4c45f10d8304c8472b854234ef5f577b8617a288bad2c WHIRLPOOL 54df0d5469b3564d4789818b968b9014d40d7ecd2b10d0f4c94a763a78fad84ad56a900cfd3390cc6aaba7ca8e741597cd73367d9a07cf4c53aa19fc41bb593f
+AUX gpsd-3.15-libgpsd.patch 3558 SHA256 d6a04ae7adc99c087a15606c4198230a8509c06f1adc4339a81668dd5f43cbe7 SHA512 445e2815f48d3c2baf3dab9bdc693d7eee5e4b1f3dc7b24ab858b0854143d077f548bb6f77352cc24fdf4d75cf0130c1d9888e74717e192f6efccf28119f6eca WHIRLPOOL ddfa3e8ea2481dc138c0ea2a9b98cdd1925cc08d7e4965044b6193bd36744401ed51d200f01b57d4b226cbb1cafff9045cd87fbfa7a6420f0f74f87f877d8992
+AUX gpsd-3.15-timebase.patch 457 SHA256 e02e6bf116c37f5515ca19fe529bf4bf7102d608cdb3c5e7019486181e61a0a1 SHA512 5d2a8f27d448e599c35119635f54b1a1ed52a6432065b03fc0625fa4c4a4368ab2a7c5ab4ac0ca455ff3ef04fd3dfca73c3401e4f18d0136253f7f5466268048 WHIRLPOOL 4c181a957065a5667b4084ee0fb70751927ad4e04154ec66ee794bd3fee96fe2243dceaf42c6d240569e6edc38cc6023ff72be32dde0431d89082e5be19ec082
+AUX gpsd-3.16-sysmacros.patch 817 SHA256 49d2df699693356cb7b7657a0789f35c49b41f015626606c5b30e400f0814630 SHA512 c19ccff871439c8de73c7ec33c640960a319728dfbd439f5f1da07afbe7cc0ddfca0430bbcc9fbf90e2f1306615def7284bd54a4986a07f702f148ffc22ff300 WHIRLPOOL a28403f7ceaa5707826a4285ebd50cf7408262709a949e40ea021fcb8a07eb4c47fb746c5ab200ec60dadbb25d51de0f475b9dc9973eb4b71a7febe83bbb1e20
+AUX gpsd-3.17-do_not_rm_library.patch 630 SHA256 5b497b0693efd8bf031bc8ab165b9c25459fdbfe420ebc68f9f92db67c106464 SHA512 70a1db3b2f478885fd0035a8c812f9ddf5230de4ede77c12a6bf3d81d744a902a4c5e14b788f97d9c653e1384653af1cdf849f72b0eb2f49030776c413c60d42 WHIRLPOOL b0d293fc7725b6d2e59d262fc1e9b1d0908e16c467beaf88455c400011016ac3f3ff9ce140e716ac2588c3c490b7aa1ee4e04c17376260f1002b9fbb5d60c8c8
+AUX gpsd-3.3-setup.py 448 SHA256 3a8f18f7f1e957c1b33ea25046dc4116422d087dd9f880f7bf2ad8fd0153f4c4 SHA512 4036bac7c095ba89795b565461bda8f282b7e1476867437db2beabeb1ba3a2a1b5a5b748acaa9ee1a2df693d854654e07f86610f387995abd0b057d3684b651b WHIRLPOOL fe5acbba6266ae89457c6d4c9361f5c9968c19d5053161c28610bbd563c2e94e17168a6837dfb6e0a46dfbb079f10b40dda3f4e7afb4dc7448b32eb7713bbf45
+AUX gpsd-3.8-ldflags.patch 476 SHA256 83f95296c58ecd63d7ff3a9ca69973613c7f95623b33f45efd92aed095b79c52 SHA512 58cf1622d223ea997543484d7643b15335e3766a58be384a8c8906da097b2bc8c884d739b141b8d060f326f2cb4c43fd72f52aba4714cb023579b77a08c3cda0 WHIRLPOOL cd916dd97e2b1722f5a9f4be457308bc416775d5919c682fa15db02147bc72ef214ea59e5b20b80ca7a705243c30b6de80899edc013e6c560bcabb5ddd8235c8
+AUX gpsd-9999-do_not_rm_library.patch 630 SHA256 5b497b0693efd8bf031bc8ab165b9c25459fdbfe420ebc68f9f92db67c106464 SHA512 70a1db3b2f478885fd0035a8c812f9ddf5230de4ede77c12a6bf3d81d744a902a4c5e14b788f97d9c653e1384653af1cdf849f72b0eb2f49030776c413c60d42 WHIRLPOOL b0d293fc7725b6d2e59d262fc1e9b1d0908e16c467beaf88455c400011016ac3f3ff9ce140e716ac2588c3c490b7aa1ee4e04c17376260f1002b9fbb5d60c8c8
+AUX gpsd.conf-2 198 SHA256 f0fb3dedcafaaba20a6d79f25c38acde9b4b240eb2d4909f0272b7b785aa3a24 SHA512 75dbfe39eb900cc9587dd70794ee77ae2230765bbede47760ca227145aa3f2290b6995335ffcfeae6cd86f56b01ca87367548f4fbcf810aff1bc012b7416deef WHIRLPOOL 5c8dad0f3064897b51f857735221e7fa1a19824f57ef6c83f8a84486152428d93b9974dea5433e402850b19622a92bb55e9e187f8497fafe1fc94cedcb7c862b
+AUX gpsd.init-2 825 SHA256 eb6a7684c8d911271a806e6f3269b72d4a1100a351c92f03af5f5adcc11d5b05 SHA512 51319247eb78c3021d3eb897cb5d6026cc09d46a532a245a835459ed525947ffb6239f08126dd7e344de52e3b0387226bce060191ec3f14f99fc9f255d96f8ea WHIRLPOOL eeac0cf875f5c097bdf15c2b4ec07e178d1fda2237c0e1012308e54d11022b1e58a979c2afbc08cc33063685d49b8e8a60ef3823109c5985b34dfbd27742fa94
+DIST gpsd-3.10.tar.gz 1566622 SHA256 706fc2c1cf3dfbf87c941f543381bccc9c4dc9f8240eec407dcbf2f70b854320 SHA512 fd452185a8a9f9b8dfb2a5c2d5b6410f795d56dc46a7c216d8fcd686e43c5555a5f0421434060e9bb7afa465bb8a45a1e358108c4de42300eeb972caa334d8b6 WHIRLPOOL 52aa2285eff48f72a3e554c40bdb2b521bc36e35680a928d7ee53f3b55578d8451a573f4c75dcadc905eba7c48b41b5a317704aaf17b9699b614595560011514
+DIST gpsd-3.16.tar.gz 8587490 SHA256 03579af13a4d3fe0c5b79fa44b5f75c9f3cac6749357f1d99ce5d38c09bc2029 SHA512 a8ad85a1f17d3ea550a4b99c262e47a834ed8fd16b00e10574f7cf5f34b6c506142aa77a870a61f8827c0d0c88fe7f65f6e916089d64e84c5667d4a2ca89c543 WHIRLPOOL 67d6db04593d6df62c64848965fd2c72d806003df9ad8a3623665ecf73a165e12c977d1d3988e46f7aec3c1cdee8bc026c515fd3be855b6da282def4e32498be
+DIST gpsd-3.17.tar.gz 8755304 SHA256 68e0dbecfb5831997f8b3d6ba48aed812eb465d8c0089420ab68f9ce4d85e77a SHA512 71085053f600730e0f2de269c59ce0a17ae106ef01403f02d78418b267c6adb9818d541fba59eb23bf71cdb67c5442c82b4948d262ef7e74bb993dcae677a1b1 WHIRLPOOL 373c3f5f69696013b9af247bb929bd9019d39440d758d79a9c4f5797b36c69af0085fed79c3a5c42ca9412bd0b754d574afc48e44567b029b789dccf8589a17e
+EBUILD gpsd-3.10.ebuild 4785 SHA256 78af1c5d0582938e61a5fed3a4d9fa228d0411173afc769e8e5279ad9b858171 SHA512 6c253b1459de0a8233537543a8c5031b6b30b2f78b4a080f31745f0fe75bb90254843a66e4f59ada264f0bfaacc3c1756351c2b0bb357a6056d96a3164bbe026 WHIRLPOOL ace163b9ccc8bddfba7db4a38b93d4caa8f5622177a5e89a3ba3c4eb76a8330b647f5445c9a783ab98a46078ac92f157bb99db8412439104b9b141d5f4aae747
+EBUILD gpsd-3.16.ebuild 4930 SHA256 6274a586ef8a29af3a3503691799eb4ee6d5a96cba7bb877b09eb403bc431e78 SHA512 0b977e0cf70f20ac136046ba83d3be128e0a78c3f4a62e593a7e17daeacf0b300803e34c90b15b3e3ee51c58c1c304925f9b25e78f1679edfddd7b1ffb8f26d4 WHIRLPOOL 73dac8aeb0c74d5058c1167ae127b984138bbdf2ec8528bf71353880e0fb47a97d099ee7599e96d3e3585e9ef39b4071dddf8d71c3d0519aaa48ed0ac419c5f3
+EBUILD gpsd-3.17.ebuild 4629 SHA256 05745dd4fcf3e8f9f500cce9063baecc7ac8a92570aa21f2038b2c59496b45cc SHA512 0b7a2df7735101138d71a1076f4625e8b6e4c066953f0d2aff6ea55fcd966a0da7a77d30a924717745ea063f4a02eab857dca8063f46d0674b7c6c54969e02aa WHIRLPOOL 9f2185544fe16fcc8052ebea1894db70bdb256c55232bf6c781763f083e3df041cf9b27161bbfc8ec48a8190a0dac9523b39572fc14b220485f370f3c0610612
+EBUILD gpsd-9999.ebuild 4629 SHA256 05745dd4fcf3e8f9f500cce9063baecc7ac8a92570aa21f2038b2c59496b45cc SHA512 0b7a2df7735101138d71a1076f4625e8b6e4c066953f0d2aff6ea55fcd966a0da7a77d30a924717745ea063f4a02eab857dca8063f46d0674b7c6c54969e02aa WHIRLPOOL 9f2185544fe16fcc8052ebea1894db70bdb256c55232bf6c781763f083e3df041cf9b27161bbfc8ec48a8190a0dac9523b39572fc14b220485f370f3c0610612
+MISC ChangeLog 6084 SHA256 b4b74a420fccfc90719a513f9c892fc733ef90f3e8c323e5d1ef40cda90d7be1 SHA512 53aa16d14019deda8de0f125175c649c5c4039109d55c00e370d701c7b4eb6bc3cd41e4ec97a3cd1ad70151990aee0f045caea9fb4d13d0651ee980b0e3b3baa WHIRLPOOL d811759c121ef5be99180dda63a6a3df20273647c6d109ad0428320ad9a97e0c93dd2db2f0cf08c958151d63089c23e6f2abd15093fdc34d428539da1722116c
+MISC ChangeLog-2015 22188 SHA256 6a3c9ff31f9b2f818fdf55961b1446449caf441e1c7821695fafd8c38c90b323 SHA512 8f8880c98d97c28cf30aa87a771b91609219dd7c17029cf815c6fb6e618c7dff5eb1147f281873e6af1f6ed0ff9a27eb437058277066adbd620117d13c87cce4 WHIRLPOOL 644a8edda09936e2ef3ffeb67bb4457c9308961ede2ab64da5f4c70396cb5505b0c91959f5e2820289e4c48bb4d66f5cdc13a524089668cfc47204818f78463c
+MISC metadata.xml 950 SHA256 8f358f5c43e91db78dbf4ab30be6ee39167ead2c603c05c1e21fd0144f185e4d SHA512 a5e8e60afc8c02e769cf496caa30003173455d82554378457ee7350bcc64b57a88b697cf2284a7a56f008461a33d260d167ce866bde0710e235f684e201a5bf8 WHIRLPOOL a8641307501969495a9d176389853f59bfed34ceacd3638059daf182961bcdd5ebe9dfbc5a4a7a816401230cf91188fefb9e01b9876ab735243eb9139ccdb425
diff --git a/sci-geosciences/gpsd/files/gpsd-3.10-dbus.patch b/sci-geosciences/gpsd/files/gpsd-3.10-dbus.patch
new file mode 100644
index 000000000000..3ea68386e2f1
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.10-dbus.patch
@@ -0,0 +1,32 @@
+From efaf7972ca95ff52464dedfe30bafa45095d299e Mon Sep 17 00:00:00 2001
+From: Bernd Zeimetz <bernd@bzed.de>
+Date: Sat, 23 Nov 2013 02:56:22 +0100
+Subject: [PATCH] Make it build abain with dbus enabled.
+
+This reverts a bad change to SConstruct in 57e9bdea.
+
+It still leaves the issue that scons links all file sstaically now.
+---
+ SConstruct | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/SConstruct b/SConstruct
+index 290910b..51b07e1 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -968,7 +968,11 @@ gpsdlibs = ["-lgpsd"] + usblibs + bluezlibs + gpslibs
+ # linking
+ # The final executable will build but not be portable.
+
+-env.StaticLibrary(target = 'libgps.a', source = libgps_sources)
++env.StaticLibrary(target='libgps.a',
++ source=libgps_sources,
++ parse_flags=dbus_libs + rtlibs)
++
++
+
+ # Source groups
+
+--
+1.8.4.3
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.10-nmea-disabled.patch b/sci-geosciences/gpsd/files/gpsd-3.10-nmea-disabled.patch
new file mode 100644
index 000000000000..e87eff8a5644
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.10-nmea-disabled.patch
@@ -0,0 +1,54 @@
+https://bugs.gentoo.org/493022
+
+From c31095e1562494a74d56b46fcc01541d1444cd5c Mon Sep 17 00:00:00 2001
+From: Simon Dawson <spdawson@gmail.com>
+Date: Sun, 8 Dec 2013 10:31:25 +0000
+Subject: [PATCH] gpsmon: fix build when nmea is false
+
+When nmea is False and ncurses support is enabled, the build fails as
+follows.
+
+gpsmon.o: In function `gpsmon_hook':
+gpsmon.c:(.text+0x974): undefined reference to `driver_nmea0183'
+collect2: error: ld returned 1 exit status
+scons: *** [gpsmon] Error 1
+scons: building terminated because of errors.
+
+The problem appears to be a failure to protect use of the driver_nmea0183
+variable with appropriate #ifdef guards.
+
+Signed-off-by: Simon Dawson <spdawson@gmail.com>
+Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
+---
+ gpsmon.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/gpsmon.c b/gpsmon.c
+index de1f14b..b030979 100644
+--- a/gpsmon.c
++++ b/gpsmon.c
+@@ -36,7 +36,9 @@ extern struct monitor_object_t garmin_mmt, garmin_bin_ser_mmt;
+ extern struct monitor_object_t italk_mmt, ubx_mmt, superstar2_mmt;
+ extern struct monitor_object_t fv18_mmt, gpsclock_mmt, mtk3301_mmt;
+ extern struct monitor_object_t oncore_mmt, tnt_mmt, aivdm_mmt;
++#ifdef NMEA_ENABLE
+ extern const struct gps_type_t driver_nmea0183;
++#endif /* NMEA_ENABLE */
+
+ /* These are public */
+ struct gps_device_t session;
+@@ -477,9 +479,11 @@ static void select_packet_monitor(struct gps_device_t *device)
+ */
+ if (device->packet.type != last_type) {
+ const struct gps_type_t *active_type = device->device_type;
++#ifdef NMEA_ENABLE
+ if (device->packet.type == NMEA_PACKET
+ && ((device->device_type->flags & DRIVER_STICKY) != 0))
+ active_type = &driver_nmea0183;
++#endif /* NMEA_ENABLE */
+ if (!switch_type(active_type))
+ longjmp(terminate, TERM_DRIVER_SWITCH);
+ else {
+--
+2.1.2
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.10-rpath.patch b/sci-geosciences/gpsd/files/gpsd-3.10-rpath.patch
new file mode 100644
index 000000000000..8d4a309f0957
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.10-rpath.patch
@@ -0,0 +1,13 @@
+don't set the -rpath flag to the install dir as this breaks DESTDIR
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -287,7 +287,7 @@ def installdir(dir, add_destdir=True):
+ # Honor the specified installation prefix in link paths.
+ if env["sysroot"]:
+ env.Prepend(LIBPATH=[env["sysroot"] + installdir('libdir', add_destdir=False)])
+-if env["shared"]:
++if env["shared"] and env["chrpath"]:
+ env.Prepend(RPATH=[installdir('libdir')])
+
+ # Give deheader a way to set compiler flags
diff --git a/sci-geosciences/gpsd/files/gpsd-3.10-udev-install.patch b/sci-geosciences/gpsd/files/gpsd-3.10-udev-install.patch
new file mode 100644
index 000000000000..5d81466b9709
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.10-udev-install.patch
@@ -0,0 +1,40 @@
+From 6821edb2d40956e5f93a80420ae1dbf825b95281 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 11 Mar 2013 13:26:57 -0400
+Subject: [PATCH] fix DESTDIR handling with udev rules install again
+
+Commit 102e29d16c3fd9b414eeac53c794302f902ae8da reverted the DESTDIR
+logic when upgrading the udev path handling.
+
+I fixed that with commit a41cd69c87e312198834a2e6232134176c9352e5.
+
+It's been reverted yet again in an unrelated commit
+57e9bdeae2f00664616ee1d9a936a5cfe27bfd30. Why do people keep doing this?
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ SConstruct | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 51b07e1..caed21e 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1790,10 +1790,10 @@ if env['python']:
+ # is plugged in.
+
+ Utility('udev-install', 'install', [
+- 'mkdir -p ' + env['udevdir'],
+- 'cp $SRCDIR/gpsd.rules ' + env['udevdir'] + '/rules.d/25-gpsd.rules',
+- 'cp $SRCDIR/gpsd.hotplug ' + env['udevdir'],
+- 'chmod a+x ' + env['udevdir'] + '/gpsd.hotplug',
++ 'mkdir -p ' + DESTDIR + env['udevdir'] + '/rules.d',
++ 'cp $SRCDIR/gpsd.rules ' + DESTDIR + env['udevdir'] + '/rules.d/25-gpsd.rules',
++ 'cp $SRCDIR/gpsd.hotplug ' + DESTDIR + env['udevdir'],
++ 'chmod a+x ' + DESTDIR + env['udevdir'] + '/gpsd.hotplug',
+ ])
+
+ Utility('udev-uninstall', '', [
+--
+1.8.4.3
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.15-broken-install.patch b/sci-geosciences/gpsd/files/gpsd-3.15-broken-install.patch
new file mode 100644
index 000000000000..ec68a3c21a9c
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.15-broken-install.patch
@@ -0,0 +1,28 @@
+From 798629da485b9504dbb5bd5c96c9ea1d3454ebe3 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 7 Jun 2015 13:39:55 -0400
+Subject: [PATCH] Revert "# Work arount a minor bug in InstallSharedLib() link
+ handling"
+
+This reverts commit 0532106c1ea0807922ea6f868fcde384f22d4e92 as it breaks
+parallel installs. The original commit itself contains no real details.
+---
+ SConstruct | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 39a6b6a..c8a977e 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1336,8 +1336,6 @@ if env["ncurses"]:
+ binaryinstall.append(env.Install(installdir('bindir'), [cgps, gpsmon]))
+ binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpslib, libgps_version))
+ binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpsdlib, libgps_version))
+-# Work arount a minor bug in InstallSharedLib() link handling
+-env.AddPreAction(binaryinstall, 'rm -f %s/libgps.*' % (installdir('libdir'), ))
+
+ if qt_env:
+ binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib, libgps_version))
+--
+2.4.1
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.15-dynamic-libs.patch b/sci-geosciences/gpsd/files/gpsd-3.15-dynamic-libs.patch
new file mode 100644
index 000000000000..9461a666b031
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.15-dynamic-libs.patch
@@ -0,0 +1,100 @@
+From ac48583654e97ef04e8cbb52c2ae77a617c7add3 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 7 Jun 2015 01:08:39 -0400
+Subject: [PATCH] reenable dynamic libs
+
+Upstream decided to staticly link their own programs against their libs
+instead of using the shared ones. Restore dynamic linking to save space
+and such.
+---
+ SConstruct | 64 ++++++++++++++++++++++++++++++++++----------------------------
+ 1 file changed, 35 insertions(+), 29 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 28cebf0..a050f38 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -961,6 +961,9 @@ if qt_env:
+ gpsflags = ["-lm"] + rtlibs + dbusflags
+ gpsdflags = usbflags + bluezflags + gpsflags
+
++gpslibs = ["-lgps"] + gpsflags
++gpsdlibs = ["-lgpsd"] + gpsdflags + gpslibs
++
+ # Source groups
+
+ gpsd_sources = ['gpsd.c','timehint.c', 'shmexport.c','dbusexport.c']
+@@ -983,38 +986,41 @@ gpsmon_sources = [
+ ## Production programs
+
+ gpsd = env.Program('gpsd', gpsd_sources,
+- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+- parse_flags=gpsdflags+gpsflags)
++ LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
++env.Depends(gpsd, [compiled_gpslib])
++
+ gpsdecode = env.Program('gpsdecode', ['gpsdecode.c'],
+- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+- parse_flags=gpsdflags+gpsflags)
++ LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
++env.Depends(gpsdecode, [compiled_gpslib])
++
+ gpsctl = env.Program('gpsctl', ['gpsctl.c'],
+- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+- parse_flags=gpsdflags+gpsflags)
++ LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
++env.Depends(gpsctl, [compiled_gpslib])
++
+ gpsmon = env.Program('gpsmon', gpsmon_sources,
+- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+- parse_flags=gpsdflags + gpsflags + ncurseslibs)
+-gpsdctl = env.Program('gpsdctl', ['gpsdctl.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags)
+-gpspipe = env.Program('gpspipe', ['gpspipe.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags)
+-gps2udp = env.Program('gps2udp', ['gps2udp.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags)
+-gpxlogger = env.Program('gpxlogger', ['gpxlogger.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags)
+-lcdgps = env.Program('lcdgps', ['lcdgps.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags)
+-cgps = env.Program('cgps', ['cgps.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags + ncurseslibs)
+-ntpshmmon = env.Program('ntpshmmon', ['ntpshmmon.c'],
+- LIBS=['gps_static'], LIBPATH='.',
+- parse_flags=gpsflags)
++ LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs + ncurseslibs)
++env.Depends(gpsmon, [compiled_gpslib])
++
++gpsdctl = env.Program('gpsdctl', ['gpsdctl.c'], parse_flags=gpslibs)
++env.Depends(gpsdctl, compiled_gpslib)
++
++gpspipe = env.Program('gpspipe', ['gpspipe.c'], parse_flags=gpslibs)
++env.Depends(gpspipe, compiled_gpslib)
++
++gps2udp = env.Program('gps2udp', ['gps2udp.c'], parse_flags=gpslibs)
++env.Depends(gps2udp, compiled_gpslib)
++
++gpxlogger = env.Program('gpxlogger', ['gpxlogger.c'], parse_flags=gpslibs)
++env.Depends(gpxlogger, compiled_gpslib)
++
++lcdgps = env.Program('lcdgps', ['lcdgps.c'], parse_flags=gpslibs)
++env.Depends(lcdgps, compiled_gpslib)
++
++cgps = env.Program('cgps', ['cgps.c'], parse_flags=gpslibs + ncurseslibs)
++env.Depends(cgps, compiled_gpslib)
++
++ntpshmmon = env.Program('ntpshmmon', ['ntpshmmon.c'], parse_flags=gpslibs)
++env.Depends(ntpshmmon, compiled_gpslib)
+
+ binaries = [gpsd, gpsdecode, gpsctl, gpsdctl, gpspipe, gps2udp, gpxlogger, lcdgps, ntpshmmon]
+ if env["ncurses"]:
+--
+2.4.1
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.15-libgpsd.patch b/sci-geosciences/gpsd/files/gpsd-3.15-libgpsd.patch
new file mode 100644
index 000000000000..77ba8a7966f6
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.15-libgpsd.patch
@@ -0,0 +1,81 @@
+From 7b29fcb88a476daab12957ac22512edf66aee813 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 7 Jun 2015 01:08:48 -0400
+Subject: [PATCH] reenable libgpsd
+
+Upstream has decided to drop the shared libgpsd (since it wasn't used
+externally anymore), but this also meant they statically link the code
+into every app. Re-enable the shared lib so that the various runtime
+programs can continue to share and save on resources.
+---
+ SConstruct | 25 +++++++++++++------------
+ 1 file changed, 13 insertions(+), 12 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index a050f38..53f697d 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -903,7 +903,7 @@ else:
+ obj_list = []
+ for s in Flatten(sources):
+ if type(s) is str:
+- obj_list.append(env.SharedObject(s))
++ obj_list.append(env.SharedObject(s, parse_flags=parse_flags))
+ else:
+ obj_list.append(s)
+ return env.SharedLibrary(target=target,
+@@ -925,9 +925,12 @@ static_gpslib = env.StaticLibrary("gps_static",
+ [env.StaticObject(s) for s in libgps_sources],
+ rtlibs)
+
+-compiled_gpsdlib = env.StaticLibrary(target="gpsd",
+- source=[env.StaticObject(s, parse_flags=usbflags + bluezflags) for s in libgpsd_sources],
+- parse_flags=usbflags + bluezflags)
++compiled_gpsdlib = Library(env=env,
++ target="gpsd",
++ sources=libgpsd_sources,
++ version=libgps_version,
++ parse_flags=usbflags + rtlibs + bluezflags + ["-lgps"])
++env.Depends(compiled_gpsdlib, [compiled_gpslib])
+
+ libraries = [compiled_gpslib, compiled_gpsdlib]
+
+@@ -985,21 +987,19 @@ gpsmon_sources = [
+
+ ## Production programs
+
+-gpsd = env.Program('gpsd', gpsd_sources,
+- LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
+-env.Depends(gpsd, [compiled_gpslib])
++gpsd = env.Program('gpsd', gpsd_sources, parse_flags=gpsdlibs)
++env.Depends(gpsd, [compiled_gpsdlib, compiled_gpslib])
+
+-gpsdecode = env.Program('gpsdecode', ['gpsdecode.c'],
+- LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
+-env.Depends(gpsdecode, [compiled_gpslib])
++gpsdecode = env.Program('gpsdecode', ['gpsdecode.c'], parse_flags=gpsdlibs)
++env.Depends(gpsdecode, [compiled_gpsdlib, compiled_gpslib])
+
+ gpsctl = env.Program('gpsctl', ['gpsctl.c'],
+ LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs)
+-env.Depends(gpsctl, [compiled_gpslib])
++env.Depends(gpsctl, [compiled_gpsdlib, compiled_gpslib])
+
+ gpsmon = env.Program('gpsmon', gpsmon_sources,
+ LIBS=['gpsd'], parse_flags=gpsdflags+gpslibs + ncurseslibs)
+-env.Depends(gpsmon, [compiled_gpslib])
++env.Depends(gpsmon, [compiled_gpsdlib, compiled_gpslib])
+
+ gpsdctl = env.Program('gpsdctl', ['gpsdctl.c'], parse_flags=gpslibs)
+ env.Depends(gpsdctl, compiled_gpslib)
+@@ -1339,6 +1339,7 @@ binaryinstall.append(env.Install(installdir('bindir'), [gpsdecode, gpsctl, gpsp
+ if env["ncurses"]:
+ binaryinstall.append(env.Install(installdir('bindir'), [cgps, gpsmon]))
+ binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpslib, libgps_version))
++binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpsdlib, libgps_version))
+ # Work arount a minor bug in InstallSharedLib() link handling
+ env.AddPreAction(binaryinstall, 'rm -f %s/libgps.*' % (installdir('libdir'), ))
+
+--
+2.4.1
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch b/sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch
new file mode 100644
index 000000000000..2477d30ce6cc
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.15-timebase.patch
@@ -0,0 +1,12 @@
+don't always rebuild this header as it won't change between compile & install
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -1174,7 +1174,6 @@
+ f.close()
+ timebase = env.Command(target="timebase.h",
+ source=["leapseconds.cache"], action=timebase_h)
+-env.AlwaysBuild(timebase)
+
+ env.Textfile(target="gpsd_config.h", source=confdefs)
+ env.Textfile(target="gpsd.h", source=[File("gpsd.h-head"), File("gpsd_config.h"), File("gpsd.h-tail")])
diff --git a/sci-geosciences/gpsd/files/gpsd-3.16-sysmacros.patch b/sci-geosciences/gpsd/files/gpsd-3.16-sysmacros.patch
new file mode 100644
index 000000000000..d9863c9280f5
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.16-sysmacros.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/581740
+
+From 87027243d101cfa7e01d9b697f890ea7b247449b Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 9 May 2016 14:33:06 -0400
+Subject: [PATCH] include sys/sysmacros.h for major
+
+These functions are not part of any official spec, and Linux C libs have
+always kept them in sys/sysmacros.h. Include the header directly to fix
+builds w/alternative C libs, and to work with future glibc versions.
+---
+ serial.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/serial.c b/serial.c
+index d8bdd8c..b748cab 100644
+--- a/serial.c
++++ b/serial.c
+@@ -14,6 +14,9 @@
+ #include <unistd.h>
+ #include <sys/socket.h>
+ #include <sys/param.h> /* defines BSD */
++#ifdef __linux__
++#include <sys/sysmacros.h>
++#endif
+
+ #include "gpsd_config.h"
+ #ifdef ENABLE_BLUEZ
+--
+2.7.4
+
diff --git a/sci-geosciences/gpsd/files/gpsd-3.17-do_not_rm_library.patch b/sci-geosciences/gpsd/files/gpsd-3.17-do_not_rm_library.patch
new file mode 100644
index 000000000000..83e2907fca5b
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.17-do_not_rm_library.patch
@@ -0,0 +1,12 @@
+diff --git a/SConstruct b/SConstruct
+index c0f083a..4a98580 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1646,7 +1646,6 @@ binaryinstall.append(env.Install(installdir('sbindir'), sbin_binaries))
+ binaryinstall.append(env.Install(installdir('bindir'), bin_binaries))
+ binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpslib, libgps_version))
+ # Work around a minor bug in InstallSharedLib() link handling
+-env.AddPreAction(binaryinstall, 'rm -f %s/libgps.*' % (installdir('libdir'), ))
+
+ if qt_env:
+ binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib, libgps_version))
diff --git a/sci-geosciences/gpsd/files/gpsd-3.3-setup.py b/sci-geosciences/gpsd/files/gpsd-3.3-setup.py
new file mode 100644
index 000000000000..93cc5e8f2149
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.3-setup.py
@@ -0,0 +1,17 @@
+from distutils.core import setup, Extension
+
+setup(
+ name = "gps",
+ version = @VERSION@,
+ description = 'Python libraries for the gpsd service daemon',
+ url = @URL@,
+ author = 'the GPSD project',
+ author_email = @EMAIL@,
+ license = "BSD",
+ ext_modules=[
+ Extension("gps.packet", @GPS_PACKET_SOURCES@, include_dirs=["."]),
+ Extension("gps.clienthelpers", @GPS_CLIENT_SOURCES@, include_dirs=["."]),
+ ],
+ packages = ['gps'],
+ scripts = @SCRIPTS@,
+)
diff --git a/sci-geosciences/gpsd/files/gpsd-3.8-ldflags.patch b/sci-geosciences/gpsd/files/gpsd-3.8-ldflags.patch
new file mode 100644
index 000000000000..b41be8b66e54
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-3.8-ldflags.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/391299
+
+split up linking flags into multiple arguments
+
+--- gpsd-3.8/SConstruct
++++ gpsd-3.8/SConstruct
+@@ -214,7 +214,7 @@
+ env.Replace(**{j: os.getenv(i)})
+ for flag in ["LDFLAGS", "LINKFLAGS", "SHLINKFLAGS", "CPPFLAGS"]:
+ if os.environ.has_key(flag):
+- env.MergeFlags({flag : [os.getenv(flag)]})
++ env.MergeFlags({flag : Split(os.getenv(flag))})
+
+
+ # Placeholder so we can kluge together something like VPATH builds.
diff --git a/sci-geosciences/gpsd/files/gpsd-9999-do_not_rm_library.patch b/sci-geosciences/gpsd/files/gpsd-9999-do_not_rm_library.patch
new file mode 100644
index 000000000000..83e2907fca5b
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd-9999-do_not_rm_library.patch
@@ -0,0 +1,12 @@
+diff --git a/SConstruct b/SConstruct
+index c0f083a..4a98580 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1646,7 +1646,6 @@ binaryinstall.append(env.Install(installdir('sbindir'), sbin_binaries))
+ binaryinstall.append(env.Install(installdir('bindir'), bin_binaries))
+ binaryinstall.append(LibraryInstall(env, installdir('libdir'), compiled_gpslib, libgps_version))
+ # Work around a minor bug in InstallSharedLib() link handling
+-env.AddPreAction(binaryinstall, 'rm -f %s/libgps.*' % (installdir('libdir'), ))
+
+ if qt_env:
+ binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib, libgps_version))
diff --git a/sci-geosciences/gpsd/files/gpsd.conf-2 b/sci-geosciences/gpsd/files/gpsd.conf-2
new file mode 100644
index 000000000000..0f52aa9b5e06
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd.conf-2
@@ -0,0 +1,7 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Config file for gpsd server
+GPSD_OPTIONS=""
+DEVICES=""
+GPSD_SOCKET="/var/run/gpsd.sock"
diff --git a/sci-geosciences/gpsd/files/gpsd.init-2 b/sci-geosciences/gpsd/files/gpsd.init-2
new file mode 100644
index 000000000000..d2a30071a22b
--- /dev/null
+++ b/sci-geosciences/gpsd/files/gpsd.init-2
@@ -0,0 +1,38 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after dbus
+ before ntpd
+}
+
+PIDFILE=/var/run/${SVCNAME}.pid
+DAEMON=/usr/sbin/gpsd
+
+checkconfig() {
+ # Note: these GPSD_xxx var names should be kept in sync with the udev rules.
+ if [ -z "${GPSD_SOCKET}" ] && [ -z "${DEVICES}" ]; then
+ GPSD_SOCKET="/var/run/gpsd.sock"
+ fi
+
+ if [ -n "${GPSD_SOCKET}" ]; then
+ GPSD_OPTIONS="${GPSD_OPTIONS} -F ${GPSD_SOCKET}"
+ fi
+}
+
+start() {
+ checkconfig
+ ebegin "Starting gpsd"
+
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- \
+ ${GPSD_OPTIONS} -P ${PIDFILE} ${DEVICES}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping gpsd"
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile ${PIDFILE}
+ eend $?
+ rm -f ${PIDFILE}
+}
diff --git a/sci-geosciences/gpsd/gpsd-3.10.ebuild b/sci-geosciences/gpsd/gpsd-3.10.ebuild
new file mode 100644
index 000000000000..e7b5410cc430
--- /dev/null
+++ b/sci-geosciences/gpsd/gpsd-3.10.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python2_7 )
+SCONS_MIN_VERSION="1.2.1"
+
+inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
+ inherit git-2
+else
+ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 arm ppc ppc64 x86"
+fi
+
+DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
+HOMEPAGE="http://catb.org/gpsd/"
+
+LICENSE="BSD"
+SLOT="0"
+
+GPSD_PROTOCOLS=(
+ aivdm ashtech earthmate evermore fury fv18 garmin garmintxt
+ geostar gpsclock itrax mtk3301 navcom nmea nmea2000 ntrip
+ oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt
+ tripmate tsip ublox
+)
+IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
+IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X"
+REQUIRED_USE="X? ( python )
+ gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="X? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
+ ncurses? ( sys-libs/ncurses:= )
+ bluetooth? ( net-wireless/bluez )
+ usb? ( virtual/libusb:1 )
+ dbus? (
+ sys-apps/dbus
+ dev-libs/dbus-glib
+ )
+ ntp? ( || ( net-misc/ntp net-misc/chrony ) )
+ qt4? ( dev-qt/qtgui:4 )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( sys-devel/bc )"
+
+# xml packages are for man page generation
+if [[ ${PV} == "9999" ]] ; then
+ DEPEND+="
+ app-text/xmlto
+ =app-text/docbook-xml-dtd-4.1*"
+fi
+
+src_prepare() {
+ # Make sure our list matches the source.
+ local src_protocols=$(echo $(
+ sed -n '/GPS protocols/,/Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
+ ) )
+ if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
+ eerror "Detected protocols: ${src_protocols}"
+ eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
+ die "please sync ebuild & source"
+ fi
+
+ epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch
+ epatch "${FILESDIR}"/${PN}-3.10-rpath.patch
+ epatch "${FILESDIR}"/${PN}-3.10-dbus.patch
+ epatch "${FILESDIR}"/${PN}-3.10-udev-install.patch
+ epatch "${FILESDIR}"/${PN}-3.10-nmea-disabled.patch #493022
+
+ # Avoid useless -L paths to the install dir
+ sed -i \
+ -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
+ SConstruct || die
+
+ use python && distutils-r1_src_prepare
+}
+
+python_prepare_all() {
+ python_export_best
+ # Extract python info out of SConstruct so we can use saner distribute
+ pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
+ local pybins=$(pyvar python_progs)
+ local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
+ local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])")
+ local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
+ sed \
+ -e "s|@VERSION@|$(pyvar gpsd_version)|" \
+ -e "s|@URL@|$(pyvar website)|" \
+ -e "s|@EMAIL@|$(pyvar devmail)|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
+ -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
+ -e "s|@SCRIPTS@|$(pyvar python_progs)|" \
+ "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+src_configure() {
+ myesconsargs=(
+ prefix="${EPREFIX}/usr"
+ libdir="\$prefix/$(get_libdir)"
+ udevdir="$(get_udevdir)"
+ chrpath=False
+ gpsd_user=gpsd
+ gpsd_group=uucp
+ strip=False
+ python=False
+ manbuild=False
+ shared=$(usex !static True False)
+ $(use_scons bluetooth bluez)
+ $(use_scons cxx libgpsmm)
+ $(use_scons debug clientdebug)
+ $(use_scons dbus dbus_export)
+ $(use_scons ipv6)
+ $(use_scons latency_timing timing)
+ $(use_scons ncurses)
+ $(use_scons ntp ntpshm)
+ $(use_scons ntp pps)
+ $(use_scons shm shm_export)
+ $(use_scons sockets socket_export)
+ $(use_scons qt4 libQgpsmm)
+ $(use_scons usb)
+ )
+
+ # enable specified protocols
+ local protocol
+ for protocol in ${GPSD_PROTOCOLS[@]} ; do
+ myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
+ done
+}
+
+src_compile() {
+ export CHRPATH=
+ tc-export CC CXX PKG_CONFIG
+ export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
+ escons
+
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ DESTDIR="${D}" escons install $(usex udev udev-install "")
+
+ newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
+ newinitd "${FILESDIR}"/gpsd.init-2 gpsd
+
+ if use python ; then
+ distutils-r1_src_install
+ # Delete all X related packages if user doesn't want them
+ if ! use X ; then
+ rm "${ED%/}"/usr/bin/xgps* || die
+ fi
+ fi
+}
+
+pkg_preinst() {
+ # Run the gpsd daemon as gpsd and group uucp; create it here
+ # as it doesn't seem to be needed during compile/install ...
+ enewuser gpsd -1 -1 -1 "uucp"
+}
diff --git a/sci-geosciences/gpsd/gpsd-3.16.ebuild b/sci-geosciences/gpsd/gpsd-3.16.ebuild
new file mode 100644
index 000000000000..bf36c89f403a
--- /dev/null
+++ b/sci-geosciences/gpsd/gpsd-3.16.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python2_7 )
+SCONS_MIN_VERSION="1.2.1"
+
+inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
+ inherit git-2
+else
+ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 arm ppc ppc64 x86"
+fi
+
+DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
+HOMEPAGE="http://catb.org/gpsd/"
+
+LICENSE="BSD"
+SLOT="0/22"
+
+GPSD_PROTOCOLS=(
+ aivdm ashtech earthmate evermore fury fv18 garmin garmintxt
+ geostar gpsclock itrax mtk3301 navcom nmea0183 nmea2000 ntrip
+ oceanserver oncore passthrough rtcm104v2 rtcm104v3 sirf superstar2
+ tnt tripmate tsip ublox
+)
+IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
+IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X"
+REQUIRED_USE="X? ( python )
+ gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="X? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
+ ncurses? ( sys-libs/ncurses:= )
+ bluetooth? ( net-wireless/bluez )
+ usb? ( virtual/libusb:1 )
+ dbus? (
+ sys-apps/dbus
+ dev-libs/dbus-glib
+ )
+ ntp? ( || ( net-misc/ntp net-misc/chrony ) )
+ qt4? ( dev-qt/qtgui:4 )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( sys-devel/bc )"
+
+# xml packages are for man page generation
+if [[ ${PV} == "9999" ]] ; then
+ DEPEND+="
+ app-text/xmlto
+ =app-text/docbook-xml-dtd-4.1*"
+fi
+
+src_prepare() {
+ # Make sure our list matches the source.
+ local src_protocols=$(echo $(
+ sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
+ ) )
+ if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
+ eerror "Detected protocols: ${src_protocols}"
+ eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
+ die "please sync ebuild & source"
+ fi
+
+ epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch
+ epatch "${FILESDIR}"/${PN}-3.15-dynamic-libs.patch
+ epatch "${FILESDIR}"/${PN}-3.15-libgpsd.patch
+ epatch "${FILESDIR}"/${PN}-3.15-broken-install.patch
+ epatch "${FILESDIR}"/${PN}-3.15-timebase.patch
+ epatch "${FILESDIR}"/${PN}-3.16-sysmacros.patch #581740
+
+ # Avoid useless -L paths to the install dir
+ sed -i \
+ -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
+ SConstruct || die
+
+ sed -e 's:libusb.h:libusb-1.0/libusb.h:' -i driver_garmin.c || die
+
+ use python && distutils-r1_src_prepare
+}
+
+python_prepare_all() {
+ python_export_best
+ # Extract python info out of SConstruct so we can use saner distribute
+ pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
+ local pybins=$(pyvar python_progs | tail -1)
+ local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
+ local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])")
+ local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
+ sed \
+ -e "s|@VERSION@|$(pyvar gpsd_version)|" \
+ -e "s|@URL@|$(pyvar website)|" \
+ -e "s|@EMAIL@|$(pyvar devmail)|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
+ -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+src_configure() {
+ myesconsargs=(
+ prefix="${EPREFIX}/usr"
+ libdir="\$prefix/$(get_libdir)"
+ udevdir="$(get_udevdir)"
+ chrpath=False
+ gpsd_user=gpsd
+ gpsd_group=uucp
+ nostrip=True
+ python=False
+ manbuild=False
+ shared=$(usex !static True False)
+ $(use_scons bluetooth bluez)
+ $(use_scons cxx libgpsmm)
+ $(use_scons debug clientdebug)
+ $(use_scons dbus dbus_export)
+ $(use_scons ipv6)
+ $(use_scons latency_timing timing)
+ $(use_scons ncurses)
+ $(use_scons ntp ntpshm)
+ $(use_scons ntp pps)
+ $(use_scons shm shm_export)
+ $(use_scons sockets socket_export)
+ $(use_scons qt4 libQgpsmm)
+ $(use_scons usb)
+ )
+
+ # enable specified protocols
+ local protocol
+ for protocol in ${GPSD_PROTOCOLS[@]} ; do
+ myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
+ done
+}
+
+src_compile() {
+ export CHRPATH=
+ tc-export CC CXX PKG_CONFIG
+ export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
+ escons
+
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ DESTDIR="${D}" escons install $(usex udev udev-install "")
+
+ newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
+ newinitd "${FILESDIR}"/gpsd.init-2 gpsd
+
+ if use python ; then
+ distutils-r1_src_install
+ # Delete all X related packages if user doesn't want them
+ if ! use X ; then
+ rm "${ED%/}"/usr/bin/xgps* || die
+ fi
+ fi
+}
+
+pkg_preinst() {
+ # Run the gpsd daemon as gpsd and group uucp; create it here
+ # as it doesn't seem to be needed during compile/install ...
+ enewuser gpsd -1 -1 -1 "uucp"
+}
diff --git a/sci-geosciences/gpsd/gpsd-3.17.ebuild b/sci-geosciences/gpsd/gpsd-3.17.ebuild
new file mode 100644
index 000000000000..cd3ef4ffa066
--- /dev/null
+++ b/sci-geosciences/gpsd/gpsd-3.17.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python2_7 )
+SCONS_MIN_VERSION="1.2.1"
+
+inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
+ inherit git-2
+else
+ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+fi
+
+DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
+HOMEPAGE="http://catb.org/gpsd/"
+
+LICENSE="BSD"
+SLOT="0/23"
+
+GPSD_PROTOCOLS=(
+ aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar
+ gpsclock isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip oceanserver
+ oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt
+ tripmate tsip ublox
+)
+IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
+IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X"
+REQUIRED_USE="X? ( python )
+ gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="X? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
+ ncurses? ( sys-libs/ncurses:= )
+ bluetooth? ( net-wireless/bluez )
+ usb? ( virtual/libusb:1 )
+ dbus? (
+ sys-apps/dbus
+ dev-libs/dbus-glib
+ )
+ ntp? ( || ( net-misc/ntp net-misc/chrony ) )
+ qt4? ( dev-qt/qtgui:4 )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( sys-devel/bc )"
+
+# xml packages are for man page generation
+if [[ ${PV} == "9999" ]] ; then
+ DEPEND+="
+ app-text/xmlto
+ =app-text/docbook-xml-dtd-4.1*"
+fi
+
+src_prepare() {
+ # Make sure our list matches the source.
+ local src_protocols=$(echo $(
+ sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
+ ) )
+ if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
+ eerror "Detected protocols: ${src_protocols}"
+ eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
+ die "please sync ebuild & source"
+ fi
+
+ epatch "${FILESDIR}"/${P}-do_not_rm_library.patch
+
+ # Avoid useless -L paths to the install dir
+ sed -i \
+ -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
+ SConstruct || die
+
+ use python && distutils-r1_src_prepare
+}
+
+python_prepare_all() {
+ python_export_best
+ # Extract python info out of SConstruct so we can use saner distribute
+ pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
+ local pybins=$(pyvar python_progs | tail -1)
+ local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
+ local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])")
+ local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
+ sed \
+ -e "s|@VERSION@|$(pyvar gpsd_version)|" \
+ -e "s|@URL@|$(pyvar website)|" \
+ -e "s|@EMAIL@|$(pyvar devmail)|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
+ -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+src_configure() {
+ myesconsargs=(
+ prefix="${EPREFIX}/usr"
+ libdir="\$prefix/$(get_libdir)"
+ udevdir="$(get_udevdir)"
+ chrpath=False
+ gpsd_user=gpsd
+ gpsd_group=uucp
+ nostrip=True
+ python=False
+ manbuild=False
+ shared=$(usex !static True False)
+ $(use_scons bluetooth bluez)
+ $(use_scons cxx libgpsmm)
+ $(use_scons debug clientdebug)
+ $(use_scons dbus dbus_export)
+ $(use_scons ipv6)
+ $(use_scons latency_timing timing)
+ $(use_scons ncurses)
+ $(use_scons ntp ntpshm)
+ $(use_scons ntp pps)
+ $(use_scons shm shm_export)
+ $(use_scons sockets socket_export)
+ $(use_scons qt4 libQgpsmm)
+ $(use_scons usb)
+ )
+
+ # enable specified protocols
+ local protocol
+ for protocol in ${GPSD_PROTOCOLS[@]} ; do
+ myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
+ done
+}
+
+src_compile() {
+ export CHRPATH=
+ tc-export CC CXX PKG_CONFIG
+ export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
+ escons
+
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ DESTDIR="${D}" escons install $(usex udev udev-install "")
+
+ newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
+ newinitd "${FILESDIR}"/gpsd.init-2 gpsd
+
+ if use python ; then
+ distutils-r1_src_install
+ # Delete all X related packages if user doesn't want them
+ if ! use X ; then
+ rm "${ED%/}"/usr/bin/xgps* || die
+ fi
+ fi
+}
+
+pkg_preinst() {
+ # Run the gpsd daemon as gpsd and group uucp; create it here
+ # as it doesn't seem to be needed during compile/install ...
+ enewuser gpsd -1 -1 -1 "uucp"
+}
diff --git a/sci-geosciences/gpsd/gpsd-9999.ebuild b/sci-geosciences/gpsd/gpsd-9999.ebuild
new file mode 100644
index 000000000000..cd3ef4ffa066
--- /dev/null
+++ b/sci-geosciences/gpsd/gpsd-9999.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python2_7 )
+SCONS_MIN_VERSION="1.2.1"
+
+inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
+ inherit git-2
+else
+ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+fi
+
+DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
+HOMEPAGE="http://catb.org/gpsd/"
+
+LICENSE="BSD"
+SLOT="0/23"
+
+GPSD_PROTOCOLS=(
+ aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar
+ gpsclock isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip oceanserver
+ oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt
+ tripmate tsip ublox
+)
+IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
+IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X"
+REQUIRED_USE="X? ( python )
+ gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="X? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
+ ncurses? ( sys-libs/ncurses:= )
+ bluetooth? ( net-wireless/bluez )
+ usb? ( virtual/libusb:1 )
+ dbus? (
+ sys-apps/dbus
+ dev-libs/dbus-glib
+ )
+ ntp? ( || ( net-misc/ntp net-misc/chrony ) )
+ qt4? ( dev-qt/qtgui:4 )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( sys-devel/bc )"
+
+# xml packages are for man page generation
+if [[ ${PV} == "9999" ]] ; then
+ DEPEND+="
+ app-text/xmlto
+ =app-text/docbook-xml-dtd-4.1*"
+fi
+
+src_prepare() {
+ # Make sure our list matches the source.
+ local src_protocols=$(echo $(
+ sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
+ ) )
+ if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
+ eerror "Detected protocols: ${src_protocols}"
+ eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
+ die "please sync ebuild & source"
+ fi
+
+ epatch "${FILESDIR}"/${P}-do_not_rm_library.patch
+
+ # Avoid useless -L paths to the install dir
+ sed -i \
+ -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
+ SConstruct || die
+
+ use python && distutils-r1_src_prepare
+}
+
+python_prepare_all() {
+ python_export_best
+ # Extract python info out of SConstruct so we can use saner distribute
+ pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
+ local pybins=$(pyvar python_progs | tail -1)
+ local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
+ local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])")
+ local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
+ sed \
+ -e "s|@VERSION@|$(pyvar gpsd_version)|" \
+ -e "s|@URL@|$(pyvar website)|" \
+ -e "s|@EMAIL@|$(pyvar devmail)|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
+ -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
+ -e "s|@SCRIPTS@|${pybins}|" \
+ "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+src_configure() {
+ myesconsargs=(
+ prefix="${EPREFIX}/usr"
+ libdir="\$prefix/$(get_libdir)"
+ udevdir="$(get_udevdir)"
+ chrpath=False
+ gpsd_user=gpsd
+ gpsd_group=uucp
+ nostrip=True
+ python=False
+ manbuild=False
+ shared=$(usex !static True False)
+ $(use_scons bluetooth bluez)
+ $(use_scons cxx libgpsmm)
+ $(use_scons debug clientdebug)
+ $(use_scons dbus dbus_export)
+ $(use_scons ipv6)
+ $(use_scons latency_timing timing)
+ $(use_scons ncurses)
+ $(use_scons ntp ntpshm)
+ $(use_scons ntp pps)
+ $(use_scons shm shm_export)
+ $(use_scons sockets socket_export)
+ $(use_scons qt4 libQgpsmm)
+ $(use_scons usb)
+ )
+
+ # enable specified protocols
+ local protocol
+ for protocol in ${GPSD_PROTOCOLS[@]} ; do
+ myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
+ done
+}
+
+src_compile() {
+ export CHRPATH=
+ tc-export CC CXX PKG_CONFIG
+ export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
+ escons
+
+ use python && distutils-r1_src_compile
+}
+
+src_install() {
+ DESTDIR="${D}" escons install $(usex udev udev-install "")
+
+ newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
+ newinitd "${FILESDIR}"/gpsd.init-2 gpsd
+
+ if use python ; then
+ distutils-r1_src_install
+ # Delete all X related packages if user doesn't want them
+ if ! use X ; then
+ rm "${ED%/}"/usr/bin/xgps* || die
+ fi
+ fi
+}
+
+pkg_preinst() {
+ # Run the gpsd daemon as gpsd and group uucp; create it here
+ # as it doesn't seem to be needed during compile/install ...
+ enewuser gpsd -1 -1 -1 "uucp"
+}
diff --git a/sci-geosciences/gpsd/metadata.xml b/sci-geosciences/gpsd/metadata.xml
new file mode 100644
index 000000000000..cb80bead87d3
--- /dev/null
+++ b/sci-geosciences/gpsd/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription>
+ Unbundled GPS daemon and library to support USB and serial
+ GPS devices and various GPS/mapping clients, such as GPSDrive,
+ kismet, and pygps.
+ </longdescription>
+ <slots>
+ <subslots>Reflect major ABI of libgps.so.</subslots>
+ </slots>
+ <use>
+ <flag name="dbus">export gpsd data over dbus connections</flag>
+ <flag name="latency_timing">support latency timing information</flag>
+ <flag name="ntp">Enable <pkg>net-misc/ntp</pkg> shared memory interface
+ and PPS kernel support for GPS time</flag>
+ <flag name="sockets">export gpsd over unix sockets</flag>
+ <flag name="shm">export gpsd over shared memory</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/gpx-viewer/Manifest b/sci-geosciences/gpx-viewer/Manifest
new file mode 100644
index 000000000000..9666a5d3bbba
--- /dev/null
+++ b/sci-geosciences/gpx-viewer/Manifest
@@ -0,0 +1,6 @@
+AUX gpx-viewer-0.4.0-crash-backport 1152 SHA256 47bbba2183580d5f62a8f00796746ab27ac6758fed176f2d089dcda9cf9487fa SHA512 97152da46ed0699b95a8c1379b6b08997f8fb171b9e07755b5ce44da3ef09601b5a674b97d9fb449e985e8ffd329b49f961bfce0895822027124e1e67dfa6aab WHIRLPOOL 466a82e4892ed35fafc3022f437ea05f2d7195648f63ae00c13f30ade0deb93038150b04941663002e896b9a39fdef8a9991bf2c73442e0951282c596867feb5
+DIST gpx-viewer-0.4.0.tar.gz 534735 SHA256 956acfaf870ac436300cd9953dece630df7fd7dff8e4ae2577a6002884466f80 SHA512 ab65d872509df605c07110c0a5ffef5c9c385f39cde841fce2d593a58abd3e48f1124a48c11a8d599fad9430cd7b71969da0880b3d1fe4b952ade4b95929914a WHIRLPOOL a46ed33ad9d0579f923b7de1cd42cf48e46c2abb24151e2061d9956f2521569d4035874fff138a78bc71fe7d3922e39396dd6a4fa914c897137bf368cd00072a
+EBUILD gpx-viewer-0.4.0-r1.ebuild 1140 SHA256 d2605114f1c37a8f4fc9ff11d9821ebaee3675fe9add6a7320f7f8e02f144f30 SHA512 f7fcbfc5d423f050c2a72f3c26df39b2977cf1e3701f941ed3256d3df3e9de06b9bfc75c803f04de30d39adddaa601f9f3a5576188c1482c2ebc227ab3b2b0ed WHIRLPOOL 7daa5818db8dd4cdb05bc4f178053463e726a7b0fa32e4e1f7e5e31cfd3cc23f2369fa7a9cda1c33b2bb1987cb7312be549279872fd39083cbd222608eb89768
+MISC ChangeLog 2813 SHA256 2aa5c28c0a3eba8b302d26b6abb62ff8923dc3ded9303c7d42480a6b89af5fc3 SHA512 fd50e584da59350d6d0f5dae62e44910e9878486d09285e8a4343ed59e6b154c2c2149faf835e1fb77ac824b3416f742e9ffdb4d72d654222bc29023b353d922 WHIRLPOOL 99c5f12c5a3e1866fd54f74dc8d38091cf78d4eca1a05af14378c0816ea7b2e93e770f6a85d08dc1a77cd3748dcdc45d6b369367891799a7d506cad74a100f53
+MISC ChangeLog-2015 1341 SHA256 7b0d8483aa8ea1dfbaedeb087017c8f48b207737e1caf38583e5c0fff8423180 SHA512 9a2ed248fd9df5c0c0f377a6c2b373c45725f77669d5d9f4b012878e0567ff6ed8e55a78ade664fd10390ea8333ff16ca9726d37cfd273833de5ef9a6ef26ae5 WHIRLPOOL 64428f92a69fd5eee3edf2ab4527febe76c25fb82cfb4768a7912b6b1d758cbcbec59b60082eb9204641b8c4f363e7be55b0d8c792b6b8dceae075292cf997d9
+MISC metadata.xml 275 SHA256 c1347e20f0a0f47375cc3146054546c50d3ef2cfaddfacf0fce2b214adc83c35 SHA512 5877508750864819a1d129ac2406c0d11721cd0e4e64d55c9bd6a44649991fda435e7752e841cca94b348f74078226f12e90dcdd323915bce3d601e65865c225 WHIRLPOOL cf88822f7276911834692926063dc6ed2b30a36152e696e6c09e9d6946d11aa1db3c7266f08c78baa79f5e91c30f15abb341dafe03625d22bf168e472103a445
diff --git a/sci-geosciences/gpx-viewer/files/gpx-viewer-0.4.0-crash-backport b/sci-geosciences/gpx-viewer/files/gpx-viewer-0.4.0-crash-backport
new file mode 100644
index 000000000000..2dff4915dffe
--- /dev/null
+++ b/sci-geosciences/gpx-viewer/files/gpx-viewer-0.4.0-crash-backport
@@ -0,0 +1,24 @@
+=== modified file 'data/gpx-viewer-file-chooser.ui'
+--- data/gpx-viewer-file-chooser.ui 2012-03-04 10:18:33 +0000
++++ data/gpx-viewer-file-chooser.ui 2015-06-01 19:44:21 +0000
+@@ -7,7 +7,6 @@
+ <property name="title" translatable="yes">Choose gpx file(s)</property>
+ <property name="icon_name">gpx-viewer</property>
+ <property name="type_hint">normal</property>
+- <property name="has_separator">False</property>
+ <property name="select_multiple">True</property>
+ <property name="filter">gpx_viewer_file_chooser_filter</property>
+ <property name="local_only">False</property>
+
+=== modified file 'data/gpx-viewer-preferences.ui'
+--- data/gpx-viewer-preferences.ui 2012-03-06 08:49:48 +0000
++++ data/gpx-viewer-preferences.ui 2015-06-01 19:44:21 +0000
+@@ -5,7 +5,6 @@
+ <object class="GtkDialog" id="preferences_dialog">
+ <property name="border_width">5</property>
+ <property name="type_hint">normal</property>
+- <property name="has_separator">False</property>
+ <signal name="response" handler="gpx_viewer_preferences_close"/>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox1">
+
diff --git a/sci-geosciences/gpx-viewer/gpx-viewer-0.4.0-r1.ebuild b/sci-geosciences/gpx-viewer/gpx-viewer-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..18278d6ae130
--- /dev/null
+++ b/sci-geosciences/gpx-viewer/gpx-viewer-0.4.0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+VALA_MIN_API_VERSION=0.16
+
+inherit autotools-utils gnome2 vala
+
+DESCRIPTION="Simple program to visualize a gpx file"
+HOMEPAGE="https://github.com/DaveDavenport/gpx-viewer"
+SRC_URI="https://edge.launchpad.net/${PN}/trunk/0.4.0/+download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="
+ dev-libs/gdl:3
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ >=media-libs/clutter-gtk-1.4.0:1.0
+ >=media-libs/libchamplain-0.12.3:0.12[gtk]
+ x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ >=dev-util/intltool-0.21
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-crash-backport )
+
+src_prepare() {
+ vala_src_prepare
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ --disable-database-updates )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile gpx_viewer_vala.stamp
+ autotools-utils_src_compile
+}
+
+src_install () {
+ autotools-utils_src_install
+ dosym ../icons/hicolor/scalable/apps/gpx-viewer.svg /usr/share/pixmaps/gpx-viewer.svg
+}
diff --git a/sci-geosciences/gpx-viewer/metadata.xml b/sci-geosciences/gpx-viewer/metadata.xml
new file mode 100644
index 000000000000..d78f80981828
--- /dev/null
+++ b/sci-geosciences/gpx-viewer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/gpxpy/Manifest b/sci-geosciences/gpxpy/Manifest
new file mode 100644
index 000000000000..d182cbaa97be
--- /dev/null
+++ b/sci-geosciences/gpxpy/Manifest
@@ -0,0 +1,5 @@
+DIST gpxpy-0.8.6.tar.gz 65569 SHA256 e94a1cf8d37459aa2444e1cd31e2670832757c6caa958f4960c710a087b01148 SHA512 3c180436210689724f88fdac43576a9a11b3f8717fb6f8acd7c8ce0afc1219714b4c83f1ba4f64487d35d0189d65a311d77f7778e7d84f315b251d1098f8989c WHIRLPOOL 07ae9a417ce638898f59849d05c0ee23f0f3afcbff9509ca69a2eba15787be18db3740709eb2463b0e03d45e357b9e35bc03b22824b8551e7361884a70210fd8
+EBUILD gpxpy-0.8.6.ebuild 506 SHA256 cd4c588bb6f8670bd01235a65eecd3dda6571dd0ce061be55ae41ceae84b1223 SHA512 7675c16864ce9e8ef0b97e828e6ec1ce0c2b759f40109fa564560f1a88f1bb5e171de6736f9d69b07b473b7c092bdf9718249e5eca63396863aeb2dc77c035be WHIRLPOOL 4038ec5e0dd7e500d780ecbc19ecad71ee83f9e393c02d70edf19ac7c85179909f70159c108e5901ad0229102b6deb18fe28aed3e9c21cb6cf658a7221e613fa
+MISC ChangeLog 2303 SHA256 791ef370349c4e3df2ecca6a1c41779ab43847fd9f8ca89a50e78c867d140ede SHA512 144871761d6a3e6516a863453934de2974b6bf297c66b6dfde1cb56851cc557e2d3e27bd79e52aba7934ab723286ba05d269af3b84fd8587694f80feeecf91ce WHIRLPOOL 6c4e6475e0edaead6eb713f219f3dbcc9a8190e2246274207dec39ba84350f4fc4bcfd0ea7d0d86551ddd84b8f94076554e558fc8156c1cf805303325244b315
+MISC ChangeLog-2015 659 SHA256 74f99348dc5d1578338fbf26eeb588010eb29c5e54666ec5ddf935d8ba91c417 SHA512 0d73974f1a8153928f81d6aa2cd1c9cbb8a0bd07767de5f15b314e6fa5354d7162541078e9cc54e5b8c0c15e9dd10a1da0f52ba1e2a43ecb4c9587b40dc77797 WHIRLPOOL 8c65cc5fcb762884b760444cef42af86057c03986c054711200b1ba2aafb6e320fe980ec4b50d022c6dbbbbbe4c2bd57592dc4e559a3e12ac95099481b02ba12
+MISC metadata.xml 322 SHA256 f3362e0eb283100dd88b2cf5cfe4d2c104fedefcc8103326b2eb3f99e776b1d8 SHA512 8bb0706a910d51eacf4c85ebba1ba22a6bd4b29de6c57618c580d902d8e8d6ea96e677b25919380c83790b4b7f36d8f2771901c53a11e440ad92f264ced24ccc WHIRLPOOL 5b96da7737e2c2da246d2b255f0c2e7e9a870d3cae82fa20eed06aa0d5e520d486a4b103a16ff4a9b52ca6f56c6360266cc1653356f1ae4fa52290d68d4ec6b6
diff --git a/sci-geosciences/gpxpy/gpxpy-0.8.6.ebuild b/sci-geosciences/gpxpy/gpxpy-0.8.6.ebuild
new file mode 100644
index 000000000000..67cdeca8e8b1
--- /dev/null
+++ b/sci-geosciences/gpxpy/gpxpy-0.8.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="python GPX parser"
+HOMEPAGE="https://github.com/tkrajina/gpxpy"
+SRC_URI="https://github.com/tkrajina/${PN}/tarball/85c3477b -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+DOCS=( NOTICE.txt README.md )
+
+python_test() {
+ ${PYTHON} -m unittest test
+}
diff --git a/sci-geosciences/gpxpy/metadata.xml b/sci-geosciences/gpxpy/metadata.xml
new file mode 100644
index 000000000000..44a886f8d0f8
--- /dev/null
+++ b/sci-geosciences/gpxpy/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">tkrajina/gpxpy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest
new file mode 100644
index 000000000000..f42d3ad570d9
--- /dev/null
+++ b/sci-geosciences/grass/Manifest
@@ -0,0 +1,8 @@
+AUX grass-7.0.1-declare-inespg.patch 647 SHA256 d0a5e5961c03b9de1ed05e8a0deb85571d01ef71cd7f08b1a956d32056e1b40e SHA512 9206619090c0f138c734f7fe48467cd343cd01120ac4d7eaec3d822b7cac1cbc6e4630bfedd68e7bdd6966716116a1d6714faf373a1eceb08726acd16ca34bb4 WHIRLPOOL 301f87f9631f6b3d61abbc69062d879ad697ded24e9382c6a148563c99b05dccae6ab2c17b4b9880ea4e992a1ae20d2bd5b2185ab837535ae0af9f8c181202f7
+DIST grass-7.0.5.tar.gz 40862798 SHA256 60de3ba67eaf4f05dcff4f48ef710113f9efa9367ece784c13423bc620246f3c SHA512 42ff0577ca4fb1fe5f370090b94bec82eec1be65883152d64eacae6b3628e91e67ced045ca2a299f32e9d773995b35cc98b4cceaee6518c788f9366f3c7371bd WHIRLPOOL fb0077dd81074721e9ad53d0e3d7a76260a237426e37bb9e2ab393c7647e2204ee5f85e7936fe94e59f4e9413442e86f6ba6cf40bf31be9b833e70cebaa781bd
+DIST grass-7.2.0.tar.gz 48315008 SHA256 f0bc0c3cfccc98330ce01547bd86d8281f93f05a45b6115eb33044a07cf70750 SHA512 b1aa17ec554c2f0473df3726993b0891df4589c60ca9362405932a4c479b5883245b0a0ba9e787ce2e9de210b6307f34883e4e63ddfbf04eb5d75e8583bc2c5b WHIRLPOOL dfee9a8ca203a5c969b48e57ab8e97dfbb92bbe70cbc6b31d3734e2ddb21fb06402f83f9c3e1cafc4b139056fc0f601d9d6361c165b39b384e1da93382233db1
+EBUILD grass-7.0.5-r1.ebuild 6900 SHA256 c05fb4dee327a557b4e718cff5d1bb07308b3388092b2fd6f00f7f8bfa99a433 SHA512 3a3938e7da834fd21b0eef252f79994aa68285e619a9d9797b8fccab0d92f1ad5d05d6a70e795d1e83c432638ac049bcbe04d75d285b5b251720171544b0ce00 WHIRLPOOL ace7389beda6669452506e4e8c0621413dbf84af4eca21fe7b84c771708944750898b7b93a291532328bcd15871eb0805ffc48a04b73efc599f43ab4b59a49d7
+EBUILD grass-7.2.0.ebuild 6905 SHA256 194637abe7ee43c9d633ae1bb7f9260e435cd5d93749f6631b878819c8c51dba SHA512 096db304514328f6d5798f85ff1f381ab0192e74407519c7dc32b156b44568b21fec51b2d3a969a84d52be8b1e065c853da777ff36b679dd906992466a7808c5 WHIRLPOOL aade24e7482e90ac74e524eb7d518ae547eb8f0e4b2c7840ac0034fb4ad63cd2a472a4be3d4c70d892edd231434eebdea037ad031e2f7fe525f8d8cb291c239c
+MISC ChangeLog 8811 SHA256 03b1a0e3387ffe69f1d77dcb3fb5323b82063556caee3d8f067d05ed3e650ec1 SHA512 5703acd8bddd37e9124b16ce58a62a7aca11e93c74401fb991a9cea524a10e18cf0fe53d454d36714a196e9ebe90b6549d89e6f05a4637a4012d42c0495a0654 WHIRLPOOL 5e0227dc7287f702a671406cd0a556494f87a349ce439c3f0117dd7f5a1d3dba71ea9e62c55678e5809c0f04bf6449cb50bb05a1989a2a10fb7e615d271b8154
+MISC ChangeLog-2015 23768 SHA256 3cc05c7cc7eb3d2513fa6ee7c2aa0655496c9d7c3da918616a8ad481b54439f2 SHA512 e6ca23b097939b549917911ab03a90e0c4e72d16bee83806a382979b49a673c656f6ac86400d1c66e5101dd28b429d5cbb3ce061d27585aca861ad358b8ed94a WHIRLPOOL 675110932a10a26d51571ec36770803203b86b30a42f6104ced7d8ea5e39ff86349213b61693d2f6359bb40cd41c187a2c869845542378bb910d67ebf94fc6a4
+MISC metadata.xml 916 SHA256 99c9e9cf0455e9ed4527de6a55fc50bfd5c6c466d8dc2ac0c873f7c25ab09670 SHA512 fdaae85dd85171b0e5b316a7edd7d09e78eb5fe267e760dfe9722dd469f6594b909fba85b082722463abf5a564a34aaeec9eefd5a53859814089cd02af742e2a WHIRLPOOL 3a20821aae02d8fdca126717138ece8768d1d04186874b3357fb706695ff8770c3dca9a99293d5fc3b6b768101fd0d80f1c30db7625994722464f6143cf769ab
diff --git a/sci-geosciences/grass/files/grass-7.0.1-declare-inespg.patch b/sci-geosciences/grass/files/grass-7.0.1-declare-inespg.patch
new file mode 100644
index 000000000000..91f33a202635
--- /dev/null
+++ b/sci-geosciences/grass/files/grass-7.0.1-declare-inespg.patch
@@ -0,0 +1,15 @@
+diff --git a/general/g.proj/main.c b/general/g.proj/main.c
+index 21d7b95..f81b392 100644
+--- a/general/g.proj/main.c
++++ b/general/g.proj/main.c
+@@ -41,8 +41,8 @@ int main(int argc, char *argv[]) # undeclared var if OSG disabled
+ *forcedatumtrans; /* Force override of datumtrans parameters */
+
+ struct Option *location, /* Name of new location to create */
+-#ifdef HAVE_OGR
+ *inepsg, /* EPSG projection code */
++#ifdef HAVE_OGR
+ *inwkt, /* Input file with projection in WKT format */
+ *inproj4, /* Projection in PROJ.4 format */
+ *ingeo, /* Input geo-referenced file readable by
+
diff --git a/sci-geosciences/grass/grass-7.0.5-r1.ebuild b/sci-geosciences/grass/grass-7.0.5-r1.ebuild
new file mode 100644
index 000000000000..9be8c956e38a
--- /dev/null
+++ b/sci-geosciences/grass/grass-7.0.5-r1.ebuild
@@ -0,0 +1,270 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite" # bug 572440
+WANT_AUTOCONF="2.1"
+WX_GTK_VER=3.0
+
+inherit eutils gnome2 fdo-mime multilib python-single-r1 versionator wxwidgets autotools
+
+MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
+MY_PM=${MY_PM/.}
+MY_P=${P/_rc/RC}
+
+DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
+HOMEPAGE="http://grass.osgeo.org/"
+SRC_URI="http://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/7.0.5"
+KEYWORDS="~amd64 ~x86"
+IUSE="X blas cxx fftw geos lapack liblas mysql netcdf nls odbc opencl opengl openmp png postgres readline sqlite threads tiff truetype"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-admin/eselect-1.2
+ dev-python/numpy[${PYTHON_USEDEP}]
+ media-libs/libprojectm
+ sci-libs/proj
+ sci-libs/xdrfile
+ sci-libs/gdal
+ sys-libs/gdbm
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ fftw? ( sci-libs/fftw:3.0 )
+ geos? ( sci-libs/geos )
+ blas? ( virtual/blas
+ sci-libs/cblas-reference )
+ lapack? ( virtual/lapack )
+ liblas? ( sci-geosciences/liblas )
+ mysql? ( virtual/mysql )
+ netcdf? ( sci-libs/netcdf )
+ odbc? ( dev-db/unixODBC )
+ opencl? ( virtual/opencl )
+ opengl? ( virtual/opengl )
+ png? ( media-libs/libpng:0= )
+ postgres? ( >=dev-db/postgresql-8.4:= )
+ readline? ( sys-libs/readline:0= )
+ sqlite? ( dev-db/sqlite:3 )
+ tiff? ( media-libs/tiff:0= )
+ truetype? ( media-libs/freetype:2 )
+ X? (
+ dev-python/wxpython:3.0[cairo,opengl?]
+ x11-libs/cairo[X,opengl?]
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/libXt
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ sys-devel/gettext
+ sys-devel/bison
+ X? (
+ dev-lang/swig
+ x11-proto/xextproto
+ x11-proto/xproto
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ opengl? ( X )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}"-7.0.1-declare-inespg.patch
+)
+
+pkg_setup() {
+ if use lapack; then
+ local mylapack
+ mylapack=$(eselect lapack show) || die
+ if [[ -z "${mylapack/.*reference.*/}" ]] && \
+ [[ -z "${mylapack/.*atlas.*/}" ]]; then
+ ewarn "You need to set lapack to atlas or reference. Do:"
+ ewarn " eselect lapack set <impl>"
+ ewarn "where <impl> is atlas, threaded-atlas or reference"
+ die "setup failed"
+ fi
+ fi
+
+ if use blas; then
+ local myblas
+ myblas=$(eselect blas show) || die
+ if [[ -z "${myblas/.*reference.*/}" ]] && \
+ [[ -z "${myblas/.*atlas.*/}" ]]; then
+ ewarn "You need to set blas to atlas or reference. Do:"
+ ewarn " eselect blas set <impl>"
+ ewarn "where <impl> is atlas, threaded-atlas or reference"
+ die "setup failed"
+ fi
+ fi
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Fix unversioned python calls
+ local pyver=${EPYTHON/python/}
+ sed -e "s:GRASS_PYTHON=.*:&${pyver}:" -i "${S}/lib/init/grass.sh" || die
+ sed -e "s:= python:&${pyver}:" -i "${S}/include/Make/Platform.make.in" || die
+
+ # fix header being unconditionally included
+ # see upstream https://trac.osgeo.org/grass/ticket/2779
+ sed -e 's:\(#include <ogr_api.h>\):#ifdef HAVE_OGR\n\1\n#endif:' \
+ -i "${S}/vector/v.external/main.c" || die "failed to sed main.c"
+
+ epatch "${PATCHES[@]}"
+
+ eapply_user
+ eautoconf
+
+ ebegin "Fixing python shebangs"
+ python_fix_shebang -q "${S}"
+ eend $?
+}
+
+src_configure() {
+ if use X; then
+ WX_BUILD=yes
+ setup-wxwidgets
+ fi
+
+ addwrite "${ROOT}dev/dri/renderD128"
+
+ econf \
+ --enable-shared \
+ --disable-w11 \
+ $(use_with cxx) \
+ $(use_with tiff) \
+ $(use_with png) \
+ $(use_with postgres) \
+ $(use_with mysql) \
+ $(use_with mysql mysql-includes "${ROOT}usr/include/mysql") \
+ $(use_with mysql mysql-libs "${ROOT}usr/$(get_libdir)/mysql") \
+ $(use_with sqlite) \
+ $(use_with opengl) \
+ $(use_with odbc) \
+ $(use_with fftw) \
+ $(use_with blas) \
+ $(use_with lapack) \
+ $(use_with X cairo) \
+ $(use_with truetype freetype) \
+ $(use_with truetype freetype-includes "${ROOT}usr/include/freetype2") \
+ $(use_with nls) \
+ $(use_with readline) \
+ --without-opendwg \
+ --with-regex \
+ $(use_with threads pthread) \
+ $(use_with openmp) \
+ $(use_with opencl) \
+ --with-gdal="${ROOT}usr/bin/gdal-config" \
+ $(use_with liblas liblas "${ROOT}usr/bin/liblas-config") \
+ $(use_with X wxwidgets "${WX_CONFIG}") \
+ $(use_with netcdf netcdf "${ROOT}usr/bin/nc-config") \
+ $(use_with geos geos "${ROOT}usr/bin/geos-config") \
+ --with-proj-includes="${ROOT}usr/include/libprojectM" \
+ --with-proj-libs="${ROOT}usr/$(get_libdir)" \
+ --with-proj-share="${ROOT}usr/share/proj/" \
+ $(use_with X x)
+}
+
+src_compile() {
+ # we don't want to link against embedded mysql lib
+ emake CC="$(tc-getCC)" MYSQLDLIB=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ INST_DIR="${D}usr/${MY_PM}" \
+ prefix="${D}usr" BINDIR="${D}usr/bin" \
+ PREFIX="${D}usr/" \
+ install
+
+ pushd "${D}usr/${MY_PM}" &> /dev/null || die
+
+ # fix docs
+ dodoc AUTHORS CHANGES
+ docinto html
+ dodoc -r docs/html/*
+ rm -rf docs/ || die
+ rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die
+
+ # manuals
+ dodir /usr/share/man/man1
+ rm -rf man/ || die
+
+ # translations
+ if use nls; then
+ dodir /usr/share/locale/
+ mv locale/* "${D}usr/share/locale/" || die
+ rm -rf locale/ || die
+ # pt_BR is broken
+ mv "${D}usr/share/locale/pt_br" "${D}usr/share/locale/pt_BR" || die
+ fi
+
+ popd &> /dev/null || die
+
+ # place libraries where they belong
+ mv "${D}usr/${MY_PM}/lib/" "${D}usr/$(get_libdir)/" || die
+
+ # place header files where they belong
+ mv "${D}usr/${MY_PM}/include/" "${D}usr/include/" || die
+ # make rules are not required on installed system
+ rm -rf "${D}usr/include/Make" || die
+
+ # mv remaining gisbase stuff to libdir
+ mv "${D}usr/${MY_PM}" "${D}usr/$(get_libdir)" || die
+
+ # get proper folder for grass path in script
+ local gisbase
+ gisbase="${ROOT}usr/$(get_libdir)/${MY_PM}"
+ sed -e "s:gisbase = \".*:gisbase = \"${gisbase}\":" \
+ -i "${D}usr/bin/${MY_PM}" || die
+
+ # get proper fonts path for fontcap
+ sed -i \
+ -e "s|${D}usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
+ "${D}usr/$(get_libdir)/${MY_PM}/etc/fontcap" || die
+
+ # set proper python interpreter
+ sed -e "s:= \"python\":= \"${EPYTHON}\":" -i "${D}usr/bin/${MY_PM}" || die
+
+ if use X; then
+ local GUI="-gui"
+ [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
+ make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education"
+ doicon -s 48 gui/icons/${PN}-48x48.png
+ fi
+
+ # install .pc file so other apps know where to look for grass
+ insinto /usr/$(get_libdir)/pkgconfig/
+ doins grass.pc
+
+ # fix weird +x on tcl scripts
+ find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
+}
+
+pkg_postinst() {
+ if use X; then
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ if use X; then
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ fi
+}
diff --git a/sci-geosciences/grass/grass-7.2.0.ebuild b/sci-geosciences/grass/grass-7.2.0.ebuild
new file mode 100644
index 000000000000..f62fa1a25655
--- /dev/null
+++ b/sci-geosciences/grass/grass-7.2.0.ebuild
@@ -0,0 +1,270 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite" # bug 572440
+WANT_AUTOCONF="2.1"
+WX_GTK_VER=3.0
+
+inherit eutils gnome2 fdo-mime multilib python-single-r1 versionator wxwidgets autotools
+
+MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
+MY_PM=${MY_PM/.}
+MY_P=${P/_rc/RC}
+
+DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
+HOMEPAGE="http://grass.osgeo.org/"
+SRC_URI="http://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/7.2.0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="X blas cxx fftw geos lapack liblas mysql netcdf nls odbc opencl opengl openmp png postgres readline sqlite threads tiff truetype"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-admin/eselect-1.2
+ dev-python/numpy[${PYTHON_USEDEP}]
+ media-libs/libprojectm
+ sci-libs/proj
+ sci-libs/xdrfile
+ sci-libs/gdal
+ sys-libs/gdbm
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ fftw? ( sci-libs/fftw:3.0 )
+ geos? ( sci-libs/geos )
+ blas? ( virtual/blas
+ sci-libs/cblas-reference )
+ lapack? ( virtual/lapack )
+ liblas? ( sci-geosciences/liblas )
+ mysql? ( virtual/mysql )
+ netcdf? ( sci-libs/netcdf )
+ odbc? ( dev-db/unixODBC )
+ opencl? ( virtual/opencl )
+ opengl? ( virtual/opengl )
+ png? ( media-libs/libpng:0= )
+ postgres? ( >=dev-db/postgresql-8.4:= )
+ readline? ( sys-libs/readline:0= )
+ sqlite? ( dev-db/sqlite:3 )
+ tiff? ( media-libs/tiff:0= )
+ truetype? ( media-libs/freetype:2 )
+ X? (
+ dev-python/wxpython:3.0[cairo,opengl?]
+ x11-libs/cairo[X,opengl?]
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/libXt
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ sys-devel/gettext
+ sys-devel/bison
+ X? (
+ dev-lang/swig
+ x11-proto/xextproto
+ x11-proto/xproto
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ opengl? ( X )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}"-7.0.1-declare-inespg.patch
+)
+
+pkg_setup() {
+ if use lapack; then
+ local mylapack
+ mylapack=$(eselect lapack show) || die
+ if [[ -z "${mylapack/.*reference.*/}" ]] && \
+ [[ -z "${mylapack/.*atlas.*/}" ]]; then
+ ewarn "You need to set lapack to atlas or reference. Do:"
+ ewarn " eselect lapack set <impl>"
+ ewarn "where <impl> is atlas, threaded-atlas or reference"
+ die "setup failed"
+ fi
+ fi
+
+ if use blas; then
+ local myblas
+ myblas=$(eselect blas show) || die
+ if [[ -z "${myblas/.*reference.*/}" ]] && \
+ [[ -z "${myblas/.*atlas.*/}" ]]; then
+ ewarn "You need to set blas to atlas or reference. Do:"
+ ewarn " eselect blas set <impl>"
+ ewarn "where <impl> is atlas, threaded-atlas or reference"
+ die "setup failed"
+ fi
+ fi
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Fix unversioned python calls
+ local pyver=${EPYTHON/python/}
+ sed -e "s:GRASS_PYTHON=.*:&${pyver}:" -i "${S}/lib/init/grass.sh" || die
+ sed -e "s:= python:&${pyver}:" -i "${S}/include/Make/Platform.make.in" || die
+
+ # fix header being unconditionally included
+ # see upstream https://trac.osgeo.org/grass/ticket/2779
+ sed -e 's:\(#include <ogr_api.h>\):#ifdef HAVE_OGR\n\1\n#endif:' \
+ -i "${S}/vector/v.external/main.c" || die "failed to sed main.c"
+
+ epatch "${PATCHES[@]}"
+
+ eapply_user
+ eautoconf
+
+ ebegin "Fixing python shebangs"
+ python_fix_shebang -q "${S}"
+ eend $?
+}
+
+src_configure() {
+ if use X; then
+ WX_BUILD=yes
+ setup-wxwidgets
+ fi
+
+ addwrite "${ROOT}dev/dri/renderD128"
+
+ econf \
+ --enable-shared \
+ --disable-w11 \
+ $(use_with cxx) \
+ $(use_with tiff) \
+ $(use_with png) \
+ $(use_with postgres) \
+ $(use_with mysql) \
+ $(use_with mysql mysql-includes "${ROOT}usr/include/mysql") \
+ $(use_with mysql mysql-libs "${ROOT}usr/$(get_libdir)/mysql") \
+ $(use_with sqlite) \
+ $(use_with opengl) \
+ $(use_with odbc) \
+ $(use_with fftw) \
+ $(use_with blas) \
+ $(use_with lapack) \
+ $(use_with X cairo) \
+ $(use_with truetype freetype) \
+ $(use_with truetype freetype-includes "${ROOT}usr/include/freetype2") \
+ $(use_with nls) \
+ $(use_with readline) \
+ --without-opendwg \
+ --with-regex \
+ $(use_with threads pthread) \
+ $(use_with openmp) \
+ $(use_with opencl) \
+ --with-gdal="${ROOT}usr/bin/gdal-config" \
+ $(use_with liblas liblas "${ROOT}usr/bin/liblas-config") \
+ $(use_with X wxwidgets "${WX_CONFIG}") \
+ $(use_with netcdf netcdf "${ROOT}usr/bin/nc-config") \
+ $(use_with geos geos "${ROOT}usr/bin/geos-config") \
+ --with-proj-includes="${ROOT}usr/include/libprojectM" \
+ --with-proj-libs="${ROOT}usr/$(get_libdir)" \
+ --with-proj-share="${ROOT}usr/share/proj/" \
+ $(use_with X x)
+}
+
+src_compile() {
+ # we don't want to link against embedded mysql lib
+ emake CC="$(tc-getCC)" MYSQLDLIB=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ INST_DIR="${D}usr/${MY_PM}" \
+ prefix="${D}usr" BINDIR="${D}usr/bin" \
+ PREFIX="${D}usr/" \
+ install
+
+ pushd "${D}usr/${MY_PM}" &> /dev/null || die
+
+ # fix docs
+ dodoc AUTHORS CHANGES
+ docinto html
+ dodoc -r docs/html/*
+ rm -rf docs/ || die
+ rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die
+
+ # manuals
+ dodir /usr/share/man/man1
+ rm -rf man/ || die
+
+ # translations
+ if use nls; then
+ dodir /usr/share/locale/
+ mv locale/* "${D}usr/share/locale/" || die
+ rm -rf locale/ || die
+ # pt_BR is broken
+ mv "${D}usr/share/locale/pt_br" "${D}usr/share/locale/pt_BR" || die
+ fi
+
+ popd &> /dev/null || die
+
+ # place libraries where they belong
+ mv "${D}usr/${MY_PM}/lib/" "${D}usr/$(get_libdir)/" || die
+
+ # place header files where they belong
+ mv "${D}usr/${MY_PM}/include/" "${D}usr/include/" || die
+ # make rules are not required on installed system
+ rm -rf "${D}usr/include/Make" || die
+
+ # mv remaining gisbase stuff to libdir
+ mv "${D}usr/${MY_PM}" "${D}usr/$(get_libdir)" || die
+
+ # get proper folder for grass path in script
+ local gisbase
+ gisbase="${ROOT}usr/$(get_libdir)/${MY_PM}"
+ sed -e "s:gisbase = \".*:gisbase = \"${gisbase}\":" \
+ -i "${D}usr/bin/${MY_PM}" || die
+
+ # get proper fonts path for fontcap
+ sed -i \
+ -e "s|${D}usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
+ "${D}usr/$(get_libdir)/${MY_PM}/etc/fontcap" || die
+
+ # set proper python interpreter
+ sed -e "s:= \"python\":= \"${EPYTHON}\":" -i "${D}usr/bin/${MY_PM}" || die
+
+ if use X; then
+ local GUI="-gui"
+ [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
+ make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education"
+ doicon -s 48 gui/icons/${PN}-48x48.png
+ fi
+
+ # install .pc file so other apps know where to look for grass
+ insinto /usr/$(get_libdir)/pkgconfig/
+ doins grass.pc
+
+ # fix weird +x on tcl scripts
+ find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
+}
+
+pkg_postinst() {
+ if use X; then
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ if use X; then
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ fi
+}
diff --git a/sci-geosciences/grass/metadata.xml b/sci-geosciences/grass/metadata.xml
new file mode 100644
index 000000000000..76412950449b
--- /dev/null
+++ b/sci-geosciences/grass/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wraeth@gentoo.org</email>
+ <name>Sam Jorna</name>
+ </maintainer>
+<maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+<longdescription>The original GIS, yes the first one, developed by the US
+Army Corp of Engineers, now an active open source GIS. See the GRASS Documentation
+Project for more info http://grass.itc.it/gdp/index.php
+</longdescription>
+ <use>
+ <flag name="geos">Use <pkg>sci-libs/geos</pkg> for v.buffer and adds
+ extended options to the v.select module</flag>
+ <flag name="liblas">Include support for LAS and LAZ encoded LiDAR
+ files through <pkg>sci-geosciences/liblas</pkg></flag>
+ <flag name="opencl">Enable OpenCL support</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/gshhs-data/Manifest b/sci-geosciences/gshhs-data/Manifest
new file mode 100644
index 000000000000..9fecb646591c
--- /dev/null
+++ b/sci-geosciences/gshhs-data/Manifest
@@ -0,0 +1,5 @@
+DIST gshhs+wdbii_2.2.0.zip 114563504 SHA256 d6a578c1762143f6d4dd2901b498774297ffb610204e8c85967f99ab867030cb SHA512 fa7011a0008cd81e551ff89dc9b3c51f165824cb15926069eaba0eb42b126d51be4874ce515fde3746217138b093f392d02bf4a1db25cd894ad5bd43cf6ae9d0 WHIRLPOOL 1497a83df771c31a001673813a9d46488d860bb14d6f2b7a5cd571617e4c6771d100ff21f50301f6cbe08d309b41aa8080710bb29ee1b4403388d486c2230026
+EBUILD gshhs-data-2.2.0.ebuild 597 SHA256 1ff8d980567c06e6e98db5dec29c25a7e915035b8a7fbe0ee58d75ba946df7ce SHA512 29d8830d77cfb1ab77fb637e136871dbeebdcbede63e9d3910314574ac32b1e5a80005c1ebb77adc238e893212038691ea8732923b933f5b9f5b72ac5f7e04df WHIRLPOOL 23a17e86b23305d460a709e48ac3d037cfb5591506fafdcad05f594f5912f169b574e356afa1e0149d9b289bbfb48c2dc512c0ac5a395768273d036b12b8c22c
+MISC ChangeLog 2836 SHA256 d358ee04e704a69133b3da6fff462691fe60f6c160805a0c44a41555ea48e9af SHA512 49d3b792aa6d50021ff964c28517bad610cc3006dea57425d3533402fb8fdd25f56e0ddb9cc1b5e0783d26b352cc4b57f6f78e17eda959d19ef2de25bfe76a4a WHIRLPOOL a0afa1800ee4c66cf8ccbff19eb230e729ccd9df392fd40cf162b56b1f065da22132875b1f46d7e631c17c7eff5feee5064df7d739d45f2296638778a7aefc47
+MISC ChangeLog-2015 492 SHA256 cb9412c85a2c37367644fc4e488416a8baf1eef207372830116fb5bb26de7e18 SHA512 82cb16ca8a7b3033962d528b539db4f79e26e331c51bcdc18e412a4514dd7b541133a1d7a7c98b0c129ae807ccd97ecde7ac77401ea250a2bab8d6427bdb7294 WHIRLPOOL 1881b01f14962ae84d430fed61172eab413f39f03d69865ac705495e86c923a318c974981fce69566169be5cca9ee6912a4940d1071377e6687b906a60826006
+MISC metadata.xml 786 SHA256 e1709869ab3b9ad1a5fcea599342ba470345e2f8abd3d6c7856890baeb0c5c43 SHA512 3d3ca40e371f9bfd1f1119ec26f0dab0cbc11c47e5ff9d991fae972060acec1ec908316a6140feec3fa010492af4baf42f33bc79eb8449fabec1ba3db3bf275d WHIRLPOOL b597e9400788a9bc246db3c99c68468a9a78228df18e5fbf47f279ee3ca464ecb972f488638dc14bef119ae4115e057c6291c7772f21393c0ea9d342586418b0
diff --git a/sci-geosciences/gshhs-data/gshhs-data-2.2.0.ebuild b/sci-geosciences/gshhs-data/gshhs-data-2.2.0.ebuild
new file mode 100644
index 000000000000..bafcf9956bf6
--- /dev/null
+++ b/sci-geosciences/gshhs-data/gshhs-data-2.2.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Global Self-consistent, Hierarchical, High-resolution Shoreline programs data"
+HOMEPAGE="http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html"
+SRC_URI="http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/version${PV}/gshhs+wdbii_${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+S="${WORKDIR}"
+
+src_install() {
+ dodoc gshhs/README.TXT
+ rm gshhs/README.TXT || die
+ insinto /usr/share
+ doins -r *
+}
diff --git a/sci-geosciences/gshhs-data/metadata.xml b/sci-geosciences/gshhs-data/metadata.xml
new file mode 100644
index 000000000000..299691b81526
--- /dev/null
+++ b/sci-geosciences/gshhs-data/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+</maintainer>
+<longdescription lang="en">
+ GSHHS is a high-resolution shoreline data set amalgamated from two
+ databases in the public domain. The data have undergone extensive
+ processing and are free of internal inconsistencies such as erratic
+ points and crossing segments. The shorelines are constructed
+ entirely from hierarchically arranged closed polygons. The data can
+ be used to simplify data searches and data selections, or to study
+ the statistical characteristics of shorelines and land-masses.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-geosciences/gshhs/Manifest b/sci-geosciences/gshhs/Manifest
new file mode 100644
index 000000000000..ba0c0f990fd5
--- /dev/null
+++ b/sci-geosciences/gshhs/Manifest
@@ -0,0 +1,5 @@
+DIST gshhs_1.13_src.zip 19483 SHA256 2a5420ade8fd1e4987cc80715002cca65010605d9996b230d0fc9300743092d4 SHA512 c83574f2e2f3b795391d0016234974fb3f3956c8af568b78be07c58f4194ec2c8b34f2f91ab52f1b635f4e4870167d6ef357c4d362207521ed587d89c7d3738a WHIRLPOOL b1b1bf2d392ba43267582c2bc925fa737ba961a3799e42e8e051fd188ee61717e2bee1ef54c76cdb2f5929bbd14bfc4e21e44f42fb5620902baa665476c00712
+EBUILD gshhs-1.13.ebuild 949 SHA256 7519ba87cec4fb2ada4a7a7c437c575a45d455619042592dbc766522bf46d90b SHA512 4770e81e04ac1e696a8dc39d39f1069856cca5c743dcca7dfad587c4132019b40812634b431146e09fc164eb7ce7d832b71015b924852572d5883414acb3d3b1 WHIRLPOOL 25da54adfadec063e5477f712dfbdcf57d2373e7e872d25bf7a511a4a57529e4a6af080933554ad8f68570babec1f1a0614d7600cb147dbd4807d3339d40aedb
+MISC ChangeLog 2819 SHA256 d3dc572334cbe49b7678a9bd27070533f5bd054a0361d6217b921f7472951558 SHA512 1328790fa3ae008dbcfbd868189ee5880f6c93c4220865c902118023c2c16d4ddc5945e2d00d3cdd4f03fc4142558800a4a0ec4be7f78c979c0f8e3f4ac8776f WHIRLPOOL a26839eb92db56e1cc4c92c744b58f73eed500b357bb75be1ac50a526065bcc2f356e55d4746be5307a42038ab0348f0bf21e1826eb5abfb179417b8c60178ca
+MISC ChangeLog-2015 575 SHA256 bde5939a9f117d78e641176162d3f5669c911acd2017f0c6c4d4382de003e610 SHA512 d9e0632523695f9ffc9f51ade866f6f160a36763d56dfdfe5b66c892ecb8a5fb3f05b2b744090b2bb273e1b1afadbb554b8a67af9b2894e02086ef66e43ce309 WHIRLPOOL 41c3485ef19fd2aac1a7105851346188469c346b57ece217d2d08aad7a9a556bec608484b81d76f49511fc4bf083189cb53b0631de1554c1a83b8c8e95c6b784
+MISC metadata.xml 644 SHA256 6010789cb2764a6416afbd334dd81c1cf3d5c4912cb0c13e89cc11418c964cc5 SHA512 92656501532d833ade1d860309dcc59bd649de9a89b1ddc72c9b101e54871330b0a4096f00558768e52abbc9477f8820550d188aeb8019e68508267379d2d9b0 WHIRLPOOL d9e677eba3d6ca8a57731ac47c3f3d1e49b8b54e484b2123abc9f908bc8dd81cd9f64716c2b5f0fffafa830fac97924210c499bc33590317770a37ee9411df81
diff --git a/sci-geosciences/gshhs/gshhs-1.13.ebuild b/sci-geosciences/gshhs/gshhs-1.13.ebuild
new file mode 100644
index 000000000000..01797695ac52
--- /dev/null
+++ b/sci-geosciences/gshhs/gshhs-1.13.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Global Self-consistent, Hierarchical, High-resolution Shoreline programs"
+HOMEPAGE="http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html"
+SRC_URI="ftp://ftp.soest.hawaii.edu/pwessel/gshhs/gshhs_1.13_src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+data"
+
+RDEPEND="sci-libs/netcdf
+ sci-libs/gdal
+ data? ( sci-geosciences/gshhs-data )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ local p
+ for p in gshhs gshhs_dp gshhstograss; do
+ $(tc-getCC) ${CFLAGS} $($(tc-getPKG_CONFIG) --cflags netcdf) \
+ ${LDFLAGS} ${p}.c \
+ $($(tc-getPKG_CONFIG) --libs netcdf) -lgdal -lm -o ${p} \
+ || die
+ done
+}
+
+src_install() {
+ dobin gshhs gshhs_dp gshhstograss
+ insinto /usr/include
+ doins gshhs.h
+ dodoc README.gshhs
+}
diff --git a/sci-geosciences/gshhs/metadata.xml b/sci-geosciences/gshhs/metadata.xml
new file mode 100644
index 000000000000..3e37aee7d8b2
--- /dev/null
+++ b/sci-geosciences/gshhs/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+</maintainer>
+<longdescription lang="en">
+ GSHHS is a high-resolution shoreline data set amalgamated from two
+ databases in the public domain. This package contains access
+ software and routines to facilitate decimation based on a standard
+ line-reduction algorithm.
+</longdescription>
+<use>
+ <flag name="data">Add earth data with <pkg>sci-geosciences/gshhs-data</pkg> </flag>
+</use>
+</pkgmetadata>
diff --git a/sci-geosciences/gtk-g-rays2/Manifest b/sci-geosciences/gtk-g-rays2/Manifest
new file mode 100644
index 000000000000..906059bbe7ba
--- /dev/null
+++ b/sci-geosciences/gtk-g-rays2/Manifest
@@ -0,0 +1,5 @@
+DIST gtk-g-rays2-2.05.tar.xz 898216 SHA256 1bd9bfe70e601da4bd0a7ab3072e95b477ec87df03c69ece5fbfc3a0308e0d3c SHA512 673d6e756f1a827e1c0de5384f3228e69a00a56588b81528202e80f5d2067213fd9fdb5af22028fcce0c4ea9e4d1b708accdd5777628ded351e3f2b6f2f57e41 WHIRLPOOL 2dea98ed42d55d2e04c22ea8353c486ebe76aa2e22f4a4b24775c56df913b182ff7b45a5149ae08474fc0c06ab47be6fdecb49822be794dc8af881eed8d4f1ab
+EBUILD gtk-g-rays2-2.05.ebuild 864 SHA256 5887adf0f0e017e544677b5d68a3f6c1d5fd3ba93e16a52598f465b032e001e4 SHA512 8740f2d0b71e7021a1b1a9325c5a15531a187cf007bd76963e2cf3babc35a69b5cad33ce0c4212ef8903368933913dc97a35d3de340491e8db124c6bccf399f4 WHIRLPOOL fcaf53d66c25fcee67b938411c485dae4590ad001e2008971fd0406351ecda5248ec9515544fd526c5c0508f76007af336f7048fbe4a7cf86b439f2a4967d920
+MISC ChangeLog 3107 SHA256 89564c9e0c795eda0629362115a6d9817c75a41b0c37c7fbc58bbb0f18f9ac0a SHA512 3e802748d58fe5c4258b99b5f89b65ad738450223ba328c1a1426ef240e5ef6b537c5a86aaddea59f255b6e18cc271d9c7966473fda453344d8bed65c242062a WHIRLPOOL 33e6a31025df4c17fd3bb9ca7ace58518704519bd505c74bece37d53589e0731b781ffe4e14a268c5f2d29246cda962470c28df5ae55849ec6de2e847977dc29
+MISC ChangeLog-2015 2092 SHA256 dcde044e2ba78aa203076837ba2e7d99168a19dab3f12682411098b04b1c37f0 SHA512 4f870f35ca612497404138a60fcc63c353c28b289e2d66cc79e7c1203e57e764420e377b69c55ebf178db1c379b669668d0cf0410fb73204da4c400721c0870e WHIRLPOOL 2154f5015c4c64744fb5379ef46368000dd1f99df04979678339a333fed50c3eab317c3c4af3ce86e698182f26c7f07952e303ca4e5a0ccc68b671cdca824abd
+MISC metadata.xml 275 SHA256 c1347e20f0a0f47375cc3146054546c50d3ef2cfaddfacf0fce2b214adc83c35 SHA512 5877508750864819a1d129ac2406c0d11721cd0e4e64d55c9bd6a44649991fda435e7752e841cca94b348f74078226f12e90dcdd323915bce3d601e65865c225 WHIRLPOOL cf88822f7276911834692926063dc6ed2b30a36152e696e6c09e9d6946d11aa1db3c7266f08c78baa79f5e91c30f15abb341dafe03625d22bf168e472103a445
diff --git a/sci-geosciences/gtk-g-rays2/gtk-g-rays2-2.05.ebuild b/sci-geosciences/gtk-g-rays2/gtk-g-rays2-2.05.ebuild
new file mode 100644
index 000000000000..b1cae729d35b
--- /dev/null
+++ b/sci-geosciences/gtk-g-rays2/gtk-g-rays2-2.05.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools gnome2
+
+DESCRIPTION="GUI for accessing the Wintec WBT 201 / G-Rays 2 GPS device"
+HOMEPAGE="http://www.daria.co.uk/gps"
+SRC_URI="http://www.zen35309.zen.co.uk/gps/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ virtual/libgudev
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ virtual/freedesktop-icon-theme
+ net-wireless/bluez
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+DOCS="README AUTHORS ChangeLog"
+
+src_prepare() {
+ # werror is bad idea
+ sed -i -e 's:-Werror::g' configure.ac || die
+ # we run this ourselves
+ sed -i -e '/gtk-update-icon-cache/d' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}"
+}
diff --git a/sci-geosciences/gtk-g-rays2/metadata.xml b/sci-geosciences/gtk-g-rays2/metadata.xml
new file mode 100644
index 000000000000..d78f80981828
--- /dev/null
+++ b/sci-geosciences/gtk-g-rays2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/harmonics-dwf-free-noncomm/Manifest b/sci-geosciences/harmonics-dwf-free-noncomm/Manifest
new file mode 100644
index 000000000000..4fffaf751e3f
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free-noncomm/Manifest
@@ -0,0 +1,5 @@
+DIST harmonics-dwf-20111230-nonfree.tar.bz2 308689 SHA256 d44cd2adbea4c1fd64cd31189e86d0473a25808f59bc3e3e9db9e496d36ca91c SHA512 53da55c37dfa1e5f9be1c46cd53d80208c2bf5a2af6e53e26c0dfe097d85399f503c8bed389d368e9183ba1b5506a9debdc3f2a633c6bfc6b5b188f5800ca36a WHIRLPOOL 7a201247c2ecdae3708fa387e50e63301f42e97ff14c597133e6f8633fcc57a9c8a006ba4b2700a9a37c4b9b0b5e554e787cf1375397bf4a67e8ff565ff26a9f
+EBUILD harmonics-dwf-free-noncomm-20111230-r1.ebuild 572 SHA256 2bc0d2045eaaa9b165118dfb9d5e69d0b56d89c6a89551fe33209c733df35835 SHA512 9abae69c9468db4250d05c210e03a1c7cf76f1cc75777a9a63471620254565ce7bc7d34857d043289c549bdf11e161fbeae59393b70e63fc5e813544ae1d6f8e WHIRLPOOL ab5bdb2b9f8fec050abebdfc16d17c1b50462fa53f6c262241ee885ab54a888ef34d1cb7e98c36fa34ca9c9ce3bc17cb9a1b96615ada03cdeb0a22b598841089
+MISC ChangeLog 2991 SHA256 be3bd147dc6ac24d1cfc6a4ee3e4d9b4f1fe69bc36fee73ba2d3949fb4e63790 SHA512 52feee454b89a92d0b8e7fb41dec8c587ea15d2ee1bd25ec71a3e056d94d859416fa3901be8404531a9dee5d7731a3189d8fcf7ab2d4904170bd1617df646c68 WHIRLPOOL 45f4e4562e9229408468edf8e0559b134732b5aa6beb96180eaf673dd36003bb04bd853a5c2094538a58b8330c4d3bbaf80e4518ea771f38c8058dbf64b85175
+MISC ChangeLog-2015 1349 SHA256 7223c3fea16997a46f88420f799267dfd63ecd3370b85696764849f899b278c0 SHA512 9b14e02eeeca59824b082d11462377bba1f94f60c3ac6ebb706127048b34d6a1bf0b883237952371182535c382c3b8ce0acc52a31528d9fa6e1d4d7c6ef6b7c6 WHIRLPOOL ad58d8ecd011ef4305441e6eed4a63ba7d67f2383eff5561881c9097ee54c49012b0f138d5ccba00d8d1db1da1bc5ac2b36c88683953f91af3dfcf9df2ff9be5
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sci-geosciences/harmonics-dwf-free-noncomm/harmonics-dwf-free-noncomm-20111230-r1.ebuild b/sci-geosciences/harmonics-dwf-free-noncomm/harmonics-dwf-free-noncomm-20111230-r1.ebuild
new file mode 100644
index 000000000000..4a08e6e7970e
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free-noncomm/harmonics-dwf-free-noncomm-20111230-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${P/-free-noncomm-/-}"
+DESCRIPTION="Tidal harmonics database for libtcd"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+# Even though the SRC_URI is labeled nonfree, the data is actually available for
+# any non-commercial use.
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}-nonfree.tar.bz2"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto /usr/share/harmonics
+ doins "${WORKDIR}/${MY_P}"-nonfree.tcd
+}
diff --git a/sci-geosciences/harmonics-dwf-free-noncomm/metadata.xml b/sci-geosciences/harmonics-dwf-free-noncomm/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free-noncomm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sci-geosciences/harmonics-dwf-free/Manifest b/sci-geosciences/harmonics-dwf-free/Manifest
new file mode 100644
index 000000000000..97b50575dc89
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free/Manifest
@@ -0,0 +1,7 @@
+DIST harmonics-dwf-20121224-free.tar.bz2 508967 SHA256 d80d7e99181c60a42660392abbe25789c395453dd88944c41dc19c7f4b0f11be SHA512 25791923dad463a25210b4688c2868a502e690431fa22815d3daa693e42be3e2563367474c4771f88cd3e7eae3b3f290f312f05f5f554895de983eabc24e5657 WHIRLPOOL 6d90f71cb88c78fb925fc1d255fcaee828ca538491b26011e49c519d28592cdc29af2ad519206ba3e1d447d3ad0ec1f81a875f08c649bbe74bb4bfc0673ef222
+DIST harmonics-dwf-20131228-free.tar.bz2 511292 SHA256 3185a471e51dffab37b7503e02b901858945ff33687345cf290e429346c99250 SHA512 b36ca3f432a455fee051418b7eb427bfafc7cdad929765ed6d44f6f2583e6b8c1d4992b21225d07636c418cc4dea2e353f3276511ba7b331bb8709bf543fceed WHIRLPOOL ab8cce1316715ad15687f6084f3e9a734cad931fe4ba71747b5ce1e9b49c99a149626e1d09f422da11636b208f23e49fe9e7e22678d29d04529b318e81fd9060
+EBUILD harmonics-dwf-free-20121224.ebuild 449 SHA256 257cd5c4f0e8b0dfedf5cd37b81b7e01029e2cb5f89153e0050c711c2641decf SHA512 846248877ad8000b7fef8f5de2504358f4b81d7d3c37749b47b8362303b4b312976e052ac420add963978d6ae0d7172fff7518bf3875bcd569f04e49651987a4 WHIRLPOOL 9e2a385b5ea2a6826e59af2d8d9aa8e13c2f2755e8045f658c8a2bb6fb318b3fc5f411db20d0dee8d6b35da6054bf8774a6085673bc2d8aaf3057755a06b34b2
+EBUILD harmonics-dwf-free-20131228.ebuild 468 SHA256 3326d82c1d88a04e7ad77055b1fe3a958e57dba43b18a907428fc07d109c7b6b SHA512 cd960ea227e20f2a9f259c2060be224e3d57a405d0bc2975fb2da1cf46dcaf7bb9f182c4e8105818c23b7e4b1b1d34ecf2a13b2994ba2a5d14c526b463074b21 WHIRLPOOL cb01ebe083107ad0fc40593a9b40fde74ddc06fcab5008d494f4ea4200ac56e6459fb1bd6d340d882400c78d8a0a50d866e07096a31d8324cb4691276088c3e0
+MISC ChangeLog 3043 SHA256 3e934dd5293ef330c1bff8024e875de24f989b93db8f7668f81be5e1561eacdd SHA512 86675680c81f917ca94ba19894d0741238016eed0534f308975755923a937c74e5b3d17b25892ec7b0a5267dd5b1dd0da1d77517bcc0e3a82379f139ed349005 WHIRLPOOL 6e8899132be632a60723a41a3e685e7f53e09405e985b75a558760fea538d8ad062c4e3414a237223ef4d497376881ad0714d2baea251ebc559614eebae3a509
+MISC ChangeLog-2015 1270 SHA256 4c20029bf8cb2046061af0310706d162f98ff230cfa20b2da50e61f234c91d9b SHA512 83ff66d4fed8ff30e6034a7016fcfc7ee4cfd97624532996acb48bd732fe07419d9146e860b50f26c9b0e4d622e5ce1f51d746138153aa7d04ac58d5531d8b06 WHIRLPOOL c6c5ff4dc4a7925170d2aaf73963660812906b86a792828acb5cc474ad76917f4e5433b98b1c5bac9e9efc146446f907b137722853c449d6f3cca48de45531df
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20121224.ebuild b/sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20121224.ebuild
new file mode 100644
index 000000000000..7c2689d0c496
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20121224.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${P/-free-/-}"
+DESCRIPTION="Tidal harmonics database for libtcd"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}-free.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ insinto /usr/share/harmonics
+ doins "${MY_P}"-free.tcd
+}
diff --git a/sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20131228.ebuild b/sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20131228.ebuild
new file mode 100644
index 000000000000..f8bbbe1bcdc9
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free/harmonics-dwf-free-20131228.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${P/-free-/-}"
+DESCRIPTION="Tidal harmonics database for libtcd"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}-free.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ insinto /usr/share/harmonics
+ doins "${MY_P}"-free.tcd
+ dodoc ChangeLog
+}
diff --git a/sci-geosciences/harmonics-dwf-free/metadata.xml b/sci-geosciences/harmonics-dwf-free/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sci-geosciences/harmonics-dwf-free/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sci-geosciences/josm/Manifest b/sci-geosciences/josm/Manifest
new file mode 100644
index 000000000000..cebb029244e0
--- /dev/null
+++ b/sci-geosciences/josm/Manifest
@@ -0,0 +1,6 @@
+DIST josm-10966.tar.gz 61397663 SHA256 2326bffc7cd3c92a8cd4bf627a8cd591e097eb17917564f57ba54f22d2a643f1 SHA512 a710e8c8b696955140a858dcb53184515a5c0d7b8cde71099258690b26cc980b903cfea2e4ef9b7fbf524e3b8a153f71d4464260294b0fdcf8941812ffe6b5ee WHIRLPOOL ba4f3fe811b3c4c5cc3b53d4ae311db10c10dff76bac89629bbbf369b15a39e43fed438b3c7afbf57a14996127b22167e6205c8a3f2b1161102918fde976314c
+EBUILD josm-10966.ebuild 2084 SHA256 dd31f86d9b99037ea8b3c7ac7129c310457c89a2ad0bd67b916e097c7e53fc3e SHA512 e6988ab0df087b49cd8fe089af9c7ab543324b79c9816c19d8a907a1accf28503fa914bd1e8178a59e9dee47de8a7cec9ff7cb17646f6ba4f5b0ecbc8db19ac1 WHIRLPOOL cf8b490615dcedbb5ad05b42b8e03c5c00987e2a414362e75e77f91633d1875a10354f413e1a5dd85009fb9c33a78c58958ba7b44e4fbb53ea513b5aba8cccce
+EBUILD josm-99999.ebuild 1442 SHA256 1454047a5d28f6d865a675881e703796d04da0cb52e110e20a9a962504175485 SHA512 78b17f3bd8e07181ff73342b083c5c17d4675996d88f36b3c2ca8ce878686bf9b4d2795e501812664c23f689ad500d8c2e36f95d4573acfebea40201f6c39c92 WHIRLPOOL 8796d664fed92c2b8abec2acdd254a5ace0078bb4f8a8253cdc7ebc6ca81d01ded47fad6f8b41425f1d0ce6bf8ca80bf891d362a9174e801aad75481fa014606
+MISC ChangeLog 5128 SHA256 05b8c7efebf09f932d06ccb82860baac382441e861908abb2cea506421452cae SHA512 d784ff4c199b46a356f039ef19615c87fa61342a900df11512b4020ca8a79207a20c7864d24c3b4eb83987b09fabd7a2bd54f1b0dd904f8ca10d69dd5ab3e380 WHIRLPOOL f1613b80b7a26a18d92a8a55f127b709034b7d5c4b93133fcfe6fad9f10fadbe9ba7953c53cb46bd3b144d828018d44040ea090a7b5f133a467bbe88c3a3c920
+MISC ChangeLog-2015 6733 SHA256 c6d98960a2e3dd78cd7c10854a50b4517c27905a5ebe584f11ba423bd32e00ab SHA512 3879551a034d59d5e00bfde27f40eea9e0caab903ce1f0bfcfab054eb81deab002d0fc0065a8d87f3fad533851c304558d965ab975cdd4c2cc008c22927da1ea WHIRLPOOL e6d0d14720f3c935ab7ca36a73476fff84a904e6fba5dfa809f20856f447d5293f6eec3e3107db135c0ad862f4ee7f04b201f514df16192d4f02e39ea9519bfe
+MISC metadata.xml 358 SHA256 ca20e6577657dc4dc1cd4edfd608b0830bc25b1aa8455356ef1b7cdb691137bb SHA512 2ac67191db6baddf685da023d741fea2d9e790cbd3b7b6787a7f3e4850d97522e2891d8d053b60ff6cceb7379fad10584f9a17bd91358892910b3120609d59bc WHIRLPOOL a7a285b66b367e417e3290db53ef8b2f8d16bac6410782cca705e65a0da71b40deeb9a34b5115b669fbf6ae6c98d647c631d2ddeaeb3f499f9102ba016adff2d
diff --git a/sci-geosciences/josm/josm-10966.ebuild b/sci-geosciences/josm/josm-10966.ebuild
new file mode 100644
index 000000000000..e143e67b42dd
--- /dev/null
+++ b/sci-geosciences/josm/josm-10966.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_ANT_ENCODING=UTF-8
+
+[[ ${PV} == "9999" ]] && SUBVERSION_ECLASS="subversion"
+ESVN_REPO_URI="http://josm.openstreetmap.de/svn/trunk"
+inherit eutils java-pkg-2 java-ant-2 ${SUBVERSION_ECLASS}
+unset SUBVERSION_ECLASS
+
+DESCRIPTION="Java-based editor for the OpenStreetMap project"
+HOMEPAGE="http://josm.openstreetmap.de/"
+# Upstream doesn't provide versioned tarballs, so we'll have to create one on our own:
+# REVISION=${PV}
+# mkdir -p josm-${REVISION}
+# svn co -r ${REVISION} http://josm.openstreetmap.de/svn/trunk/ josm-${REVISION}
+# cd josm-${REVISION} && ant init-svn-revision-xml && cd -
+# tar -cz --exclude=.svn -f /usr/portage/distfiles/josm-${REVISION}.tar.gz josm-${REVISION}
+[[ ${PV} == "9999" ]] || SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+DEPEND=">=virtual/jdk-1.8"
+RDEPEND=">=virtual/jre-1.8"
+
+IUSE=""
+
+src_prepare() {
+
+ if [[ ${PV} == "9999" ]]; then
+
+ # create-revision needs the compile directory to be a svn directory
+ # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
+ sed -i \
+ -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
+ build.xml || die "sed failed"
+
+ else
+
+ # Remove dependency on git and svn just for generating a
+ # revision - the tarball should already have REVISION.XML
+ sed -i -e 's:, *init-git-revision-xml::g' \
+ -e '/<exec[ \t].*"svn"[ \t].*/,+5{d;n;}' \
+ -e 's:${svn.info.result}:1:' \
+ build.xml || die "sed failed"
+
+ fi
+
+}
+
+src_compile() {
+ eant dist-optimized
+}
+
+src_install() {
+ java-pkg_newjar "dist/${PN}-custom-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
+ java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
+
+ newicon images/logo.png josm.png || die "newicon failed"
+ make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Utility;Science;Geoscience"
+}
diff --git a/sci-geosciences/josm/josm-99999.ebuild b/sci-geosciences/josm/josm-99999.ebuild
new file mode 100644
index 000000000000..95317b08194d
--- /dev/null
+++ b/sci-geosciences/josm/josm-99999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_ANT_ENCODING=UTF-8
+
+[[ ${PV} == "99999" ]] && SUBVERSION_ECLASS="subversion"
+ESVN_REPO_URI="http://josm.openstreetmap.de/svn/trunk"
+inherit eutils java-pkg-2 java-ant-2 ${SUBVERSION_ECLASS}
+unset SUBVERSION_ECLASS
+
+DESCRIPTION="Java-based editor for the OpenStreetMap project"
+HOMEPAGE="http://josm.openstreetmap.de/"
+[[ ${PV} == "99999" ]] || SRC_URI="http://josm.hboeck.de/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} == "99999" ]] || \
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=">=virtual/jdk-1.8"
+RDEPEND=">=virtual/jre-1.8"
+
+IUSE=""
+
+src_prepare() {
+ if [[ ${PV} == "99999" ]]; then
+
+ # create-revision needs the compile directory to be a svn directory
+ # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
+ sed -i \
+ -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
+ build.xml || die "Sed failed"
+ fi
+}
+
+src_compile() {
+ eant dist-optimized
+}
+
+src_install() {
+ java-pkg_newjar "dist/${PN}-custom-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
+ java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
+
+ newicon images/logo.png josm.png || die "newicon failed"
+ make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Utility;Science;Geoscience"
+}
diff --git a/sci-geosciences/josm/metadata.xml b/sci-geosciences/josm/metadata.xml
new file mode 100644
index 000000000000..351807a5d5e9
--- /dev/null
+++ b/sci-geosciences/josm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nixphoeni@gentoo.org</email>
+ </maintainer>
+<maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/laszip/Manifest b/sci-geosciences/laszip/Manifest
new file mode 100644
index 000000000000..73360d219473
--- /dev/null
+++ b/sci-geosciences/laszip/Manifest
@@ -0,0 +1,5 @@
+AUX laszip-2.2.0_fix-build-system.patch 1516 SHA256 20b83396c0dea8534d1061b71346cdbf88a1caf627cf9c69e289cd696f73d8b3 SHA512 3b2a8523491ffeded85e7aad50b1792f1f26354838afb7ab2e36bb29e2178cd1fb75601c238d59eff7779bb87a7fd5d93696a2da01951df188e66833ce6ff301 WHIRLPOOL e3441fc0c6e5a5cad2434a3381706d147f1bbeb3ed559ee4dc4a62d5fbfb87e034b0dc4028d2490f9d200f22f1a82fe90aa2f87f6b0b0eda8e19e69b1bd87acf
+DIST laszip-src-2.2.0.tar.gz 407457 SHA256 d0f6fa9c486caa6905927ebf32240aa7ef34181bbcc039cf8e51aa923557dc79 SHA512 44dacb0d0ab79ac02c784549f42c4522451646b322835afc78fbf8bb82be40e023d374635c2a18989c73a5553e05b55d7c32f35d510f816704020b0e02365824 WHIRLPOOL 4454e60c4e21f2f163e3ca4a8deefce5a42c1f7b7549eb736c51c89d4a8f05d0a57aad194a84c45aff34be8c14eac1d0d61d983611d6abba7cb85d4c2dc83247
+EBUILD laszip-2.2.0.ebuild 626 SHA256 af1ba3ee9410a932b4448b966ae8c94c23b0b3450166f426da4eef9fa2cc1e08 SHA512 67a95792f5caf53492af5a67ac41bd389521e9dc14eba9383b011900ca9059d535df9426215c1461f5c250e208d5517d544ec182bc80fd2051202ebebdcbb2d6 WHIRLPOOL b6a35609cc32c468a1149479b7f35502c43729ef059df9393e56b5103e7fa4f1a995ade7da117507617f10dd5f7af697b52523f4891ec86a2a930139d96f231c
+MISC ChangeLog 1710 SHA256 3ab5d0f7388721a382facb49aab2c677162e22d6eb34c744fab206b789a8dc8b SHA512 438e23ec9265f7f4f4a6d29d9ac725e625c5edc76626040384645f4e1617a1a545626850422a31d2bb1c1f16071833c889ef243bc45ea058efd043b7f0de59c4 WHIRLPOOL ee9fcacd7dee10b8131f32d987f4559ee8bc103521cbd8b12bf98047806fc1e74fd212619b5266dbb201d39c6219d2f43235b0bc51edf785f9bbd2e3a5141a67
+MISC metadata.xml 589 SHA256 2f915c29a006d0a2c77621fe0b81d2291850004c40d56be71d57b7a9e3cefede SHA512 ce1cd4bd4d400deb43cc2b1f83450a91ab6e202e51b4d32a4dc3eaec3cf20a6ab3bb399f9edd5c38ce0872809b4dae1b08420c3456730a23c0b2f26791c66b57 WHIRLPOOL 5b07fdb53258c06a91db212393f310f4d0c71d3c239684af583e280f4ca29aabd154f005e1890aa61761da97721b7a310614ab15ac9e557a6d0c72f8a50db643
diff --git a/sci-geosciences/laszip/files/laszip-2.2.0_fix-build-system.patch b/sci-geosciences/laszip/files/laszip-2.2.0_fix-build-system.patch
new file mode 100644
index 000000000000..4587331eba3f
--- /dev/null
+++ b/sci-geosciences/laszip/files/laszip-2.2.0_fix-build-system.patch
@@ -0,0 +1,50 @@
+--- laszip-src-2.2.0/configure.ac
++++ laszip-src-2.2.0/configure.ac
+@@ -21,9 +21,6 @@
+
+ m4_define([debug_default],[no])
+
+-CFLAGS="-Wall -Wno-long-long -pedantic $CFLAGS"
+-CXXFLAGS="-Wall -Wno-long-long -pedantic -std=c++98 $CXXFLAGS"
+-
+ dnl #########################################################################
+ dnl Checks for programs.
+ dnl #########################################################################
+@@ -68,8 +65,8 @@
+ CXXFLAGS="$CXXFLAGS -g -DDEBUG"
+ AC_MSG_RESULT(yes)
+ else
+- CFLAGS="$CFLAGS -O3 -DNDEBUG"
+- CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG"
++ CFLAGS="$CFLAGS -DNDEBUG"
++ CXXFLAGS="$CXXFLAGS -DNDEBUG"
+ AC_MSG_RESULT(no)
+ fi
+
+--- laszip-src-2.2.0/src/Makefile.am
++++ laszip-src-2.2.0/src/Makefile.am
+@@ -1,6 +1,6 @@
+ SUBDIRS = .
+
+-AM_CPPFLAGS = -I. -I../include -I../include/laszip
++AM_CPPFLAGS = -I. -I$(top_srcdir)/include -I$(top_srcdir)/include/laszip
+ noinst_LTLIBRARIES = liblibrary.la
+
+ liblibrary_la_SOURCES = arithmeticmodel.cpp \
+--- laszip-src-2.2.0/tools/Makefile.am
++++ laszip-src-2.2.0/tools/Makefile.am
+@@ -1,5 +1,5 @@
+
+-AM_CPPFLAGS = -I../include -I../include/laszip
++AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/laszip
+ LDADD = ../liblaszip.la
+
+ laszippertest_SOURCES = laszippertest.cpp
+--- laszip-src-2.2.0/include/laszip/Makefile.am
++++ laszip-src-2.2.0/include/laszip/Makefile.am
+@@ -1,4 +1,4 @@
+-laszipdir = $(includedir)/
++laszipdir = $(includedir)/laszip/
+
+ laszip_HEADERS = lasunzipper.hpp \
+ laszip.hpp \
diff --git a/sci-geosciences/laszip/laszip-2.2.0.ebuild b/sci-geosciences/laszip/laszip-2.2.0.ebuild
new file mode 100644
index 000000000000..bdabd9793af1
--- /dev/null
+++ b/sci-geosciences/laszip/laszip-2.2.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils flag-o-matic
+
+DESCRIPTION="Library for free and lossless compression of the LAS LiDAR format"
+HOMEPAGE="http://www.laszip.org/"
+SRC_URI="https://github.com/LASzip/LASzip/releases/download/v${PV}/${PN}-src-${PV}.tar.gz"
+
+SLOT="0"
+LICENSE="LGPL-2.1+"
+KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 x86"
+
+S="${WORKDIR}/${PN}-src-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}_fix-build-system.patch
+)
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ autotools-utils_src_configure
+}
diff --git a/sci-geosciences/laszip/metadata.xml b/sci-geosciences/laszip/metadata.xml
new file mode 100644
index 000000000000..358190ffe419
--- /dev/null
+++ b/sci-geosciences/laszip/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wraeth@gentoo.org</email>
+ <name>Sam Jorna</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription lang="en">
+An open-source utility for compressing LAS-stored LiDAR information in a
+lossless format.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">LASzip/LASzip</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/liblas/Manifest b/sci-geosciences/liblas/Manifest
new file mode 100644
index 000000000000..0f3d4d42a152
--- /dev/null
+++ b/sci-geosciences/liblas/Manifest
@@ -0,0 +1,7 @@
+AUX liblas-1.8.0_remove-std-c++98.patch 1141 SHA256 e52e42b6b27b6e75771cadf6b7edc2411874151261e6417da95a15369b5cb690 SHA512 90defe2149a8cf8766022af6cf1248985c350e56bb9fcae99daf9551acf9272b93ea9b9c25ecef86803e75deb0ab50c2a0f919c35705d54ca38c7cafe5940f03 WHIRLPOOL d300f1d5099e3c4b68b061fd0a0f12c5e54794e340bc851c6ba2d0eea3c935e3db8cbdaccb3cf7429fff72d35a67114f4a7fc168098dad60d172e2e2bc012956
+DIST libLAS-1.8.0.tar.bz2 3907684 SHA256 17310082845e45e5c4cece78af98ee93aa5d992bf6d4ba9a6e9f477228738d7a SHA512 1804149c7bcf04896a683a1098d372a65c000b7562795911fae697f81f370315aa373f34c12fa740d4607c07cd73e48354e34c9e26b032ffe679ecbfd4496a50 WHIRLPOOL ee2400877fad72b1ab9e5b94e673c1ff858c4c3b129aebd8146aeeb7e01a56d6aad70147a55391e9c0bb02e354036aa27b077430a4aa88b13d182389f11b538d
+DIST libLAS-1.8.1.tar.bz2 3920203 SHA256 9adb4a98c63b461ed2bc82e214ae522cbd809cff578f28511122efe6c7ea4e76 SHA512 1cb39c557af0006c54f1100d0d409977fcc1886abd155c1b144d806c47f8675a9f2125d3a9aca16bae65d2aabba84d5e5e322b42085e7db312f3d53f92342acf WHIRLPOOL 7f2d85437dc3fd4f414b40e031d67553d272c3cdbe945a4307f80f86b2be083f99b53227888978b112fdf50ec64eea298ccec3c0fe2fe1afbe95d57079f88e52
+EBUILD liblas-1.8.0.ebuild 860 SHA256 f263c625d6c12015c0dd3dcd9d740cf39022a6948c939313123a5c84aa43c8c6 SHA512 b11a84d4efd57208a542c02530c2342f2e1218606bebe1b47c8c345b59d838019fe6190c8419ffc74877260f139f53e935a3a7f46244f4ff019fe6a9d0bd2639 WHIRLPOOL e8a0a800b5b16f5f3621aa87de4ab3fef3477384ab92e842275e37fbfc985625bf3def87890189efa6b8fd61c005d822e0cfb6bbea23e0c2b574dfb1aa93988b
+EBUILD liblas-1.8.1.ebuild 974 SHA256 c9dd94fd91006762473c8863f1741fea47aa697a47579763dfdc5d64f83bd6f0 SHA512 d6eafd3d846aef8383c0822a3531a4834e799ae4500db368b4cfcf5c0a9a85d9fb7c858f26657638ae52ec09a534fe9d7707922251b115a02735529c86ba2458 WHIRLPOOL 8613e18e0de7b66ade2e18e1ccb8027a83d05664082b7c06c79fb59d02efa8cda7d35446c73a5535a29ad6f14472378e83d8c3d58bcadce6a67a11acc6d69d38
+MISC ChangeLog 1702 SHA256 6b99f77ce0fefc571d195bba88037f13bbde32185bb53566699b3bfc9bec23c9 SHA512 a60c4b8b01bdb5f2d1cc8fedddf46e657aaf73eff19b8e48b017c18d3fdedaaa053e31a992b71db06c5895ea6449555cc92c136f1ce5fa661902d6adfbaa2952 WHIRLPOOL ae9afb3791283f1762a037fe53a5e67c562f0241934220bbdbadd3d64c2b771831abc68eb17cd743766e5bd528db4edb18cc14db08d8013a41b877c6b437a791
+MISC metadata.xml 700 SHA256 6709d30fa084c8af9e0d13efa037758244682a93a7a6973c36b9f6a055bb10e1 SHA512 56edecc4e8eee02fe781ce5a61368e5253ba249a78413f4e200a56164878ec768256b36abde5c97022849ba2ca7ed5209ff5d19700b56e43652e3f0a642371d9 WHIRLPOOL 6d4e3f36056ca5fe67b02b97bf22d5d7f406d568e3224b613140d1285ee940a4f04a9e0276c1957bb522663154660547b896d0b3775b974b64ce52c509b2bfd3
diff --git a/sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch b/sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch
new file mode 100644
index 000000000000..dc230dad0777
--- /dev/null
+++ b/sci-geosciences/liblas/files/liblas-1.8.0_remove-std-c++98.patch
@@ -0,0 +1,30 @@
+--- libLAS-1.8.0/CMakeLists.txt
++++ libLAS-1.8.0/CMakeLists.txt
+@@ -140,27 +140,6 @@
+
+ set(CMAKE_INCLUDE_PATH c:/osgeo4w64/include;$ENV{CMAKE_INCLUDE_PATH})
+ set(CMAKE_LIBRARY_PATH c:/osgeo4w64/lib;$ENV{CMAKE_LIBRARY_PATH})
+-else()
+-
+- # Recommended C++ compilation flags
+- # -Weffc++
+- #
+- # Remove -pedandic which causes errors from boost (comma at end of
+- # enum) 2012-09-05. Remove -Wcast-qual -Wfloat-equal
+- # -Wredundant-decls to suppress the multitude of warning messages.
+- set(LIBLAS_COMMON_CXX_FLAGS
+- " -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long")
+-
+- if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+-
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
+- if (CMAKE_COMPILER_IS_GNUCXX)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -ansi")
+- endif()
+-
+- elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
+- endif()
+ endif(WIN32)
+
+ if (APPLE)
diff --git a/sci-geosciences/liblas/liblas-1.8.0.ebuild b/sci-geosciences/liblas/liblas-1.8.0.ebuild
new file mode 100644
index 000000000000..7db7d88088be
--- /dev/null
+++ b/sci-geosciences/liblas/liblas-1.8.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-multilib multilib
+
+DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS"
+HOMEPAGE="http://www.liblas.org"
+SRC_URI="http://download.osgeo.org/${PN}/libLAS-${PV}.tar.bz2"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="gdal geotiff"
+REQUIRED_USE="gdal? ( geotiff )"
+
+RDEPEND="
+ dev-libs/boost:=
+ sci-geosciences/laszip
+ gdal? ( sci-libs/gdal )
+ geotiff? ( sci-libs/libgeotiff )
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/libLAS-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}_remove-std-c++98.patch
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package gdal GDAL)
+ $(cmake-utils_use_find_package geotiff GeoTIFF)
+ -DLIBLAS_LIB_SUBDIR=$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
diff --git a/sci-geosciences/liblas/liblas-1.8.1.ebuild b/sci-geosciences/liblas/liblas-1.8.1.ebuild
new file mode 100644
index 000000000000..4514d041a5da
--- /dev/null
+++ b/sci-geosciences/liblas/liblas-1.8.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS"
+HOMEPAGE="http://www.liblas.org"
+SRC_URI="http://download.osgeo.org/${PN}/libLAS-${PV}.tar.bz2"
+
+# tests known to fail due to LD_LIBRARY_PATH issue
+RESTRICT="test"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="gdal"
+
+RDEPEND="
+ dev-libs/boost:=
+ sci-geosciences/laszip
+ sci-libs/libgeotiff
+ gdal? ( sci-libs/gdal )
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/libLAS-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0_remove-std-c++98.patch
+)
+
+src_prepare() {
+ default
+
+ # add missing linkage
+ sed -e 's:${LAS2COL} ${LIBLAS_C_LIB_NAME}:& ${CMAKE_THREAD_LIBS_INIT}:' \
+ -i "${S}/apps/CMakeLists.txt" || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DWITH_GDAL=$(usex gdal)"
+ -DLIBLAS_LIB_SUBDIR=$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
diff --git a/sci-geosciences/liblas/metadata.xml b/sci-geosciences/liblas/metadata.xml
new file mode 100644
index 000000000000..5491d30c6e63
--- /dev/null
+++ b/sci-geosciences/liblas/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>wraeth@gentoo.org</email>
+ <name>Sam Jorna</name>
+</maintainer>
+<maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+</maintainer>
+<use>
+ <flag name="gdal">Add support for the <pkg>sci-libs/gdal</pkg> geospatial
+ raster library</flag>
+ <flag name="geotiff">Add support for geo-tagged TIFF files with
+ <pkg>sci-libs/libgeotiff</pkg></flag>
+</use>
+<longdescription lang="en">
+A C/C++ library for reading and writing the very common LAS LiDAR format.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-geosciences/libtcd/Manifest b/sci-geosciences/libtcd/Manifest
new file mode 100644
index 000000000000..67378e4e89fc
--- /dev/null
+++ b/sci-geosciences/libtcd/Manifest
@@ -0,0 +1,9 @@
+DIST libtcd-2.2.5-r2.tar.bz2 294449 SHA256 021d9f87986d41aa52c5318c04c49a36e6e122f6b1d16f1d91b82438ff8e767c SHA512 125b8f4258c576d82f86f75c9dec4e6e0dba8d46e897835ff8ee57cb58495c3f2ae42040719aa8a6f0fa70be40dbc3eb082250cfa197f15f0b23d2ee37a47fbd WHIRLPOOL 136c829b564382d0cbc07cdcf6fec885f7da67d2a1fade9405d5fe105d4c9274796d8efde22dc4e1f2697f5690775a17f2b6c7275ec809edb643a3669856ebfe
+DIST libtcd-2.2.6.tar.bz2 300738 SHA256 6cce7dd18c9f04d40837010d1dded08faf07754cd2595073ef165e2e14dd0c14 SHA512 e0c5c35a72617c013fa2cfe94c0aff16c9d14870aa1b3ab14bf1a01715df8f8d9e9acbfa07c60275ea95266f1debbe1b61aa46e47344bba38ec64286bf2ca1eb WHIRLPOOL 796fc95d044b0b3db34c06d8ceae38f554a2c1f3108f62523aa25a795a628b39ddec2872f895397011678f84837ecb254214ec762d55737dd8d9e37f2979cc54
+DIST libtcd-2.2.7.tar.bz2 306184 SHA256 063362d9d3574b3d9943d9b875bf91283514fdab7aba2ae3addb811ff77ef8a9 SHA512 3347539a186c13fd9713752e4c9bb75c50eeee74f85a9126d7ed376f927675af6943fc486ff9396b5504b9d1aa8e33ebdd41663fc1ec5ed8babf4c207be3ce3f WHIRLPOOL 5b25e7d47e0957abf1fd4e4c9019bd8ed5a15952faa07f23bdf2c578084e198e27fc02415d02007b4adb0d3804cdd85f7ef6eb47515ea5f0791d3c3f611a17db
+EBUILD libtcd-2.2.5_p2.ebuild 689 SHA256 25f1843234c30ffcea16909eaed718d41ee2dc8ea563f6673d34bd4fd9d458ba SHA512 bd438dec387875b6f3839d3edad09e9881c40885454cafcc92dfc35c0c2af17d6b33b3f12bdf7a7425350dc3f20d9231137e8996b51d85474cffef9415c1ebac WHIRLPOOL 4e18ba01e04aedcc8cb48e55282124fbcf9fa2c02b558d97a67dc4b44a832ba0fc26a13abd9549bdc7df2617961738eab6cf7d97fd1bc0ce9f6c541edcc82be4
+EBUILD libtcd-2.2.6.ebuild 693 SHA256 6a4c529a92ef0375d56f181d204211a14f37f7780fd3be0051aa82d5b9882a47 SHA512 80d1e23f29446b3a9bf1cd157706466a83cdb17728ba424a9412477f335c05313b33710d47fcd6a77d4978da5f9fe338af131b71e359b623535f5f1a33713581 WHIRLPOOL cc8f42f0a2093c66831b8ab5a30f4be70e165b7f897ed17ef38a1cd9ee5222caa3988d5d005ffbeb11293efc8e309085d404d7877bf24297e5cb17f73322bbce
+EBUILD libtcd-2.2.7.ebuild 693 SHA256 0fe74555fe7eeacb14d292c753ec5c57b2fa6a0096c9a602be89a2da03bf34fe SHA512 06d15d9289312e2f7b3d36b1bbd8dca2daa9ae82c516c9f2aba2b96ef32ca4e63bdb1a177570dc393c3f51632dc5ecc54a6a75e3e175025b582453ae06008732 WHIRLPOOL cd1855a645527d49825854c30bfe5ba371af74b769e4a5d9eb05b1e994a2096c6c57602c9454e32c8c534e956262d958465b7f6c61bc3e04e0f89ae176b78d14
+MISC ChangeLog 3102 SHA256 c8a2782aa77328fff2798aa35900983a34cc888035f8d52d49b42b969dcc06ab SHA512 6d1402509c83de94a2b8c8068af8855426ab38e7cd0cbe7b074a481a899c9cafb833db2c4971fa107e524cb345ffe35be6fd9b1a67716f79bdec4b19f672ed03 WHIRLPOOL c8561aad7f7661aa2b71179acb0919b38faba73c7d712bb84b4bcd7808a3e58a8423f27c6ceaab6a3f7d7e56a24858827b5054a7e05b888f43575cd23c62716f
+MISC ChangeLog-2015 923 SHA256 4476ec75b0bd0268b8c2621140ea8de04d26fb7ddbc9c2e03ffa0b97a69c72a4 SHA512 c07a509b7f4ed2b636eb9d6d2f4d8e905c3865d18b0a386352a78fae74343b19dcd3d1ef88de6bc120abfcde67e17e047a029cdcea035014a83832ffa134c49a WHIRLPOOL f4bca8b2a38f77ad1a0d760253a2b2d5f2c2d15dac1bb18c77b6fafe620dad2bd645e58fff367f654f9e19e1c494475b50bbf1f946dc28f15f40b56a92364e72
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sci-geosciences/libtcd/libtcd-2.2.5_p2.ebuild b/sci-geosciences/libtcd/libtcd-2.2.5_p2.ebuild
new file mode 100644
index 000000000000..582689ba71a2
--- /dev/null
+++ b/sci-geosciences/libtcd/libtcd-2.2.5_p2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_P=${PN}-${PV/_p/-r}
+DESCRIPTION="Library for reading and writing Tide Constituent Database (TCD) files"
+HOMEPAGE="http://www.flaterco.com/xtide/libtcd.html"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc static-libs"
+
+DEPEND=">=sci-geosciences/harmonics-dwf-free-20120302"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${P%_*}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files
+ use doc && dohtml libtcd.html
+}
diff --git a/sci-geosciences/libtcd/libtcd-2.2.6.ebuild b/sci-geosciences/libtcd/libtcd-2.2.6.ebuild
new file mode 100644
index 000000000000..ac79514bf6d8
--- /dev/null
+++ b/sci-geosciences/libtcd/libtcd-2.2.6.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_P=${PN}-${PV/_p/-r}
+DESCRIPTION="Library for reading and writing Tide Constituent Database (TCD) files"
+HOMEPAGE="http://www.flaterco.com/xtide/libtcd.html"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND=">=sci-geosciences/harmonics-dwf-free-20120302"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${P%_*}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files
+ use doc && dohtml libtcd.html
+}
diff --git a/sci-geosciences/libtcd/libtcd-2.2.7.ebuild b/sci-geosciences/libtcd/libtcd-2.2.7.ebuild
new file mode 100644
index 000000000000..20fa5a171536
--- /dev/null
+++ b/sci-geosciences/libtcd/libtcd-2.2.7.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_P=${PN}-${PV/_p/-r}
+DESCRIPTION="Library for reading and writing Tide Constituent Database (TCD) files"
+HOMEPAGE="http://www.flaterco.com/xtide/libtcd.html"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${MY_P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND=">=sci-geosciences/harmonics-dwf-free-20120302"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${P%_*}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files
+ use doc && dohtml libtcd.html
+}
diff --git a/sci-geosciences/libtcd/metadata.xml b/sci-geosciences/libtcd/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sci-geosciences/libtcd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sci-geosciences/mapnik-world-boundaries/Manifest b/sci-geosciences/mapnik-world-boundaries/Manifest
new file mode 100644
index 000000000000..52fb42ffe0e6
--- /dev/null
+++ b/sci-geosciences/mapnik-world-boundaries/Manifest
@@ -0,0 +1,6 @@
+DIST processed_p-20090514.zip 255429573 SHA256 1b4696df1c68b330dcf3dd03ba28d0c5a2e9a5013268e6f1280d862cbc918113 SHA512 8a6c35def519b8c3652bfa6d63b62b1c3e2acbfc833a62157443c171e495f8698912ccbd36a4def590329937ad4b9f4c4595a016013df8209cbc7c5b3e19b2c4 WHIRLPOOL f0c107986848f6121bc994d8b09f0b7d258b3b5a1722e9fd9191187e0a777b578bc4821b7a0a8b5c38e125f5df29d4268d1d2c5fa0350f373c881a9101103f54
+DIST world_boundaries-spherical-20090331.tgz 52857349 SHA256 b3c38baffcc4888dafe98f9d98efc877a6b62a2ab6aaa11592ac8460908a0ce9 SHA512 2d83049688b52987ffa26afb25a340dd1f68f22fe8fbf8e5ca10a798e34cde9c6e4508c44edf86cd46f7ab3d154b123cbbd6084f8b7087c5fbb4c6a14b9cc69d WHIRLPOOL e14a38e51a934db26f50edaf227c575021b204d203ad5ad5ce575948cf258fc9eabcb76381baba7fcbc4da5a1a67c81f7b1b341a15bacfab30d9a7ab77264ce2
+EBUILD mapnik-world-boundaries-20090514.ebuild 558 SHA256 29e7b72927d36b79dfb3e998e4f691ad9b1997a7f376148728b43f49eab189cc SHA512 62ffdb244ab28e167ee3c78f34a68f86a668a62d0a80a5df9f2496a2e8e7a53368e45db0abae290ee1a9bfbfd7b5a9a20e76471d49c2cf76daa8b683f1d751c2 WHIRLPOOL 537aa3b869cf7500c2f9d308bb76a9f2a9eadb49821a3086bae7d8187001ea36801b4485f36615c27caa4317a704f6e82728e547dcee927529a4cda93c186404
+MISC ChangeLog 2488 SHA256 cb342223cd5082f24a91c782a9927e5927b406712d544f1ecc40649eda368b71 SHA512 75eba60860d62c96ff8d1b098a5747a8d2884118cbdeb5343dd67745ad9128c30139111df95787dfd8d34f238d5ea1d4bd140c6252bec08cf9ef6e3845a1d4a6 WHIRLPOOL 9af2674815cd378fb91e22ca9a95180d200aa7f5b94adaf450c9e3fc5dd0e84dfdca1ba7b9f94393e7b68c75cea4e1903a377e255a7114652286809d78f94cbb
+MISC ChangeLog-2015 900 SHA256 0d12793d795b43adfc4907a272839cb220148a232e5f9a1e83de390f1aced352 SHA512 506a112fc43f91ac18a4f2e050066b2b01d92ab72d20714c5c6c98379a3cb0ac80afd17c619ac4e4e43163aa36c36fac9a83a5e1ee5bbaf42b2716f9e067ca57 WHIRLPOOL 96593aaf1cf5b0979f75ae5b8dc7b4e9e302904efeb0707aa09d539b6e7d0bc717a9a73847477e12e04e4d6228336abd2e8347cceee93af0c39b55d72dc6a47d
+MISC metadata.xml 378 SHA256 b0fc3462d1c2303499fa97c61c941ba618a4931260602d1c0f18c60006c20f49 SHA512 3f3a34889899b62f6e0eb1c13e5cfa37370698c7e574049b3b6a9067c38725c57b83289965b8fade18747e8ededca01ad6b2e67b65f9dc181dd3b35ab0873170 WHIRLPOOL a4023bd88e21837514794b22df97f40aee4e3258a550efd8daf09e50403bcf3505652f0d7edb698d4fcc834fbe9fe5e83451da185200238cd6e8c5ebff9efc12
diff --git a/sci-geosciences/mapnik-world-boundaries/mapnik-world-boundaries-20090514.ebuild b/sci-geosciences/mapnik-world-boundaries/mapnik-world-boundaries-20090514.ebuild
new file mode 100644
index 000000000000..7d68394d0459
--- /dev/null
+++ b/sci-geosciences/mapnik-world-boundaries/mapnik-world-boundaries-20090514.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Mapnik World Boundaries"
+HOMEPAGE="http://www.openstreetmap.org/"
+SRC_URI="mirror://gentoo/world_boundaries-spherical-20090331.tgz
+ mirror://gentoo/processed_p-20090514.zip"
+
+LICENSE="CC-BY-SA-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_prepare() {
+ default
+ mv coastlines/* world_boundaries/
+}
+
+src_install() {
+ insinto /usr/share/mapnik
+ doins -r world_boundaries
+}
diff --git a/sci-geosciences/mapnik-world-boundaries/metadata.xml b/sci-geosciences/mapnik-world-boundaries/metadata.xml
new file mode 100644
index 000000000000..22c8c1ac24a6
--- /dev/null
+++ b/sci-geosciences/mapnik-world-boundaries/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ World Boundaries data from openstreetmap needed by mapnik
+ </longdescription>
+</pkgmetadata>
diff --git a/sci-geosciences/mapnik/Manifest b/sci-geosciences/mapnik/Manifest
new file mode 100644
index 000000000000..9f9ae4037a00
--- /dev/null
+++ b/sci-geosciences/mapnik/Manifest
@@ -0,0 +1,8 @@
+AUX mapnik-2.2.0-configure-only-once.patch 737 SHA256 9fc7263d0c786c2934f389c6feaa69761cfcb3d0d4f607600aef0b654391a2c3 SHA512 30f044c8501536599d625646dc8930d3cdcd14fc1ef6c3ee64c8226fe03a6d0f3cbc5d175f6aff7bc7dc0575206dcd23288828cb6edad264aed3b2b4d9e7874b WHIRLPOOL 5a9a58d6cd8629308ebfccd9d59078605101498e16edb80fd69727fe162578a0d05bdfc79c3f25c69fef6512b740449f14e07da8fcb8e4ffb3b32c418fb4464d
+AUX mapnik-2.2.0-dont-run-ldconfig.patch 243 SHA256 2bc4356b28f99165d77644c6e911cf4d879dd60971c8c1e772ad6efd3d76432a SHA512 dd42f09654de246ff6be4cf68fc2b08bb5ec2ae6515e722e89337081ff4b89c8b269fa70d3393f3c6156a539d7a9b1d1f516e9d6ff7f35639669fcfcd20a26ff WHIRLPOOL f5def668aeafa1254fb9066cc1124820af3f91eae93513130d5ce2499b38f305ab55be46c119b77abc0127ebe7a76fa733ddbe607c48a63e760a719d96751846
+AUX mapnik-2.2.0-scons.patch 795 SHA256 2ba0ae66aa6556030a34ad53c3fe5395e7afb503a4d6b4bf2749422d20131f35 SHA512 288efab2528af07d0800278743e762e3ca5a040eae2694c09b1108826e5aa29b8a3c150b0be06ee7e5862f961a34ddcc20528c8b4c99bd962797f553017a319f WHIRLPOOL 2307ffdaed337869b6e78a76fd34b44509b3bd83cb3f092088541a1061e3e80c914c4665479eb01efeb9fdd8f16a7fca4749b6a90599253d1d565e8c0acdded5
+DIST mapnik-3.0.9.tar.gz 13434729 SHA256 f0242606096e2c4ca2cd0caac1ff0fd5f8054a38b5f288ba38b0e397b5b311b2 SHA512 ad45ecbb2661e860b7057e0a235542a390ae5790f401ef2c04f1517b6487e83cdb8e307072681847cb72a3abc242e0114bc15d48f504dec1f92df970dd1556e1 WHIRLPOOL 792c69891ab09f38c4061c0c1622ec1d62df86dbec88a6eb6de0a6f7c745bc8dff0bc47c01397d222b48063848fa6c8406166f2c4f1e0a85dbdc94492b151805
+EBUILD mapnik-3.0.9.ebuild 2387 SHA256 59702587ccc636dda0a4f316bae69228ece9f706bdeb8b6480053683f6c6d041 SHA512 64572189d753b330507950f59dc07b7a37234c7b2ed9b2c1043b7dea4af6feff34ed502b0015069dcf799316a5c33679f84778a5bd174217deca79d2c7ea5b5a WHIRLPOOL 7ede4a3f17e2152d0d3789fec2bbf12f5b353edce5333993ef1dff104752aec59dc63acd13d19daa55811e0d2d6702f366bd26f8a9a706fa1d261b816695602a
+MISC ChangeLog 4823 SHA256 e2fdeabf74fafe89b76b11e2d952a843c72d8aa74c2ab9687d39299a59a316d1 SHA512 9e779e9c327de0c6a490fd01a823a830599267ecbafe7bd298622cf65653db5086f58cd6e75d0a0104270448f6ff45e5006a64e9072616f32bfe30e9ba41398a WHIRLPOOL 68a38897c37498725631aca0699b6e9e50cc4a8a74a7aa025d30febe2063f5f8cf1b36656b1feda8f13e15c7cf0498328011826fa7028736ba835fc7dc473623
+MISC ChangeLog-2015 9879 SHA256 dafff4c38850c8b3fbb876b3bfbe879e83288c95428a947babd50b7aaf68963a SHA512 10cc6d765dab6f2f8c3c6e3e35075acf2079e09fd41389ada49502a2e9a81fb341149432570b776c04fdae8570e5529ecadcf073158a8ccd34250f8ff696c0b1 WHIRLPOOL 5e44755560add4fd9f0b7055ae81e0a41e831b435d0c4890db574bd0ab2803fc81e37c7153116d03c4b64a673a8cc630973b8985485c1141f2788ae4a5b777dc
+MISC metadata.xml 683 SHA256 08f3fda9b8273e64bdee6599cffb324e1240eafd314e5e6bd230f0237f71fe68 SHA512 a60caeed695db6aeeee83083f57269db6d6c7a7e649be8848ef560e9043ba8b710441f166498d6d0bfffd80ab10190865a3b5097fb766b0b92c5480f62aab962 WHIRLPOOL 66b4614529287f4f8d8c7e0858de9889d23ead4cd09d72f5ff0ef17a0637989ec6e7c0a7c7baedee0049a00431fa8b321daa295343f0edef740e8472bf3a269b
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch
new file mode 100644
index 000000000000..89541cb85ed7
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch
@@ -0,0 +1,20 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -503,16 +503,7 @@ for opt in pickle_store:
+ #print 'missing opt', opt
+ preconfigured = False
+
+-# if custom arguments are supplied make sure to accept them
+-if opts.args:
+- # since we have custom arguments update environment with all opts to
+- # make sure to absorb the custom ones
+- opts.Update(env)
+- # now since we've got custom arguments we'll disregard any
+- # pickled environment and force another configuration
+- preconfigured = False
+-
+-elif preconfigured:
++if preconfigured:
+ if not HELP_REQUESTED:
+ color_print(4,'Using previous successful configuration...')
+ color_print(4,'Re-configure by running "python scons/scons.py configure".')
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch
new file mode 100644
index 000000000000..c92c0e9a02a7
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch
@@ -0,0 +1,11 @@
+--- a/src/build.py
++++ b/src/build.py
+@@ -38,7 +38,7 @@ def call(cmd, silent=True):
+ print stderr
+
+ def ldconfig(*args,**kwargs):
+- call('ldconfig')
++ pass
+
+ if env['LINKING'] == 'static':
+ lib_env.Append(CXXFLAGS="-fPIC")
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch
new file mode 100644
index 000000000000..0ddcd0f9e0dd
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch
@@ -0,0 +1,11 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -291,7 +291,7 @@ opts.AddVariables(
+ ('LINK_PRIORITY','Priority list in which to sort library and include paths (default order is internal, other, frameworks, user, then system - see source of `sort_paths` function for more detail)',','.join(DEFAULT_LINK_PRIORITY)),
+
+ # Install Variables
+- ('PREFIX', 'The install path "prefix"', '/usr/local'),
++ ('PREFIX', 'The install path "prefix"', '/usr'),
+ ('LIBDIR_SCHEMA', 'The library sub-directory appended to the "prefix", sometimes lib64 on 64bit linux systems', LIBDIR_SCHEMA_DEFAULT),
+ ('PYTHON_PREFIX','Custom install path "prefix" for python bindings (default of no prefix)',''),
+ ('DESTDIR', 'The root directory to install into. Useful mainly for binary package building', '/'),
diff --git a/sci-geosciences/mapnik/mapnik-3.0.9.ebuild b/sci-geosciences/mapnik/mapnik-3.0.9.ebuild
new file mode 100644
index 000000000000..84314fd48d14
--- /dev/null
+++ b/sci-geosciences/mapnik/mapnik-3.0.9.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils scons-utils toolchain-funcs
+
+DESCRIPTION="A Free Toolkit for developing mapping applications"
+HOMEPAGE="http://www.mapnik.org/"
+SRC_URI="https://github.com/mapnik/mapnik/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="cairo debug doc gdal postgres sqlite"
+
+RDEPEND="
+ >=dev-libs/boost-1.48[threads]
+ dev-libs/icu:=
+ sys-libs/zlib
+ media-libs/freetype
+ media-libs/harfbuzz
+ dev-libs/libxml2
+ media-libs/libpng:0=
+ media-libs/tiff:0=
+ virtual/jpeg:0=
+ media-libs/libwebp
+ sci-libs/proj
+ media-fonts/dejavu
+ x11-libs/agg[truetype]
+ cairo? (
+ x11-libs/cairo
+ dev-cpp/cairomm
+ )
+ postgres? ( >=dev-db/postgresql-8.3:* )
+ gdal? ( sci-libs/gdal )
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.2.0-configure-only-once.patch"
+ "${FILESDIR}/${PN}-2.2.0-dont-run-ldconfig.patch"
+ "${FILESDIR}/${PN}-2.2.0-scons.patch"
+)
+
+src_prepare() {
+ default
+
+ # do not version epidoc data
+ sed -i \
+ -e 's:-`mapnik-config --version`::g' \
+ utils/epydoc_config/build_epydoc.sh || die
+
+ # force user flags, optimization level
+ sed -i -e "s:\-O%s:%s:" \
+ -i -e "s:env\['OPTIMIZATION'\]:'${CXXFLAGS}':" \
+ SConstruct || die
+}
+
+src_configure() {
+ local PLUGINS=shape,csv,raster,geojson
+ use gdal && PLUGINS+=,gdal,ogr
+ use postgres && PLUGINS+=,postgis
+ use sqlite && PLUGINS+=,sqlite
+
+ MYSCONS=(
+ "CC=$(tc-getCC)"
+ "CXX=$(tc-getCXX)"
+ "INPUT_PLUGINS=${PLUGINS}"
+ "PREFIX=/usr"
+ "DESTDIR=${D}"
+ "XMLPARSER=libxml2"
+ "LINKING=shared"
+ "RUNTIME_LINK=shared"
+ "PROJ_INCLUDES=/usr/include"
+ "PROJ_LIBS=/usr/$(get_libdir)"
+ "SYSTEM_FONTS=/usr/share/fonts"
+ CAIRO="$(usex cairo 1 0)"
+ DEBUG="$(usex debug 1 0)"
+ XML_DEBUG="$(usex debug 1 0)"
+ DEMO="$(usex doc 1 0)"
+ SAMPLE_INPUT_PLUGINS="$(usex doc 1 0)"
+ "CUSTOM_LDFLAGS=${LDFLAGS}"
+ "CUSTOM_LDFLAGS+=-L${ED}/usr/$(get_libdir)"
+ )
+ escons "${MYSCONS[@]}" configure
+}
+
+src_compile() {
+ escons "${MYSCONS[@]}"
+}
+
+src_install() {
+ escons "${MYSCONS[@]}" DESTDIR="${D}" install
+
+ dodoc AUTHORS.md README.md CHANGELOG.md
+}
+
+pkg_postinst() {
+ elog ""
+ elog "See the home page or wiki (https://github.com/mapnik/mapnik/wiki) for more info"
+ elog "or the installed examples for the default mapnik ogcserver config."
+ elog ""
+}
diff --git a/sci-geosciences/mapnik/metadata.xml b/sci-geosciences/mapnik/metadata.xml
new file mode 100644
index 000000000000..bbbaaa7e4d1d
--- /dev/null
+++ b/sci-geosciences/mapnik/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription>Mapnik is a toolkit for developing both web and desktop
+ mapping applications. The core libraries are written in C++, with
+ optional Python bindings.
+ </longdescription>
+ <use>
+ <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">downloads/mapnik</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/mapserver/Manifest b/sci-geosciences/mapserver/Manifest
new file mode 100644
index 000000000000..78366d253049
--- /dev/null
+++ b/sci-geosciences/mapserver/Manifest
@@ -0,0 +1,10 @@
+AUX mapserver-7.0.0-no-applicable-code.patch 812 SHA256 a1d13d3bf24e606d6cbabd0248b1dfd719b3bc0b4ce26dc2b7008eb4537938c7 SHA512 dab7c98095791b369c52d10e6737ac65f60ff7e02b8fcb5bceb2440025fa0552a936a16593aaa66b35434db0659184b667cc54962274510b062690029778a44c WHIRLPOOL 8ac16a2b40f303fcc230532fa05914b9a5b97a4f9e785b1d60b3a5dd5e9e6aaf62d6f4fb6f611000de872eed9c29ab20e790aad1a870b9cfab9085959aedd292
+AUX mapserver-7.0.0-sec-format.patch 470 SHA256 c463349a2afc5de9c8c12db8012ecec3e2db8692fdd65abfeb8e90f84066b0f8 SHA512 7cddc978bce3691bfa19ea7f7782ce1e0a59c12b2142ebdb2c2dcdcb1076a79992e1a477f7b99e638d457136d167066b867de85b07574c766babd16c1f238a8f WHIRLPOOL 8225578c0279a990dd9c2b2514b9f2dcc1c203cc5f8acc6fdd8bfe0b124ebe3533aa8968889802277b5a104ce85adf61ef5f9d9bafec24d91fcd351c578d50a8
+AUX mapserver-7.0.5-missing-macro.patch 439 SHA256 13384a0fcf35696f86375d8bc60c9cd53bb495650915a357e5ef6e0d2354660c SHA512 351f19b670b4352934150e8ab49af9bc5c47cad3b9bc5c5a25d92ddef19f66f91ab923590f764f5bb2cc9f12a313ab0f85d6c9eaa1c55f8b630362ce597552a2 WHIRLPOOL 697eb70867aa614d579d549dd49869729720f45c48fe7795b00f54ff95c89b2bae5fad5eb6a4860c180848adfa1a2fa0a83967f5cfdc3544a1eca8ee3f2b6b0e
+DIST mapserver-7.0.3.tar.gz 2621285 SHA256 dbec8f0ccdf506e7117cec5b704e8f9692451f72a07d9f4879d508ed96c55550 SHA512 7630461948e7b371c6d4d6d49cc596ad8fc6b076a8bbfdc88358fc076fa0d4ebaaab10663ec9c3c64e246b5735a07cef5cc28eba88b00dd09259048a49d2b81b WHIRLPOOL 4306a29758ae2b8f6acaf5f8c9157f0851a028f25fba4cd130022d37b5f31e35f486be49b4393351123f5e9923ab2c342430d33dc15e4b07c0904c3bcad7e259
+DIST mapserver-7.0.5.tar.gz 2631454 SHA256 47f0015dda18a414e2174757ebc19543241c3ed17daf516c84b0a976e7f722c2 SHA512 18485ace6e3b198e19acc3dda2ba44b136c55c4a783e472cb4c8f7a0615ed676b9bcdcaedc348227a7929d0ccf6199c90aead572bf8243e7902a5a2051a20753 WHIRLPOOL cf3819258cc90d77b740c8b76fe9b4358ecca6f55ff7b82c9837f0dcc9e839513311e51b7163d44852f7477db30d854006ca0fd9829647e888dc97ebac54a547
+EBUILD mapserver-7.0.3.ebuild 4606 SHA256 966111a560d609aad625f1e9f1317f741bcfc20f9541ef3e65976c5791294d8e SHA512 593f16f85412b967d8b8acf758d61535814e2fb4d4706a327c4a25947a4320f2e658a396a6786cc63babbfc47fd9a482e90d05f573ed58ab369f177241052a21 WHIRLPOOL b002b8b5237ad25c609ce5394b14f050cd5099d6f07720aa751b6d0dd315adba3402ee4b97c4fc1047db0a094b460f733e7a4344ab8ef6c8599a242d65ee8cfa
+EBUILD mapserver-7.0.5.ebuild 4645 SHA256 c5424f3544a46dca971efc657100662dfb8da3bc53a0b5bae8e6595beb6d1465 SHA512 fad6c4641f93f33d9abc03e70883c0ddb3b92a012f5bdc24939f95edb989559a1f0c49a6fdb7e3b118e79e8be7c0ada460db98b8fcb62cc3628a6a1fef2a7f38 WHIRLPOOL a99d21bc655cad481b5b8b2f68b3983b61c6fb1b2a311d4b240e717fee41b7de2ef19dc8bf327c5daa7e896d26db0ac2b450a49072ac39bb586a6180b2674c7d
+MISC ChangeLog 5164 SHA256 5e3ff59327ec0d655d6ba21782486e1d67c0c8f9a1c0114fb889d05da886f513 SHA512 491bf5bac804fbf153d8f06808adf8f75f65be1466055a468937c3f622e37ba0e890d1163ec9c7471efa1603a7e6385ecd1add0c1c4acc1be60dc56c3bdd6e74 WHIRLPOOL 8f0b198f2bc34a309c973a7e5fef7c5242927d5946dcc47333af0702fa5a54b6ed1fbc91f72b0e698431b9f6e010fddb74f6b1ebafac07e6a05220dc27fcd832
+MISC ChangeLog-2015 10196 SHA256 1be39f8f58da2d276e47e1e5f83f2d7c72a77256ff7416ae5d295bae08468a5e SHA512 852f3397d325410bc7cf714a7052ef84375f200b67579b96ca95f45745ea716282b26247345599f148900fdcbd5a7009c53055c97268e44d470be91748e26e30 WHIRLPOOL dee8f2dda356cf14157f6f9bd712a58eae742de5f5a7f80b31832caccdada450dc6eeeb51b1b537fa8b4813c7fee14c8346bb06e0d67a7e1a88a6072f8580872
+MISC metadata.xml 682 SHA256 d22cd0f690655d5b5cdc712238c7fcda15650765e9ea5f7f9ec0bc86b91b0bb2 SHA512 09ba242fe23bdf10d76b882ac32d9952e88e5bc630eb8569e74cfdacae587ec534e8014d6b015387fa2c63047e130dd1f918340cb382413bcbf14f321a296436 WHIRLPOOL 0f4779842154b1e63f17fa9ca5b1675ae792a0ec5cecb41577c6290ef622444123579cfcdc3775913fb383c2bea1a91de4847661f3490f89a3fd98c65411af5c
diff --git a/sci-geosciences/mapserver/files/mapserver-7.0.0-no-applicable-code.patch b/sci-geosciences/mapserver/files/mapserver-7.0.0-no-applicable-code.patch
new file mode 100644
index 000000000000..f438bec9f125
--- /dev/null
+++ b/sci-geosciences/mapserver/files/mapserver-7.0.0-no-applicable-code.patch
@@ -0,0 +1,34 @@
+diff --git a/mapwfs11.c b/mapwfs11.c
+index 20ab164..4dc15fc 100755
+--- a/mapwfs11.c
++++ b/mapwfs11.c
+@@ -29,12 +29,12 @@
+
+ #include "mapserver.h"
+ #include "mapows.h"
++#include "mapowscommon.h"
+
+
+
+ #if defined(USE_WFS_SVR) && defined(USE_LIBXML2)
+ #include "maplibxml2.h"
+-#include "mapowscommon.h"
+ #include "mapogcfilter.h"
+
+ /************************************************************************/
+diff --git a/mapwfs20.c b/mapwfs20.c
+index 710d444..cf69ee3 100755
+--- a/mapwfs20.c
++++ b/mapwfs20.c
+@@ -29,10 +29,10 @@
+
+ #include "mapserver.h"
+ #include "mapows.h"
++#include "mapowscommon.h"
+
+ #if defined(USE_WFS_SVR) && defined(USE_LIBXML2)
+ #include "maplibxml2.h"
+-#include "mapowscommon.h"
+ #include "mapogcfilter.h"
+
+ #define MS_OWS_11_NAMESPACE_PREFIX MS_OWSCOMMON_OWS_NAMESPACE_PREFIX
diff --git a/sci-geosciences/mapserver/files/mapserver-7.0.0-sec-format.patch b/sci-geosciences/mapserver/files/mapserver-7.0.0-sec-format.patch
new file mode 100644
index 000000000000..17016c66e67c
--- /dev/null
+++ b/sci-geosciences/mapserver/files/mapserver-7.0.0-sec-format.patch
@@ -0,0 +1,13 @@
+diff --git a/apache/mod_mapserver.c b/apache/mod_mapserver.c
+index 7949ddf..c8dbde6 100644
+--- a/apache/mod_mapserver.c
++++ b/apache/mod_mapserver.c
+@@ -40,7 +40,7 @@ static int
+ msIO_apacheError (void *cbData, void *data, int byteCount)
+ {
+ /* error reporting is done through the log file... */
+- ap_log_error (APLOG_MARK, APLOG_ERR, 0, NULL, (char*) data);
++ ap_log_error (APLOG_MARK, APLOG_ERR, 0, NULL, "%s", (char*) data);
+ return strlen ((char*) data);
+ }
+
diff --git a/sci-geosciences/mapserver/files/mapserver-7.0.5-missing-macro.patch b/sci-geosciences/mapserver/files/mapserver-7.0.5-missing-macro.patch
new file mode 100644
index 000000000000..ee8da6ca1fe0
--- /dev/null
+++ b/sci-geosciences/mapserver/files/mapserver-7.0.5-missing-macro.patch
@@ -0,0 +1,21 @@
+commit 7e4be3d354053bca65838c2c481a61d4d5c24a3b
+Author: Ettore Di Giacinto <mudler@gentoo.org>
+Date: Tue May 23 20:12:20 2017 +0200
+
+ Fix mapserver to build when TRUE macro is not defined
+
+diff --git a/mapserver.h b/mapserver.h
+index 32182fa0..19b1075c 100644
+--- a/mapserver.h
++++ b/mapserver.h
+@@ -78,6 +78,10 @@
+ #include <stdint.h>
+ #endif
+
++#ifndef TRUE
++#define TRUE 1
++#endif
++
+ #ifdef _WIN32
+ #ifndef SIZE_MAX
+ #ifdef _WIN64
diff --git a/sci-geosciences/mapserver/mapserver-7.0.3.ebuild b/sci-geosciences/mapserver/mapserver-7.0.3.ebuild
new file mode 100644
index 000000000000..44a5419ef6a1
--- /dev/null
+++ b/sci-geosciences/mapserver/mapserver-7.0.3.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${PN}-${PV/_/-}"
+
+PHP_EXT_OPTIONAL_USE="php"
+PHP_EXT_NAME="php_mapscript"
+PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/"
+PHP_EXT_SKIP_PHPIZE="no"
+USE_PHP="php5-6"
+
+PYTHON_COMPAT=( python2_7 )
+
+#USE_RUBY="ruby18 ruby19"
+#RUBY_OPTIONAL="yes"
+
+WEBAPP_MANUAL_SLOT=yes
+
+inherit eutils depend.apache webapp distutils-r1 flag-o-matic perl-module php-ext-source-r2 multilib cmake-utils # ruby-ng
+
+DESCRIPTION="Development environment for building spatially enabled webapps"
+HOMEPAGE="http://mapserver.org/"
+SRC_URI="http://download.osgeo.org/mapserver/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="bidi cairo gdal geos mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl
+
+REQUIRED_USE="php? ( php_targets_php5-6 )
+ xslt? ( xml )"
+
+RDEPEND="
+ dev-libs/expat
+ dev-libs/fcgi
+ >=media-libs/gd-2.0.12[truetype,jpeg,png,zlib]
+ media-libs/giflib
+ net-misc/curl
+ virtual/jpeg:=
+ virtual/libiconv
+ x11-libs/agg
+ bidi? ( dev-libs/fribidi
+ media-libs/harfbuzz )
+ cairo? ( x11-libs/cairo )
+ gdal? ( >=sci-libs/gdal-1.8.0 )
+ geos? ( sci-libs/geos )
+ mysql? ( virtual/mysql )
+ opengl? (
+ media-libs/ftgl
+ media-libs/mesa
+ )
+ perl? ( dev-lang/perl:= )
+ postgis? ( dev-db/postgis )
+ proj? ( sci-libs/proj net-misc/curl )
+ tiff? (
+ media-libs/tiff:=
+ sci-libs/libgeotiff
+ )
+ xml? ( dev-libs/libxml2:2 )
+ xslt? ( dev-libs/libxslt[crypt] )
+"
+DEPEND="${RDEPEND}
+ perl? ( >=dev-lang/swig-2.0 )
+ python? ( >=dev-lang/swig-2.0 )"
+
+need_apache2
+
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.0-sec-format.patch" # see https://github.com/mapserver/mapserver/pull/5248
+ "${FILESDIR}/${PN}-7.0.0-no-applicable-code.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ webapp_pkg_setup
+ use perl && perl_set_version
+ #use ruby && ruby-ng_pkg_setup
+}
+
+src_unpack() {
+ # unpack A and then copy the php thingies into workdir/php-slot
+ php-ext-source-r2_src_unpack
+ # HACK: and then remove it and replace by symlink
+ local slot
+ for slot in $(php_get_slots); do
+ rm -rf "${WORKDIR}/${slot}" || die
+ ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die
+ done
+}
+
+src_prepare() {
+ local glibdir="${EPREFIX}/usr/include/glib-2.0"
+ local usrglibdir="${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+
+ sed -e "s:^include_directories(:&${glibdir})\ninclude_directories(:" \
+ -i "${S}/CMakeLists.txt" || die
+ sed -e "s:include_directories(:&${usrglibdir})\ninclude_directories(:" \
+ -i "${S}/CMakeLists.txt" || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DCMAKE_SKIP_RPATH=ON"
+ "-DWITH_ORACLESPATIAL=OFF"
+ "-DWITH_SDE=OFF"
+ "-DWITH_APACHE_MODULE=ON"
+ "-DWITH_ICONV=ON"
+ "-DWITH_GD=ON"
+ "-DWITH_GIF=ON"
+ "-DWITH_CURL=ON"
+ "-DWITH_FCGI=ON"
+ "-DINSTALL_LIB_DIR=${ROOT}usr/$(get_libdir)"
+ "-DWITH_PROJ=$(usex proj ON OFF)"
+ "-DWITH_WMS=$(usex proj ON OFF)"
+ "-DWITH_KML=$(usex xml ON OFF)"
+ "-DWITH_GEOS=$(usex geos ON OFF)"
+ "-DWITH_GDAL=$(usex gdal ON OFF)"
+ "-DWITH_OGR=$(usex gdal ON OFF)"
+ "-DWITH_POSTGIS=$(usex postgis ON OFF)"
+ "-DWITH_MYSQL=$(usex mysql ON OFF)"
+ "-DWITH_LIBXML2=$(usex xml ON OFF)"
+ "-DWITH_XMLMAPFILE=$(usex xslt ON OFF)"
+ "-DWITH_FRIBIDI=$(usex bidi ON OFF)"
+ "-DWITH_HARFBUZZ=$(usex bidi ON OFF)"
+ "-DWITH_CAIRO=$(usex cairo ON OFF)"
+ "-DWITH_PHP=$(usex php ON OFF)"
+ "-DWITH_PYTHON=$(usex python ON OFF)"
+ "-DWITH_PERL=$(usex perl ON OFF)"
+ )
+
+ if use gdal && use proj ; then
+ mycmakeargs+=( "-DWITH_WFS=ON"
+ "-DWITH_WCS=ON"
+ "-DWITH_CLIENT_WMS=ON"
+ "-DWITH_CLIENT_WFS=ON"
+ "-DWITH_SOS=$(usex xml ON OFF)"
+ )
+ else
+ mycmakeargs+=( "-DWITH_WFS=OFF"
+ "-DWITH_WCS=OFF"
+ "-DWITH_CLIENT_WMS=OFF"
+ "-DWITH_CLIENT_WFS=OFF"
+ "-DWITH_SOS=OFF"
+ )
+ fi
+
+ if use php ; then
+ local slot
+ for slot in $(php_get_slots); do
+ local php_config="${EPREFIX}/usr/$(get_libdir)/${slot}/bin/php-config"
+ [[ -x ${php_config} ]] \
+ || die "php-config '${php_config}' not valid or not executable"
+
+ local php_include_dir=$(${php_config} --include-dir)
+ [[ -d ${php_include_dir} ]] || die "PHP Include dir not found or not valid"
+
+ mycmakeargs+=(
+ -DPHP5_CONFIG_EXECUTABLE="${php_config}"
+ -DPHP5_INCLUDES="${php_include_dir}"
+ )
+ done
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use php ; then
+ php-ext-source-r2_createinifiles
+ fi
+ webapp_src_preinst
+ exeinto "${MY_CGIBINDIR}"
+ doexe "${S}_build/mapserv"
+ webapp_src_install
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ webapp_pkg_prerm
+}
diff --git a/sci-geosciences/mapserver/mapserver-7.0.5.ebuild b/sci-geosciences/mapserver/mapserver-7.0.5.ebuild
new file mode 100644
index 000000000000..69fae655f2c7
--- /dev/null
+++ b/sci-geosciences/mapserver/mapserver-7.0.5.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${PN}-${PV/_/-}"
+
+PHP_EXT_OPTIONAL_USE="php"
+PHP_EXT_NAME="php_mapscript"
+PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/"
+PHP_EXT_SKIP_PHPIZE="no"
+USE_PHP="php5-6"
+
+PYTHON_COMPAT=( python2_7 )
+
+#USE_RUBY="ruby18 ruby19"
+#RUBY_OPTIONAL="yes"
+
+WEBAPP_MANUAL_SLOT=yes
+
+inherit eutils depend.apache webapp distutils-r1 flag-o-matic perl-module php-ext-source-r3 multilib cmake-utils # ruby-ng
+
+DESCRIPTION="Development environment for building spatially enabled webapps"
+HOMEPAGE="http://mapserver.org/"
+SRC_URI="http://download.osgeo.org/mapserver/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="bidi cairo gdal geos mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl
+
+REQUIRED_USE="
+ php? ( php_targets_php5-6 )
+ xslt? ( xml )"
+
+RDEPEND="
+ dev-libs/expat
+ dev-libs/fcgi
+ >=media-libs/gd-2.0.12[truetype,jpeg,png,zlib]
+ media-libs/giflib
+ net-misc/curl
+ virtual/jpeg:=
+ virtual/libiconv
+ x11-libs/agg
+ bidi? ( dev-libs/fribidi
+ media-libs/harfbuzz )
+ cairo? ( x11-libs/cairo )
+ gdal? ( >=sci-libs/gdal-1.8.0 )
+ geos? ( sci-libs/geos )
+ mysql? ( virtual/mysql )
+ opengl? (
+ media-libs/ftgl
+ media-libs/mesa
+ )
+ perl? ( dev-lang/perl:= )
+ postgis? ( dev-db/postgis )
+ proj? ( sci-libs/proj net-misc/curl )
+ tiff? (
+ media-libs/tiff:=
+ sci-libs/libgeotiff
+ )
+ xml? ( dev-libs/libxml2:2 )
+ xslt? ( dev-libs/libxslt[crypt] )
+"
+DEPEND="${RDEPEND}
+ perl? ( >=dev-lang/swig-2.0 )
+ python? ( >=dev-lang/swig-2.0 )"
+
+need_apache2
+
+PATCHES=(
+ "${FILESDIR}/${PN}-7.0.0-sec-format.patch" # see https://github.com/mapserver/mapserver/pull/5248
+ "${FILESDIR}/${PN}-7.0.0-no-applicable-code.patch"
+ "${FILESDIR}/${P}-missing-macro.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ webapp_pkg_setup
+ use perl && perl_set_version
+ #use ruby && ruby-ng_pkg_setup
+}
+
+src_unpack() {
+ # unpack A and then copy the php thingies into workdir/php-slot
+ php-ext-source-r3_src_unpack
+ # HACK: and then remove it and replace by symlink
+ local slot
+ for slot in $(php_get_slots); do
+ rm -rf "${WORKDIR}/${slot}" || die
+ ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die
+ done
+}
+
+src_prepare() {
+ local glibdir="${EPREFIX}/usr/include/glib-2.0"
+ local usrglibdir="${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+
+ sed -e "s:^include_directories(:&${glibdir})\ninclude_directories(:" \
+ -i "${S}/CMakeLists.txt" || die
+ sed -e "s:include_directories(:&${usrglibdir})\ninclude_directories(:" \
+ -i "${S}/CMakeLists.txt" || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DCMAKE_SKIP_RPATH=ON"
+ "-DWITH_ORACLESPATIAL=OFF"
+ "-DWITH_SDE=OFF"
+ "-DWITH_APACHE_MODULE=ON"
+ "-DWITH_ICONV=ON"
+ "-DWITH_GD=ON"
+ "-DWITH_GIF=ON"
+ "-DWITH_CURL=ON"
+ "-DWITH_FCGI=ON"
+ "-DINSTALL_LIB_DIR=${ROOT}usr/$(get_libdir)"
+ "-DWITH_PROJ=$(usex proj ON OFF)"
+ "-DWITH_WMS=$(usex proj ON OFF)"
+ "-DWITH_KML=$(usex xml ON OFF)"
+ "-DWITH_GEOS=$(usex geos ON OFF)"
+ "-DWITH_GDAL=$(usex gdal ON OFF)"
+ "-DWITH_OGR=$(usex gdal ON OFF)"
+ "-DWITH_POSTGIS=$(usex postgis ON OFF)"
+ "-DWITH_MYSQL=$(usex mysql ON OFF)"
+ "-DWITH_LIBXML2=$(usex xml ON OFF)"
+ "-DWITH_XMLMAPFILE=$(usex xslt ON OFF)"
+ "-DWITH_FRIBIDI=$(usex bidi ON OFF)"
+ "-DWITH_HARFBUZZ=$(usex bidi ON OFF)"
+ "-DWITH_CAIRO=$(usex cairo ON OFF)"
+ "-DWITH_PHP=$(usex php ON OFF)"
+ "-DWITH_PYTHON=$(usex python ON OFF)"
+ "-DWITH_PERL=$(usex perl ON OFF)"
+ )
+
+ if use gdal && use proj ; then
+ mycmakeargs+=( "-DWITH_WFS=ON"
+ "-DWITH_WCS=ON"
+ "-DWITH_CLIENT_WMS=ON"
+ "-DWITH_CLIENT_WFS=ON"
+ "-DWITH_SOS=$(usex xml ON OFF)"
+ )
+ else
+ mycmakeargs+=( "-DWITH_WFS=OFF"
+ "-DWITH_WCS=OFF"
+ "-DWITH_CLIENT_WMS=OFF"
+ "-DWITH_CLIENT_WFS=OFF"
+ "-DWITH_SOS=OFF"
+ )
+ fi
+
+ if use php ; then
+ local slot
+ for slot in $(php_get_slots); do
+ local php_config="${EPREFIX}/usr/$(get_libdir)/${slot}/bin/php-config"
+ [[ -x ${php_config} ]] \
+ || die "php-config '${php_config}' not valid or not executable"
+
+ local php_include_dir=$(${php_config} --include-dir)
+ [[ -d ${php_include_dir} ]] || die "PHP Include dir not found or not valid"
+
+ mycmakeargs+=(
+ -DPHP5_CONFIG_EXECUTABLE="${php_config}"
+ -DPHP5_INCLUDES="${php_include_dir}"
+ )
+ done
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use php ; then
+ php-ext-source-r3_createinifiles
+ fi
+ webapp_src_preinst
+ exeinto "${MY_CGIBINDIR}"
+ doexe "${S}_build/mapserv"
+ webapp_src_install
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ webapp_pkg_prerm
+}
diff --git a/sci-geosciences/mapserver/metadata.xml b/sci-geosciences/mapserver/metadata.xml
new file mode 100644
index 000000000000..c7d7490388ea
--- /dev/null
+++ b/sci-geosciences/mapserver/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <use>
+ <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag>
+ <flag name="geos">Enable <pkg>sci-libs/geos</pkg> library support</flag>
+ <flag name="postgis">Enable <pkg>dev-db/postgis</pkg> support</flag>
+ <flag name="proj">Enable <pkg>sci-libs/proj</pkg> library support (geographic projections)</flag>
+ <flag name="xslt">Enable xslt and exslt support xml-mapfile support</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/mc2bsbh/Manifest b/sci-geosciences/mc2bsbh/Manifest
new file mode 100644
index 000000000000..a0f0fdc8724c
--- /dev/null
+++ b/sci-geosciences/mc2bsbh/Manifest
@@ -0,0 +1,5 @@
+DIST mc2bsbh-beta09.zip 116369 SHA256 a467efbdb7b992eff5f9654e0cbe6d99d5e0ef7b6210e10f13d22f49e4d37cd5 SHA512 b3d69535f1e140308a213c66d5146095215ebf4ba0be833340ff675da621deb0c7b9f395f02d3e40be630b6549b5bc1c5d2ae8012c4123f89b1b4132fc0b6fa4 WHIRLPOOL 6fee68e1af2b035fed7e7825702ca54a65b84098d74272a674df060d6c80fc27f355a40a4f0a4ab2d0e9cb1290be843fa5507f7f66ec2eda02c1791f40eb7e06
+EBUILD mc2bsbh-0.0.9.ebuild 543 SHA256 7745bdebf65ca0d5062e9a7e591ff2a35766bc393cfcc26ddbb4727c09a1f3e2 SHA512 b682c77c74d45c5606a4c2c94f16f757555d6dffafb8153f302caf5ce850f8d0f6a06bea0ae5416a3fad19e94db807d021f5d8190dc0fc20987fa5de22e2719c WHIRLPOOL e9b6ebfbd73fe327a0c8df0050dcc88dc32f6e19c398b43e33bcb188667ef0e3ea79a429fdd7ef8164d3fb963357c68ed99e92d1f035ac11f493cce05fdd74a9
+MISC ChangeLog 2183 SHA256 8011b139184b0b7c39fda9036b22037e692155077eb21d5d9b97a98a48ed5938 SHA512 7b685f98b769785b7c1b4d7efc6612e3f4cb17c30e561e4f8976115aa68b217d2024561a20bc64c2cfd95081981fd2e3b1ea67544bd88eccf726ec99a7b4206f WHIRLPOOL 8b987fddbfb0ebb5e69f292fc320e9129110a4b2871f6782296a453fd3e36d2b892a3b456e1c1ebacf272f73f5c733f89065784c82d1a07b557b08880ecbb730
+MISC ChangeLog-2015 387 SHA256 f058bac5678c4edf93e839767f0b41468c07c733d88e138c897beea2f5503f91 SHA512 38f697b3174f6f90cb64da687507b2b4469d2c102fe37ba5337df9ffc3e6e1acf700faea46ccddee590cb5b0b3dcaeaee7cef3482bd2e697dde1db469eb6da08 WHIRLPOOL a7fdfe55d41795b885a96150b7584b258c4678c09c312351f5ed76552962afb6793d5dc2e79e3259ebec9219ed6acf41243bcc98233c88096336ca7c228195dc
+MISC metadata.xml 218 SHA256 5a6d2571ad58999a8651603cbfd52e8e2676131114edf04f417329759851c41d SHA512 c1894fa0ad03968827a0eb6410381bdaa9491a4b450f9a50959a93700f803ddc83f020040f4db06ed3ba68c12adb4a73b192525ef7e70c0bd10125e3da578c65 WHIRLPOOL 218ecdf4a7fff5dbe3672e8651cce6b247ae0af2d257876b386e3596d9c19e4bd461efc7a965d8d88ad15a0c563dffad181e5bfd5fe601ccc7e9ad0435a45b00
diff --git a/sci-geosciences/mc2bsbh/mc2bsbh-0.0.9.ebuild b/sci-geosciences/mc2bsbh/mc2bsbh-0.0.9.ebuild
new file mode 100644
index 000000000000..f828f7523918
--- /dev/null
+++ b/sci-geosciences/mc2bsbh/mc2bsbh-0.0.9.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="MapCal to BSBchart Header Utility"
+HOMEPAGE="http://www.dacust.com/inlandwaters/mapcal/"
+SRC_URI="http://www.dacust.com/inlandwaters/mapcal/${PN}/${PN}-beta09.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_compile() {
+ $(tc-getCXX) ${LDFLAGS} ${CXXFLAGS} -o ${PN} ${PN}.cpp || die
+}
+
+src_install() {
+ dobin "${PN}"
+}
diff --git a/sci-geosciences/mc2bsbh/metadata.xml b/sci-geosciences/mc2bsbh/metadata.xml
new file mode 100644
index 000000000000..56df135ff5a0
--- /dev/null
+++ b/sci-geosciences/mc2bsbh/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/merkaartor/Manifest b/sci-geosciences/merkaartor/Manifest
new file mode 100644
index 000000000000..b50472db8041
--- /dev/null
+++ b/sci-geosciences/merkaartor/Manifest
@@ -0,0 +1,6 @@
+DIST merkaartor-0.18.3.tar.gz 7104234 SHA256 d6b3e4d982b2c7b82331bc5bc8d993d733c443250f02919c3c4dbd6924e6e947 SHA512 b34087e0317c196b59dd1de57778b9293d23e4530bd5734661dc2ce53eef85317f512ee446056e045aa8a06146bd029d6274fa5a6f68128db27795d44f0ef915 WHIRLPOOL 6013770bfbde1360afc8106bc3ba250228e5c864483efa402033055ab0376c41b661ac188783b79a639ecb1404e38d28dc554bbbb923dc5fd17c24cefd3e192d
+EBUILD merkaartor-0.18.3-r1.ebuild 2104 SHA256 4bedcbcd924a52078439b1c7aa31dac70c607ef11552d74d361e27b971a811d9 SHA512 99dd80de8ac875ada0ebf3b03518dcccbb69c9b38d50eaa4e04ce7dc850e79c8cdf6515acb3bff3cb8fdfed881404540508b9a3a49f80407c268098da9ff2941 WHIRLPOOL 3b8197d232dc87bb5f8b82358e145108a6e1c65c6c5bd3ce02bdf218f2dad65284003528cc39f1016e77d78838a750e6e1b244c4bdcebbf014c91d314662b7b5
+EBUILD merkaartor-9999.ebuild 2168 SHA256 6ffd5ff22fab44b95949fafbc83ecbe323efb0e982e97d95a44679ccee3c43ab SHA512 57537925a225112ca619856d217cc44365949872d12778151ed143dbb4f9629993ded302b093f0ec551fbf3ad607c7610ce8edd3d1a741acb5d3af82450e7412 WHIRLPOOL 2f42c5909095971343a7ba098b733d5c2c1a89827a797e4db24dc7cd1d57977bf6a3251ab2868a60ce6de10a01d73bdcde198cea307ad934200e118c8feb8f0e
+MISC ChangeLog 5622 SHA256 d959f2bdc26f8fdb3c78bd6d76386c8e6330192de295fe326555db706521942c SHA512 f295393ce84a8a136d4b9519db5aa513728cdc588a07818f83bae8ae8087a20ce59952c369bc6c02c611868837f42d3cbfd51bb23def727529fcacd6365cd422 WHIRLPOOL 3f11d21378922fed9cd5bc91e74733e5cc1e5a0b7dee29846fc3af3e98823263731eb90f0b1ff6e91370afb0cc192d37c9a8e0c45e3aba322f7f57c0b04e94a4
+MISC ChangeLog-2015 5380 SHA256 57f5acfc1c115503650e939af5cabe5521d405a954f5997fd492057c55519ce3 SHA512 c77db51b5990fd5dc4352f22a9ea08182ce1c73e9f383fad9afb0acda474641fbe08d210d96cbdfded651899bc5473149e5eabdd77e84d4992926a6abaf86419 WHIRLPOOL 828eb40740b62f9448b3278e9a8922d07570412e27c96defdfc46ae5a9d2c240cb8370e41535fdb9196c0dfbda054069ffe35beecff8bad6eb6a387cd67cad15
+MISC metadata.xml 575 SHA256 336300dc6526b4486512e7203b1f6d5833117bd4cb5638df963d016ccea2848d SHA512 d9e5293c9bf7a3bfc7fd691d5a61c7de6c284941da73883590e4956bb4a7b26215e003a9096b9fdaa1f7590765aad583bec04ad6ec8778bc4a26a422a3e2da38 WHIRLPOOL d4edf1621840a0f0c6fd71310728c99bc978ad096e598a801eba084f54e2a1511ead8921c11774d0a72dd3344546e59a7fa9605ef2f7d0bb00c05c94766df287
diff --git a/sci-geosciences/merkaartor/merkaartor-0.18.3-r1.ebuild b/sci-geosciences/merkaartor/merkaartor-0.18.3-r1.ebuild
new file mode 100644
index 000000000000..30b1ceb20cdd
--- /dev/null
+++ b/sci-geosciences/merkaartor/merkaartor-0.18.3-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PLOCALES="ar cs de en es et fr hr hu id_ID it ja nl pl pt_BR pt ru sk sv uk vi zh_CN zh_TW"
+
+inherit fdo-mime gnome2-utils l10n qmake-utils
+
+DESCRIPTION="Qt based map editor for the openstreetmap.org project"
+HOMEPAGE="http://www.merkaartor.be https://github.com/openstreetmap/merkaartor"
+SRC_URI="https://github.com/openstreetmap/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug exif gps libproxy"
+
+RDEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ dev-qt/qtsingleapplication[X,qt5]
+ >=sci-libs/gdal-1.6.0
+ >=sci-libs/proj-4.6
+ sys-libs/zlib
+ exif? ( media-gfx/exiv2:= )
+ gps? ( >=sci-geosciences/gpsd-3.13[cxx] )
+ libproxy? ( net-libs/libproxy )
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+
+DOCS=( AUTHORS CHANGELOG )
+
+src_prepare() {
+ default
+
+ my_rm_loc() {
+ sed -i -e "s:../translations/${PN}_${1}.\(ts\|qm\)::" src/src.pro || die
+ rm "translations/${PN}_${1}.ts" || die
+ }
+
+ if [[ -n "$(l10n_get_locales)" ]]; then
+ l10n_for_each_disabled_locale_do my_rm_loc
+ $(qt5_get_bindir)/lrelease src/src.pro || die
+ fi
+
+ # build system expects to be building from git
+ sed -i "${S}"/src/Config.pri -e "s:SION = .*:SION = \"${PV}\":g" || die
+}
+
+src_configure() {
+ # TRANSDIR_SYSTEM is for bug #385671
+ eqmake5 \
+ PREFIX="${ED}usr" \
+ LIBDIR="${ED}usr/$(get_libdir)" \
+ TRANSDIR_MERKAARTOR="${ED}usr/share/${PN}/translations" \
+ TRANSDIR_SYSTEM="${EPREFIX}/usr/share/qt5/translations" \
+ SYSTEM_QTSA=1 \
+ RELEASE=1 \
+ NODEBUG="$(usex debug '0' '1')" \
+ GEOIMAGE="$(usex exif '1' '0')" \
+ GPSDLIB="$(usex gps '1' '0')" \
+ LIBPROXY="$(usex libproxy '1' '0')" \
+ ZBAR=0 \
+ Merkaartor.pro
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/sci-geosciences/merkaartor/merkaartor-9999.ebuild b/sci-geosciences/merkaartor/merkaartor-9999.ebuild
new file mode 100644
index 000000000000..5e16f21d97d6
--- /dev/null
+++ b/sci-geosciences/merkaartor/merkaartor-9999.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PLOCALES="ar cs de en es et fr hr hu id_ID it ja nl pl pt_BR pt ru sk sv uk vi zh_CN zh_TW"
+
+inherit fdo-mime gnome2-utils git-r3 l10n qmake-utils
+
+DESCRIPTION="Qt based map editor for the openstreetmap.org project"
+HOMEPAGE="http://www.merkaartor.be https://github.com/openstreetmap/merkaartor"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/openstreetmap/merkaartor.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug exif gps libproxy webengine"
+
+RDEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsingleapplication[X,qt5]
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ sci-libs/gdal
+ sci-libs/proj
+ sys-libs/zlib
+ exif? ( media-gfx/exiv2:= )
+ gps? ( >=sci-geosciences/gpsd-3.13[cxx] )
+ libproxy? ( net-libs/libproxy )
+ webengine? ( dev-qt/qtwebengine:5 )
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+
+DOCS=( AUTHORS CHANGELOG )
+
+src_unpack() {
+ git-r3_src_unpack
+}
+
+src_prepare() {
+ default
+
+ my_rm_loc() {
+ sed -i -e "s:../translations/${PN}_${1}.\(ts\|qm\)::" src/src.pro || die
+ rm "translations/${PN}_${1}.ts" || die
+ }
+
+ if [[ -n "$(l10n_get_locales)" ]]; then
+ l10n_for_each_disabled_locale_do my_rm_loc
+ $(qt5_get_bindir)/lrelease src/src.pro || die
+ fi
+
+ # build system expects to be building from git
+ if [[ ${PV} != *9999 ]] ; then
+ sed -i "${S}"/src/Config.pri -e "s:SION = .*:SION = \"${PV}\":g" || die
+ fi
+}
+
+src_configure() {
+ # TRANSDIR_SYSTEM is for bug #385671
+ eqmake5 \
+ PREFIX="${ED}usr" \
+ LIBDIR="${ED}usr/$(get_libdir)" \
+ TRANSDIR_MERKAARTOR="${ED}usr/share/${PN}/translations" \
+ TRANSDIR_SYSTEM="${EPREFIX}/usr/share/qt5/translations" \
+ SYSTEM_QTSA=1 \
+ NODEBUG=$(usex debug 0 1) \
+ GEOIMAGE=$(usex exif 1 0) \
+ GPSDLIB=$(usex gps 1 0) \
+ LIBPROXY=$(usex libproxy 1 0) \
+ USEWEBENGINE=$(usex webengine 1 0) \
+ Merkaartor.pro
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/sci-geosciences/merkaartor/metadata.xml b/sci-geosciences/merkaartor/metadata.xml
new file mode 100644
index 000000000000..47721d5d2ebd
--- /dev/null
+++ b/sci-geosciences/merkaartor/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <use>
+ <flag name="libproxy">Use <pkg>net-libs/libproxy</pkg> for getting the HTTP/HTTPS/SOCKS proxy configuration</flag>
+ <flag name="webengine">Enable <pkg>dev-qt/qtwebengine</pkg> in some plugins</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">openstreetmap/merkaartor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/metadata.xml b/sci-geosciences/metadata.xml
new file mode 100644
index 000000000000..ca00dbc0225d
--- /dev/null
+++ b/sci-geosciences/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The sci-geosciences category contains geosciences-related software.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie sci-geosciences enthält Software aus dem Bereich der
+ Geowissenschaften.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría sci-geosciences contiene programas relacionados con la
+ geología.
+ </longdescription>
+ <longdescription lang="ja">
+ sci-geosciencesカテゴリーには地球科学関連のソフトウェアが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De sci-geosciences categorie bevat programma's voor gebruik in de geologie
+ en andere aardwetenschappen.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm sci-geosciences chứa các phần mềm liên quan đến địa-khoa học.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria sci-geosciences contiene programmi di geologia.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria sci-geosciences contém programas relacionados com
+ geologia.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria sci-geosciences zawiera programy naukowe związane z geologią.
+ </longdescription>
+</catmetadata>
+
diff --git a/sci-geosciences/mtkbabel/Manifest b/sci-geosciences/mtkbabel/Manifest
new file mode 100644
index 000000000000..e0487d554d9a
--- /dev/null
+++ b/sci-geosciences/mtkbabel/Manifest
@@ -0,0 +1,7 @@
+DIST mtkbabel-0.8.2.tar.gz 27896 SHA256 3c7b7959b7d0394a99fc95fd524b9a698c19bfe0b59188bd3cf7bb15f81ed6df SHA512 b3b6c0c9698c165de9d60bb4d574a174b4ee805dc1cb889770dd7c0001378d94a5722e3bf2132d8f6dd888255247fe5e5635a4ef66a6000c68d58403f9756bdd WHIRLPOOL 63dc0a03e63df9fd6b241f5d99d69f54dfafbe89d76f0e0cd6be140f447eb0adfea05927c0fe434ba16a5e808239bf76b4b4912fb8164a7d7d7affce442cc3c6
+DIST mtkbabel-0.8.3.1.tar.gz 28472 SHA256 c054f32ac6b2adf0815b485695b50e23f24bb147d0357c5df10c76098f9eddad SHA512 795d058bf622b5381600fc82a67aa32258db0ce2d1c22f148b6a1b34a6afe585f31fd0a5fccd2743602b55f53fa3b6b0f8c7269ebee1555a58374e33a80d22d7 WHIRLPOOL 131aefea7a7fb1bbcd477108fa13a2d425f9f658000d9961e6c4431198c00afbb8654c55812914af1feffae727b044000cd65c79e75a0618237252f514ea45f4
+EBUILD mtkbabel-0.8.2-r1.ebuild 526 SHA256 108ef043d467e086633c9ddc2f1123a2b3600be1bf6bf19e2b035e93b08c0073 SHA512 3577edf4c5b46595143d5d6dd4976f5c9ef584bdb6ab2d1b8ca502581ef2fddf723a4775757868b3756d5cdacfebf1d34c4aaaee83e642288faaefae2db85470 WHIRLPOOL 876811d6760575aceff3e28c5ebc6953a27dbc877a443ae7fba794b289a1207d08270d7c980240b4caf5bef5b8059352b172b098bcdffacbe6dfc791a17b9d5c
+EBUILD mtkbabel-0.8.3.1-r1.ebuild 544 SHA256 a3aa81bcc6e2adda89d6363b0a80ee1bad627d9d4af4bca94004c83d25232f84 SHA512 b3f4b1b8fb218021da4a6a49267ca703b8e72bb512bdc6858d266f987546b93081e42364fb014304aedeb0f15e6b15ea31824def73351fe0fa1f34f5b7582275 WHIRLPOOL 64f8dbd8fd7ae3449ff4aa86a94cdf0bda8505a95a1beedf8d5262aeac51d8395e3e82112af9e080d4c7a24af32b50b4e17481d533549284892d6c2f91972e1e
+MISC ChangeLog 3389 SHA256 ca29ab51993b921d7f11b077b56f537920ca1add150ee2b57d2150a4073dc923 SHA512 8afa7d8796e343e22a26ec68e18ed179b3d69ade769e516754e92f51b1a64dbcd2d2b7557eec3896aa3dc58d31c6548c124d65feff583b443e6412ab96f330f7 WHIRLPOOL e857c33121552dd7e7000c0d72536f0393617fe5115d505ced9154d7137dc94264f8a1f2f4686739d76da7b217b6240020c2a494f3b7a43e02dfcf00b7109b02
+MISC ChangeLog-2015 1275 SHA256 2931796d72a5f3b2f4f1507f26dd1a43b5c7bc048b7ae792beca3c9d741dbc5b SHA512 113196794058f179d5f902629d729305769a34e2597486ffdc7518a1ff2054861f04e596fe9db0561cc4cac2e655f526fed2b1eb12bca75d055728c139234ba8 WHIRLPOOL 4066d345b46f57ccf4261fb51b163795ff799cc0fb4d8f8bba766dc988624210e412b5691805e8481368b2bbd289b9895b0b2efc61b5b5cea002d461c33bcf4d
+MISC metadata.xml 543 SHA256 29f43e66e6d5aa5ed4e635e75c46d44d87e1b40e7ab2d86f84ddb180efb39970 SHA512 d12172e151d1f2f0b1b24fe716e8de449067bcd165f25f4ee874881e61dc37c489b41e10753a226626711d744eeb3cf263854d99970bdab3eaed2ad722e0703a WHIRLPOOL b63057145cb14514948f6629bb50fe79950d65ef59a0a950c26b7e1055a764a6d50e500824a520bf5b22813193673b36a63c5cf282ef0b0bb0581f208eb5f55a
diff --git a/sci-geosciences/mtkbabel/metadata.xml b/sci-geosciences/mtkbabel/metadata.xml
new file mode 100644
index 000000000000..5926eee8e353
--- /dev/null
+++ b/sci-geosciences/mtkbabel/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription lang="en">
+MTKBabel is a Perl program to operate the i-Blue 747 GPS data logger.
+It should work also with other GPS devices based on the MediaTek MTK chipset.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">mtkbabel</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/mtkbabel/mtkbabel-0.8.2-r1.ebuild b/sci-geosciences/mtkbabel/mtkbabel-0.8.2-r1.ebuild
new file mode 100644
index 000000000000..99dcd1ab97d1
--- /dev/null
+++ b/sci-geosciences/mtkbabel/mtkbabel-0.8.2-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="MTKBabel is a Perl program to operate the i-Blue 747 GPS data logger"
+HOMEPAGE="https://sourceforge.net/projects/mtkbabel/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ dev-perl/Device-SerialPort
+ dev-perl/TimeDate
+"
+
+src_install() {
+ doman mtkbabel.1
+ dobin mtkbabel
+ dodoc MtkExtensionsv1.xsd README changelog
+}
diff --git a/sci-geosciences/mtkbabel/mtkbabel-0.8.3.1-r1.ebuild b/sci-geosciences/mtkbabel/mtkbabel-0.8.3.1-r1.ebuild
new file mode 100644
index 000000000000..2eda677db339
--- /dev/null
+++ b/sci-geosciences/mtkbabel/mtkbabel-0.8.3.1-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="MTKBabel is a Perl program to operate the i-Blue 747 GPS data logger"
+HOMEPAGE="https://sourceforge.net/projects/mtkbabel/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ dev-perl/Device-SerialPort
+ dev-perl/TimeDate
+"
+
+S=${WORKDIR}/${PV}
+
+src_install() {
+ doman mtkbabel.1
+ dobin mtkbabel
+ dodoc MtkExtensionsv1.xsd README changelog
+}
diff --git a/sci-geosciences/opencpn-plugin-br24radar/Manifest b/sci-geosciences/opencpn-plugin-br24radar/Manifest
new file mode 100644
index 000000000000..5b4fd4173f17
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-br24radar/Manifest
@@ -0,0 +1,10 @@
+DIST opencpn-plugin-br24radar-1.1.tar.gz 172257 SHA256 7588b3c00175444dbd4c1a54e88e993767af25b784c3a1a20a6ab0ded176238d SHA512 94202b69fc276614c828c0266a3d7ade375f4bd4b26d4acbf92dc9b35c60ac45d7050b1af08667207e856fe9778796dec1786a11e16eba840ed80b140b78e78a WHIRLPOOL c79153da5cad0b8f503e1a3a5a9125ea8cf0ac5b353436ade61922db8f9e5f8937a3c4256d1fe2c972cb114016c5f9bf078b10c10d1d3e9445cf26c84ec1a789
+DIST opencpn-plugin-br24radar-1.31.tar.gz 253695 SHA256 82104da4f9d7e4089030e3845fde2aea5fe962069080df620a044d8d0cb24046 SHA512 30a5aa33e9f40625561477607de93ea77c9096b46c292ea4dcfc9cbec589b5c3e2650dc82ea646d7d353f587f3104493c55aa454cbf91884bf62a6b15e39e2fa WHIRLPOOL 1585cf3707295a7291b2053e1d5e3b10ed587cd36ab39573dabb1c56e3f591dea3a9d2fc3578a6383f4c242bf1694c08a09579ab7edff2bf330355a17caa9bbb
+DIST opencpn-plugin-br24radar-2.1.tar.gz 3947426 SHA256 1cd59fae50222090e4f9f66c7ed610a29d1631997d65da68d9e2ffd32e464ce4 SHA512 357553396fd020e192dbbd5a05af1cd9e06c99244b426239a1d0aac4688affc1702bc16b62010236fc3af1ec7356f1dfb49e3afe3a94cb4dd7b1e0a2ef007af3 WHIRLPOOL 1b9708e2d7ce30c039a37666dc399bea4486c5e0a66181c39cfbb88ddd744b935ca281a8e7fa30404c409695f66c8a38b04a9f78171676dc790e00674aba1beb
+EBUILD opencpn-plugin-br24radar-1.1-r1.ebuild 714 SHA256 80ba665e8a96701c0ac1dc43ebf375d0fade05564e02e3789b1eedcd238a018c SHA512 68ce3f00848a945edc6476878aacc589eb1764386ce990fcb7250fdfadb178d1ed65e7e25dbff2fc18f8f6ec58a8ba2e9f3d6d865aaed945f7bdb35d4f18ea10 WHIRLPOOL 71d853ba93c25a90e371d2fbf5d7ef4fcca2526a1fd4d68d7f7c202186d31ae1a0bcb65446ef197ae825be69664e84bc04e03284357e01058638d455b9a7bdca
+EBUILD opencpn-plugin-br24radar-1.31.ebuild 832 SHA256 cef85b1b4b5bb2eeb7f29f592f96d6afe4fd1ba7b5bc57362dfa46519457bd4b SHA512 6dad3b3395618799648ba018b50583e67e62fb0b3c1200fc30c1ce36ed9d72e47d97997ebe94d5e8125dd2349e2c40af2253b9098999101a85cf4a3cf5c25a2f WHIRLPOOL 7e1490eccd8af5173f59d349cee7fde9700c0d7acf4590ee884e146da267fb0e2537845ed5b197a138abaf45db135237ef766e9d870a85b68d517b193d7cfc9f
+EBUILD opencpn-plugin-br24radar-2.1.ebuild 832 SHA256 cef85b1b4b5bb2eeb7f29f592f96d6afe4fd1ba7b5bc57362dfa46519457bd4b SHA512 6dad3b3395618799648ba018b50583e67e62fb0b3c1200fc30c1ce36ed9d72e47d97997ebe94d5e8125dd2349e2c40af2253b9098999101a85cf4a3cf5c25a2f WHIRLPOOL 7e1490eccd8af5173f59d349cee7fde9700c0d7acf4590ee884e146da267fb0e2537845ed5b197a138abaf45db135237ef766e9d870a85b68d517b193d7cfc9f
+EBUILD opencpn-plugin-br24radar-9999.ebuild 832 SHA256 cef85b1b4b5bb2eeb7f29f592f96d6afe4fd1ba7b5bc57362dfa46519457bd4b SHA512 6dad3b3395618799648ba018b50583e67e62fb0b3c1200fc30c1ce36ed9d72e47d97997ebe94d5e8125dd2349e2c40af2253b9098999101a85cf4a3cf5c25a2f WHIRLPOOL 7e1490eccd8af5173f59d349cee7fde9700c0d7acf4590ee884e146da267fb0e2537845ed5b197a138abaf45db135237ef766e9d870a85b68d517b193d7cfc9f
+MISC ChangeLog 3169 SHA256 8d71ca1e428d6cdbd0c65b60362f7abc3bfb9c3c3ed66acbd860b5a9628ac12f SHA512 21297743189d6ce5be39dccd716335f4c2f2c2418d28b1f116a59ad96a40c4f2046b90ec0df595b60d1c991d8a06b61cf7a4a34c570883630bcbe981f1d4cf2c WHIRLPOOL cdc305433456736ad5687560186fbd545fad5e8a06f75f750e6fc11c8a2185f5dbe750a06c09e6323f65df6faf33913bf319a6d9eb82b6bf170564017782edee
+MISC ChangeLog-2015 693 SHA256 39ade09f3eeeb803edfd82cd9a4c38ea67ba418d03f3948da5148e664a247d6e SHA512 12a2ed7f41c5fcfb42a50e3f6e118790770128af4105eadb3bfb3c931d2fe73035b01064eb5e70828e5285d471b7f0641ea155ae1a4103a34ceb26ab872d7b84 WHIRLPOOL 62ab0bf88d001ccf575b3f7be277438bade62a3d21b770aadc34a09bafd84b872503a092457967d4c96d00727dd67fb77a595a14d94c3b42891b242e7700bcf0
+MISC metadata.xml 465 SHA256 a4ce5a7ecdab592c43cf5b604f1a374e2c60458f31695b0a404b45e90d1c24dd SHA512 42172f62749df96fbef1cf5bea2c1b07375ae435e2151ce086c461956311143658fc7dab4cb78f8e8f1ac4eda27c3bd175513874fc9a998e4b9a13d0ad470ae5 WHIRLPOOL 26499bcb862d01b42d3b27774dc673960a03b86343b068283feb3bbbbeecb6b365ffddbb02695b287600c32a85fb72c4a48a9f647d065d311f54ec73f92fe190
diff --git a/sci-geosciences/opencpn-plugin-br24radar/metadata.xml b/sci-geosciences/opencpn-plugin-br24radar/metadata.xml
new file mode 100644
index 000000000000..6fa59ff0bcc9
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-br24radar/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">canboat/BR24radar_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.1-r1.ebuild b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.1-r1.ebuild
new file mode 100644
index 000000000000..0ccd8455a613
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="BR24radar_pi"
+
+DESCRIPTION="Navico (Simrad, Lowrance) Broadband BR24/3G/4G Radar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/canboat/BR24radar_pi"
+SRC_URI="
+ https://github.com/canboat/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.31.ebuild b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.31.ebuild
new file mode 100644
index 000000000000..d11cea941791
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-1.31.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="BR24radar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/canboat/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/canboat/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Navico (Simrad, Lowrance) Broadband BR24/3G/4G Radar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/canboat/BR24radar_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-2.1.ebuild b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-2.1.ebuild
new file mode 100644
index 000000000000..d11cea941791
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-2.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="BR24radar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/canboat/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/canboat/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Navico (Simrad, Lowrance) Broadband BR24/3G/4G Radar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/canboat/BR24radar_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-9999.ebuild b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-9999.ebuild
new file mode 100644
index 000000000000..d11cea941791
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-br24radar/opencpn-plugin-br24radar-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="BR24radar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/canboat/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/canboat/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Navico (Simrad, Lowrance) Broadband BR24/3G/4G Radar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/canboat/BR24radar_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-climatology/Manifest b/sci-geosciences/opencpn-plugin-climatology/Manifest
new file mode 100644
index 000000000000..b61997d8c3b7
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-climatology/Manifest
@@ -0,0 +1,7 @@
+DIST opencpn-plugin-climatology-1.0-CL-DATA.tar.xz 5830716 SHA256 6179560ec6dc8cc5ca2527473b4a6003d0b7187353c1f58bd84b31869997d3b1 SHA512 5c0b724e7acbfe4a7f494d107806a3491f000f26f4a92519294975dd57a0ba68919c4bed3571ec8fa652138f26f09abd3742a1e5097fa54714564c70f84fbfd3 WHIRLPOOL ac8cdaecf5a795a40e97e3ad77cea1419d3102917252c940bc73ab8afbc72dd963d6faa39e2d364fbf78be610cfc25c6a4835eb2db85830aa0bdfce5d2c1ac72
+DIST opencpn-plugin-climatology-1.0.tar.gz 298279 SHA256 e18b9b688cfc88744c13cdaf01daa360965a84bddb0890adceff1391639abcea SHA512 6ace4fd2fb1625cbbff9305ca0b25fc275ed4b153473786b8f70cf31451f17010d0c59ec59dd22c2eed49833bf1d1785945e752b59169ecd89434ed049a33baf WHIRLPOOL 7311e8ffdadc5f16a40a6c4717b858b2f2b06675536417d75fe4e16aad94311a1b76b97ec7d9667e324d28b6bff8398f54dacf90984ed2d1192730634799e930
+EBUILD opencpn-plugin-climatology-1.0-r1.ebuild 917 SHA256 111885112c6094b9ec3e1bc6788608e33b97f9ee4ce9d6cf0a1903aafe85daf9 SHA512 2dec26dfef80c064ddedb0907e460a5508513479d32d6e6736c4b0071ef00f8dd07f11a221ccb7e84b692ce5ec39f9866e6a17ffcaf860bd41ccf237a8ba8a7d WHIRLPOOL 70cc3c89a838376314d356c64ef078115ee8c3d211e37558dd1ecf9c9c5d20bfc09ae3cc3637b0d2df9f7d57209251fb032c5b8874dad4eaf89efc769f2fe197
+EBUILD opencpn-plugin-climatology-9999.ebuild 1051 SHA256 1cd3112b22e9062e0056e4dfaa9d6afb21ed6586f78dd0e9bd74a4cb72d27061 SHA512 5d5c006dd860a963c5b06b9282d2a73165604782bfc82b74e693aaecff36651209d41af6dde255e2685d9eed603a4555f779577582acd7a4469bc0f24dc836a5 WHIRLPOOL 04af6b137b88169fa2f78775bbe560284a6aee0b872319c86d4b7ff8b88dfa21000ebb7eee86607ecf6c3005817b65b1dbc954d10440a404fcd9e2a84395c3eb
+MISC ChangeLog 3233 SHA256 ab9d0bf1a2276f8dab28bb2e3502995ee7a2372bf543a39ee7a87d058297331b SHA512 ab797206eed0a11c1b9f89d952358f72e2f80ccba745e1db461954c65e2b598e8560d5b10eb5d41d6c99c9af2b404da168f4c3435081fc28c6647f5607fd1a96 WHIRLPOOL 1cbc75aa19296fd58bcfdc657423b75245788f5fb3eb72f162d89ce48e737871102a7e61ef38498be41b7d1b383fbfe356f6fcd35485e1db792ae5d9d838bf26
+MISC ChangeLog-2015 597 SHA256 37eaef9a995557bc88a6ca977d60d742795e0df686584a0be64d90b331163224 SHA512 5542c6d13551a9b6e3b36a2b9d399572ba4cfe552dd2aac92f358c49c5d9ee0f3649486f2ffed5671aa6e25e09ef7b1be7fda022ca11699cc9afb9eaf95978ff WHIRLPOOL d0cd4a3b06d27221b1341b7706a66191dee488d18a29d746317cf0fff14de8abbb40d561247608a185dc7ebda9ea07c0ff6e9f378b41ca8953fd792e242dda80
+MISC metadata.xml 532 SHA256 f99a1c5fef7940df0a8e4cd4f38cf9a7cf8cdacd7f129c2e6e8c3fe2de9c58b9 SHA512 12135b8d8c1d890b7462e1defff7573b7da01949d7cbf4b687b18de40ad46c4cb6dd5b494c5e1aaa49549cba2841d7c6a8b2129f03c5ea25c5dd176054c3dd7a WHIRLPOOL b1bde75c980d0126286003c878c96b8dc8810b3e6f52b1e2bac48f6187a28cae4003af6464f47beb699a67e696f1bf97fa9190fbe1a8a2cb0eba6f4dd75dda09
diff --git a/sci-geosciences/opencpn-plugin-climatology/metadata.xml b/sci-geosciences/opencpn-plugin-climatology/metadata.xml
new file mode 100644
index 000000000000..7fc64c64cfec
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-climatology/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">opencpnplugins</remote-id>
+ <remote-id type="github">seandepagnier/climatology_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-1.0-r1.ebuild b/sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-1.0-r1.ebuild
new file mode 100644
index 000000000000..2937b98dc980
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-1.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="climatology_pi"
+
+DESCRIPTION="Climatology Plugin for OpenCPN (includes CL-DATA)"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ mirror://sourceforge/opencpnplugins/climatology_pi/CL-DATA-1.0.tar.xz -> ${P}-CL-DATA.tar.xz
+"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
+
+src_install() {
+ cmake-utils_src_install
+ insinto "/usr/share/opencpn/plugins/${MY_PN}/data/"
+ doins "${S}"/{,../}data/*
+}
diff --git a/sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-9999.ebuild b/sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-9999.ebuild
new file mode 100644
index 000000000000..769cbc41f929
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-climatology/opencpn-plugin-climatology-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="climatology_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ mirror://sourceforge/opencpnplugins/climatology_pi/CL-DATA-1.0.tar.xz -> ${P}-CL-DATA.tar.xz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Climatology Plugin for OpenCPN (includes CL-DATA)"
+HOMEPAGE="https://github.com/seandepagnier/climatology_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
+src_install() {
+ cmake-utils_src_install
+ insinto "/usr/share/opencpn/plugins/${MY_PN}/data/"
+ doins "${S}"/{,../}data/*
+}
diff --git a/sci-geosciences/opencpn-plugin-dr/Manifest b/sci-geosciences/opencpn-plugin-dr/Manifest
new file mode 100644
index 000000000000..f0ed82f4c067
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-dr/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-dr-1.1.tar.gz 133693 SHA256 57b42b577228e105b22b58b66148527ae62eb119d3f35a5c688360ed251b64d5 SHA512 2a953c7a8a491975c2b14e877364cfa736d2c410ea77bb4e0b18cf3bb3b04b19c2fcbc9debd513182f95002b483e689c4e21c30d87474e319bae7d2d840254f1 WHIRLPOOL db083b87f17b3fbe5895e9ccee58b2d42283653832731baeaffb997a63ba9e1e003b9efe60c58b3ea640bfdb88ec495030009a22e0962898dcc9cfbdc9286889
+EBUILD opencpn-plugin-dr-1.1.ebuild 790 SHA256 8ee3006f1fc8c97c3f017efa9252d577ce3297805d7533db8ce650fdc0a891e0 SHA512 b2bb8360a3ed74bf604e5edde8bba636d00179354638538f1da9b9c7261f7c468cad0c579b343bf566c9538d7a051b298b80d540dd097efbdd74eb10ac74a0dd WHIRLPOOL db76bb9e01faca37578e01de5ae3814a5266deea1c53a4fb17a063892a00beae222a8f5bfecff0646beb1b129b3ba3da6cea007b984d0d195671c44c6ee3580c
+EBUILD opencpn-plugin-dr-9999.ebuild 790 SHA256 152293c666031c7726ef45ae698684714dfa963620e50b3fe2cffa4fdc1276ad SHA512 92942ac473b077d5aa769fc6d807a5d2fc47c95f0dbac7ad3ab44a3ab60be4b08d16965ea7f3220edb342faf5d69b2385bce8a2415185a08baa442dc147599b0 WHIRLPOOL a5e7c2df7c90a7515d7780763d61773d70777b9409da0ac3d24ad455b98e96428b54b30c0687258318b5a4b36d6ba599d5818d83fdf4bf55dbf298794e41846b
+MISC metadata.xml 458 SHA256 e463ac089bdcb95fd509b43018606a23d2c7445d45f6194b8a1ad601ee72d88d SHA512 ac9bd60fd829efeef2b9ecc9e7964a94fd165d9c7bf4f3fa6c4d9419d24f97fe85649569bcfe119f3b90d256f7efa69a2b09196ea52f0b66d53ef4a855517148 WHIRLPOOL 8871fef54a934281b5130f614c786f277ef4893359fe705134ebee65aa8c9dda432c24ba3bc16c955534693329021953d95081ef9d5c4179fbfa776907aca0cc
diff --git a/sci-geosciences/opencpn-plugin-dr/metadata.xml b/sci-geosciences/opencpn-plugin-dr/metadata.xml
new file mode 100644
index 000000000000..40869ffafb0a
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-dr/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Rasbats/DR_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-1.1.ebuild b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-1.1.ebuild
new file mode 100644
index 000000000000..042b47fa61ef
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="DR_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Rasbats/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/Rasbats/${MY_PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Dead Reckoning Positions Plugin for OpenCPN"
+HOMEPAGE="https://github.com/Rasbats/DR_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
new file mode 100644
index 000000000000..96958e431a22
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="DR_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Rasbats/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/Rasbats/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Dead Reckoning Positions Plugin for OpenCPN"
+HOMEPAGE="https://github.com/Rasbats/DR_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-findit/Manifest b/sci-geosciences/opencpn-plugin-findit/Manifest
new file mode 100644
index 000000000000..403d5722dc29
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-findit/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-findit-1.1007.tar.gz 254806 SHA256 80a9c62f415f446f4f4885486b9bc7b7aafcc5952eb328c3cd0a8ab0e0290832 SHA512 d22de2541cbfb17b6dc2c88b77f9b90566b5e48638e072a2f376fff7cbc7d849548bd0fba919c0b6d11ab4b12961c79af3c136a124e6543fb4c97d088478cc42 WHIRLPOOL 706db034ba38e1855f6eea0721460c44e8dd80b3c903048bee55186424d2eeaf59af3daa884bddcf1cc80d518fa8ea04f8bc4fd2831fa4bc15596602414e3350
+EBUILD opencpn-plugin-findit-1.1007.ebuild 774 SHA256 cb20c991e28f5d98e607fbb08c149fb7de162a6ea56d77cec069f179c4134c83 SHA512 e728f20f38bba814096fa285ac3cb9b82bfa1ba5da2a2b249b839f0511a0f420109cdd3f537543eeb75165d83d081310c971a327362b1b94e8cd4a930ab88b87 WHIRLPOOL dab473c14806135bcf0f48139615ebfe6fff9b88140e00b320ed32c6564e574617189306f1b0384fad042b3375d50b2b9d3f12a568c39dfa6320f9a2c9872bf4
+EBUILD opencpn-plugin-findit-9999.ebuild 774 SHA256 cb20c991e28f5d98e607fbb08c149fb7de162a6ea56d77cec069f179c4134c83 SHA512 e728f20f38bba814096fa285ac3cb9b82bfa1ba5da2a2b249b839f0511a0f420109cdd3f537543eeb75165d83d081310c971a327362b1b94e8cd4a930ab88b87 WHIRLPOOL dab473c14806135bcf0f48139615ebfe6fff9b88140e00b320ed32c6564e574617189306f1b0384fad042b3375d50b2b9d3f12a568c39dfa6320f9a2c9872bf4
+MISC metadata.xml 460 SHA256 5af2db5f5cf80ecfb354321e725ef7e66c90fb7bfae69738e5738f35021431cb SHA512 25f9be61f14f93827c7bec4171ebd79cd6908bf25fc8734344dcbca4adf822c1348c09681275932ddfb5d00ccb005ad8688967a3b87150d971d6501ca549ba6d WHIRLPOOL 30b3b36e943ff8d6ccd3c1684c86dd2634bba7a5309fd6da411d382bc6ccbcc58f58cf79c3a3b101e73c5f49ad1486349d00bcbd7a369e7e6c871d972e20040e
diff --git a/sci-geosciences/opencpn-plugin-findit/metadata.xml b/sci-geosciences/opencpn-plugin-findit/metadata.xml
new file mode 100644
index 000000000000..50efe0522e25
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-findit/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ptulp/FindIt_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-1.1007.ebuild b/sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-1.1007.ebuild
new file mode 100644
index 000000000000..dcfdab4eb133
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-1.1007.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="FindIt_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/ptulp/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/ptulp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="FindIt Plugin for OpenCPN"
+HOMEPAGE="https://github.com/ptulp/FindIt_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-9999.ebuild b/sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-9999.ebuild
new file mode 100644
index 000000000000..dcfdab4eb133
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-findit/opencpn-plugin-findit-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="FindIt_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/ptulp/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/ptulp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="FindIt Plugin for OpenCPN"
+HOMEPAGE="https://github.com/ptulp/FindIt_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-gxradar/Manifest b/sci-geosciences/opencpn-plugin-gxradar/Manifest
new file mode 100644
index 000000000000..5fd4ae3a1028
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-gxradar/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-gxradar-1.1.tar.gz 297126 SHA256 7f4dca4feb4e705b880cd8779b9689725173ce5e5a08a8b3fb57cc1cf04fb9e5 SHA512 16b361e664323d125872628291bf97c6ac29caee4bae09ec256180aa66591bf9c66b7bdc38cd6d3c0988ed295148c0691bb8e511b5a9b9b6b34046dd419c9d7e WHIRLPOOL 59ce158b72298eae37a5c46f9d902689c3072646fe33af29331af2976dde712a9234fd7d5df7868fc8f1db0b6c310f4d27441a8a35dae34adde4547df7b5db62
+EBUILD opencpn-plugin-gxradar-1.1.ebuild 795 SHA256 1aeac20a297be111175b6a78a509a0079117d1a6afa028d2b8962e13490c89c3 SHA512 73ab0e7359fdc573eb4972709a03ef3f832034a3b3f86acd8431891790ad88cb75ff78c16a2a6cbbca465ca72a510a3494aa7e1d70ec0943c89c5eead3781745 WHIRLPOOL 5568ae8aac870f094c308df2b3c98ecc98782bb87b69cc676db1185902b194970f040271eff233f122ed47b3391e72bc3f6365a0ddd18e34ae9d93d9e4a8b8b0
+EBUILD opencpn-plugin-gxradar-9999.ebuild 793 SHA256 291c13df7ccf664498b2548a5b89812eedaa835e96797b90f3bd92ea88a1825c SHA512 b77fa71b09b481b8922daaf7be191ab36063b48cbdc798cb59f5c214e117a976cb331b80635f43678799963df3856c2fdf59674c917b50f4220e607eb808cdac WHIRLPOOL a719f1429022b385e4efa94c18f9a87c94180015ddb8cf973a425b540088d47342e560ebc791b90938cf8950cb0122e9e47f7334a6be7b9d4b3694c3e9160b82
+MISC metadata.xml 463 SHA256 d2423e0314edaac2961bbf9786e7a96264d89c190ed23ab8828a9f58493dd692 SHA512 7541ccf9ba469470bb1174029048053e8be82e7c9eab70d3fa47bff82ebee30f1b040e48e2f7e5bc41e2a4ce164756ead536bbc6f161df26c676bef2e9e1581d WHIRLPOOL a71abdba6af0e794da04de7611d521f52ee64a2f114fbeaa895d67bd0ed83809d3b72102b443fdee14a019c3847abbb2a9199c124b523b118ffa25309e180cf4
diff --git a/sci-geosciences/opencpn-plugin-gxradar/metadata.xml b/sci-geosciences/opencpn-plugin-gxradar/metadata.xml
new file mode 100644
index 000000000000..d8606ec694c7
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-gxradar/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">trudK45/gxradar_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-1.1.ebuild b/sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-1.1.ebuild
new file mode 100644
index 000000000000..9218dcc4cfca
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="gxradar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/trudK45/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/trudK45/${MY_PN}/archive/v.${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-v.${PV}"
+fi
+
+DESCRIPTION="Garmin xHD Radar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/trudK45/gxradar_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-9999.ebuild b/sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-9999.ebuild
new file mode 100644
index 000000000000..f6fe3791f2cc
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-gxradar/opencpn-plugin-gxradar-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="gxradar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/trudK45/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/trudK45/${MY_PN}/archive/v.${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Garmin xHD Radar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/trudK45/gxradar_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-iacfleet/Manifest b/sci-geosciences/opencpn-plugin-iacfleet/Manifest
new file mode 100644
index 000000000000..b50b921e7a9a
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-iacfleet/Manifest
@@ -0,0 +1,7 @@
+DIST opencpn-plugin-iacfleet-0.8.tar.gz 216763 SHA256 6d90419e9b899e5036c3342f9dc8ccbc3ff2e8a1b9f83914ee5ba3f6121dcf89 SHA512 34df1f5bcd22e87a99cdcfc34fc3054d1f23d8dcaaf3ad23df3536f333943bad8403a70f3ab09e49431393c7d41b3ed05df8539ba86ec4f3ba39f3ae48de182b WHIRLPOOL ff7655c2a5f2b96406b37978c2e4918ae0c823bdfd8c83892e7ca98778687f4952f4c58e91bea9763137a98325aea71037c7548154bd3f46bb1d17308a283d86
+DIST opencpn-plugin-iacfleet-0.9.tar.gz 218686 SHA256 7998f0659a18d600e80387d25849634faf6413801b3a82fd2484d56b1db03b8b SHA512 f1e54fb17517dac2442de3bca85042add4a05f0b1caf144901581694403a9d9be9732a66f236f16014522b05108877b0dc530850bdf66b530e71c1b3cc010baf WHIRLPOOL c5b1fc9b16126a77426545076585435234c18a913eb08129602d529d5505dbdfa90fa03dbf5adbfb187649d9e1b188e267012a0ad018dc5e624f6ffd895dd0b5
+EBUILD opencpn-plugin-iacfleet-0.8.ebuild 785 SHA256 3a26720506153c94835bf9a6416d56ab208e4addeb9988f345c77f9cadaa49eb SHA512 193d9a7f4215606f1d3a0c6dfa4aa031bb83c818b6c9aa9ecf9e2e7f6052bceac8b9f82f990f94b0f77b073f659a0b056412876f813f53dec8ee4dc7263e52a3 WHIRLPOOL 0c757064b0d2fe00406cceaa3cfee383d6953bb96f4ebdbcdedd5f2a849caf7e48cf53c50703e63ce073cafcff91d01c5f986665f4cdd816a04c8fefb32afff2
+EBUILD opencpn-plugin-iacfleet-0.9.ebuild 785 SHA256 3a26720506153c94835bf9a6416d56ab208e4addeb9988f345c77f9cadaa49eb SHA512 193d9a7f4215606f1d3a0c6dfa4aa031bb83c818b6c9aa9ecf9e2e7f6052bceac8b9f82f990f94b0f77b073f659a0b056412876f813f53dec8ee4dc7263e52a3 WHIRLPOOL 0c757064b0d2fe00406cceaa3cfee383d6953bb96f4ebdbcdedd5f2a849caf7e48cf53c50703e63ce073cafcff91d01c5f986665f4cdd816a04c8fefb32afff2
+EBUILD opencpn-plugin-iacfleet-9999.ebuild 785 SHA256 3a26720506153c94835bf9a6416d56ab208e4addeb9988f345c77f9cadaa49eb SHA512 193d9a7f4215606f1d3a0c6dfa4aa031bb83c818b6c9aa9ecf9e2e7f6052bceac8b9f82f990f94b0f77b073f659a0b056412876f813f53dec8ee4dc7263e52a3 WHIRLPOOL 0c757064b0d2fe00406cceaa3cfee383d6953bb96f4ebdbcdedd5f2a849caf7e48cf53c50703e63ce073cafcff91d01c5f986665f4cdd816a04c8fefb32afff2
+MISC ChangeLog 447 SHA256 3371040c7c8bf913bf1635a2df072376131dd6435a7ee53e841fa175b6b8b81d SHA512 832d73445fdab283d74ff3e576cf898a25cc19ff45b61365a0535a8439e75630fd0e05bc5e32e1dde544071cb3d6962e15cb7822294646de859f9ab3a7652dd1 WHIRLPOOL a41041aaadbffadf5d7a0870e52a17f4704f8d97fe58a4694459284da78a7d1b7e78505a674d8dfd577fbacb7a8254f2892317e18e1dfa39c6f8046daab84705
+MISC metadata.xml 462 SHA256 dbc48997f53993157d880e408a92c32ba95f81bf33ef2a11bd8c94534b224e08 SHA512 54d4824a2cb4d73bfa15402951526b636ff942ebbab71abbe5e30e724c0af9b75f1403c13dc8b2538f4fbb9be692eed6f62d6ec340256fbfa7d849b1fb9bf8c9 WHIRLPOOL 76a0a1766ddd676a62349a20d9610b24052f86d8301ddf66c37a042a2a98870b06a8079af109941f936a502eee1c44563ba88501d0f7af8a75817c1f4481268c
diff --git a/sci-geosciences/opencpn-plugin-iacfleet/metadata.xml b/sci-geosciences/opencpn-plugin-iacfleet/metadata.xml
new file mode 100644
index 000000000000..b55736430c4c
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-iacfleet/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nohal/iacfleet_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.8.ebuild b/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.8.ebuild
new file mode 100644
index 000000000000..6e2c14f2c4b4
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.8.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="iacfleet_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="IAC Fleetcode Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/iacfleet_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.9.ebuild b/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.9.ebuild
new file mode 100644
index 000000000000..6e2c14f2c4b4
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-0.9.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="iacfleet_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="IAC Fleetcode Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/iacfleet_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-9999.ebuild b/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-9999.ebuild
new file mode 100644
index 000000000000..6e2c14f2c4b4
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-iacfleet/opencpn-plugin-iacfleet-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="iacfleet_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="IAC Fleetcode Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/iacfleet_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-launcher/Manifest b/sci-geosciences/opencpn-plugin-launcher/Manifest
new file mode 100644
index 000000000000..da87421c90c9
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-launcher/Manifest
@@ -0,0 +1,8 @@
+DIST opencpn-plugin-launcher-1.0.tar.gz 126153 SHA256 56122ad3efa53aa30e289f78b0f8ba6e661b87e6c52f29cfcc28fc0815a83e6f SHA512 efaae3f9f8f1ecb4f4d1094714b7994cbbbb6bf69638a130db43f62a8852f9972003fd1b9ec20139e58a031c8b7c4ebdf1593a4044415a7f8c8417d1fcb7ac90 WHIRLPOOL 7b9239ef1c8be630b1146a36fff1d4fd309bba3152f8e1612ffe0448062d6cb37230db8426a04e779107a880e06402e506aeb6527b8be5e1e49eff1547dedc2b
+DIST opencpn-plugin-launcher-1.1.tar.gz 136301 SHA256 dc1983de7c62e6bccf8b23f1b083a3428c4710d26466b90a31ef2a2eef9199a4 SHA512 67d36849b592d27af34aacb0016bddf961a2a94f7f6e5e0ec404c698bec9bdc2771671ec0772476188f6fd6733327e5e566bcff388583dc2cae578e39e279a16 WHIRLPOOL 2ff2a6198537c5a8ae2a6566d906d9b92869776db1efd62081825ab99977f13ec4674e3fbaa5d2140592fe5dbb94a4825d58f0b00240cf2765dc166b7812f0fc
+EBUILD opencpn-plugin-launcher-1.0-r1.ebuild 663 SHA256 12f3c473cb33b66cfa8fc03dbf03ee9888ddb63b64908274d409116952a2f74c SHA512 4ba92a2bcb517db77a0bd19bd63154185ca330b90aef919626da87d83dd5143b950e42c8a575498343cf50f7dc2b59bac5ee08374f367b768d88b71b4cb19604 WHIRLPOOL d43b9e74476315cbe7a6b82c8c574a3b87b1f09d47217374b8ee41e72c805f8cdbd1fa2bb196f2ef267f503f7ae70fc4188eaee42850bf4ef68bc37aaef21ac0
+EBUILD opencpn-plugin-launcher-1.1.ebuild 780 SHA256 84e926d465eb0e2f6390941af15573cadae70d7042b49578266c559f277983df SHA512 bd382d8a99722c8805771a73702469d909b9c547a970b80b50f87e3e3ced040a84d60564ff2afa5b5cb3b3469f9b3731a2d77070ea9e7977b91e63f361dde861 WHIRLPOOL 0be9e62510a0993a8352fddc54b49f0ed0da572b69c19a9ff41cc85b0a37f0be8be37510f9f4a1fa16566852c17f5a83ec848bfa66f14adf87148292741c3e45
+EBUILD opencpn-plugin-launcher-9999.ebuild 780 SHA256 84e926d465eb0e2f6390941af15573cadae70d7042b49578266c559f277983df SHA512 bd382d8a99722c8805771a73702469d909b9c547a970b80b50f87e3e3ced040a84d60564ff2afa5b5cb3b3469f9b3731a2d77070ea9e7977b91e63f361dde861 WHIRLPOOL 0be9e62510a0993a8352fddc54b49f0ed0da572b69c19a9ff41cc85b0a37f0be8be37510f9f4a1fa16566852c17f5a83ec848bfa66f14adf87148292741c3e45
+MISC ChangeLog 3152 SHA256 1ac14eaefa91699712c1938ddf9f84607d1a8c67dd6b32850215d23cbefe22ee SHA512 6a1d7020c0e335cf55c5bfa14663de075f8fdd94d0f86dcf1195bfa3b96a01e4e3005da4b4f8e6dd329c09ae92aa2ac6752d6a4b57b00d1479a9e28255b529fd WHIRLPOOL 7c78f910b40773f953af17927ae860c8aca6cefafb513d0363cc0f32541b3ac83628803e567b3466704307699610dd4460cdca348cc5ed41b6533c2a2b56b75a
+MISC ChangeLog-2015 579 SHA256 62c76014b2ad9ed7e06fb12c4c2a374d163d9e85b360cb806c8fcbb34b33e136 SHA512 ccce745ee091ed076d82367912c0494489c635ec69e1c774e4865939ed98146427b62fd6cc3c1b1c2b731fa9a33854f45062931f95dfdaad8ee377c3c5c1552e WHIRLPOOL add60527bb22d2fa1786d2a8971fc3eddd6e69061459b5210d4083a78cb35a38a8741f84ef60e6977f60d31e769cf4528c418a1ca1139c5918d8b36106e719d4
+MISC metadata.xml 462 SHA256 c07c0771bcfc538f056c28658fbb537c03d8b2e2df17b518236160de64026f97 SHA512 06769469f1a722a93d9a1037ca9653dcd413317e734b2cb8ac764d471b26bbb55873eabcc095afc4cac4c0178900f2982e5983bb3bb0d1b4cbe15a9da053d51a WHIRLPOOL aceb67dd7f1d4f3a80e792ee746947e52943d0b29fee2bf4141cc7d387c11e7c36d7f52b690c693f1ee9ba95c434d0b2a7ebc1b5acd9da762806c65fcfcfa538
diff --git a/sci-geosciences/opencpn-plugin-launcher/metadata.xml b/sci-geosciences/opencpn-plugin-launcher/metadata.xml
new file mode 100644
index 000000000000..df7742b3737a
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-launcher/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nohal/launcher_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.0-r1.ebuild b/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.0-r1.ebuild
new file mode 100644
index 000000000000..78bb49e50d43
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="launcher_pi"
+
+DESCRIPTION="Launcher Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.1.ebuild b/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.1.ebuild
new file mode 100644
index 000000000000..641e27f97d5e
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="launcher_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Launcher Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/launcher_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-9999.ebuild b/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-9999.ebuild
new file mode 100644
index 000000000000..641e27f97d5e
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-launcher/opencpn-plugin-launcher-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="launcher_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Launcher Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/launcher_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-logbookkonni/Manifest b/sci-geosciences/opencpn-plugin-logbookkonni/Manifest
new file mode 100644
index 000000000000..508a71d825b6
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-logbookkonni/Manifest
@@ -0,0 +1,10 @@
+DIST opencpn-plugin-logbookkonni-1.2018.tar.gz 3768720 SHA256 aa7967cf2a7993968f8842b9adf220a57b065afd4be3899cca0771d780697792 SHA512 5435b639bc635b5bbe87c92306d93dee7897ce3e5c6bb383aa228ad90127d2ab1f2a5e871a68abfec30ff2a327c4c21c023a61ccdad445a25bbb8a44fec19d41 WHIRLPOOL ed6bd46ca2b7dd637f0da7bcfd1c6457f10cd2b0cb9a00bf6babd05271ada7b31d23360a5f57ffccdd9d1d49dfbf135dea2c5413fd219d30a0d4d175b3f5f823
+DIST opencpn-plugin-logbookkonni-1.2018_Layouts.zip 1722887 SHA256 9b31cbf893069ba7037a7eca569a46e52b773439f44eedb7f4202b908817d48e SHA512 5ce35b3f4c14a432b472db496e8a5dc46fbcd5b0b404c085d6d024f2f383ae9e3767ccdf750177f102ec19a7a0d61a1ab331fef701bf29f8c851305a73923296 WHIRLPOOL bb4f49322f27b7fe0804cf035ddcb87fcca6ade5b968ce703f74f7498e58fc8146ab20839a7525f92ce92fc5151b75a45fcddf54e99c202baa8711f89e91ffb2
+DIST opencpn-plugin-logbookkonni-1.3002.tar.gz 3810133 SHA256 8566c68ffa748529f6b3dbc71c618e4e9b6a0afcee0dfcaaf0b2e77e44232a79 SHA512 a539e8d01f9e81f859826477c1abbdafeacc1bd0a1e734777698eb471ddf0a1356bcd321b4b3aa27f9593e0d412e52fb8791248a0dfbc20daa7c9214152e8030 WHIRLPOOL 69a6d3f59271ac889f99408b3dcc92f08e8ff8a74221cbfcbdccd8a7cefdd150fdb1594a98acd64fdd0e87c750945401ffb7f07e84c54a10a9995534fffe8614
+DIST opencpn-plugin-logbookkonni-1.3002_Layouts.zip 1722887 SHA256 6c2ae65cb5cab258dc4e2015b82a5a740a8751ffe74233eb0da36c7b5c24c453 SHA512 f493d9af822a960f3b9a5d557d46b73e89c8179bfbc4d260d133c972e22d4ce5753e64b2d8ced321589a11a0a32efe1c34b574ed850af0673768896cdbb3d9c5 WHIRLPOOL 92d583b1cc19e44d3036a597b0ad72e1a80eb962ccfdbba386966ea5f625cdacb467219efebbc1106feda7ef300e6cbce9415371b23e38a49fa8435db25c3a0f
+EBUILD opencpn-plugin-logbookkonni-1.2018-r1.ebuild 1416 SHA256 16da1da1b31d27bf5b92a9e71cbf1620297f9d3dca5d3a038e0ae237fafee44c SHA512 a10c938faa7a2bfdeb2a4d13652e17fe82f24bf82e949be94bf7d55c5bd2dea976273c267388849a8365420507275e6ed5e5ea01697ec988b66e78f7e0419e3d WHIRLPOOL a37c821fe5d632617460491dcdd8dd44afa9ce9a04b52166e31f7366804767122919dcae3b22201c24a88f0deb66894de117044dd429d952e275d562cf5d4fc1
+EBUILD opencpn-plugin-logbookkonni-1.3002.ebuild 1549 SHA256 fa84eca9bed57db6fe721b030c1b160b6f8370b0538368b0c6513c93cb9ccc9c SHA512 9e8d1d9a98a9e3af0dd6ae741e1e5fe7a9ed3c59f33e73e3af5aa480a9ce9672088592e542c9072c95fd91fba86b7db1ea3bba9eb12cfe7812f6ada0c9359ef0 WHIRLPOOL f81f3c3079b9b6578bb5ba1a81ec6bbde82eae661780f3e598a62765ff6f2832f6fad110b59e65f0ab154dd0432953d8638f3e62f08944f52ee1a68a96044b9b
+EBUILD opencpn-plugin-logbookkonni-9999.ebuild 1549 SHA256 fa84eca9bed57db6fe721b030c1b160b6f8370b0538368b0c6513c93cb9ccc9c SHA512 9e8d1d9a98a9e3af0dd6ae741e1e5fe7a9ed3c59f33e73e3af5aa480a9ce9672088592e542c9072c95fd91fba86b7db1ea3bba9eb12cfe7812f6ada0c9359ef0 WHIRLPOOL f81f3c3079b9b6578bb5ba1a81ec6bbde82eae661780f3e598a62765ff6f2832f6fad110b59e65f0ab154dd0432953d8638f3e62f08944f52ee1a68a96044b9b
+MISC ChangeLog 3660 SHA256 1f35e6ab5c8bdf4b14e7aee11260d5a041950f4f223469953de7d47020b14d27 SHA512 6b232d9433f5477abda7ab9e49234e0b9c38597dbc12c6b12c851f626a8d69505b4423f91ccea67c57292d858eedae164cb5aa40cf7d046a49c7203105a9024f WHIRLPOOL f4ceb8c13c87d6f067626434afc07d89a7ebab898a157b0d19b0724d91fcf77d2e93cd12093d9fa37b7f9e1ff6b69c08403767c7355381a967409569df40789f
+MISC ChangeLog-2015 612 SHA256 fb22176fcc9b0c76dd3146c9c721b9a01123a9dbd3acdb176486868957793c23 SHA512 d2f7fa31ee8f158200c6e11ac8591aae835f21b1d1a27018a3f0fd3bf870e54e517f81b56e128011ab26b579283a964142fbd3839f99ddadc376e6a7d8763007 WHIRLPOOL 9211ff6d4ab0c87beb49f6031b7b343c885f8065f8b4c4f89d8d48cec7b2270f615a78f93de5612a2793cd822ad2d1e74a57e9db15c31614e9ed69b1f7ebfd45
+MISC metadata.xml 472 SHA256 5137be2642dce0b1bfeb3e8fbf6b2456c0a1ef749e6e8658bf5eb744e535fcf9 SHA512 6a2770dd9706b34e4615e3f87b1f393bd0a8ce1be5aa2060e0c5718c11238368320d872418452545591cb0d2464d6b49f27750381e9e30001588948e32e1cddd WHIRLPOOL 44c43dbde7e6875e2a29fb9f17dd994bb9fb62726049ecbc055cdf366ba6b1aadb44814df03df5106e5b134f0e3fe251f99f5ee02b21398744f9d6987b24dea1
diff --git a/sci-geosciences/opencpn-plugin-logbookkonni/metadata.xml b/sci-geosciences/opencpn-plugin-logbookkonni/metadata.xml
new file mode 100644
index 000000000000..a71066b8627c
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-logbookkonni/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">delatbabel/LogbookKonni-1.2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.2018-r1.ebuild b/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.2018-r1.ebuild
new file mode 100644
index 000000000000..c454a85cefed
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.2018-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="LogbookKonni-1.2"
+
+DESCRIPTION="Logbook Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="https://github.com/delatbabel/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/delatbabel/${MY_PN}/releases/download/v${PV}/LogbookKonni_Layouts.zip -> ${P}_Layouts.zip
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="
+ app-arch/zip
+ ${RDEPEND}
+"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
+
+src_install() {
+ # install layouts as zip
+ cmake-utils_src_install
+ cd "$WORKDIR"
+ zip -r "$D"/usr/share/opencpn/plugins/logbookkonni_pi/data/LogbookKonni_Layouts.zip Clouds HTMLLayouts ODTLayouts
+}
+
+pkg_postinst() {
+ elog "Installation of logbook layouts"
+ elog "*******************************"
+ elog ""
+ elog "The default layouts zip file has been installed to:"
+ elog "/usr/share/opencpn/plugins/logbookkonni_pi/data/LogbookKonni_Layouts.zip"
+ elog ""
+ elog "After starting OpenCPN, go to Options->Plugins->Logbook->Settings,"
+ elog "click the install button and choose the above mentioned zip file"
+ elog ""
+}
diff --git a/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.3002.ebuild b/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.3002.ebuild
new file mode 100644
index 000000000000..538c99cbd179
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-1.3002.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="LogbookKonni-1.2"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/delatbabel/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/delatbabel/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/delatbabel/${MY_PN}/releases/download/v${PV}/LogbookKonni_Layouts.zip -> ${P}_Layouts.zip
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Logbook Plugin for OpenCPN"
+HOMEPAGE="https://github.com/delatbabel/LogbookKonni-1.2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="
+ app-arch/zip
+ ${RDEPEND}
+"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
+
+src_install() {
+ # install layouts as zip
+ cmake-utils_src_install
+ cd "$WORKDIR"
+ zip -r "$D"/usr/share/opencpn/plugins/logbookkonni_pi/data/LogbookKonni_Layouts.zip Clouds HTMLLayouts ODTLayouts
+}
+
+pkg_postinst() {
+ elog "Installation of logbook layouts"
+ elog "*******************************"
+ elog ""
+ elog "The default layouts zip file has been installed to:"
+ elog "/usr/share/opencpn/plugins/logbookkonni_pi/data/LogbookKonni_Layouts.zip"
+ elog ""
+ elog "After starting OpenCPN, go to Options->Plugins->Logbook->Settings,"
+ elog "click the install button and choose the above mentioned zip file"
+ elog ""
+}
diff --git a/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-9999.ebuild b/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-9999.ebuild
new file mode 100644
index 000000000000..538c99cbd179
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-logbookkonni/opencpn-plugin-logbookkonni-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="LogbookKonni-1.2"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/delatbabel/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/delatbabel/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/delatbabel/${MY_PN}/releases/download/v${PV}/LogbookKonni_Layouts.zip -> ${P}_Layouts.zip
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Logbook Plugin for OpenCPN"
+HOMEPAGE="https://github.com/delatbabel/LogbookKonni-1.2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="
+ app-arch/zip
+ ${RDEPEND}
+"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
+
+src_install() {
+ # install layouts as zip
+ cmake-utils_src_install
+ cd "$WORKDIR"
+ zip -r "$D"/usr/share/opencpn/plugins/logbookkonni_pi/data/LogbookKonni_Layouts.zip Clouds HTMLLayouts ODTLayouts
+}
+
+pkg_postinst() {
+ elog "Installation of logbook layouts"
+ elog "*******************************"
+ elog ""
+ elog "The default layouts zip file has been installed to:"
+ elog "/usr/share/opencpn/plugins/logbookkonni_pi/data/LogbookKonni_Layouts.zip"
+ elog ""
+ elog "After starting OpenCPN, go to Options->Plugins->Logbook->Settings,"
+ elog "click the install button and choose the above mentioned zip file"
+ elog ""
+}
diff --git a/sci-geosciences/opencpn-plugin-objsearch/Manifest b/sci-geosciences/opencpn-plugin-objsearch/Manifest
new file mode 100644
index 000000000000..dd1580700b09
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-objsearch/Manifest
@@ -0,0 +1,8 @@
+DIST opencpn-plugin-objsearch-0.5.1.tar.gz 1954813 SHA256 16923b02c74621f4868110235cae4a8a0261b6fe8c91b9a488a0c67c80e4ccc5 SHA512 dd83352eab307b991d3d296b9bbab2a972a2ce4f33c1ddc55c048c3414c11d5b7a8429a32f2d9c96017fb16c841dc3c6fee8522dea690eaa17b3c7e5ac1fbfd0 WHIRLPOOL 9e0ab972c163a26d67d2389f2179284e0f416aa1de8e993837decbcb23c7c4dadfcc044aa2f83ecc30f21478c1571236bc3f1c7a3231677085e3211527e2d7ea
+DIST opencpn-plugin-objsearch-0.7.tar.gz 2047642 SHA256 297ba3f799c08d46c2a851ae76edcf3b2be53cb0b72e1c63c593bf6ab55bf44a SHA512 9c371bf3a5ef551a68ea7e2569536df37d7ec1241be011c6a313229f3c34697332c967c91855d9ccdd4f0a3412ade130fe241ea22c803f7c37543539602f71b3 WHIRLPOOL 902874e56833d43a6b169b1012449cb8bafa0ca0bec85816b299688d95af8dcbed74c5d9be07838f20f6a3b2cc8ec03d0912738ace4e50f53460dd99b3e7d6e1
+EBUILD opencpn-plugin-objsearch-0.5.1-r1.ebuild 675 SHA256 1430962018474cbf477318c806575595e3ef06b94a2ea39e92c58707c30ec6c6 SHA512 82253c277ab0b6157b2ae859c6e6f2af82533a3b1ea1370a075d8bae6628f47c396a2c8e63a8ad48167c2ca9a6ac0fb40817d6fc3d417bef5d0be16d99cd25ee WHIRLPOOL 6701041fc437410ebf06368f15be16b23a34763dd67d9ec7774f3510bb4f8d4dcb79739a3902781d42ebe405f6d30d88fbac1c6e5e8a7d32b18b977b8413cd23
+EBUILD opencpn-plugin-objsearch-0.7.ebuild 793 SHA256 00a0b055461d26e56aba3f29b90f7e49783657febfe807ef13825f4e098ed353 SHA512 b7bb220e1c3665b2a3644fd4278e7152f4db22eae4734cdfeb2334891fc235e4e39171c130770f680047c18e18cb9a8eb3ca82e34fde9cccd8e97272ee3436e5 WHIRLPOOL e94e8ad49e693653900d0f87c1e88f9b7b392d897d36b4207d33645378e336832338195e7abaced2d9abfe989c0c834cb01efef5f4f14273ede5033c9a374161
+EBUILD opencpn-plugin-objsearch-9999.ebuild 793 SHA256 00a0b055461d26e56aba3f29b90f7e49783657febfe807ef13825f4e098ed353 SHA512 b7bb220e1c3665b2a3644fd4278e7152f4db22eae4734cdfeb2334891fc235e4e39171c130770f680047c18e18cb9a8eb3ca82e34fde9cccd8e97272ee3436e5 WHIRLPOOL e94e8ad49e693653900d0f87c1e88f9b7b392d897d36b4207d33645378e336832338195e7abaced2d9abfe989c0c834cb01efef5f4f14273ede5033c9a374161
+MISC ChangeLog 3177 SHA256 44cf889e9bc3b02432015d2f4f18903e1db30fa3ceb8e5ab4eeda25353c1e695 SHA512 654ff7275fbf1767c8f5a34010891118c3708e95de76b12ae47859a54f2f8f0b0df403498ab267205a75320a76ccc940c3f8bec73c171084e50f23ae6caf0154 WHIRLPOOL 2d6a79ee4969b1b7182412a15e370664ec105965fe7aec20b3652d629fa3a7776f6bb2dbe9acb6771527841a7c52a18e5eaeac61f9782b91d9a44946bcedfd2c
+MISC ChangeLog-2015 591 SHA256 527559c0781d0b5c2a8e42757bbd0c925a9235a55ce1650dda057c8a77e04284 SHA512 6747e5cf0efb53fc42e0b5bda67df481ca212118bba12fe0c56de40ab481eaf768b7f93a96fc72f1d8d70acf0ddb222abf1429a82d08e46f51138125429564a9 WHIRLPOOL 3527f37b52174f8b8cd702616fa3755b9795ed65dcf1d64eb3bc8c023e388d0842422507e7f84dda65c8ed47b52a8f4b1693e057c5bbbc5532789d23a450b349
+MISC metadata.xml 463 SHA256 2298470c0006516f3f9fbc745fd8f72f41342696c675467d3d4b0da50e73fb3b SHA512 8a075b8eebde4adb85d11893601a3cc6c620653f63853aff0b2b65c0e887f11434e01fb99599a7312ab40b0ec3ddb2ecdfc0bbe1dc1f3f13ef237f4070a3007c WHIRLPOOL 79ee0cc6047c23631915d93341e399d98288dac8d7c6487969ac442937d0de5f54e5261283686f53c21f3c7ee53e1156ea3b01072434c53eafbec8777a677a43
diff --git a/sci-geosciences/opencpn-plugin-objsearch/metadata.xml b/sci-geosciences/opencpn-plugin-objsearch/metadata.xml
new file mode 100644
index 000000000000..385e7441b77c
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-objsearch/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nohal/objsearch_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.5.1-r1.ebuild b/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.5.1-r1.ebuild
new file mode 100644
index 000000000000..939eb7d41650
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.5.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="objsearch_pi"
+
+DESCRIPTION="Chart Object Search Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.7.ebuild b/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.7.ebuild
new file mode 100644
index 000000000000..bc75efdb60d4
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-0.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="objsearch_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Chart Object Search Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/objsearch_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-9999.ebuild b/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-9999.ebuild
new file mode 100644
index 000000000000..bc75efdb60d4
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-objsearch/opencpn-plugin-objsearch-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="objsearch_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Chart Object Search Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/objsearch_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpn_draw/Manifest b/sci-geosciences/opencpn-plugin-ocpn_draw/Manifest
new file mode 100644
index 000000000000..b82ff677a0b1
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpn_draw/Manifest
@@ -0,0 +1,7 @@
+DIST opencpn-plugin-ocpn_draw-1.0.12.tar.gz 1122888 SHA256 e044cb5bccad4d5020c6378d514d5807aaa83a04fb24e15af0bb0c7e290fa968 SHA512 d9c6afe17efbc3fa668958b55a67ba7160670ef1c3c16c1db11d360dcd8dc2c27894b89cb724443c96b6d30152ee01e651a120dfe003a3d3a951872c7900850c WHIRLPOOL 20f7c8057912fa8e274617f835985a4c9b379b100b2f5fe4a8234527937a53fbb971e2888cfd006dd40cfb9bc3dc0ecabff77ba8e72bb22e8290c489196b30a4
+DIST opencpn-plugin-ocpn_draw-1.3.14.tar.gz 1341500 SHA256 bbefeae6c936a4d0a542a1c3f06027045565df673e07fe8873c1283eee108d8f SHA512 8102eda5edc1b198db639a662f3533423e67ee6a3633c1a74b727a56e3176737deb930d77fb9dbbf38b8c8f678fb31c8087ae5636bc3f9ed156dbec77bdbe6cf WHIRLPOOL 1c0cdab2ad7c35a8ba7f23ab45b833ecf5553377b06a4e7d3203a31624d96a3d9f9def1156eba2e728b20a57e447e19488e6a12b0b2d2cd3931bb3947db2db03
+EBUILD opencpn-plugin-ocpn_draw-1.0.12.ebuild 786 SHA256 d4161388c74d3581d72993e423c6a4807e70148e31b947f5eedd14e928dac225 SHA512 0d60b0b60c776ca6f0bb369c786e86683ff16d68a8023312ef66a0d2700a76e592c05e6803dee01b8819458fbdc92aaf9c0deea4a027c82fe82371d263d6fffb WHIRLPOOL 973b4f5f3dc13b1581a3010cce21352a2a4ad826ab4eab39f31628cf0afc58832717af5bbe77f33c3649c286944bb112471069a73e5e36f6d780c2218918457d
+EBUILD opencpn-plugin-ocpn_draw-1.3.14.ebuild 787 SHA256 9c992a17b8a56551eeabaaaa648e2635eb8570ea194dd76f20697d773f9ae4ba SHA512 2d41e35e4be0d9dbc244b8c10ff84504b017fb4022f0d8fbc699c11dd626c0e263f2ee52e585e1bb5e79417059bf3aab9247316ab05774ba69c7f6e18da18aaf WHIRLPOOL 2e54432ae4aaf4182b9e91d61d43bb638fae955642023bd2357dcbee8f26e51c82ebe136f262d76515b01192b54d72e9c1c8116c42cdb9dae6d2b679713fd047
+EBUILD opencpn-plugin-ocpn_draw-9999.ebuild 786 SHA256 d4161388c74d3581d72993e423c6a4807e70148e31b947f5eedd14e928dac225 SHA512 0d60b0b60c776ca6f0bb369c786e86683ff16d68a8023312ef66a0d2700a76e592c05e6803dee01b8819458fbdc92aaf9c0deea4a027c82fe82371d263d6fffb WHIRLPOOL 973b4f5f3dc13b1581a3010cce21352a2a4ad826ab4eab39f31628cf0afc58832717af5bbe77f33c3649c286944bb112471069a73e5e36f6d780c2218918457d
+MISC ChangeLog 456 SHA256 433242c244fe4cd983b7acbab7dc833856fc7657b61081e00bcdd9c1f8cefc1e SHA512 75751cd48e4a962d4842f2ddac600ef6c33bb7b85db6f7bc0be5bbe41e48f77fbe08e228859cc950d12055a886782a63a0d7dd51b82da37fa06500f3643c6ca2 WHIRLPOOL 39af542a05f8252fe65bb1512c36f226f399666c48f51f2f770ecddd566f3952109c067f289df4e2137358b44d1dd8e869a18af8730027f7ccb675d577cfa3e1
+MISC metadata.xml 466 SHA256 bc5b4ac79e46616aef966042aaa2a4ec1fe4296b186efc37c58c30ece7951a16 SHA512 018ebc234b7cd3fad579532636a57d8649b20ddafc25a43af81fe79189ce1cdbc6b5c227fa5b2591e114739ae9d48e1943213065ebdad779ea1209f7516c7dcf WHIRLPOOL 385e4321c467c9152060bf013fca79ba9ffec92b918a23268df975b16abe8afb6c530e11faafd8013938f0687d2958230029aac6add74efde249735428e8211d
diff --git a/sci-geosciences/opencpn-plugin-ocpn_draw/metadata.xml b/sci-geosciences/opencpn-plugin-ocpn_draw/metadata.xml
new file mode 100644
index 000000000000..ae33cb3e72c5
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpn_draw/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jongough/ocpn_draw_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.0.12.ebuild b/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.0.12.ebuild
new file mode 100644
index 000000000000..6799ad2bc798
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.0.12.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="ocpn_draw_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/jongough/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/jongough/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Draw Plugin for OpenCPN"
+HOMEPAGE="https://github.com/jongough/ocpn_draw_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.3.14.ebuild b/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.3.14.ebuild
new file mode 100644
index 000000000000..6f814e3c1f9e
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-1.3.14.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="ocpn_draw_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/jongough/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/jongough/${MY_PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Draw Plugin for OpenCPN"
+HOMEPAGE="https://github.com/jongough/ocpn_draw_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-9999.ebuild b/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-9999.ebuild
new file mode 100644
index 000000000000..6799ad2bc798
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpn_draw/opencpn-plugin-ocpn_draw-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="ocpn_draw_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/jongough/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/jongough/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Draw Plugin for OpenCPN"
+HOMEPAGE="https://github.com/jongough/ocpn_draw_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpndebugger/Manifest b/sci-geosciences/opencpn-plugin-ocpndebugger/Manifest
new file mode 100644
index 000000000000..320825ef374e
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpndebugger/Manifest
@@ -0,0 +1,10 @@
+DIST opencpn-plugin-ocpndebugger-1.0.tar.gz 109976 SHA256 519b7cf341932c31205772d89a27682622d038479e4f76135534d5b87aea145f SHA512 0230d123a706b136269d81a509bb64262c3b007d0d7b944089bb4bd113a56217cf0321ea82b170ce1ca8d3b4b08b996d09a088137c4d1817bb795ed4de50f6dd WHIRLPOOL d89d46d5239a0083028338faa39d17c1b7d24bbb4e989d11d4e9430f774c97c90a8ad66d1c0b6e61cec869db36dade2e7c62a1fee7b8346f5e3fd03b5c97da8f
+DIST opencpn-plugin-ocpndebugger-1.2.tar.gz 122773 SHA256 0b54a740cab4b9e01debd4c7d10cdbc3a2bc21e4144282833a6f289b6f418d75 SHA512 f14b831a2ba65c16b95e829b70a39f17751c6f6b6c3d4d6899d8b02ae82deaecd9bc1a097f2583c412170e5f7bc6f08f4fbc10c08b37e1cd1d6698e38229d41c WHIRLPOOL 0c7abdcbae3c147587150b9f7fb0f370a8f994b814b0b74d1ccef6ba5d18e240cb9923bc12a8d1ee4e578a6d02122bb2c16ec8a084d4a5a5619adc56d7d08cfa
+DIST opencpn-plugin-ocpndebugger-1.3.tar.gz 127623 SHA256 36679ef1e29892d5297217f211e4a1ade54b893ac6a1ad67d4b8b18ec7fb7488 SHA512 30caf922cc5a5255741b780c8f09ea4de9d7bbbe0b6ff65fe32a7484da4c75e53fd03e6a83966dc70ef4f7f6483dacce7f74392e4b3556b984f90b2eb5f9e01e WHIRLPOOL 5dba475e0ff2f8fa81a77fd420319f68f35b7a7d1ba2b64b5a76fb8f4d5bca138f498711bc3419056c59a3027f779ad9737273a88dc58759aac3224657796a27
+EBUILD opencpn-plugin-ocpndebugger-1.0-r1.ebuild 692 SHA256 b6775a14435782f7abe382d0b5f656f16130bcc46f2ec0542ca9886511676c23 SHA512 2279ddef44e45f1b280f4d46ef4d78adad334b6fe0d5499a326e0accf22377cba5611e3f75eab8c10401a0c173d4f32f0675852bdc8cfe73a28b1ecb5e793f06 WHIRLPOOL d49460f1554d2d534d84e289c67adafd96f57a116fc8a049ca7b6b762aa346fd5abba46a14b9409172b17f33f2f4d7ef49ee72bc1da71c2262b32c04c23bbd79
+EBUILD opencpn-plugin-ocpndebugger-1.2.ebuild 813 SHA256 c89a4f8d6ea603ae00f62a4c020f54047ec222f9c9cce75da6b69a023bcadb7c SHA512 9e3a080a9894a25829e6536e2003eb6b9a9d2570978d091a9f9dad15f23dcb4743ed9e7380c001b387aba82bb1c956c9059aab4658501ce68df9d05541203f64 WHIRLPOOL b291b7f0bf058ba3094259b9c26d8f9b01da919fcbcb12cbb0eb853b4784a7235b326de8d30be8ef98298aebe2eca6f1565a1750c669a931914c01cf350a9686
+EBUILD opencpn-plugin-ocpndebugger-1.3.ebuild 813 SHA256 c89a4f8d6ea603ae00f62a4c020f54047ec222f9c9cce75da6b69a023bcadb7c SHA512 9e3a080a9894a25829e6536e2003eb6b9a9d2570978d091a9f9dad15f23dcb4743ed9e7380c001b387aba82bb1c956c9059aab4658501ce68df9d05541203f64 WHIRLPOOL b291b7f0bf058ba3094259b9c26d8f9b01da919fcbcb12cbb0eb853b4784a7235b326de8d30be8ef98298aebe2eca6f1565a1750c669a931914c01cf350a9686
+EBUILD opencpn-plugin-ocpndebugger-9999.ebuild 813 SHA256 c89a4f8d6ea603ae00f62a4c020f54047ec222f9c9cce75da6b69a023bcadb7c SHA512 9e3a080a9894a25829e6536e2003eb6b9a9d2570978d091a9f9dad15f23dcb4743ed9e7380c001b387aba82bb1c956c9059aab4658501ce68df9d05541203f64 WHIRLPOOL b291b7f0bf058ba3094259b9c26d8f9b01da919fcbcb12cbb0eb853b4784a7235b326de8d30be8ef98298aebe2eca6f1565a1750c669a931914c01cf350a9686
+MISC ChangeLog 3200 SHA256 dafb25cce893c5df25f069b8cc4e57fe3b0f433fde9318ebd17dbfbd52d99be6 SHA512 4b631fdd8a1c72ed96a24753c73a5716fcfdfb73f135cbf7d27d52d5142c35dc9d61c9612d2ee86dfc5858eae858436fcf99687b9400e79f37e0a6355d6f8c62 WHIRLPOOL bf0b5ca79f0b4439e6ad95fa1fe6f3b8d08be50251e1f14adec0c9e68ed739f89e4cdb82470a5691c985516725f49cf6d38858991dcfa89c188c4b2dff4a1eca
+MISC ChangeLog-2015 603 SHA256 73c4a3da2b295498316cf6ea2953cd3aa6d53eb35f5200f19f33eb93c01ec89a SHA512 8db2cc41756973955125330350e3cdcd4643d9a3c9bbe693b74380877efa328e3f86e12419340a2ec7a97e257990259464a561ccff67f9448b6862b1e5214cc1 WHIRLPOOL e9b7f597ca30610cbaed1236a6fbe7ee84d862e7b35c2068f8ee75b41213a038e46da80b0b93f646181619979a9a826b46102572e9e96e49156cb4067487ed91
+MISC metadata.xml 466 SHA256 b5a107193a3200e258de694cc69dd9c67eff0a64c0b0a31395f425e5ae939ae1 SHA512 17a5a5e747b2b9c014249d95219ee6dbd634cc2e3bca64578d5fd94e7c054549e59141b541e3d509aea2083b288805e131f28ae244143be3d25f62dcb55e50bc WHIRLPOOL 0f47723f88b7b2dfe3377df16feca87fe5f4cf214f54b544865739eae4037615a4a69d5cc589d522713cf5280fa36fe1fa6e88112608c1a115db2bda087cad3b
diff --git a/sci-geosciences/opencpn-plugin-ocpndebugger/metadata.xml b/sci-geosciences/opencpn-plugin-ocpndebugger/metadata.xml
new file mode 100644
index 000000000000..145aae3bde6d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpndebugger/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nohal/ocpndebugger_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.0-r1.ebuild b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.0-r1.ebuild
new file mode 100644
index 000000000000..6b5bd13947c2
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="ocpndebugger_pi"
+
+DESCRIPTION="NMEA-data and plugin-API Debugger Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.2.ebuild b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.2.ebuild
new file mode 100644
index 000000000000..3ceeca86881d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="ocpndebugger_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="NMEA-data and plugin-API Debugger Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/ocpndebugger_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.3.ebuild b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.3.ebuild
new file mode 100644
index 000000000000..3ceeca86881d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-1.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="ocpndebugger_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="NMEA-data and plugin-API Debugger Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/ocpndebugger_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-9999.ebuild b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-9999.ebuild
new file mode 100644
index 000000000000..3ceeca86881d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-ocpndebugger/opencpn-plugin-ocpndebugger-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="ocpndebugger_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/nohal/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="NMEA-data and plugin-API Debugger Plugin for OpenCPN"
+HOMEPAGE="https://github.com/nohal/ocpndebugger_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-otcurrent/Manifest b/sci-geosciences/opencpn-plugin-otcurrent/Manifest
new file mode 100644
index 000000000000..9e7e891c2e05
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-otcurrent/Manifest
@@ -0,0 +1,5 @@
+DIST opencpn-plugin-otcurrent-1.2.tar.gz 184391 SHA256 808323caa3c120471e50d418e969a0c15206b87a1d05c10bc7002d61fbfb09ed SHA512 04564e0fcafe0f338d52a2fe7cf1a00c5d53d4ecbbac3264203ddc5ed4dd1e237b45d206314dfc493ea4649491a03872158a4d61a6dd0658dd54a20b43502263 WHIRLPOOL f2203e98939a2884caf33111151743518af7edd6603d87ceb4dca4ba588d3acb4b60789bd84c6ca05673ab9fff59e51c6b7deaa87bceb4cb00226948df5d0fe2
+EBUILD opencpn-plugin-otcurrent-1.2.ebuild 789 SHA256 88132382dcff066f02c1440296f02153f4aded4eaa346fb7acf050fd4e076b23 SHA512 ee9ce85fd4c81807e3824a0de521f72f438aeaf45b78400710bb25187245df47edb896f2cdbcda0ce79cc58e9f9981b807e4f62dd791998bfc5c98d2751c9527 WHIRLPOOL d7236984dc8fc47a260d78c63c6ff993549ae311be7984c1a9c9e7f308d5a5b1e4c9578bbcce5ca5349c28aa85710e12008ceb4e6c74897dc45e79ef2b869a96
+EBUILD opencpn-plugin-otcurrent-9999.ebuild 789 SHA256 88132382dcff066f02c1440296f02153f4aded4eaa346fb7acf050fd4e076b23 SHA512 ee9ce85fd4c81807e3824a0de521f72f438aeaf45b78400710bb25187245df47edb896f2cdbcda0ce79cc58e9f9981b807e4f62dd791998bfc5c98d2751c9527 WHIRLPOOL d7236984dc8fc47a260d78c63c6ff993549ae311be7984c1a9c9e7f308d5a5b1e4c9578bbcce5ca5349c28aa85710e12008ceb4e6c74897dc45e79ef2b869a96
+MISC ChangeLog 636 SHA256 929dbda82c3a7c2453b67ef788ffd3c5c2e90b44f8cdc5c28ac760c1efe1bc61 SHA512 318ac73d0e8691aec4763df766c8397ee3d3e653e2fe08cc80a2e1eb60e623efe836776b3e7ffe6bb8e881df00913891b543fded58481cc23499f2e15ed5ca34 WHIRLPOOL e9f7f941df4feb5d0091de5f72485818018836b6728da8643f1e8b174cfeb61319a42940e94233beaa7f135af65de3e3cca4e6f603b10d6be461bbfb2a1e39b5
+MISC metadata.xml 465 SHA256 73635fbddd06459becfa1c7f1e58ff3f5fb426ba5e526a1b6744611b5f2c586d SHA512 31acd1d3a12d14d1e96df8a381187e3bcb970518f48e843d054852be222c83302750ad51d5f0721d100cede415202927c078c5e2a98cdb082985beb0b110332b WHIRLPOOL dadecda4156b5e9cad3237cc04dabf514cecc24fba27eae9b6697ee93fee3c280dc8eabf778cdc8dd4a70cb40fec1b484d239a7aea8c16f34744d317cf913b6e
diff --git a/sci-geosciences/opencpn-plugin-otcurrent/metadata.xml b/sci-geosciences/opencpn-plugin-otcurrent/metadata.xml
new file mode 100644
index 000000000000..37fc2f734d5a
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-otcurrent/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Rasbats/otcurrent_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-1.2.ebuild b/sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-1.2.ebuild
new file mode 100644
index 000000000000..03152157c982
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-1.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="otcurrent_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Rasbats/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/Rasbats/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="OTCurrent Plugin for OpenCPN"
+HOMEPAGE="https://github.com/Rasbats/otcurrent_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-9999.ebuild b/sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-9999.ebuild
new file mode 100644
index 000000000000..03152157c982
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-otcurrent/opencpn-plugin-otcurrent-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="otcurrent_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Rasbats/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/Rasbats/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="OTCurrent Plugin for OpenCPN"
+HOMEPAGE="https://github.com/Rasbats/otcurrent_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-polar/Manifest b/sci-geosciences/opencpn-plugin-polar/Manifest
new file mode 100644
index 000000000000..d4d651d46f00
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-polar/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-polar-1.1007.tar.gz 263299 SHA256 0b0e11003d7b11fbf05047e13a08700b86ae74e5c3aa125b4bb61659c8a9af24 SHA512 9ef853a052692b7475851b8470d18c711bf2e9a8fd7dbc31919197fa6ae0225ce218bd4a13f39a999fa29282b209614e0fc37e429a39dc3c1dc28b018e6c3344 WHIRLPOOL 683447093278e47b1ed3df3e79a4657608daea50942425c114a04c02656a4f166554dfd6b024a4c626b14d3f7fb16a4812a98f113c44669106289a0ca78b6a04
+EBUILD opencpn-plugin-polar-1.1007.ebuild 779 SHA256 19f813746c4a9dd99502ffd25a4f263c5057f87a72a27fcdd148e71c06875a14 SHA512 a0574135b7c4989a98490b854125de85e1c890b62edd068fcd597c8989a1e03174ec7f9cdb0e202ae4fd7812832c7539155b78391a148b177b40e962ccc14e59 WHIRLPOOL c5087be1725a47551a318c1e379919f5bacbb1419e3137b762b1396686220f44ffa4033fba21cf1358b03d835bc347b3141d5ac0b3e74e6b72ca239b26ec10da
+EBUILD opencpn-plugin-polar-9999.ebuild 779 SHA256 19f813746c4a9dd99502ffd25a4f263c5057f87a72a27fcdd148e71c06875a14 SHA512 a0574135b7c4989a98490b854125de85e1c890b62edd068fcd597c8989a1e03174ec7f9cdb0e202ae4fd7812832c7539155b78391a148b177b40e962ccc14e59 WHIRLPOOL c5087be1725a47551a318c1e379919f5bacbb1419e3137b762b1396686220f44ffa4033fba21cf1358b03d835bc347b3141d5ac0b3e74e6b72ca239b26ec10da
+MISC metadata.xml 459 SHA256 7ab7d7e5ada9cdb1e26528edb8ee40237dd56cf4f43c03dfeb66406ad500d3cc SHA512 3379e62005aca4f29288a26766132f3939b8b1a8ab25789f48c83f6103629d041488df4e86af56f573f66d2ffe9663f233bbe8c0a5d4b0b105585de875f74467 WHIRLPOOL 12b7ab0fe6a280a252985c47e2017d208bcc759c5a8844914ed2b4aa8166cae297804da4390b23235e9d4e01459a959ce5243c831fed8bd795df58752f081d0f
diff --git a/sci-geosciences/opencpn-plugin-polar/metadata.xml b/sci-geosciences/opencpn-plugin-polar/metadata.xml
new file mode 100644
index 000000000000..3d00c813eab8
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-polar/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ptulp/polar_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-1.1007.ebuild b/sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-1.1007.ebuild
new file mode 100644
index 000000000000..48c985b00c5f
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-1.1007.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="polar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/ptulp/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/ptulp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Polar Diagram Plugin for OpenCPN"
+HOMEPAGE="https://github.com/ptulp/polar_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-9999.ebuild b/sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-9999.ebuild
new file mode 100644
index 000000000000..48c985b00c5f
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-polar/opencpn-plugin-polar-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="polar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/ptulp/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/ptulp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Polar Diagram Plugin for OpenCPN"
+HOMEPAGE="https://github.com/ptulp/polar_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-radar/Manifest b/sci-geosciences/opencpn-plugin-radar/Manifest
new file mode 100644
index 000000000000..d033e784fe77
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-radar/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-radar-0.98.tar.gz 113968 SHA256 a73ffb16f35e631daac2ac2973f6529c28b1e9115d778fd432bd18f919b2728a SHA512 f424659e446c79eefbc37999154dc912f26c380a90cf54be40f034a052ae48b3eb479d7cd23b216db8484eae25a5d1c3ab42afd9f3b336aa0534903d8da8bbd1 WHIRLPOOL eb7f194e705ad5a1a1f5d3f7fa37ab89114e9eb06935420953bc07c39ff45a93b80d08f0b372400ff55dae9b1016c3440d3734ea539a016c542f2b1da391dcc3
+EBUILD opencpn-plugin-radar-0.98.ebuild 812 SHA256 d18fff9b317649d8eca7c0dc6a71edf9112e593d257c26db803337789f393ddf SHA512 ca30b19f0760cc9265b2baff577635e2c2c1000ebc57f8b3f4ec9017e68951fa02418532a7bbdc6a7c7eafc8349c7694970640600c11a7c333d61709a695c087 WHIRLPOOL 444391bf8ee062c9262744f360701d41d8a5a6ff47b181107d56b17a0c989187ac131d28a46896c04f8b586f86cf216b4e492bd6d08f2a580a5ab5e67abaffa1
+EBUILD opencpn-plugin-radar-9999.ebuild 812 SHA256 d18fff9b317649d8eca7c0dc6a71edf9112e593d257c26db803337789f393ddf SHA512 ca30b19f0760cc9265b2baff577635e2c2c1000ebc57f8b3f4ec9017e68951fa02418532a7bbdc6a7c7eafc8349c7694970640600c11a7c333d61709a695c087 WHIRLPOOL 444391bf8ee062c9262744f360701d41d8a5a6ff47b181107d56b17a0c989187ac131d28a46896c04f8b586f86cf216b4e492bd6d08f2a580a5ab5e67abaffa1
+MISC metadata.xml 462 SHA256 bad66e99fdf6d3c1ff8da12dd1ec93913c572eade14916dcaf63a5bff2997051 SHA512 a55828c3828d2596b3357421282025f9098f5f0a38599f33594516d14b96ba57d5d18d488a5b3780ffedadf33206753af6375026ecb1035ee5934275b6eb6ee7 WHIRLPOOL a8f7e6a5ad9db1eb2a4a1e38a9facc878ffb71cd172fc58497a8b82a5606e4a9e4cd2926bf7ffe2d01679b235a4ed85ba7266363977f1e1b540ce85205c4d5df
diff --git a/sci-geosciences/opencpn-plugin-radar/metadata.xml b/sci-geosciences/opencpn-plugin-radar/metadata.xml
new file mode 100644
index 000000000000..71fc49471258
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-radar/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Verezano/radar_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-0.98.ebuild b/sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-0.98.ebuild
new file mode 100644
index 000000000000..3b90c511621f
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-0.98.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="radar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Verezano/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/Verezano/${MY_PN}/archive/aisradar_pi-${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-aisradar_pi-${PV}"
+fi
+
+DESCRIPTION="AIS Radar View Plugin for OpenCPN"
+HOMEPAGE="https://github.com/Verezano/radar_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-9999.ebuild b/sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-9999.ebuild
new file mode 100644
index 000000000000..3b90c511621f
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-radar/opencpn-plugin-radar-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="radar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Verezano/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/Verezano/${MY_PN}/archive/aisradar_pi-${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-aisradar_pi-${PV}"
+fi
+
+DESCRIPTION="AIS Radar View Plugin for OpenCPN"
+HOMEPAGE="https://github.com/Verezano/radar_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-route/Manifest b/sci-geosciences/opencpn-plugin-route/Manifest
new file mode 100644
index 000000000000..91946c8f72a1
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-route/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-route-1.2.tar.gz 373474 SHA256 e72b08948f0b4adaaca16ce438a450148138b2d95db039553c74f1a33eba44ea SHA512 4dcaa4592f72c6a093276689db5ffa8dae1ed3e0ac6790b85352a6a1942d8863c8f19dfd1110256df9ac28e8056442344852d7790ae97201efe965485a5faa26 WHIRLPOOL fa3a66b18b974718603f8048f7634a43d79d87cddb0f77367dfea3e9379929f2fbd78947b3e7dca50bc15316d1910dc0131b22ebf4265ba5cd20a8ebf99c64e7
+EBUILD opencpn-plugin-route-1.2.ebuild 792 SHA256 2e2ca39eec23c7973b82e636d020bbc9f6d8bb839d3bd694532762293a19b278 SHA512 65870aa219080b3ecb6158e1a7dfa14039cf3778624449ac68d49e7749660b8630a03240f06e77130d144221fcb84c12b59f25d244ec1bf5f61066d6d72ab95b WHIRLPOOL 848b98cb887de2fd8a349d0848448c3ee4940a87f84eb1780b21f10a818e58b40e1e07d20b191bc580be62c8011b419e94416378287782bb3cc6039ed6e76fd8
+EBUILD opencpn-plugin-route-9999.ebuild 792 SHA256 2e2ca39eec23c7973b82e636d020bbc9f6d8bb839d3bd694532762293a19b278 SHA512 65870aa219080b3ecb6158e1a7dfa14039cf3778624449ac68d49e7749660b8630a03240f06e77130d144221fcb84c12b59f25d244ec1bf5f61066d6d72ab95b WHIRLPOOL 848b98cb887de2fd8a349d0848448c3ee4940a87f84eb1780b21f10a818e58b40e1e07d20b191bc580be62c8011b419e94416378287782bb3cc6039ed6e76fd8
+MISC metadata.xml 463 SHA256 ae7dd3282da3913c2528b835bd886cc273ce9bf96f4a16568c3c52677892aef3 SHA512 56be58d5be8fc8adc1ad3f1fe85be7e0a5dce179e047796e3db6795f77f16b53461822525ef6ab807af07f672b53210760870e96789d0abaa56a3edc90df23eb WHIRLPOOL 1970ae62c28b7a47d617b41cd5289bab085c3c459696187a7026c573c7b08a73453078e54ff9d9d5b818259373e0ff13750338f24849ee52efabbd265e89142d
diff --git a/sci-geosciences/opencpn-plugin-route/metadata.xml b/sci-geosciences/opencpn-plugin-route/metadata.xml
new file mode 100644
index 000000000000..6e6d546794c3
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-route/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">SaltyPaws/route_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-1.2.ebuild b/sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-1.2.ebuild
new file mode 100644
index 000000000000..c81e035e1c04
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-1.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="route_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/SaltyPaws/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/SaltyPaws/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Route Plotting Plugin for OpenCPN"
+HOMEPAGE="https://github.com/SaltyPaws/route_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-9999.ebuild b/sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-9999.ebuild
new file mode 100644
index 000000000000..c81e035e1c04
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-route/opencpn-plugin-route-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="route_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/SaltyPaws/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/SaltyPaws/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Route Plotting Plugin for OpenCPN"
+HOMEPAGE="https://github.com/SaltyPaws/route_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-squiddio/Manifest b/sci-geosciences/opencpn-plugin-squiddio/Manifest
new file mode 100644
index 000000000000..f5292db78cad
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-squiddio/Manifest
@@ -0,0 +1,5 @@
+DIST opencpn-plugin-squiddio-0.7.tar.gz 324747 SHA256 5e76e71f223497328ef1f68a0824bdeb4cdca0d5be5ef1086d36900d089d2585 SHA512 8a39286ef26a89b58fdf825cdb241127fb2448a121e29d9bd71db2588647a92688afe4ff176a3e73155c1aa2039a2df331e05d9f57431bc1aa534a67bba41959 WHIRLPOOL b9258fa0bafb2e247bee00d23dceacddcfd9779d86f81389f98ac45f7889af29ce5725f01594039ca0e79aab4bd1135ddf466d504c296646c2c320b17d155e4c
+EBUILD opencpn-plugin-squiddio-0.7.ebuild 800 SHA256 f9f522dbeaeebb1b45f347bbc39c98ab3276a6c90aa0f3e1a69bb94468cb0a26 SHA512 f3216ff85a817325edeea81b8b4bcc90a571304eb9bd1801f505b04a1f70fced8b1a460bfdbcf0d2c9d075ddc9f3d18a4d9fef95eea3e488be6d6f2cca7d2d8e WHIRLPOOL b752e7a808711da22b707da1f26f576b9bbc91bf56222897327f88a79c506692387cf757d1dc9880f729ec9c0799b3eb388cc99531e4e172df7ed408049aeb4f
+EBUILD opencpn-plugin-squiddio-9999.ebuild 800 SHA256 f9f522dbeaeebb1b45f347bbc39c98ab3276a6c90aa0f3e1a69bb94468cb0a26 SHA512 f3216ff85a817325edeea81b8b4bcc90a571304eb9bd1801f505b04a1f70fced8b1a460bfdbcf0d2c9d075ddc9f3d18a4d9fef95eea3e488be6d6f2cca7d2d8e WHIRLPOOL b752e7a808711da22b707da1f26f576b9bbc91bf56222897327f88a79c506692387cf757d1dc9880f729ec9c0799b3eb388cc99531e4e172df7ed408049aeb4f
+MISC ChangeLog 447 SHA256 079b9be1d3effbe40572130c6aabfc79ebbcb88fb20c4a111c72f36c88f0dce5 SHA512 1e2377d0ad99cf448431777bc2f58744618e1efb18d58270404c01f275bcc230bb61e759f92e7c6333b957fa0c4eb1412add1f2dd02a4d2e800985e1023c1e12 WHIRLPOOL d921846b68d8441e4728a7d301117c0998cf8a563087fee9a178e69aefff828c7c62e6d6ed188956092181bfe9465904e08ef3a4c4fee74201754e9c27c6e8a3
+MISC metadata.xml 463 SHA256 f72a16612daf03659118457920471b01a6d9e247510711c9451981799805183d SHA512 05ae63d0c9bd8ff74100084b3c6f64a13132c989d7703fe5e2f3806e88d596f8902cd6a437df03c69d10f6d7234a56c7cb129ba968af7b5887399ba14516983b WHIRLPOOL 38f4b7141276b48a837243bddf946f81cc47acafa99645bdaa62c86e8eee4a917fd53637ebbe55132bc6f6929dd5fdc14e476bd8ec8c6803595e7b51d3378137
diff --git a/sci-geosciences/opencpn-plugin-squiddio/metadata.xml b/sci-geosciences/opencpn-plugin-squiddio/metadata.xml
new file mode 100644
index 000000000000..adb0998c135b
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-squiddio/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mauroc/squiddio_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-0.7.ebuild b/sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-0.7.ebuild
new file mode 100644
index 000000000000..66ac6b37d7e2
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-0.7.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="squiddio_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mauroc/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/mauroc/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Squiddio Plugin for OpenCPN"
+HOMEPAGE="https://github.com/mauroc/squiddio_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="
+ net-misc/curl
+ ${RDEPEND}
+"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-9999.ebuild b/sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-9999.ebuild
new file mode 100644
index 000000000000..66ac6b37d7e2
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-squiddio/opencpn-plugin-squiddio-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="squiddio_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/mauroc/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/mauroc/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Squiddio Plugin for OpenCPN"
+HOMEPAGE="https://github.com/mauroc/squiddio_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="
+ net-misc/curl
+ ${RDEPEND}
+"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-statusbar/Manifest b/sci-geosciences/opencpn-plugin-statusbar/Manifest
new file mode 100644
index 000000000000..b13001f4c7b0
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-statusbar/Manifest
@@ -0,0 +1,6 @@
+DIST opencpn-plugin-statusbar-0.5.tar.gz 86323 SHA256 77b03dbfa946d53e9929d8086abfc8723a55260c0485417e8221ad46c243e26f SHA512 cf723717f41c87b3e7dd40c1d485f873d336f598fe022adf418290443333fd19d874d294bd4b36bea10e026fdf0e27b76d098196ba0aace360ae86c103c6e1b4 WHIRLPOOL 9e5327710114428d3ce47a71168411c16d046eef2992e9a972d50e1891ce0a8f57b67332674db1a4f9529de3e5d6772015b0ef618e8e3182e17fd53fe8f68387
+EBUILD opencpn-plugin-statusbar-0.5-r1.ebuild 676 SHA256 39a66ee140c306ffa5496c28252d5a4ee7956601934972d5e0859a07daf781b9 SHA512 9c3cdcefb5e92034423ba4325f8344ce5511ade82879ef49f8376279839a26718ca10a0b49bd9e768d10908cc09c95786155d93e08eb91c12b86c2b545d35007 WHIRLPOOL 989e8282f04f5fe64c173275cc2e82e1b9b9b124648e75b81028f625af431e905b0bc892f00a2af63131e20a41c3cd0cb172e8a31c078fbd413e4c0a67584fb4
+EBUILD opencpn-plugin-statusbar-9999.ebuild 807 SHA256 069f8127eaebde22e4d95ab22f26d8728041300113502dc5e0544321bc4ebcec SHA512 fe7fc58cd391409c88aab601a6c1dfbcd0c0a7aef6c68755a01235ea25c17dff81f0752d6af77aa5da55600015bb324148293b1df332c352fd8a4b295e04cdef WHIRLPOOL 31842259efb65ef7f9eebe1e21c73238a73373b214d8fd445ac7101b4afa4795a6695db3e707ee5ba6ce34ab99134a591ebbf88066d6e99a499bf5625e59b763
+MISC ChangeLog 3069 SHA256 34242a9f04f1123dffc031dd81b7a317b1653f0ec86ded96662849c995be9638 SHA512 b9c0c79e1e66cc4cfd9a74b69746412fcf9a7cd08c1bd32c76faa4419f8180d8c3b08421e9ea78ac38e1343c7eaea92689390245bbb08f0c62c765ee4053f8ff WHIRLPOOL bb31b279641a3e59e3a9f51b4807a2453944cb79f6524ca45bd3d11d378c2194b0bd8fd49d5d1bf802c18c8d01e1f73406dc9f2d6cfd558f582b33536497fc8b
+MISC ChangeLog-2015 585 SHA256 1af489e8376858df2893230a0cb9b2c11fe54738b06193f6f8a8d61dce107824 SHA512 c075a7a42d5d437e0176f9c61442f3f0b160b933ba22fb2bb2f3c026f6e5cfae23d2cfd2b2e4330696d4c09bca04c5bfd4c2e85e02bf3425845b42a314b57bda WHIRLPOOL 63927910ea567cf7436d6dc6359bdee2da4b40e622017bca4515f2fd3ef2e7193b5fdf9b7d8c120db34b45e88819acf7ea26c4a2771c09277be17fc50a947989
+MISC metadata.xml 471 SHA256 e710f00127b98b2132954eded42e4cbb61c702e6c606be7c10f27690db002648 SHA512 dda5fc5256bdf396ef20026f048570ee711382993d900aba3080c2032743229594a98f994673b44905f72756fc04a1232d8e3768b793f98199aac450067def88 WHIRLPOOL a708bea1ae0b6a3bd31b05117c6ab7092df4fa9ec154e5dedadb2d4a42719e64771b22d5ac7f8caa7d4b39b99f458d9cdf49061c2629550d6760f1e920b01555
diff --git a/sci-geosciences/opencpn-plugin-statusbar/metadata.xml b/sci-geosciences/opencpn-plugin-statusbar/metadata.xml
new file mode 100644
index 000000000000..1e209f748392
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-statusbar/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">seandepagnier/statusbar_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-0.5-r1.ebuild b/sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-0.5-r1.ebuild
new file mode 100644
index 000000000000..ae5dd468d7ff
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-0.5-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="statusbar_pi"
+
+DESCRIPTION="Statusbar Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-9999.ebuild b/sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-9999.ebuild
new file mode 100644
index 000000000000..ad141e70ffc6
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-statusbar/opencpn-plugin-statusbar-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="statusbar_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Statusbar Plugin for OpenCPN"
+HOMEPAGE="https://github.com/seandepagnier/statusbar_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-watchdog/Manifest b/sci-geosciences/opencpn-plugin-watchdog/Manifest
new file mode 100644
index 000000000000..85244b7b371e
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-watchdog/Manifest
@@ -0,0 +1,4 @@
+DIST opencpn-plugin-watchdog-1.9.051.tar.gz 412423 SHA256 a8207dee671c3b7e6e4951cf39e98df4ed1ab08f41aad7c405eb7fc4d4d1021a SHA512 6ef178985bbfcb5e8ee48bcffe6949ed4c4a0308daa6b91a654b289505b4c06a130af806f9c4de01a627ee982a2b8e5009cac89a0ce7cee275eb30a148f31554 WHIRLPOOL 8c80ba0189f98afc1dfcf256e58f76f040f1f71b6a8c0e8ae593caddbe951d2685bd7ef01c6168c56e9d84810e7195748806eba5707cb4f580aff958c3f2477a
+EBUILD opencpn-plugin-watchdog-1.9.051.ebuild 804 SHA256 a635bff06f0cefbad03e125b60be971468ce1a33e92334c8d4e7fe630b2ecc0b SHA512 cf822e8c03f739876cdb376d4206d17a2b250270cc7e98448fd3fa0f2a0c8d3ac157f332c3a6f05f9447216af818f356eded74fd231afe9256c3df4f3e8a552e WHIRLPOOL 447ed773f76d6f3ad5dff6f81f356ba5f363d0e9b1566b6fd07b273794a5df4e7034484faa23f60ff2e65083577d817b2957424332d1d66f1bab30609bf18782
+EBUILD opencpn-plugin-watchdog-9999.ebuild 804 SHA256 a635bff06f0cefbad03e125b60be971468ce1a33e92334c8d4e7fe630b2ecc0b SHA512 cf822e8c03f739876cdb376d4206d17a2b250270cc7e98448fd3fa0f2a0c8d3ac157f332c3a6f05f9447216af818f356eded74fd231afe9256c3df4f3e8a552e WHIRLPOOL 447ed773f76d6f3ad5dff6f81f356ba5f363d0e9b1566b6fd07b273794a5df4e7034484faa23f60ff2e65083577d817b2957424332d1d66f1bab30609bf18782
+MISC metadata.xml 470 SHA256 afea60d006c5411699b2fe38d30740347f57907e483fd334eee7b1cf56bbfbaa SHA512 1365dd4355d750d33f2f194304ac5ad9ef4f59a90383738ac79ccd142833e8b63c34311171f21e8edcff497164f33422f54befea1de2e66cbe8665f63aa88d83 WHIRLPOOL d208f0b943c44b58b149cf567f4a9aa799768d1cf25eada9bba9d6fa505dc0eaea3a2e90e0a03d27ad51d00050ad9979202e704034e1f39f4277afec2d8c3644
diff --git a/sci-geosciences/opencpn-plugin-watchdog/metadata.xml b/sci-geosciences/opencpn-plugin-watchdog/metadata.xml
new file mode 100644
index 000000000000..7c616379306d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-watchdog/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">seandepagnier/watchdog_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-1.9.051.ebuild b/sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-1.9.051.ebuild
new file mode 100644
index 000000000000..d60086491945
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-1.9.051.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="watchdog_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Watchdog Plugin for OpenCPN"
+HOMEPAGE="https://github.com/seandepagnier/watchdog_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-9999.ebuild b/sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-9999.ebuild
new file mode 100644
index 000000000000..d60086491945
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-watchdog/opencpn-plugin-watchdog-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="watchdog_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Watchdog Plugin for OpenCPN"
+HOMEPAGE="https://github.com/seandepagnier/watchdog_pi"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-weather_routing/Manifest b/sci-geosciences/opencpn-plugin-weather_routing/Manifest
new file mode 100644
index 000000000000..97e3023bf86a
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weather_routing/Manifest
@@ -0,0 +1,6 @@
+DIST opencpn-plugin-weather_routing-1.10.1.tar.gz 845403 SHA256 1ac5f51db969f2806a54ab82d062cdef748e4f77835b2f63aba8f8633490c53f SHA512 052377bc2b962b131640ecdb2e688b97325a7935f60c68652be6bdb07486278d03d09ec2c8b4b1547e5eeab1ea7613890604c800a91f185babe5bfb5221a7337 WHIRLPOOL e3cca0cbfc967da89ecc50e716f958735169912f9e520e485c4f55a2524d91f77634e620afa87f83a971fd95f4c6795f068748a3794bd27250c6277db6faa0e2
+EBUILD opencpn-plugin-weather_routing-1.10.1.ebuild 826 SHA256 d58e6d9a8e56305f199b07b61b5adac770400642d7b7964356fbb1262c064274 SHA512 ba14832d17aab8cf63f93af39b3925545d4416fc24e94299d61a1d77414df6844d71920ff0567fc37d9186b3a536d30381a4e13c048069c1255310e5f867d24c WHIRLPOOL 134e997bf55ce11088113a8e7d21077a56de79cc1f6bc51cdc92ff36cd92eedb9cd8c0ee840b7655927e37300b0cfc5cddc11f4dec0f6660308dc186ed268c53
+EBUILD opencpn-plugin-weather_routing-9999.ebuild 826 SHA256 d58e6d9a8e56305f199b07b61b5adac770400642d7b7964356fbb1262c064274 SHA512 ba14832d17aab8cf63f93af39b3925545d4416fc24e94299d61a1d77414df6844d71920ff0567fc37d9186b3a536d30381a4e13c048069c1255310e5f867d24c WHIRLPOOL 134e997bf55ce11088113a8e7d21077a56de79cc1f6bc51cdc92ff36cd92eedb9cd8c0ee840b7655927e37300b0cfc5cddc11f4dec0f6660308dc186ed268c53
+MISC ChangeLog 3312 SHA256 ce2a4296504df6c7e3311fadadc50bd8c6d9f1096bf6365617b6e46eb006ae2e SHA512 a660691129011b22465b14bec0537749dab33f16063b519ff7244cf9155994e91de353d37c33f8bcbb1127349d442d1607f2449ba3c2a2d38c2b76c80b71e145 WHIRLPOOL 0642df43d22e07a1d9163f850942a1c2cbb92b41765a6b10d80ba7c2cb4abfd873c45d9d538b7f72781d34c90c18a08e71125695484cdc15c13bbce148c0f4cf
+MISC ChangeLog-2015 644 SHA256 00f530a35b45dc3eb7fb3d97765ccd52b434caa76e6df54c5b10a11f922897cd SHA512 d6a54414e6d30224ac165b19c956a6cef7f14732a5d9a8e5f98b031f8b1c5d1b86e535d00e809cc86538323a7f91a76fa96e02facb1b3ead6ae7ff9186b79b51 WHIRLPOOL c1438baa1b763cae4240627112282c4e4b96e41d77716e2723b9b95fdcf70d7b368f6e8dc16be888d4e19a29a0048303237ba52ae8179d8247a6e5a9e3ded552
+MISC metadata.xml 477 SHA256 fc28da8c0e29c47699538b57c1148598f81db54cc95abd2a5d723488587f879d SHA512 7a02f730a36af241a340d3d07c01051a5570078622651dd2886348fba796f8de91bb6faa45860afd312fd20305bd716c6b7603e5aa0153959e931f7bad88ea7e WHIRLPOOL cf1e8396393deadab9222b9b2cc568c518ba8fc2aaf284c4f0fd697bcc0801e97f78673cb3385f2068449b94e64e8d3d08bafc68e8aa43df7aaf763197facb2e
diff --git a/sci-geosciences/opencpn-plugin-weather_routing/metadata.xml b/sci-geosciences/opencpn-plugin-weather_routing/metadata.xml
new file mode 100644
index 000000000000..49008f4636da
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weather_routing/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">seandepagnier/weather_routing_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-1.10.1.ebuild b/sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-1.10.1.ebuild
new file mode 100644
index 000000000000..97bf2e186459
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-1.10.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="weather_routing_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Weather Routing Plugin for OpenCPN"
+HOMEPAGE="https://github.com/seandepagnier/weather_routing_pi/"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-9999.ebuild b/sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-9999.ebuild
new file mode 100644
index 000000000000..97bf2e186459
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weather_routing/opencpn-plugin-weather_routing-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="weather_routing_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Weather Routing Plugin for OpenCPN"
+HOMEPAGE="https://github.com/seandepagnier/weather_routing_pi/"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-weatherfax/Manifest b/sci-geosciences/opencpn-plugin-weatherfax/Manifest
new file mode 100644
index 000000000000..40648950a77b
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weatherfax/Manifest
@@ -0,0 +1,6 @@
+DIST opencpn-plugin-weatherfax-1.3.tar.gz 505937 SHA256 2b312259bc632416a53edd7d607fd26c8debd0d499e984b4da92bd8521c9de9f SHA512 54fe8f25a21d373ab00bcd5d77950532bb06c5324cdd1082e4109cad8a33b714ed0d7cd8ebe7e9540e5e10039b2a0fe23b4b88df0244f1e84b852111807ad6e4 WHIRLPOOL 654f1dd8cf93973a91d1200594896e91e2b22074023576c6b2e42cd21c271dec4ec5f9c2d1285c6b8f0d58331be6dc03c35c823d0a06123cbe2e20a03d2395d2
+EBUILD opencpn-plugin-weatherfax-1.3-r1.ebuild 678 SHA256 cf5c9e8b8399bcee0161c29f2bf2ff16e8bfd9b6c9d1b8f26e3f709edc269701 SHA512 6ddfccbc2abdfa1be0d811a124a1942dbe722b38e400c557da41534eec82d2fde92aacea7847c15a878ccc1a7aa5b402bb6172e21d9444a94c625f77af19b49a WHIRLPOOL aade2e8070363e62d27662a700a2e77ae257bf7964f8492f1afd2b86b7edac4dfa508d92a65723ca87721d7723a5d358e5efb1423a32de58ca4a164bc1c4e777
+EBUILD opencpn-plugin-weatherfax-9999.ebuild 810 SHA256 fcda477e08a747c056d5b2dca74409c067eae56048531c6f48206cb003a45179 SHA512 1ebeec9d9532505b0be845389ec4941182e87218d63b0e6eeadccd3a73c7786e4e85e28890463991df180aab77a65e4b82b2e9064d4c030a16939ee1e45de157 WHIRLPOOL 15d0a48eea5c793f45182acc8879e30ce531868a782797fd625757468761d14281d2556ab56c2f7172f8d930bd5b5d126c512c1dd6bf0bdb51ee4468ca8e79da
+MISC ChangeLog 3078 SHA256 3357bb5137f75012bcf0db915a7ceab4ce8c369d30e5393534ab110df406eca4 SHA512 2bcf65a4a771ea47e685da66f09d2b4e6835a28dcebc5f4816730e9e18bc97722e24c736ec8feeb08932004f7138a42df6d964d6bc23c7374e809921bfde84ed WHIRLPOOL ee60694d162867c90874d58935c353d18f4e7ec48148540babb513886c48cece823a76c8b85a979b83b5f4ba438ae8f4c63b6ee6583d473d7f28a3f7994b44ed
+MISC ChangeLog-2015 591 SHA256 62aeb1f9f9a5989315821e955a532b92124fc2d9a53a2e5bc1ffd6ba4536ef86 SHA512 ad61ed55c6390200fd296a95c8ab432bca47a004e4e42823daaaa63c7ccea152cd9e31ea4ed2b3c781b247b24e9ac3196e72f8a2940db3006d4c38046005c426 WHIRLPOOL 03001b0e8494ac342fba61a881527130a0c007677492d1ad3691eab17498d8857b1a24a10e2febe25175c68ddaf8e6e7fd9d01a5f6ddcc72fab2da507ac017bd
+MISC metadata.xml 472 SHA256 195a994bd3fb0c338c586ebb2be8f0a9e4c1338c3872e976b284af86e560f163 SHA512 24db5d6bf03a85cf0b7b246bb2e8472486bf457d284e1f5fa716e09d376e72836bacd0fe9041b93889e2f98af6865ed15481973874e1f93386b6fa71eeef8ff5 WHIRLPOOL beef07797c7d1a72d56aedd21a8b7938eef4eeacd9a836717e47919c494068ae30f5bafb0b3cfcdf9af0b2d79664e46dfd632b6e13d1a25ce94dd5a829b708f1
diff --git a/sci-geosciences/opencpn-plugin-weatherfax/metadata.xml b/sci-geosciences/opencpn-plugin-weatherfax/metadata.xml
new file mode 100644
index 000000000000..876385098e23
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weatherfax/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">seandepagnier/weatherfax_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-1.3-r1.ebuild b/sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-1.3-r1.ebuild
new file mode 100644
index 000000000000..551c95334f6d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-1.3-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="weatherfax_pi"
+
+DESCRIPTION="Weatherfax Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-9999.ebuild b/sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-9999.ebuild
new file mode 100644
index 000000000000..2551edd07cf2
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-weatherfax/opencpn-plugin-weatherfax-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+MY_PN="weatherfax_pi"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/seandepagnier/${MY_PN}.git"
+ inherit git-r3 cmake-utils wxwidgets
+ KEYWORDS=""
+else
+ SRC_URI="
+ https://github.com/seandepagnier/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ "
+ inherit cmake-utils wxwidgets
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Weatherfax Plugin for OpenCPN"
+HOMEPAGE="https://github.com/seandepagnier/weatherfax_pi"
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ x11-libs/wxGTK:${WX_GTK_VER}
+ >=sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugin-wmm/Manifest b/sci-geosciences/opencpn-plugin-wmm/Manifest
new file mode 100644
index 000000000000..c0be36bbeae1
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-wmm/Manifest
@@ -0,0 +1,5 @@
+DIST opencpn-plugin-wmm-1.0.tar.gz 3532763 SHA256 3c5cc4b9caeec766dc00cb1ca959cfb2775e93c4a4db2a33c678edaffa6e0e75 SHA512 97c577c02dcbb913be45a1438d3d9a974a81720594cc3a6f7757c1e7518d04051c02274acdad0bd8eee08fac94e1923390440f515dacb3b213547d9e93cb0a4f WHIRLPOOL 33bcf61b9d3eb01429788f31ef0760b7830b0c5f7eba7872f28374c6b3fa51464d76fa1db28b4ccbf747c2316a31975913727df61118f6604d35fedf0cfdcdf5
+EBUILD opencpn-plugin-wmm-1.0-r1.ebuild 670 SHA256 4128724ddb857ad38edb31aa74e92c6d566bb7bbf9dabcae37d97153d25e2878 SHA512 c726ebceee7e9c97dd2d95374f3b3d8c46c407305d32c1437ce81711d63d6c39487d6b197362767e268d9b243cb6e5cac81f10127bfe52a90604dbb4f044b18a WHIRLPOOL 6174f99173ff7957d7a3660e3b2fe08aae647010b216b5882a789b8ffe1fb40a0f0d660e16cc356e6e57ee19b64616124510cf6b0c8ad36f0b55eecd4b59dbc5
+MISC ChangeLog 2830 SHA256 56ef862b5b006332103edcf7ec90e833a1b6defc3140f6b6bcc456d8fd8cc0a1 SHA512 3db362cf9581eae7f37e58f0790a592e8c8ac3b871de8535c7c67efc3fe8d5ed52f4b38ae045dc177111eeba184eebf634dc1fd6fc21fd16115f67edc7586ee6 WHIRLPOOL 813c71674b47150be7a078052c75a10aef8c964ca2b179a6abe3ffbe349f4aa78feafc0db5c4ad37139441bced454e09dafbf10ec6e171170bbce21f48a4e33b
+MISC ChangeLog-2015 549 SHA256 8cd4d77a4ec982b6f4f88b4902e4c025909476798ba14c4872ff2fa181b0f96a SHA512 71e1faba599c73e5489d8f6bd9a25ed4f992f0a9841ed98ff878a15fb69842c62f22e82b7fb4edbb55902106b8fee2d3070516c40f25a11848047731585482f4 WHIRLPOOL f1748acf28716c6b24a33dc30a31fe430340883e4e5e724f0799855f0f621977e957b27ed872abc3096e39746179467627e1796272a8ddba6c4a274f5eaa30d1
+MISC metadata.xml 457 SHA256 d5bd24ea72682b82b5754b9db104e702a1831ab04dd6e546650264f9f8995c20 SHA512 2278dbdab235a287567c7d1819029cf8f79e1c31aa76fa5604d470dfce619d52b1b7d09a42bce8dc3d91a043508df07660fe08e2b245961858c1d76fc86c981a WHIRLPOOL 80bc467120968de691f37abb73ae2a5cb06d1ca7e09d97e5c354ba3c47b8d5f20bb1a0964f65e8a78f8fbb6af182cc480ec7a866f613c2c870f7a8172e756346
diff --git a/sci-geosciences/opencpn-plugin-wmm/metadata.xml b/sci-geosciences/opencpn-plugin-wmm/metadata.xml
new file mode 100644
index 000000000000..bcbd16abcb2d
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-wmm/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nohal/wmm_pi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugin-wmm/opencpn-plugin-wmm-1.0-r1.ebuild b/sci-geosciences/opencpn-plugin-wmm/opencpn-plugin-wmm-1.0-r1.ebuild
new file mode 100644
index 000000000000..96e066bb8b69
--- /dev/null
+++ b/sci-geosciences/opencpn-plugin-wmm/opencpn-plugin-wmm-1.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+MY_PN="wmm_pi"
+
+DESCRIPTION="World Magnetic Model Plugin for OpenCPN"
+HOMEPAGE="http://opencpn.org/ocpn/downloadplugins"
+SRC_URI="https://github.com/nohal/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-4.0.0
+ <sci-geosciences/opencpn-4.2.0
+ sys-devel/gettext
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ need-wxwidgets unicode
+ cmake-utils_src_prepare
+}
diff --git a/sci-geosciences/opencpn-plugins-meta/Manifest b/sci-geosciences/opencpn-plugins-meta/Manifest
new file mode 100644
index 000000000000..9d9916ea8165
--- /dev/null
+++ b/sci-geosciences/opencpn-plugins-meta/Manifest
@@ -0,0 +1,3 @@
+EBUILD opencpn-plugins-meta-4.0.0.ebuild 741 SHA256 393989df3d65853253c2542f787a64753ee561448614ce19c04a7add2ed603ee SHA512 c21ee14259e3ce06f51acfc36a120f26f2e51283d8e06c2c10c77128fb99a4067b29a6282697c40d3308c558bdaa9e2c51d2e69e94cc3d3628b665254f6d02b9 WHIRLPOOL 410bd02fa28062db71c61ba50b743aa2088cf467bc8ad5dbbd1cbbdad5e40717e973f933e9871a1f48c1f996e9b8d65b7cdea643107dc1a249cd9bbb18b3e4a1
+EBUILD opencpn-plugins-meta-4.2.0-r1.ebuild 1280 SHA256 9fbf90dad0b679881568cfc9ef122dd1f6ff9e5ccb8567f9a21af4373269b5f4 SHA512 2c4e508b6a4df64eb40c9d2ab0e7218caeb24c07280d59091a2f0c3798a99d800dceb780287aad63cc3b1e57eb46b00c74089fb10aa1b30f57b1564f1a584c63 WHIRLPOOL a13029c98b4ada6d5d7ec7c931c53870b9e90c1dde77b4a85b74730a682a91feb70dca626824b1add111b1060e3c78dc7caab011efa74a86b2978fce8dbdc4ec
+MISC metadata.xml 380 SHA256 46326e56491bff17eabea5c22320097e4c3a429214faf7bae47b2877c8caf68a SHA512 8e6413ba8a2f51d21bd883f097825a3e86a410d222496242fc2b6da34ee8d759c473e1c1c58ee93c90b0d88db2cfd6e1f8c00fa29bd8a1637a2026142b9b18ab WHIRLPOOL bee5dccf43c5f39d0151f81c2766abf1daae46c321b345f8b1fec21bba5d62e0f8ea3bff8834947ed695806147d8d3945b9c7555bdd34ef531edd063f2449fa4
diff --git a/sci-geosciences/opencpn-plugins-meta/metadata.xml b/sci-geosciences/opencpn-plugins-meta/metadata.xml
new file mode 100644
index 000000000000..49f32f114fc1
--- /dev/null
+++ b/sci-geosciences/opencpn-plugins-meta/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.0.0.ebuild b/sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.0.0.ebuild
new file mode 100644
index 000000000000..ce300f5720fa
--- /dev/null
+++ b/sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.0.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Meta ebuild to pull in opencpn plugins"
+HOMEPAGE="https://www.gentoo.org"
+
+LICENSE="metapackage"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ ~sci-geosciences/opencpn-${PV}
+ ~sci-geosciences/opencpn-plugin-br24radar-1.1
+ ~sci-geosciences/opencpn-plugin-climatology-1.0
+ ~sci-geosciences/opencpn-plugin-launcher-1.0
+ ~sci-geosciences/opencpn-plugin-logbookkonni-1.2018
+ ~sci-geosciences/opencpn-plugin-objsearch-0.5.1
+ ~sci-geosciences/opencpn-plugin-ocpndebugger-1.0
+ ~sci-geosciences/opencpn-plugin-statusbar-0.5
+ ~sci-geosciences/opencpn-plugin-weatherfax-1.3
+ ~sci-geosciences/opencpn-plugin-wmm-1.0
+"
diff --git a/sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.2.0-r1.ebuild b/sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.2.0-r1.ebuild
new file mode 100644
index 000000000000..358a4940b362
--- /dev/null
+++ b/sci-geosciences/opencpn-plugins-meta/opencpn-plugins-meta-4.2.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Meta ebuild to pull in opencpn plugins"
+HOMEPAGE="https://www.gentoo.org"
+
+LICENSE="metapackage"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=sci-geosciences/opencpn-${PV}
+ >=sci-geosciences/opencpn-plugin-br24radar-1.31
+ >=sci-geosciences/opencpn-plugin-dr-1.1
+ >=sci-geosciences/opencpn-plugin-findit-1.1007
+ >=sci-geosciences/opencpn-plugin-gxradar-1.1
+ >=sci-geosciences/opencpn-plugin-iacfleet-0.8
+ >=sci-geosciences/opencpn-plugin-launcher-1.1
+ >=sci-geosciences/opencpn-plugin-logbookkonni-1.3002
+ >=sci-geosciences/opencpn-plugin-objsearch-0.7
+ >=sci-geosciences/opencpn-plugin-ocpn_draw-1.0.12
+ >=sci-geosciences/opencpn-plugin-ocpndebugger-1.2
+ >=sci-geosciences/opencpn-plugin-otcurrent-1.2
+ >=sci-geosciences/opencpn-plugin-polar-1.1007
+ >=sci-geosciences/opencpn-plugin-radar-0.98
+ >=sci-geosciences/opencpn-plugin-route-1.2
+ >=sci-geosciences/opencpn-plugin-squiddio-0.7
+ >=sci-geosciences/opencpn-plugin-watchdog-1.9.051
+ >=sci-geosciences/opencpn-plugin-weather_routing-1.10.1
+ !~sci-geosciences/opencpn-plugin-climatology-1.0
+ !~sci-geosciences/opencpn-plugin-statusbar-0.5
+ !~sci-geosciences/opencpn-plugin-weatherfax-1.3
+"
diff --git a/sci-geosciences/opencpn/Manifest b/sci-geosciences/opencpn/Manifest
new file mode 100644
index 000000000000..bc1495cf7331
--- /dev/null
+++ b/sci-geosciences/opencpn/Manifest
@@ -0,0 +1,15 @@
+DIST opencpn-4.0.0.tar.gz 40095375 SHA256 b1930dc74a59744327496b0ec23b58836fa0643cb9dd1d5c5b7f1a8221bb801e SHA512 84e20d5a5496778096f9cbce3507475ae6c11619eb5cc19e928647e360980e2ac868d1f45712bfc8da3607d4fa3822b6672b8844a914b387aeeda7bf645668f0 WHIRLPOOL f1ee241203bccc32816e970c61a896f317f747c6c9701e2a15140724f75c8bca802df942e420d126f88ff9adae9c1634155e4e2b482f060e7955fb0061da82f3
+DIST opencpn-4.2.0.tar.gz 40621320 SHA256 319b6232adae6017fc0575abdd94658e6e406a894644937c53744ea0b1fefb9f SHA512 86bc1b29482b41ff615a8904017279a0e42785c7b74aa4f2b6195a388943408fb85802253dead1144218900cf7aa163bfe928ca3aaa86ca32d04979a377a80bf WHIRLPOOL 6db7594d9113eff72e889b52e168b2b8095248b4d4e710f0d420d1628f08dfe5f277757319201d092089fe9f7ea3a6a60c61c8ca72d4a04e1b34c4ee9a4ad97e
+DIST opencpn-4.4.0.tar.gz 40840928 SHA256 577ae0fa44d31840e268b22c50b78130695fdfc796420514c93b238d5bde39b9 SHA512 ebe4c3518d2addbbba36cec78719cb1c853969923e7ade4f6df78a8520224fef9f421b809f573cfa770acc9b9d31a90341d6114edc02a307682d0fca5c62b26b WHIRLPOOL a5bd0c82731bf6f498d8bf3a4b558e8563416e9f98d4d757e507ec90267988319cbe3792b1cb9846cbf2917acab0509f60c58f4c95b0452aa2dfa5df9cefeaf2
+DIST opencpn-4.6.1.tar.gz 52852694 SHA256 9ac2bca86fb41c56225a08f67c9d03b2aebf613170b53fee0693fc9f3d82b430 SHA512 493c4ba35011b0d69633a6c0653b23d02e50d1ca694d820b0bcaf4a96a8b7e69364ee7412a0a7c13cc1c2f1fd9bcc4f2b1b13a0b3c04e438918c77ccea78e7ab WHIRLPOOL 148372be0e3efdce4ac30fcb85f5547f4c00339f279874a041ebce963ba63c565319c783c525d79401a19fdc4e83df429777c12a58049f5b6035fc73e97dc8b9
+DIST opencpn-4.8.0.tar.gz 53008393 SHA256 c2d6bbded28c13151fa2b6acb7e50938e7072c05a14a0ec0f0075c1ad8043c2b SHA512 1f1ea666566e98ee3af24423985119c1b14e184d4310dbc588b00065878b1dcb8fe73a7331e4ad3f75a905774fff187203fb31253faea7238f3d783a6729ad75 WHIRLPOOL 6350269b95605774911eb54c175f79ec2b4494261e19ddf42fa694791408dcb79078d30ef1fbf77e77122545c272d49205a9ae419a70aa53c3c2f7a4afc72980
+DIST opencpn-doc_4.0.0.orig.tar.xz 14732480 SHA256 3bc27c19f1b21e4cff69e594081cac765c1ff975374c02bc4fb703cb02a4cd92 SHA512 fb80e4afb759c99cf24b498c454bc492aa0b3c02443424b0f39910e1a494670093ac5ee19cd40a8a0abb345e18b7496b8a70c160bed5215af6bcee07e145ee36 WHIRLPOOL 49e51ab2555513fb4e7436d326c89a1e4b707be263bb5fb7a866bd79c1053c8078d932a39664de5701b12ae712db9d0fb9147002f40a1d9c3af1674d61bf7818
+DIST opencpn-doc_4.1.1329.1.orig.tar.xz 8739872 SHA256 4de69d7a7c83d56301105052bdb1d9191a2a590aa3b44e50b6173b1b01ac4a78 SHA512 652a932edbf8a6f05fd3c64ddf566f817405cf44697035f58ddbf1a99bf92269b7fd9ee83b7ee065aa60db15b6030d8c5c9a4a4001049ed2def9962bc51746c2 WHIRLPOOL d3f8af26116986cc746d145f17f7a9bab91f9c5f08b4e5aee04086d34c161cbe70025c73a9a2eb366dd50752584695968d701c2ad71e4926860c14a0666b0b9c
+EBUILD opencpn-4.0.0-r1.ebuild 1559 SHA256 a08d48747585ae06a3855a07356d52cd0ce018cb8e92a2ad5548e315b2302b9e SHA512 40f92d777ef87f47266c927496d702893797565fc4e99f277c2d869e688bf97c5c7fec6b89312e89e51c1597374fcfcdc59b7a6e98d31afa3b6dc82080c7b78e WHIRLPOOL a7a99f627ba037638a40691e73c71c645a52df72fe033bb5dfb06eab43b5c156d96544e3b7fbf29a1b82fadecb0b16aa3b395534297185e5fcff7763808b4706
+EBUILD opencpn-4.2.0.ebuild 1232 SHA256 b637d7af8fb2e442edbb658d11dc8b746623c4337e1bb475b24d41e82bc4bc4d SHA512 8622725f142b2702217687e2c2426800fdb2a2f1a064747e4be7da19cdd948baf5bd3c03d0d2b15cec3f9584050ebb86b6df584671a2794e505ca938623d620f WHIRLPOOL f14a56745e3b7850facb2bc6b2f0119475a52def75ec1a6377aee735ca7c8daca0d3c7da7c288058f45ce89f1ad1b7ca93abe20c69ada444df952219dcf21b9c
+EBUILD opencpn-4.4.0.ebuild 1232 SHA256 b637d7af8fb2e442edbb658d11dc8b746623c4337e1bb475b24d41e82bc4bc4d SHA512 8622725f142b2702217687e2c2426800fdb2a2f1a064747e4be7da19cdd948baf5bd3c03d0d2b15cec3f9584050ebb86b6df584671a2794e505ca938623d620f WHIRLPOOL f14a56745e3b7850facb2bc6b2f0119475a52def75ec1a6377aee735ca7c8daca0d3c7da7c288058f45ce89f1ad1b7ca93abe20c69ada444df952219dcf21b9c
+EBUILD opencpn-4.6.1.ebuild 1276 SHA256 a9fd4bcee67abef69fcf1834a12ff7c76ea953147b4644dbaa8d5f16843f4f91 SHA512 316875d06bfbe730ecb881d1147cd975a35cf39d82e479b27e3591ed69e796fe5b75b32bb050f09ee43fc8a85de312f53186f732c344216aa77d141ee35d3d31 WHIRLPOOL 88d22ff98ed8518dfa43130689dddbe2e388f63154afc93f145f1ac4c63f26cbe8713668cb7f556721601ce7bff2e0002490c9f45b206f12475299bbbef00981
+EBUILD opencpn-4.8.0-r1.ebuild 1312 SHA256 32ab082b690c5f3fecab528c04cafb7c68b3feb610d54ffccf95d160c0f7a1f9 SHA512 6eb3a4c7d3679c2aa77c0652f4a88aeea42d60873ad3d64270770a3480adc1657a4f8f4ce24b85d5bba7398958775b68607bfa44b93fcf22455036c4d769e016 WHIRLPOOL 480d9b5b1acba254824a6056e35c4d06f2263f261debd909fc3562acd3390668bdd4f1098dc6602cdf3fb2df4d9ba6d36e14ad27976dbb100e875ab41644d5cb
+MISC ChangeLog 3913 SHA256 ee87bdedd25e916b19ced304ffb933b255992258ecda3c8f88553f241b3198d5 SHA512 5ff0ca2107b6343d5f0369b59d7ffc2e95babb0e3ade3ad26c37ded8972d2292504fde2d62db0257a3d42f73539de775a52e2f18af1f4e0b7d982da55bc7384f WHIRLPOOL 78a7b994f6c22584b3d12dc714dd2283a00720b560703183893980c3084fad82085d5f8b3e0931712d96a1cfbf28e2c20c2c1a7b7fb9ec605dca34033d7078b8
+MISC ChangeLog-2015 2375 SHA256 6ab59446861c4583ef0a0118784119cba12526a2a9eb69b83ba2f309bce2a3e2 SHA512 f7a5cc33384cd88f3fb8a0c10aee17932f98874059d62eba52ce25f02c8da64fa4370704c6da9dbebdedb7e6006769713f530324a95cddc66055b9cb6a8c5916 WHIRLPOOL 53596c45a2d8e7e701498fccd154789738e6437bddbf6b09ff749bd1735decc2181958079ad59ac69fcac6a1cc8a677ebd29b21c2182b62b1f29f2dccb4ef907
+MISC metadata.xml 531 SHA256 be7adad6082ab339d99ca1c90870ad389fcdb84cbd523064e7dd5ba8b146b8b9 SHA512 4315299e7a239d5bdc7edfb6c377217908372e59fe187fe071948fb594100b29bc85116fa458a00233411f47d22780d9c1efeec07cbda6bc3b404a94cab35e3f WHIRLPOOL d7ba37f41be6c986936905eb52acd12f19d958be6cf11db032b7bbad874f81ad843a4a601abb1a988c83407e78767ea54e28010305dcf9603639196a84a69ed3
diff --git a/sci-geosciences/opencpn/metadata.xml b/sci-geosciences/opencpn/metadata.xml
new file mode 100644
index 000000000000..5e5fb62ddabd
--- /dev/null
+++ b/sci-geosciences/opencpn/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">OpenCPN/OpenCPN</remote-id>
+ <remote-id type="launchpad">~opencpn</remote-id>
+ <remote-id type="sourceforge">opencpn</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild b/sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild
new file mode 100644
index 000000000000..c8839f8c8459
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# TODO: add plugins
+
+## wmm_pi, World Magnetic Model (https://github.com/nohal/wmm_pi, GPL-2+)
+#WMM_PLUGIN_PV="1.0"
+#WMM_PLUGIN_PN="wmm_pi"
+#WMM_PLUGIN_P="${WMM_PLUGIN_PN}-${WMM_PLUGIN_PV}"
+#WMM_PLUGIN_URI="https://github.com/nohal/${WMM_PLUGIN_PN}/archive/${WMM_PLUGIN_PN}-v${WMM_PLUGIN_PV}.tar.gz"
+#WMM_PLUGIN_WD="${WORKDIR}/plugins/${WMM_PLUGIN_PN}"
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="http://opencpn.org/"
+SRC_URI="https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz
+doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_${PV}.orig.tar.xz )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gps opengl"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/portaudio
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ gps? ( >=sci-geosciences/gpsd-2.96-r1 )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/OpenCPN-${PV}"
+
+src_configure() {
+ need-wxwidgets unicode
+ local mycmakeargs=(
+ $(cmake-utils_use_use gps GPSD)
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ dohtml -r "${S}"/../${PN}/doc/*
+ fi
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ if use doc; then
+ einfo "Documentation is available at file:///usr/share/doc/${P}/html/help_en_US.html"
+ fi
+}
diff --git a/sci-geosciences/opencpn/opencpn-4.2.0.ebuild b/sci-geosciences/opencpn/opencpn-4.2.0.ebuild
new file mode 100644
index 000000000000..5af2cb3a720e
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-4.2.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="http://opencpn.org/"
+SRC_URI="https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz
+doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_4.0.0.orig.tar.xz )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gps opengl"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/portaudio
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ gps? ( sci-geosciences/gpsd )
+ !sci-geosciences/opencpn-plugin-wmm
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/OpenCPN-${PV}"
+
+src_configure() {
+ need-wxwidgets unicode
+ local mycmakeargs=(
+ $(cmake-utils_use_use gps GPSD)
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ dohtml -r "${S}"/../${PN}/doc/*
+ fi
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ if use doc; then
+ einfo "Documentation is available at file:///usr/share/doc/${P}/html/help_en_US.html"
+ fi
+}
diff --git a/sci-geosciences/opencpn/opencpn-4.4.0.ebuild b/sci-geosciences/opencpn/opencpn-4.4.0.ebuild
new file mode 100644
index 000000000000..5af2cb3a720e
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-4.4.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="http://opencpn.org/"
+SRC_URI="https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz
+doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_4.0.0.orig.tar.xz )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gps opengl"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/portaudio
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ gps? ( sci-geosciences/gpsd )
+ !sci-geosciences/opencpn-plugin-wmm
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/OpenCPN-${PV}"
+
+src_configure() {
+ need-wxwidgets unicode
+ local mycmakeargs=(
+ $(cmake-utils_use_use gps GPSD)
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ dohtml -r "${S}"/../${PN}/doc/*
+ fi
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ if use doc; then
+ einfo "Documentation is available at file:///usr/share/doc/${P}/html/help_en_US.html"
+ fi
+}
diff --git a/sci-geosciences/opencpn/opencpn-4.6.1.ebuild b/sci-geosciences/opencpn/opencpn-4.6.1.ebuild
new file mode 100644
index 000000000000..7532a7b6cc5c
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-4.6.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="http://opencpn.org/"
+SRC_URI="https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz
+doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_4.0.0.orig.tar.xz )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gps opengl"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/portaudio
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ gps? ( sci-geosciences/gpsd )
+ !sci-geosciences/opencpn-plugin-wmm
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/OpenCPN-${PV}"
+
+src_configure() {
+ need-wxwidgets unicode
+ local mycmakeargs=(
+ $(cmake-utils_use_use gps GPSD)
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ -DBUNDLE_GSHHS=CRUDE
+ -DBUNDLE_TCDATA=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ dohtml -r "${S}"/../${PN}/doc/*
+ fi
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ if use doc; then
+ einfo "Documentation is available at file:///usr/share/doc/${P}/html/help_en_US.html"
+ fi
+}
diff --git a/sci-geosciences/opencpn/opencpn-4.8.0-r1.ebuild b/sci-geosciences/opencpn/opencpn-4.8.0-r1.ebuild
new file mode 100644
index 000000000000..b5246e347de4
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-4.8.0-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+inherit cmake-utils wxwidgets
+
+DOC_VERSION="4.1.1329.1"
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="http://opencpn.org/"
+SRC_URI="https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz
+doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_${DOC_VERSION}.orig.tar.xz )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gps opengl"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/portaudio
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ gps? ( sci-geosciences/gpsd )
+ !sci-geosciences/opencpn-plugin-wmm
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/OpenCPN-${PV}"
+
+src_configure() {
+ need-wxwidgets unicode
+ local mycmakeargs=(
+ $(cmake-utils_use_use gps GPSD)
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ -DBUNDLE_GSHHS=CRUDE
+ -DBUNDLE_TCDATA=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ dohtml -r "${S}"/../${PN}/doc/*
+ fi
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ if use doc; then
+ einfo "Documentation is available at file:///usr/share/doc/${PF}/html/help_en_US.html"
+ fi
+}
diff --git a/sci-geosciences/osm-gps-map/Manifest b/sci-geosciences/osm-gps-map/Manifest
new file mode 100644
index 000000000000..64adcba72922
--- /dev/null
+++ b/sci-geosciences/osm-gps-map/Manifest
@@ -0,0 +1,7 @@
+AUX osm-gps-map-1.1.0-gtk-doc-module.patch 392 SHA256 01d469dee7dd33ccf47e53551adf8db3caa5e69879181a3f1ecaa6da3486bef7 SHA512 e49ab51ed248a2e05130bb7c7774c486a71af46207e855ad95d6373d3a6859bd52d56cf7957a3b16f5d65114697f27aff1d3a18a398ea846b77d25c35752c404 WHIRLPOOL 2243474b2a19dee7a043aa40063fa49cd114017ff1516e0e8213e6bcf9c114b830b824ef611a0a61b9a526c76846eacfa69b479fc8355aafbc2917b31f4ed962
+AUX osm-gps-map-1.1.0-no-maintainer-mode.patch 1048 SHA256 a684bb27e238d6de264ff21e9de205463ee85cb5fe1e27d6b35b85c830e28aac SHA512 e6cd05ca74d77851b4b40ec167bad20f1b06840378ef93f4f961fcf795212d5f0f5ae4198bd345143e0eb0418c4bfd9e59d62b69936ae68cccb24fb84d9f87fa WHIRLPOOL aaa2e5f88994cc117040b54385ae360646780c10f59ba88e9463921b58a4dbc61129d12f2d93759c4834c0fcb08a27c278b93c747faf021c63b7a9ccebd639d1
+DIST osm-gps-map-1.1.0.tar.gz 440480 SHA256 8f2ff865ed9ed9786cc5373c37b341b876958416139d0065ebb785cf88d33586 SHA512 74924e5caa0b2bac822f678236d94203b34d9af1dce24cfcd44e1fb9f7551558137dd02b35ca970e36472748acfd611c6251ff5c52d998bfaffccb9821cc0fe0 WHIRLPOOL 1fa49ec60bc999fdd3f03171f2383528975590938f63128bfa4aac9cd23e2f0d9085ab0574bba7cf06227e42b8b982463417af80a7b09f2f7be228adf279e3f6
+EBUILD osm-gps-map-1.1.0.ebuild 932 SHA256 73177778227d97afa3c510714d90d38abf41e0858497160ca043c4bb31d28365 SHA512 3dba4655d7690b8a14950d97740d641e0fa761e3874cd66aa00034c43f65156624836213f13ea73e081c563c3f2a2d852b828180d0fbb0c808230dc002354883 WHIRLPOOL 57a87c17718da35b2ce3c2a7d024326b89f83e5bb7f658ed08aabda511a59c0dfb64bb588b6b5a4d14b3917b7f1d3e4057f7bf520fed755fe810d2a78752d355
+MISC ChangeLog 5924 SHA256 3d273a2bebecf5133d135ab3c073d22027185376474a34a831e891937cdbc5f0 SHA512 060aa708d252a1840cbe0b1bf73cbcbbba375edae783d25510bd09c58a5c0ab7db47282a6366c95001130044eccc43d5db6d3f18890b9d4e653d90e2f59781fe WHIRLPOOL 1f6ffbb36da0c831f7ba4126f539c485d0cb155d24d40f67667c36875edae3a84096434c901e3bee07ebaba4b08e1e8acfa0a78062edd4746b1a7f119fbeb929
+MISC ChangeLog-2015 2124 SHA256 3445664ff8e830f22eb30dbf87726361ca8c970a6a8b56325bbefa9300936d44 SHA512 1d44b91c06d5836003235aa4f9767156c5d163eca3ba498adc25d4a13e2136922f21b2fa7c49dfe90d76bc9034445c9a3b89cbce7a848e08a5c4db4c13024e9f WHIRLPOOL fa26f28b9df3e41f108afeb5e19a90950dfded5aa5708bd8db327bd105394613ff1abc41938c2fa7ff34a8db0a760cb5a2f0391146e6ca86e89ee1f9b64690f4
+MISC metadata.xml 327 SHA256 2c5b9dcb8cb71e72a279422a75cf7afc0701970d0f90ecad8594673473139042 SHA512 67dd8500028be31b9bbae47ea255981f82762bc6a1c2a98b1d76c04e09e3bd794bdcac589e09c9158425e9ed8500a2d8d02d5add82e5d269848ca19b4fd299ea WHIRLPOOL 394b11e774f6cdf241385f50be29490f7c3ad27940e90a11bc39d04b270afa7b27c68971942bcd59313dc035f23f69d11894e057ea2aff0430d431edc3252f08
diff --git a/sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-gtk-doc-module.patch b/sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-gtk-doc-module.patch
new file mode 100644
index 000000000000..9e944cbe07d2
--- /dev/null
+++ b/sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-gtk-doc-module.patch
@@ -0,0 +1,11 @@
+--- a/docs/reference/Makefile.am 2016-08-13 23:05:38.521053367 +0000
++++ b/docs/reference/Makefile.am 2016-08-13 23:14:28.832053304 +0000
+@@ -9,7 +9,7 @@
+ # of using the various options.
+
+ # The name of the module, e.g. 'glib'.
+-DOC_MODULE=libosmgpsmap
++DOC_MODULE=libosmgpsmap-1.0
+
+ # The top-level SGML file. You can change this if you want to.
+ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
diff --git a/sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-no-maintainer-mode.patch b/sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-no-maintainer-mode.patch
new file mode 100644
index 000000000000..2120fb6d2738
--- /dev/null
+++ b/sci-geosciences/osm-gps-map/files/osm-gps-map-1.1.0-no-maintainer-mode.patch
@@ -0,0 +1,30 @@
+--- a/Makefile.am 2015-11-19 22:49:55.000000000 +0000
++++ b/Makefile.am 2016-08-10 21:25:53.154107223 +0000
+@@ -18,27 +18,3 @@
+
+ DISTCLEANFILES = gtk-doc.make
+
+-# ChangeLog generation from nautils
+-distclean-local:
+- if test "$(srcdir)" = "."; then :; else \
+- rm -f ChangeLog; \
+- fi
+-
+-ChangeLog:
+- $(AM_V_GEN)if test -d "$(srcdir)/.git"; then \
+- (GIT_DIR=$(top_srcdir)/.git ./missing --run git log 0.7.3.. --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \
+- && mv -f $@.tmp $@ \
+- || ($(RM) $@.tmp; \
+- echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+- (test -f $@ || echo git-log is required to generate this file >> $@)); \
+- else \
+- test -f $@ || \
+- (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+- echo A git checkout and git-log is required to generate this file >> $@); \
+- fi
+-
+-release: dist
+- scp @PACKAGE@-@VERSION@.tar.gz root@greenbirdsystems.com:/var/www/johnstowers.co.nz/files/osm-gps-map/
+-
+-.PHONY: ChangeLog
+-
diff --git a/sci-geosciences/osm-gps-map/metadata.xml b/sci-geosciences/osm-gps-map/metadata.xml
new file mode 100644
index 000000000000..fb62bce3d4d6
--- /dev/null
+++ b/sci-geosciences/osm-gps-map/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nzjrs/osm-gps-map</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/osm-gps-map/osm-gps-map-1.1.0.ebuild b/sci-geosciences/osm-gps-map/osm-gps-map-1.1.0.ebuild
new file mode 100644
index 000000000000..fda2bd508a4f
--- /dev/null
+++ b/sci-geosciences/osm-gps-map/osm-gps-map-1.1.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools gnome2
+
+DESCRIPTION="A GTK+ widget for displaying OpenStreetMap tiles"
+HOMEPAGE="http://nzjrs.github.io/osm-gps-map/"
+SRC_URI="https://github.com/nzjrs/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="static-libs"
+
+RDEPEND="
+ >=dev-libs/glib-2.16.0:2
+ >=net-libs/libsoup-2.4.0:2.4
+ >=x11-libs/cairo-1.8.0
+ >=x11-libs/gtk+-3.0:3[introspection]
+ dev-libs/gobject-introspection"
+
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ gnome-base/gnome-common:3
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gtk-doc-module.patch"
+ "${FILESDIR}/${P}-no-maintainer-mode.patch"
+)
+
+src_prepare() {
+ gnome2_src_prepare
+ AT_NOELIBTOOLIZE=yes eautoreconf
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --docdir=/usr/share/doc/${PF} \
+ $(use_enable static-libs static)
+}
diff --git a/sci-geosciences/osm2pgsql/Manifest b/sci-geosciences/osm2pgsql/Manifest
new file mode 100644
index 000000000000..7596a8301ca5
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/Manifest
@@ -0,0 +1,6 @@
+DIST osm2pgsql-0.92.0.tar.gz 1364481 SHA256 b741cfdf6489fd5def721f75a9558b8cda53165dda7ca9548fcc5b43e163ee77 SHA512 fc2afd6c06f8a44ce3c75e3a731d48cefa17b406c296208519f598531cb3d9561fcfd09c69bc20753ba7e9440087f3f5d38bfe117ab222d8b10987a8d3165ae8 WHIRLPOOL 4fd5d1c645e173f018618edb9fd49da692637fb59a9ccac13ddbef74003fd776af669f23fa2346bb33be2c7d89e121cc206892d18bd2c123debef032827ee45f
+EBUILD osm2pgsql-0.92.0.ebuild 888 SHA256 de7b51d7669c3323a599a6783f47ec9c936faa0476bf5370f2e446d22a0ff4cf SHA512 3d66ee0d1d00ac20ef30196c62e75487931ff6c46071e1b850a57500f330829bb2f791fc0ad1da4e8ed57bf71c6cf85bafdff427a9e64f67b4f76e7ce1e5c709 WHIRLPOOL 63f6f633dca2f70f602db36f69215639415f1bc8164e2ebe0b95e203045d53243d01f3d3dae027a1692eecf54c9b3b824168509833f23251b5abd77bfb979418
+EBUILD osm2pgsql-99999999.ebuild 812 SHA256 18d35e5106f54e96e17c4463630cc30972fa2a64b548cf51d7ec9e51f1b74a9a SHA512 a70c0352ec4299ddc7df14d5d10c3756d569958ca78789989ee55460e0918315a076157e03477b6054a5614e1f537ba9fe9bd680d5102f49f3135f0c1b5475e1 WHIRLPOOL 2f3445742def125b8d4cbf7aa1173da73008e19bfe829185c6b9db2dc259bfa686bcd5a57074aa6c4cf45da9fca934106bafdffae0e6296780752fe722953eb8
+MISC ChangeLog 4061 SHA256 90b1b4f63d1427fd2c137ed8d0f6a7ecafc975226d72d0d341cb11f13ecbf893 SHA512 02f35b4f1d8eede9fe50094c92dc8d11fd40d444b64f24ddfd5ca0f89a47a9aba4deeca7a474c53547f07b8a8bcfd26e22dcf8c91c813edb5b7b237af0c837d8 WHIRLPOOL 8a479ce07d1e7edff6ba0a1f8ac9e3e56a2ecb663a36c076b28a78b2dc8db2a023e4ac13a763550d2b7a2b818cb7669026e21e693ad583a1f70d639517f95db1
+MISC ChangeLog-2015 3619 SHA256 65fd7d4cbbe85203ecd823bb0ae3edc62d47a10545c159834e4a3e4c2fd2cb04 SHA512 974a3f117501e08e08b9c37930c6d423def1b692996e1b65ce331d9319bf66ef907f13beb05c6b275088f1ccea3c0c84ca8dd207e85625531cf2406361e02fce WHIRLPOOL ddd8f59931c46db64c8ac09dcef786d525c2b3dd104acfb66e93e0ce0dd67e4d2bddebccf8b33f4add04c961b3ba8cc95ac3505993b1f399e53bffe3376adb11
+MISC metadata.xml 793 SHA256 6dcdeebe4ba640da564a83c7d0f7e5a69bb1bdf7816e38bacff916ceec3a981d SHA512 2f76c2c5946179da213b0bf193e89f110c46818ab77a4dea41df1fc78d1527ace8ff81a3887ebb47e6ee0a799e0ee037364e22bfdd5ce72feb765209b6a3fcd6 WHIRLPOOL c5c4d921d7fab478c2ca09de6141d5c904ce0ac14b3c8e52106d701abd1762807207c205f53d752b1dcfc5cf0f13a3a98a1a005031454bbef26f462ea625c154
diff --git a/sci-geosciences/osm2pgsql/metadata.xml b/sci-geosciences/osm2pgsql/metadata.xml
new file mode 100644
index 000000000000..5c2215ccfe52
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>pgsql-bugs@gentoo.org</email>
+ <name>PostgreSQL and Related Package Development</name>
+ </maintainer>
+ <longdescription lang="en">
+ Converts OSM planet.osm data to a PostgreSQL / PostGIS database
+ suitable for specific applications like rendering into map tiles by
+ Mapnik or geocoding with Nominatim.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">openstreetmap/osm2pgsql</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/osm2pgsql/osm2pgsql-0.92.0.ebuild b/sci-geosciences/osm2pgsql/osm2pgsql-0.92.0.ebuild
new file mode 100644
index 000000000000..5baceefb803a
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/osm2pgsql-0.92.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Converts OSM data to SQL and insert into PostgreSQL db"
+HOMEPAGE="https://wiki.openstreetmap.org/wiki/Osm2pgsql https://github.com/openstreetmap/osm2pgsql"
+SRC_URI="https://github.com/openstreetmap/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+lua"
+
+COMMON_DEPEND="
+ app-arch/bzip2
+ dev-db/postgresql:=
+ dev-libs/expat
+ <sci-libs/geos-3.6.0
+ sci-libs/proj
+ sys-libs/zlib
+ lua? ( dev-lang/lua:= )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+"
+RDEPEND="${COMMON_DEPEND}
+ dev-db/postgis
+"
+
+# Tries to connect to local postgres server and other shenanigans
+RESTRICT="test"
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_LUA=$(usex lua)
+ -DBUILD_TESTS=OFF
+ )
+ cmake-utils_src_configure
+}
diff --git a/sci-geosciences/osm2pgsql/osm2pgsql-99999999.ebuild b/sci-geosciences/osm2pgsql/osm2pgsql-99999999.ebuild
new file mode 100644
index 000000000000..44e16db48041
--- /dev/null
+++ b/sci-geosciences/osm2pgsql/osm2pgsql-99999999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils git-r3
+
+EGIT_REPO_URI="https://github.com/openstreetmap/${PN}.git"
+
+DESCRIPTION="Converts OSM planet.osm data to a PostgreSQL/PostGIS database"
+HOMEPAGE="https://wiki.openstreetmap.org/wiki/Osm2pgsql"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="+lua"
+
+COMMON_DEPEND="
+ app-arch/bzip2
+ dev-db/postgresql:=
+ dev-libs/expat
+ sci-libs/proj
+ sys-libs/zlib
+ lua? ( dev-lang/lua:= )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+"
+RDEPEND="${COMMON_DEPEND}
+ dev-db/postgis
+"
+
+# Tries to connect to local postgres server and other shenanigans
+RESTRICT="test"
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_LUA=$(usex lua)
+ -DBUILD_TESTS=OFF
+ )
+ cmake-utils_src_configure
+}
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest
new file mode 100644
index 000000000000..51daa3e89ffa
--- /dev/null
+++ b/sci-geosciences/qgis/Manifest
@@ -0,0 +1,16 @@
+AUX qgis-2.18.12-cmake-lib-suffix.patch 454 SHA256 af1f41155f744165eff63a8ebee61849e99048cb96d8bb89273e3744e5c10e36 SHA512 f6b04bddf4d60d4eec257fb71cf87e15e7a72c34c1016e8eadeb660ebc7079cb8b9104041e4df5e7cbe0e00954ad65ced53b7e19f3f9f7cfbee1b791874ddcd7 WHIRLPOOL f60930ed0fb0010ebaf79d5af41e6124a5eb3cc00e74646743b1afa1738973bbc579a91d60316c2a74a48b07bf6ea13f604fe412fbdba360c5f6ff1687dc1051
+AUX qgis-2.18.12-sip.patch 4471 SHA256 9b8be7b20f20361234b2e648ce65278bac8a39107bb52a1badde828002d7f542 SHA512 df08773c915ee640b6ef81ffdb1553e144f5530934bed3a37230824662fa99de91bcc52475f7232e44df3ebd147abf54f537b6a23b02563a5155c14a7d2cb9a6 WHIRLPOOL fec7021a807b4d0f7fefc17fe8699523c7a1fb5da01a090a6c70004990e192cbcf174fcd089a60edd0d9f135ea6493ade10c012c26ed6dfd5e35078003fe2beb
+AUX qgis-2.18.3-app-icon.patch 450 SHA256 7172158c06f80552e5aa1da9c477ad87416290f166195f5959aa34aa66a6403a SHA512 725874337fe5d9301e481cea7f30b3f804b8277a79170dc64a7c24f131cb875c89e2d60f3d8aacf20fb31f6d1d8f0d4ac1750320ed5a6f0d28a20ac026decf7b WHIRLPOOL 6648c8f5e0648fffdc28413fe8bc3e880fc69bc7b79956fdbeb942e932b5cecd570ac2ed9336c9ba8ba12b6fdbe44ec443d1a5f1d2c47b0bd4b8aaf9af7fbc0d
+AUX qgis-2.18.3-qscintilla-2.10.patch 979 SHA256 4cb5a765f10d7f08bbb992e406705b31619373d3fe07e22f49d339b7b1366d33 SHA512 3a74c41e3a27e4d66dc0b6812e987352daa7ea94e9c287867028716c66ef8ed6b959ec26e2a14c4c0e6f3cd29cbd0c34f9fc32f296292e6af4f37dfaba90862a WHIRLPOOL 24522d9da5f3962910b80a77a49171c9fa6a7e1e02a5098334c54504a85248d9611c708e0c32f9d06b294b0cf764d21b0e1b831eca493859ae3caa4e6960ba7d
+AUX qgis-2.18.3-sip-4.19.1.patch 1375 SHA256 9f64810ec9e7956f1ffc94fe793b3f8acb6510a3e2c79007a8b4effbccfe4603 SHA512 178d2ef9196b950b25a90f5fdf296edbc229b1e071f7106d423ab3ac515f361161b495452b62115663c6a658de2b0dd3bae2a443c34d6d5f40db243ec6bccb91 WHIRLPOOL fb770c3c3a4f7ea81c8289630c98dd0c239ac215ff4612d11a6ffdc2aeeca6faacdacdd0f1e135a9cec65744cc6f11fbedb48b1a2012495668594bcf79b7d59f
+AUX qgis-2.18.3-sip-4.19.patch 9262 SHA256 537a525d35bbf8b87f7f01fa4cf0691a2d0ddc7dbfb677ae8a39f2524de0daa6 SHA512 93b1cad9aabb790071da2790359d9703062ab26b2845463c2b8069c48ab57b569e67b5ed318e3740a5cc3714feaa1b16371d91be6aaaa0d166e2f7629b8326c9 WHIRLPOOL ef07b9949fa74486984dfa52adbe9a301cdcbd3d10b79c57ae50de1237edc85d35b2f8d3c69636d48f6d846b57be0102d94d9a322643908d40bdae8a7181dde8
+AUX qgis-2.18.3-webkit.patch 3421 SHA256 9ca27bb9c9ce3859f6ae0ade56f1914b102d7f055dae5cb34055fb5dc2a684ce SHA512 4ef6dcac0c9c8b6fe58fd3ed2bde8bb04377b39bc53a97dbc83873ebc3cdbcd5f31a046563131628578015e2542a37be334dfa6a2eecdef60094b895fc9ac367 WHIRLPOOL e1ffe2f079891551cac58d1cfce74f34cb8a8885fb172596bf51ee681cbf8fd7c4ea3e4cf3c05614d1fdfdfb62d6bb7346f2492056faf2160b3b70d3deff22c1
+AUX qgis-2.18.6-featuresummary.patch 1009 SHA256 a41a5685947e6941318d68da3e309cca387913844654e9859ad6dd863cbf90fe SHA512 4f271d7fb5b39b49bd06cb6308e82b44088978e2fcc17e453dcdc71655000b91be06e08ce05a373ed45d25472422a7b317c12b19a3a41620df07ea723766b44e WHIRLPOOL 2bb5e0e8ba71c43b52d3ce4309f25cf8ed174d53196803521c393b12a3205b8f06fbe5fbcdb300988840c82b2322b222d626b799020cf516121edc642aedc3d2
+AUX qgis-2.18.6-python.patch 647 SHA256 db3fad5e56c1c83b686aea92828f62b015317bd89d42ea02c6d911c64f75416b SHA512 71d3ab2c1669e76fbfdb5700906c4940f74111e698b19111f148c6e96dd900f9527fc92e6ddbd801318d788f7348ad8ac294fd26e5f7e5ed1bde5bdd6b23e49c WHIRLPOOL f4d2e1cb108e34d012fc5b17ad20dfce1fa8ab99fef9fc9a69f4c40de430701b5b8941354a7a9d07b11bb3bca1644c373e2d40e8174b5b61685fc60d888c93fe
+DIST qgis-2.18.12.tar.bz2 84936155 SHA256 7af709ac86bf7fb3350962beddd273f169ecfa6f3f60d3254c708a26a429023a SHA512 e34dd98d0d0aa5fdf1f980dbc1376c25a9a7ffaa59b1a2eba8423e7f44bc039b547f3f65368178a8c485fa34526dd9fece2e09d9372fed3b9a758f7286b690ea WHIRLPOOL 1b58189ade46b1f3d351939aa0b7fd9629fece8bcf419e967006833cad1aa6d799e036b12a856e92a4e3be6c2a768f693d430dffd5d3c706c84978f5b754fcd2
+DIST qgis_sample_data.tar.gz 13601736 SHA256 a31c54056776e8476e1f959870830f850423645cfb80d88811f3b365c29f2b4a SHA512 5847d7b32e5f75e771adf6b959847024f55b2360c307bd80e5628595fc53f5aaca18adf6cb00fa027a7e7b326c7f72bab58df16674daf20b77c676e163d93f78 WHIRLPOOL fe7746f8a72807742427c6fb70f1453e195be75322d5784adc484ac14b0eae55569dbded7468ea2ba0c34781fe14918e07a5a187dca82bff551c6117f941d7f5
+EBUILD qgis-2.18.12-r100.ebuild 6075 SHA256 d28f574e1c37ac4f4ce5074bc2dd5efc12ccacf222d7a693c7ad60c39a7cb59b SHA512 721ed584321140c52890025c78e9faa32fb867fbe24572e3730c0ba3ef24864ab8c8338faf29ec93abc69dd581a00b319e533e42fb0a3c37435596212c8f2971 WHIRLPOOL bfb1cfefe14eba89f6e8a049aaf372d19514a379325353450f16856b24cbecf6575e64db192778c851c55dd941a3adfb12f8baccdb6f4919195873f83ed6598a
+EBUILD qgis-2.18.12.ebuild 5279 SHA256 e26d5ca8092c603a539ce3d2c40b028c4e6ec7253d619bdb250ccd5c02219c22 SHA512 8118478f8aa8bc7ca5221f48125b6fab899bb8bd4db12da89472fc853f1b0eb8094a51c715e1962970b67462b7ed7939f9a92142b52442fd9d735ab3ce9162a4 WHIRLPOOL 9906af26c34de96a6a8eb539da9dd98f3568d0f64a7b86d621a3f540529a636bd13b48742a3ca7f3c4ac815766b9eaf5003252988f787343b71b8d9855fb8e22
+MISC ChangeLog 5606 SHA256 2194b9ce875fc2c047cd72860eb1102be58bc258fdb2304b3e3b432aabc6e6f6 SHA512 8e9f1a7e76fdd867f6ff55933e5d830ce63a11af198e507ac63398ccbb2d523a8aed5d0bf658fc6a70b2f8e3a67199147afcc5a3ed14875692e2aa765415f0ad WHIRLPOOL 345d823ba23855899e49dc9cc84d14010b0282546cb41904fe0e1752685375409382eb664b96819a0dce6b452a69e8bf93fafa8e53dc3ae34ae5015343f4de15
+MISC ChangeLog-2015 6138 SHA256 b60aea60ba8f8b74f6af622e091a20328543791c9c09a25a0fc81aafbde619ac SHA512 a800fda8303e7cb23248e104b3abe7f3e0504747328cef3bcf59ef42770cc030ef01c0c73fa3f676152eddf6cd72bf570a3beea9936c459806487015a29f1099 WHIRLPOOL eb471fd020db5f343452fd0c2ee1914310d782de5374b5d5c4691b80fdd4a8943ece63717db5cbe619cf7178ddfaef4d97b0d61a3edcfaab0c259aa4143e81d8
+MISC metadata.xml 1105 SHA256 179c61e75a0ca68c842bbb4aae598cd9bd8ed9902eb47459e789eb132d708270 SHA512 d16c2396c35d915e1d284aaa7b59118b9a66284fcd5e8cfef8b5835b88bf75e3a3ede1b6e7d939e403aa212190afc49b51deebc4868bfa38b44d2e6c25150fa4 WHIRLPOOL 1508c63a67b9eff0e6f43b8b7a25c0e5674557edf4c2914ae94d7d2535cd6a200f338b6fffe00059d8a130c22f630f14b57e4768e33b30fceca7dac4688c256b
diff --git a/sci-geosciences/qgis/files/qgis-2.18.12-cmake-lib-suffix.patch b/sci-geosciences/qgis/files/qgis-2.18.12-cmake-lib-suffix.patch
new file mode 100644
index 000000000000..5a1e8fcd9551
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.12-cmake-lib-suffix.patch
@@ -0,0 +1,11 @@
+--- a/cmake/PyQtMacros.cmake 2016-08-26 05:58:37.000000000 -0600
++++ b/cmake/PyQtMacros.cmake 2016-09-21 16:25:55.921411011 -0600
+@@ -42,7 +42,7 @@ MACRO(PYQT_WRAP_UI outfiles )
+ ELSE(WIN32)
+ # TODO osx
+ SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic-wrapper.sh")
+- SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/lib")
++ SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/lib${LIB_SUFFIX}")
+ ENDIF(WIN32)
+
+ FOREACH(it ${ARGN})
diff --git a/sci-geosciences/qgis/files/qgis-2.18.12-sip.patch b/sci-geosciences/qgis/files/qgis-2.18.12-sip.patch
new file mode 100644
index 000000000000..07db9b029bf6
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.12-sip.patch
@@ -0,0 +1,185 @@
+diff --git a/python/core/conversions.sip b/python/core/conversions.sip
+index f07d3ab1db..948821e91e 100644
+--- a/python/core/conversions.sip
++++ b/python/core/conversions.sip
+@@ -2041,3 +2041,178 @@ register_from_qvariant_convertor = (void (*)(FromQVariantConvertorFn))sipImportS
+ register_from_qvariant_convertor(null_from_qvariant_convertor);
+ %End
+ %End
++
++// QList<QVariant> is implemented as a Python list.
++%MappedType QList<QVariant> /TypeHintIn="Sequence[QVariant]", TypeHintOut="List[QVariant]", TypeHintValue="[]"/
++{
++%TypeHeaderCode
++#include <qlist.h>
++%End
++
++%ConvertFromTypeCode
++ // Create the list.
++ PyObject *l;
++
++ if ((l = PyList_New(sipCpp->size())) == NULL)
++ return NULL;
++
++ // Set the list elements.
++ for (int i = 0; i < sipCpp->size(); ++i)
++ {
++ QVariant *t = new QVariant(sipCpp->at(i));
++ PyObject *tobj;
++
++ if ((tobj = sipConvertFromNewType(t, sipType_QVariant, sipTransferObj)) == NULL)
++ {
++ Py_DECREF(l);
++ delete t;
++
++ return NULL;
++ }
++
++ PyList_SET_ITEM(l, i, tobj);
++ }
++
++ return l;
++%End
++
++%ConvertToTypeCode
++ SIP_SSIZE_T len;
++
++ // Check the type if that is all that is required.
++ if (sipIsErr == NULL)
++ {
++ if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
++ return 0;
++
++ for (SIP_SSIZE_T i = 0; i < len; ++i)
++ {
++ PyObject *itm = PySequence_ITEM(sipPy, i);
++ bool ok = (itm && sipCanConvertToType(itm, sipType_QVariant, SIP_NOT_NONE));
++
++ Py_XDECREF(itm);
++
++ if (!ok)
++ return 0;
++ }
++
++ return 1;
++ }
++
++ QList<QVariant> *ql = new QList<QVariant>;
++ len = PySequence_Size(sipPy);
++
++ for (SIP_SSIZE_T i = 0; i < len; ++i)
++ {
++ PyObject *itm = PySequence_ITEM(sipPy, i);
++ int state;
++ QVariant *t = reinterpret_cast<QVariant *>(sipConvertToType(itm, sipType_QVariant, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
++
++ Py_DECREF(itm);
++
++ if (*sipIsErr)
++ {
++ sipReleaseType(t, sipType_QVariant, state);
++
++ delete ql;
++ return 0;
++ }
++
++ ql->append(*t);
++
++ sipReleaseType(t, sipType_QVariant, state);
++ }
++
++ *sipCppPtr = ql;
++
++ return sipGetState(sipTransferObj);
++%End
++};
++
++
++// QList<QPolygonF> is implemented as a Python list.
++%MappedType QList<QPolygonF> /TypeHintIn="Sequence[QPolygonF]", TypeHintOut="List[QPolygonF]", TypeHintValue="[]"/
++{
++%TypeHeaderCode
++#include <qlist.h>
++%End
++
++%ConvertFromTypeCode
++ // Create the list.
++ PyObject *l;
++
++ if ((l = PyList_New(sipCpp->size())) == NULL)
++ return NULL;
++
++ // Set the list elements.
++ for (int i = 0; i < sipCpp->size(); ++i)
++ {
++ QPolygonF *t = new QPolygonF(sipCpp->at(i));
++ PyObject *tobj;
++
++ if ((tobj = sipConvertFromNewType(t, sipType_QPolygonF, sipTransferObj)) == NULL)
++ {
++ Py_DECREF(l);
++ delete t;
++
++ return NULL;
++ }
++
++ PyList_SET_ITEM(l, i, tobj);
++ }
++
++ return l;
++%End
++
++%ConvertToTypeCode
++ SIP_SSIZE_T len;
++
++ // Check the type if that is all that is required.
++ if (sipIsErr == NULL)
++ {
++ if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
++ return 0;
++
++ for (SIP_SSIZE_T i = 0; i < len; ++i)
++ {
++ PyObject *itm = PySequence_ITEM(sipPy, i);
++ bool ok = (itm && sipCanConvertToType(itm, sipType_QPolygonF, SIP_NOT_NONE));
++
++ Py_XDECREF(itm);
++
++ if (!ok)
++ return 0;
++ }
++
++ return 1;
++ }
++
++ QList<QPolygonF> *ql = new QList<QPolygonF>;
++ len = PySequence_Size(sipPy);
++
++ for (SIP_SSIZE_T i = 0; i < len; ++i)
++ {
++ PyObject *itm = PySequence_ITEM(sipPy, i);
++ int state;
++ QPolygonF *t = reinterpret_cast<QPolygonF *>(sipConvertToType(itm, sipType_QPolygonF, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
++
++ Py_DECREF(itm);
++
++ if (*sipIsErr)
++ {
++ sipReleaseType(t, sipType_QPolygonF, state);
++
++ delete ql;
++ return 0;
++ }
++
++ ql->append(*t);
++
++ sipReleaseType(t, sipType_QPolygonF, state);
++ }
++
++ *sipCppPtr = ql;
++
++ return sipGetState(sipTransferObj);
++%End
++};
+--
+2.12.0
diff --git a/sci-geosciences/qgis/files/qgis-2.18.3-app-icon.patch b/sci-geosciences/qgis/files/qgis-2.18.3-app-icon.patch
new file mode 100644
index 000000000000..88db963bcaff
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.3-app-icon.patch
@@ -0,0 +1,13 @@
+diff --git a/src/core/qgsapplication.cpp b/src/core/qgsapplication.cpp
+index 4cdb07e..76ffc09 100644
+--- a/src/core/qgsapplication.cpp
++++ b/src/core/qgsapplication.cpp
+@@ -396,7 +396,7 @@ QString QgsApplication::activeThemePath()
+
+ QString QgsApplication::appIconPath()
+ {
+- return QString( "qgis-icon-60x60.png" );
++ return iconsPath() + QStringLiteral( "qgis-icon-60x60.png" );
+ }
+
+ QString QgsApplication::iconPath( const QString& iconFile )
diff --git a/sci-geosciences/qgis/files/qgis-2.18.3-qscintilla-2.10.patch b/sci-geosciences/qgis/files/qgis-2.18.3-qscintilla-2.10.patch
new file mode 100644
index 000000000000..fb714654579d
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.3-qscintilla-2.10.patch
@@ -0,0 +1,24 @@
+From 30577386cbe0ee9a5509e7f6f54df2c1194153ee Mon Sep 17 00:00:00 2001
+From: Larry Shaffer <lshaffer@boundlessgeo.com>
+Date: Thu, 2 Mar 2017 15:00:18 -0700
+Subject: [PATCH] Followup to dfe268f; update QScintilla new lib name in 2.10
+ for Qt4
+
+[ci skip]
+---
+ cmake/FindQScintilla.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/FindQScintilla.cmake b/cmake/FindQScintilla.cmake
+index 7f97624..2f87e4c 100644
+--- a/cmake/FindQScintilla.cmake
++++ b/cmake/FindQScintilla.cmake
+@@ -36,7 +36,7 @@ ELSE(EXISTS QSCINTILLA_VERSION_STR)
+ if(ENABLE_QT5)
+ set(QSCINTILLA_LIBRARY_NAMES qscintilla2-qt5 qscintilla2_qt5 libqt5scintilla2 libqscintilla2-qt5 qt5scintilla2 libqscintilla2-qt5.dylib)
+ else(ENABLE_QT5)
+- set(QSCINTILLA_LIBRARY_NAMES qscintilla2 libqscintilla2 libqscintilla2.dylib)
++ set(QSCINTILLA_LIBRARY_NAMES qscintilla2 qscintilla2_qt4 libqscintilla2 libqscintilla2.dylib)
+ endif(ENABLE_QT5)
+
+ find_library(QSCINTILLA_LIBRARY
diff --git a/sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.1.patch b/sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.1.patch
new file mode 100644
index 000000000000..ff8989227f69
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.1.patch
@@ -0,0 +1,42 @@
+From 85a0db24f32351f6096cd8282f03ad5c2f4e6ef5 Mon Sep 17 00:00:00 2001
+From: Sandro Mani <manisandro@gmail.com>
+Date: Wed, 1 Mar 2017 16:12:38 +0100
+Subject: [PATCH] Fix build against recent sip/PyQt4:
+
+qgsfiledownloader.sip:33:0:
+src/gui/qgsfiledownloader.h:94:5: error: overriding non-deleted function 'virtual QgsFileDownloader::~QgsFileDownloader()'
+
+RuntimeError: qgis._core cannot import type 'QList<QVariant>' from PyQt4.QtCore
+---
+ python/core/core.sip | 1 +
+ src/gui/qgsfiledownloader.h | 4 +++-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/python/core/core.sip b/python/core/core.sip
+index 8f0b6af..41f5450 100644
+--- a/python/core/core.sip
++++ b/python/core/core.sip
+@@ -3,6 +3,7 @@
+
+ %Feature QT5_SUPPORT
+
++%Import QtCore/QtCoremod.sip
+ %Import QtXml/QtXmlmod.sip
+ %Import QtNetwork/QtNetworkmod.sip
+ %Import QtSql/QtSqlmod.sip
+diff --git a/src/gui/qgsfiledownloader.h b/src/gui/qgsfiledownloader.h
+index c9276f7..841e4b6 100644
+--- a/src/gui/qgsfiledownloader.h
++++ b/src/gui/qgsfiledownloader.h
+@@ -90,8 +90,10 @@ class GUI_EXPORT QgsFileDownloader : public QObject
+ void onSslErrors( QNetworkReply *reply, const QList<QSslError> &errors );
+ #endif
+
+- private:
++ protected:
+ ~QgsFileDownloader();
++
++ private:
+ /**
+ * Abort current request and show an error if the instance has GUI
+ * notifications enabled.
diff --git a/sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.patch b/sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.patch
new file mode 100644
index 000000000000..f72e0e4fd17d
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.3-sip-4.19.patch
@@ -0,0 +1,237 @@
+commit 718581ffb12b723f9a3c0ae01b7ec2d8aed9d4bb
+Author: Juergen E. Fischer <jef@norbit.de>
+Date: Sat Feb 11 21:02:05 2017 +0100
+
+ adapt bindings to sip 4.19 (fixes #16071)
+
+diff --git a/python/analysis/analysis.sip b/python/analysis/analysis.sip
+index ceb5056..bd90e10 100644
+--- a/python/analysis/analysis.sip
++++ b/python/analysis/analysis.sip
+@@ -1,5 +1,4 @@
+ %Module(name=qgis._analysis,
+- version=0,
+ keyword_arguments="Optional")
+
+ %Import QtCore/QtCoremod.sip
+diff --git a/python/analysis/network/networkanalysis.sip b/python/analysis/network/networkanalysis.sip
+index fb446d1..d2c192b 100644
+--- a/python/analysis/network/networkanalysis.sip
++++ b/python/analysis/network/networkanalysis.sip
+@@ -1,5 +1,4 @@
+ %Module(name=qgis._networkanalysis,
+- version=0,
+ keyword_arguments="Optional")
+
+ %Import QtCore/QtCoremod.sip
+diff --git a/python/core/conversions.sip b/python/core/conversions.sip
+index 564d4de..f07d3ab 100644
+--- a/python/core/conversions.sip
++++ b/python/core/conversions.sip
+@@ -747,7 +747,7 @@ template<TYPE>
+
+ // QMap<qint64, TYPE> is implemented as a Python dictionary.
+ template<TYPE>
+-%MappedType QMap<qint64, TYPE> /DocType="dict-of-qint64-TYPE"/
++%MappedType QMap<qint64, TYPE>
+ {
+ %TypeHeaderCode
+ #include <qmap.h>
+@@ -1873,7 +1873,7 @@ template <TYPE>
+ };
+
+ // QList<QgsField> is implemented as a Python list of QgsField.
+-%MappedType QList<QgsField> /DocType="list-of-qgsfield"/
++%MappedType QList<QgsField>
+ {
+ %TypeHeaderCode
+ #include <qgsfield.h>
+@@ -1978,7 +1978,7 @@ template <TYPE>
+
+ %If (QVECTORINT_CONVERSION)
+ // QVector<int> is implemented as a Python list of integers.
+-%MappedType QVector<int> /DocType="list-of-int"/
++%MappedType QVector<int>
+ {
+ %TypeHeaderCode
+ #include <qvector.h>
+diff --git a/python/core/core.sip b/python/core/core.sip
+index 577c4c1..8f0b6af 100644
+--- a/python/core/core.sip
++++ b/python/core/core.sip
+@@ -1,5 +1,4 @@
+ %Module(name=qgis._core,
+- version=0,
+ keyword_arguments="Optional")
+
+ %Feature QT5_SUPPORT
+diff --git a/python/core/qgscoordinatetransform.sip b/python/core/qgscoordinatetransform.sip
+index c14ba53..f9b7854 100644
+--- a/python/core/qgscoordinatetransform.sip
++++ b/python/core/qgscoordinatetransform.sip
+@@ -15,6 +15,7 @@
+ class QgsCoordinateTransform : QObject
+ {
+ %TypeHeaderCode
++extern PyObject *sipExportedExceptions__core[2]; // workaround: sipExportedExceptions__core is only defined in the first sip part
+ #include <qgscoordinatetransform.h>
+ %End
+
+@@ -215,5 +216,5 @@ class QgsCoordinateTransform : QObject
+
+ signals:
+ /** Signal when an invalid pj_transform() has occurred */
+- void invalidTransformInput() const;
++ void invalidTransformInput() const;
+ };
+diff --git a/python/core/qgsfeature.sip b/python/core/qgsfeature.sip
+index 596f8a8..4009b50 100644
+--- a/python/core/qgsfeature.sip
++++ b/python/core/qgsfeature.sip
+@@ -4,7 +4,7 @@ typedef QMap<int, QVariant> QgsAttributeMap;
+ typedef QVector<QVariant> QgsAttributes;
+
+ // QgsAttributes is implemented as a Python list of Python objects.
+-%MappedType QgsAttributes /DocType="list-of-attributes"/
++%MappedType QgsAttributes
+ {
+ %TypeHeaderCode
+ #include <qgsfeature.h>
+diff --git a/python/core/qgspallabeling.sip b/python/core/qgspallabeling.sip
+index 488b58b..3d99555 100644
+--- a/python/core/qgspallabeling.sip
++++ b/python/core/qgspallabeling.sip
+@@ -1,5 +1,5 @@
+ // QMap<QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined*> is implemented as a Python dictionary.
+-%MappedType QMap<QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined*> /DocType="dict-of-QgsPalLayerSettings.DataDefinedProperties-QgsDataDefined*"/
++%MappedType QMap<QgsPalLayerSettings::DataDefinedProperties, QgsDataDefined*>
+ {
+ %TypeHeaderCode
+ #include <qmap.h>
+diff --git a/python/core/qgsvectorlayerfeatureiterator.sip b/python/core/qgsvectorlayerfeatureiterator.sip
+index 0685e20..ad3431c 100644
+--- a/python/core/qgsvectorlayerfeatureiterator.sip
++++ b/python/core/qgsvectorlayerfeatureiterator.sip
+@@ -70,5 +70,6 @@ class QgsVectorLayerFeatureIterator : QgsAbstractFeatureIterator
+ //void updateFeatureGeometry( QgsFeature& f );
+
+ private:
+- QgsVectorLayerFeatureIterator();
++ QgsVectorLayerFeatureIterator( const QgsVectorLayerFeatureIterator &rhs );
++
+ };
+diff --git a/python/core/raster/qgsrasterprojector.sip b/python/core/raster/qgsrasterprojector.sip
+index 47bb697..40b9a10 100644
+--- a/python/core/raster/qgsrasterprojector.sip
++++ b/python/core/raster/qgsrasterprojector.sip
+@@ -55,7 +55,7 @@ class QgsRasterProjector : QgsRasterInterface
+
+ int bandCount() const;
+
+- int dataType( int bandNo ) const;
++ QGis::DataType dataType( int bandNo ) const;
+
+ /** \brief set source and destination CRS */
+ void setCRS( const QgsCoordinateReferenceSystem & theSrcCRS, const QgsCoordinateReferenceSystem & theDestCRS,
+diff --git a/python/gui/editorwidgets/qgsdatetimeedit.sip b/python/gui/editorwidgets/qgsdatetimeedit.sip
+index deda76d..be658a1 100644
+--- a/python/gui/editorwidgets/qgsdatetimeedit.sip
++++ b/python/gui/editorwidgets/qgsdatetimeedit.sip
+@@ -37,6 +37,7 @@ class QgsDateTimeEdit : QDateTimeEdit
+
+ protected:
+ virtual void resizeEvent( QResizeEvent* event );
+-
+ void mousePressEvent( QMouseEvent*event );
++ virtual void fixup(QString & input) const;
++ virtual QValidator::State validate(QString &text, int &pos) const;
+ };
+diff --git a/python/gui/editorwidgets/qgsdoublespinbox.sip b/python/gui/editorwidgets/qgsdoublespinbox.sip
+index 1666a02..58f589d 100644
+--- a/python/gui/editorwidgets/qgsdoublespinbox.sip
++++ b/python/gui/editorwidgets/qgsdoublespinbox.sip
+@@ -80,4 +80,5 @@ class QgsDoubleSpinBox : QDoubleSpinBox
+ protected:
+ virtual void changeEvent( QEvent* event );
+ virtual void paintEvent( QPaintEvent* event );
++ virtual void fixup(QString & input) const;
+ };
+diff --git a/python/gui/editorwidgets/qgsspinbox.sip b/python/gui/editorwidgets/qgsspinbox.sip
+index d560641..c953470 100644
+--- a/python/gui/editorwidgets/qgsspinbox.sip
++++ b/python/gui/editorwidgets/qgsspinbox.sip
+@@ -78,7 +78,7 @@ class QgsSpinBox : QSpinBox
+ virtual QValidator::State validate( QString & input, int & pos ) const;
+
+ protected:
+-
+ virtual void changeEvent( QEvent* event );
+ virtual void paintEvent( QPaintEvent* event );
++ virtual void fixup(QString &input) const;
+ };
+diff --git a/python/gui/gui.sip b/python/gui/gui.sip
+index 240c636..727ac70 100644
+--- a/python/gui/gui.sip
++++ b/python/gui/gui.sip
+@@ -1,5 +1,4 @@
+ %Module(name=qgis._gui,
+- version=0,
+ keyword_arguments="Optional")
+
+ %Feature HAVE_QSCI_SIP
+diff --git a/python/gui/qgslonglongvalidator.sip b/python/gui/qgslonglongvalidator.sip
+index 9def830..7500357 100644
+--- a/python/gui/qgslonglongvalidator.sip
++++ b/python/gui/qgslonglongvalidator.sip
+@@ -8,7 +8,7 @@ class QgsLongLongValidator : QValidator
+ QgsLongLongValidator( qint64 bottom, qint64 top, QObject *parent );
+ ~QgsLongLongValidator();
+
+- QValidator::State validate( QString &input, int& ) const;
++ virtual QValidator::State validate( QString &input, int& ) const;
+
+ void setBottom( qint64 bottom );
+ void setTop( qint64 top );
+@@ -17,4 +17,6 @@ class QgsLongLongValidator : QValidator
+
+ qint64 bottom() const;
+ qint64 top() const;
++
++ virtual void fixup(QString &input) const;
+ };
+diff --git a/python/server/qgswmsconfigparser.sip b/python/server/qgswmsconfigparser.sip
+index f05752c..d231637 100644
+--- a/python/server/qgswmsconfigparser.sip
++++ b/python/server/qgswmsconfigparser.sip
+@@ -115,7 +115,7 @@ class QgsWMSConfigParser
+ virtual void setScaleDenominator( double denom ) = 0;
+ virtual void addExternalGMLData( const QString& layerName, QDomDocument* gmlDoc ) = 0;
+
+- virtual QList< QPair< QString, QgsLayerCoordinateTransform > > layerCoordinateTransforms() const = 0;
++ // virtual QList< QPair< QString, QgsLayerCoordinateTransform > > layerCoordinateTransforms() const = 0;
+
+ virtual int nLayers() const = 0;
+
+diff --git a/python/server/qgswmsprojectparser.sip b/python/server/qgswmsprojectparser.sip
+index f6dd579..13fea73 100644
+--- a/python/server/qgswmsprojectparser.sip
++++ b/python/server/qgswmsprojectparser.sip
+@@ -63,7 +63,7 @@ class QgsWMSProjectParser : public QgsWMSConfigParser
+ void setScaleDenominator( double ) /*override*/;
+ void addExternalGMLData( const QString&, QDomDocument* ) /*override*/ ;
+
+- QList< QPair< QString, QgsLayerCoordinateTransform > > layerCoordinateTransforms() const /*override*/ ;
++ // QList< QPair< QString, QgsLayerCoordinateTransform > > layerCoordinateTransforms() const /*override*/ ;
+
+ /** Fills a layer and a style list. The two list have the same number of entries and the style and the layer at a position belong together (similar to the HTTP parameters 'Layers' and 'Styles'. Returns 0 in case of success*/
+ int layersAndStyles( QStringList& layers, QStringList& styles ) const /*override*/ ;
+diff --git a/python/server/server.sip b/python/server/server.sip
+index 537cd0b..355d3fa 100644
+--- a/python/server/server.sip
++++ b/python/server/server.sip
+@@ -1,5 +1,4 @@
+ %Module(name=qgis._server,
+- version=0,
+ keyword_arguments="Optional")
+
+
diff --git a/sci-geosciences/qgis/files/qgis-2.18.3-webkit.patch b/sci-geosciences/qgis/files/qgis-2.18.3-webkit.patch
new file mode 100644
index 000000000000..971ffde83a9b
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.3-webkit.patch
@@ -0,0 +1,112 @@
+commit 222ae663e6ee6f718e45faafd63758c319fec135
+Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun Feb 19 12:51:48 2017 +0100
+
+ Fix QtWebKit automagic
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3936521..4268019 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -288,6 +288,10 @@ ELSE()
+ MESSAGE(STATUS "Found Qt version: ${QTVERSION}")
+ ENDIF()
+
++IF(WITH_QTWEBKIT)
++ SET(OPTIONAL_QTWEBKIT ${QT_QTWEBKIT_LIBRARY})
++ENDIF(WITH_QTWEBKIT)
++
+ IF (WITH_QTMOBILITY)
+ FIND_PACKAGE(QtMobility 1.1.0)
+ ENDIF (WITH_QTMOBILITY)
+diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
+index 15579de..b6ef545 100644
+--- a/src/app/CMakeLists.txt
++++ b/src/app/CMakeLists.txt
+@@ -609,7 +609,7 @@ TARGET_LINK_LIBRARIES(qgis_app
+ ${QWT_LIBRARY}
+ ${QT_QTSQL_LIBRARY}
+ ${QT_QTUITOOLS_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ #should only be needed for win
+ ${QT_QTMAIN_LIBRARY}
+ ${QWTPOLAR_LIBRARY}
+diff --git a/src/browser/CMakeLists.txt b/src/browser/CMakeLists.txt
+index e53c1de..1a72070 100644
+--- a/src/browser/CMakeLists.txt
++++ b/src/browser/CMakeLists.txt
+@@ -80,7 +80,7 @@ TARGET_LINK_LIBRARIES(qbrowser
+ ${QT_QTNETWORK_LIBRARY}
+ ${QT_QTSVG_LIBRARY}
+ ${QT_QTXML_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ ${QT_QTMAIN_LIBRARY}
+ ${SQLITE3_LIBRARY}
+ )
+diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
+index e2d9ae8..cd8e305 100644
+--- a/src/core/CMakeLists.txt
++++ b/src/core/CMakeLists.txt
+@@ -981,7 +981,7 @@ TARGET_LINK_LIBRARIES(qgis_core
+ ${QT_QTGUI_LIBRARY}
+ ${QT_QTNETWORK_LIBRARY}
+ ${QT_QTSVG_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ ${QT_QTSQL_LIBRARY}
+ ${QCA_LIBRARY}
+
+diff --git a/src/helpviewer/CMakeLists.txt b/src/helpviewer/CMakeLists.txt
+index cec5ad1..ffd0966 100644
+--- a/src/helpviewer/CMakeLists.txt
++++ b/src/helpviewer/CMakeLists.txt
+@@ -68,7 +68,7 @@ TARGET_LINK_LIBRARIES(qgis_help
+ ${QT_QTNETWORK_LIBRARY}
+ ${QT_QTSVG_LIBRARY}
+ ${QT_QTXML_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ ${QT_QTMAIN_LIBRARY}
+ ${SQLITE3_LIBRARY}
+ )
+diff --git a/tests/bench/CMakeLists.txt b/tests/bench/CMakeLists.txt
+index b605a6a..aa45a27 100644
+--- a/tests/bench/CMakeLists.txt
++++ b/tests/bench/CMakeLists.txt
+@@ -35,7 +35,7 @@ TARGET_LINK_LIBRARIES(qgis_bench
+ ${QT_QTNETWORK_LIBRARY}
+ ${QT_QTSVG_LIBRARY}
+ ${QT_QTXML_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ ${QT_QTMAIN_LIBRARY}
+ ${QT_QTTEST_LIBRARY}
+ )
+diff --git a/tests/src/gui/CMakeLists.txt b/tests/src/gui/CMakeLists.txt
+index f1c823a..94d8692 100644
+--- a/tests/src/gui/CMakeLists.txt
++++ b/tests/src/gui/CMakeLists.txt
+@@ -102,7 +102,7 @@ MACRO (ADD_QGIS_TEST testname testsrc)
+ ${QT_QTSVG_LIBRARY}
+ ${QT_QTTEST_LIBRARY}
+ ${QT_QTNETWORK_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ ${QT_QTMAIN_LIBRARY}
+ ${PROJ_LIBRARY}
+ ${GEOS_LIBRARY}
+diff --git a/tests/src/providers/CMakeLists.txt b/tests/src/providers/CMakeLists.txt
+index 7e8b2e9..0388150 100644
+--- a/tests/src/providers/CMakeLists.txt
++++ b/tests/src/providers/CMakeLists.txt
+@@ -124,7 +124,7 @@ IF(UNIX AND NOT ANDROID AND CMAKE_BUILD_TYPE MATCHES Debug)
+ ${QT_QTNETWORK_LIBRARY}
+ ${QT_QTSVG_LIBRARY}
+ ${QT_QTXML_LIBRARY}
+- ${QT_QTWEBKIT_LIBRARY}
++ ${OPTIONAL_QTWEBKIT}
+ ${QT_QTMAIN_LIBRARY}
+ ${QT_QTSCRIPT_LIBRARY}
+ qgis_core
diff --git a/sci-geosciences/qgis/files/qgis-2.18.6-featuresummary.patch b/sci-geosciences/qgis/files/qgis-2.18.6-featuresummary.patch
new file mode 100644
index 000000000000..0d4c99de9de0
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.6-featuresummary.patch
@@ -0,0 +1,31 @@
+From 70505aa1569c541dd252115848f46f91811955c0 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 9 Apr 2017 20:21:28 +0200
+Subject: [PATCH 1/2] Use FeatureSummary
+
+---
+ CMakeLists.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ed0a84013a..26f4659f61 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,6 +28,8 @@ SET(CMAKE_COLOR_MAKEFILE ON)
+ # set path to additional CMake modules
+ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
+
++include(FeatureSummary)
++
+ # in generated makefiles use relative paths so the project dir is moveable
+ # Note commented out since it cause problems but it would be nice to resolve these and enable
+ #
+@@ -908,3 +910,5 @@ ENDIF(WIN32 AND NOT UNIX)
+ SET(CPACK_PACKAGE_EXECUTABLES "qgis" "QGIS")
+ SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
+ INCLUDE(CPack)
++
++FEATURE_SUMMARY(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
+--
+2.12.2
+
diff --git a/sci-geosciences/qgis/files/qgis-2.18.6-python.patch b/sci-geosciences/qgis/files/qgis-2.18.6-python.patch
new file mode 100644
index 000000000000..b8a812d3e4fa
--- /dev/null
+++ b/sci-geosciences/qgis/files/qgis-2.18.6-python.patch
@@ -0,0 +1,25 @@
+commit 13d8e30bbe0ee17fff32a3eba90cd217d277e5ac
+Author: Marco Bernasocchi <marco@opengis.ch>
+Date: Wed Dec 7 19:08:24 2016 +1300
+
+ fix 2.18 build with Qt5 by executing pyuic
+
+diff --git a/scripts/pyuic-wrapper.sh b/scripts/pyuic-wrapper.sh
+index d6fb497a84..aa146b31bb 100755
+--- a/scripts/pyuic-wrapper.sh
++++ b/scripts/pyuic-wrapper.sh
+@@ -15,12 +15,12 @@
+ ###########################################################################
+
+
+-PYUIC4=$1
++PYUIC=$1
+ LD_LIBRARY_PATH=$2:$LD_LIBRARY_PATH
+ PYTHONPATH=$3:$PYTHONPATH
+ PYTHON=$4
+ shift 4
+
+ export LD_LIBRARY_PATH PYTHONPATH
+-
++$PYUIC $@
+ exec $PYTHON $(dirname $0)/pyuic-wrapper.py $@
diff --git a/sci-geosciences/qgis/metadata.xml b/sci-geosciences/qgis/metadata.xml
new file mode 100644
index 000000000000..b08b019390ee
--- /dev/null
+++ b/sci-geosciences/qgis/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Quantum GIS (QGIS) is a user friendly Open Source Geographic
+ Information System (GIS). QGIS supports vector, raster, and database
+ formats. QGIS lets you browse and create map data on your
+ computer. It supports many common spatial data formats (e.g. ESRI
+ ShapeFile, geotiff). QGIS supports plugins to do things like display
+ tracks from your GPS.
+</longdescription>
+ <use>
+ <flag name="designer">Build custom widgets for <pkg>dev-qt/designer</pkg></flag>
+ <flag name="georeferencer">Determines whether georeferencer plugin should be built</flag>
+ <flag name="grass">Add support for <pkg>sci-geosciences/grass</pkg></flag>
+ <flag name="mapserver">Determines whether mapserver should be built</flag>
+ <flag name="touch">Enable support for touch input devices</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/qgis/qgis-2.18.12-r100.ebuild b/sci-geosciences/qgis/qgis-2.18.12-r100.ebuild
new file mode 100644
index 000000000000..2e8591032def
--- /dev/null
+++ b/sci-geosciences/qgis/qgis-2.18.12-r100.ebuild
@@ -0,0 +1,234 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5} )
+PYTHON_REQ_USE="sqlite"
+
+if [[ ${PV} != *9999 ]]; then
+ SRC_URI="http://qgis.org/downloads/${P}.tar.bz2
+ examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
+ KEYWORDS="~amd64 ~x86"
+else
+ GIT_ECLASS="git-r3"
+ EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git"
+fi
+inherit cmake-utils eutils ${GIT_ECLASS} gnome2-utils python-single-r1 qmake-utils xdg-utils
+unset GIT_ECLASS
+
+DESCRIPTION="User friendly Geographic Information System"
+HOMEPAGE="http://www.qgis.org/"
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="0"
+IUSE="designer examples georeferencer grass mapserver oracle postgres python touch"
+
+REQUIRED_USE="
+ mapserver? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ app-crypt/qca:2[qt5,ssl]
+ >=dev-db/spatialite-4.1.0
+ dev-db/sqlite:3
+ dev-libs/expat
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtpositioning:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtscript:5
+ dev-qt/qtsvg:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ sci-libs/gdal:=[geos,python?,${PYTHON_USEDEP}]
+ sci-libs/geos
+ sci-libs/libspatialindex:=
+ sci-libs/proj
+ x11-libs/qscintilla:=[qt5]
+ >=x11-libs/qwt-6.1.2:6=[qt5,svg]
+ >=x11-libs/qwtpolar-1.1.1-r1[qt5]
+ designer? ( dev-qt/designer:5 )
+ georeferencer? ( sci-libs/gsl:= )
+ grass? ( >=sci-geosciences/grass-7.0.0:= )
+ mapserver? ( dev-libs/fcgi )
+ oracle? (
+ dev-db/oracle-instantclient:=
+ sci-libs/gdal:=[oracle]
+ )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS}
+ dev-python/future[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/markupsafe[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/PyQt5[sql,svg,webkit,${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/qscintilla-python[qt5,${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/sip:=[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-qt/linguist-tools:5
+ dev-qt/qttest:5
+ dev-qt/qtxmlpatterns:5
+ sys-devel/bison
+ sys-devel/flex
+"
+RDEPEND="${COMMON_DEPEND}
+ sci-geosciences/gpsbabel
+"
+
+# Disabling test suite because upstream disallow running from install path
+RESTRICT="test"
+
+PATCHES=(
+ # TODO upstream
+ "${FILESDIR}/${PN}-2.18.6-featuresummary.patch"
+ "${FILESDIR}/${PN}-2.18.6-python.patch"
+ # Taken from redhat
+ "${FILESDIR}/${P}-sip.patch"
+ # git master
+ "${FILESDIR}/${P}-cmake-lib-suffix.patch"
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -e "s:\${QT_BINARY_DIR}:$(qt5_get_bindir):" \
+ -i CMakeLists.txt || die "Failed to fix lrelease path"
+
+ sed -e "/QT_LRELEASE_EXECUTABLE/d" \
+ -e "/QT_LUPDATE_EXECUTABLE/s/set/find_program/" \
+ -e "s:lupdate-qt5:NAMES lupdate PATHS $(qt5_get_bindir) NO_DEFAULT_PATH:" \
+ -i cmake/modules/ECMQt4To5Porting.cmake || die "Failed to fix ECMQt4To5Porting.cmake"
+
+ cd src/plugins || die
+ use georeferencer || cmake_comment_add_subdirectory georeferencer
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DQGIS_MANUAL_SUBDIR=/share/man/
+ -DBUILD_SHARED_LIBS=ON
+ -DQGIS_LIB_SUBDIR=$(get_libdir)
+ -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis
+ -DQWT_INCLUDE_DIR=/usr/include/qwt6
+ -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so
+ -DWITH_INTERNAL_QWTPOLAR=OFF
+ -DPEDANTIC=OFF
+ -DWITH_APIDOC=OFF
+ -DWITH_QSPATIALITE=ON
+ -DENABLE_TESTS=OFF
+ -DENABLE_QT5=ON
+ -DWITH_CUSTOM_WIDGETS=$(usex designer)
+ -DWITH_GRASS=$(usex grass)
+ -DWITH_SERVER=$(usex mapserver)
+ -DWITH_ORACLE=$(usex oracle)
+ -DWITH_POSTGRESQL=$(usex postgres)
+ -DWITH_BINDINGS=$(usex python)
+ -DWITH_TOUCH="$(usex touch)"
+ )
+# # FIXME: Re-add when segfaults were figured out upstream, bug #612070
+# -DWITH_QTWEBKIT=$(usex webkit)
+
+ if has_version '<x11-libs/qscintilla-2.10'; then
+ mycmakeargs+=(
+ -DQSCINTILLA_LIBRARY=/usr/$(get_libdir)/libqscintilla2.so
+ )
+ fi
+
+ if use grass; then
+ mycmakeargs+=(
+ -DWITH_GRASS7=ON
+ -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70
+ )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DBINDINGS_GLOBAL_INSTALL=ON
+ -DWITH_PYSPATIALITE=ON
+ -DWITH_INTERNAL_DATEUTIL=OFF
+ -DWITH_INTERNAL_FUTURE=OFF
+ -DWITH_INTERNAL_MARKUPSAFE=OFF
+ -DWITH_INTERNAL_PYTZ=OFF
+ -DWITH_INTERNAL_SIX=OFF
+ -DWITH_INTERNAL_YAML=OFF
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ domenu debian/qgis.desktop
+
+ local size type
+ for size in 16 22 24 32 48 64 96 128 256; do
+ newicon -s ${size} debian/${PN}-icon${size}x${size}.png ${PN}.png
+ newicon -c mimetypes -s ${size} debian/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png
+ for type in qgs qml qlr qpt; do
+ newicon -c mimetypes -s ${size} debian/${PN}-${type}${size}x${size}.png ${PN}-${type}.png
+ done
+ done
+ newicon -s scalable images/icons/qgis_icon.svg qgis.svg
+
+ insinto /usr/share/mime/packages
+ doins debian/qgis.xml
+
+ if use examples; then
+ docinto examples
+ dodoc -r "${WORKDIR}"/qgis_sample_data/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ python_optimize "${ED%/}"/usr/share/qgis/python
+
+ if use grass; then
+ python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "If you don't intend to use an external PostGIS server"
+ elog "you should install:"
+ elog " dev-db/postgis"
+ elif use python; then
+ elog "Support of PostgreSQL is disabled."
+ elog "But some installed python-plugins import the psycopg2 module."
+ elog "If you do not need these plugins just disable them"
+ elog "in the Plugins menu, else you need to set USE=\"postgres\""
+ fi
+
+ gnome2_icon_cache_update
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
diff --git a/sci-geosciences/qgis/qgis-2.18.12.ebuild b/sci-geosciences/qgis/qgis-2.18.12.ebuild
new file mode 100644
index 000000000000..bd5c16407bf8
--- /dev/null
+++ b/sci-geosciences/qgis/qgis-2.18.12.ebuild
@@ -0,0 +1,213 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit cmake-utils eutils gnome2-utils python-single-r1 qmake-utils xdg-utils
+
+DESCRIPTION="User friendly Geographic Information System"
+HOMEPAGE="http://www.qgis.org/"
+SRC_URI="
+ http://qgis.org/downloads/qgis-${PV}.tar.bz2
+ examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="examples georeferencer grass mapserver oracle postgres python"
+
+REQUIRED_USE="
+ mapserver? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ app-crypt/qca:2[qt4,ssl]
+ >=dev-db/spatialite-4.1.0
+ dev-db/sqlite:3
+ dev-libs/expat
+ dev-libs/qjson
+ dev-qt/designer:4
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtscript:4
+ dev-qt/qtsvg:4
+ dev-qt/qtsql:4
+ sci-libs/gdal:=[geos,python?,${PYTHON_USEDEP}]
+ sci-libs/geos
+ sci-libs/libspatialindex:=
+ sci-libs/proj
+ x11-libs/qscintilla:=[qt4(-)]
+ >=x11-libs/qwt-6.1.2:6=[svg,qt4(-)]
+ >=x11-libs/qwtpolar-1[qt4(-)]
+ georeferencer? ( sci-libs/gsl:= )
+ grass? ( >=sci-geosciences/grass-7.0.0:= )
+ mapserver? ( dev-libs/fcgi )
+ oracle? (
+ dev-db/oracle-instantclient:=
+ sci-libs/gdal:=[oracle]
+ )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS}
+ dev-python/future[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/markupsafe[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/PyQt4[X,sql,svg,${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/qscintilla-python[qt4(+),${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/sip:=[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/bison
+ sys-devel/flex
+"
+RDEPEND="${COMMON_DEPEND}
+ sci-geosciences/gpsbabel
+"
+
+# Disabling test suite because upstream disallow running from install path
+RESTRICT="test"
+
+PATCHES=(
+ # TODO upstream
+ "${FILESDIR}/${PN}-2.18.6-featuresummary.patch"
+ # Taken from redhat
+ "${FILESDIR}/${P}-sip.patch"
+ # git master
+ "${FILESDIR}/${P}-cmake-lib-suffix.patch"
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -i -e "s:\${QT_BINARY_DIR}:$(qt4_get_bindir):" \
+ CMakeLists.txt || die "Failed to fix lrelease path"
+
+ cd src/plugins || die
+ use georeferencer || cmake_comment_add_subdirectory georeferencer
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DQGIS_MANUAL_SUBDIR=/share/man/
+ -DBUILD_SHARED_LIBS=ON
+ -DQGIS_LIB_SUBDIR=$(get_libdir)
+ -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis
+ -DQWT_INCLUDE_DIR=/usr/include/qwt6
+ -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt4.so
+ -DWITH_INTERNAL_QWTPOLAR=OFF
+ -DPEDANTIC=OFF
+ -DWITH_APIDOC=OFF
+ -DWITH_QSPATIALITE=ON
+ -DENABLE_TESTS=OFF
+ -DWITH_GRASS=$(usex grass)
+ -DWITH_SERVER=$(usex mapserver)
+ -DWITH_ORACLE=$(usex oracle)
+ -DWITH_POSTGRESQL=$(usex postgres)
+ -DWITH_BINDINGS=$(usex python)
+ -DWITH_QTWEBKIT=OFF
+ )
+
+ if has_version '<x11-libs/qscintilla-2.10'; then
+ mycmakeargs+=(
+ -DQSCINTILLA_LIBRARY=/usr/$(get_libdir)/qt4/libqscintilla2.so
+ )
+ fi
+
+ if use grass; then
+ mycmakeargs+=(
+ -DWITH_GRASS7=ON
+ -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70
+ )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DBINDINGS_GLOBAL_INSTALL=ON
+ -DWITH_PYSPATIALITE=ON
+ -DWITH_INTERNAL_DATEUTIL=OFF
+ -DWITH_INTERNAL_FUTURE=OFF
+ -DWITH_INTERNAL_MARKUPSAFE=OFF
+ -DWITH_INTERNAL_PYTZ=OFF
+ -DWITH_INTERNAL_SIX=OFF
+ -DWITH_INTERNAL_YAML=OFF
+ )
+ fi
+
+ # bug 612956
+ addpredict /dev/dri/renderD128
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ domenu debian/qgis.desktop
+
+ local size type
+ for size in 16 22 24 32 48 64 96 128 256; do
+ newicon -s ${size} debian/${PN}-icon${size}x${size}.png ${PN}.png
+ newicon -c mimetypes -s ${size} debian/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png
+ for type in qgs qml qlr qpt; do
+ newicon -c mimetypes -s ${size} debian/${PN}-${type}${size}x${size}.png ${PN}-${type}.png
+ done
+ done
+ newicon -s scalable images/icons/qgis_icon.svg qgis.svg
+
+ insinto /usr/share/mime/packages
+ doins debian/qgis.xml
+
+ if use examples; then
+ docinto examples
+ dodoc -r "${WORKDIR}"/qgis_sample_data/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ python_optimize "${ED%/}"/usr/share/qgis/python
+
+ if use grass; then
+ python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "If you don't intend to use an external PostGIS server"
+ elog "you should install:"
+ elog " dev-db/postgis"
+ elif use python; then
+ elog "Support of PostgreSQL is disabled."
+ elog "But some installed python-plugins import the psycopg2 module."
+ elog "If you do not need these plugins just disable them"
+ elog "in the Plugins menu, else you need to set USE=\"postgres\""
+ fi
+
+ gnome2_icon_cache_update
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
diff --git a/sci-geosciences/qmapshack/Manifest b/sci-geosciences/qmapshack/Manifest
new file mode 100644
index 000000000000..318d7e983e52
--- /dev/null
+++ b/sci-geosciences/qmapshack/Manifest
@@ -0,0 +1,10 @@
+DIST qmapshack-1.6.3.tar.gz 5181205 SHA256 6fa5158bd823e8d43eb8a4e4db35a05720d1fe8d624eb65320b905ae315bd708 SHA512 6e9efdd35ebf3980011aea0cefdbcc433e4f0d333cbeff72e70880a41bff972cc27f4517e243f4990b5e04112a50af2651d99cb5c1c6e542341db30e5e000133 WHIRLPOOL 7fa7e8bbd658f351e5d62ef979a91e291207d1b25a5a94c335051dd93e1f41947dc612eec80c2134e7929edca0becaa0c866e9060e0cbe7c54a856d480acd938
+DIST qmapshack-1.7.1.tar.gz 5201773 SHA256 5da33e575fec11c1bfe097ab9c89c9d815124436b5ebf736ec0681acbda4a509 SHA512 406346df4777e06d14f175fc6cd01b653102d5754c3354721d5f86c2fbe3139f384f57241d2990721ceac12d4d546924c36c4e408770ad5c523a73f980bd3c02 WHIRLPOOL 75641f622a61b8c8ac1da18503d21cef2ed737ac4f4b522539de7d3df3f729bff6d5f2f20efb81aca9e8cfdd0b095f6a5c6e0ecd295319312e942448fe7dc97d
+DIST qmapshack-1.8.0.tar.gz 7512082 SHA256 a1a6b543533af280f06afff0f0b1f457d09ef6c702922471a95ec350a99ccf2d SHA512 9ee2e764368994c71813d48afb55368a2a26f8f4517b2671af2eb457e152b33f2eb756e347625940383b0e8c89814259d9e78133a1bc4544f183c4a424d31a4d WHIRLPOOL 81b1d95d8b36f9bd6809443bbef134c5dc2427995d416fab5ba1324f38427c7c95a8a6c16f5f2cc9290d0a7000447568dc5d985d0b3787676ed9668db9f352a6
+DIST qmapshack-1.9.0.tar.gz 7647076 SHA256 ab39ca69d6ed2cc750ca1171fa86d87b0f33352c35c3b8f12f4b775c6886f8da SHA512 8a74434886605eed44d0264d26cae022381a0141d8ebaa6ac8ef9cf8b808e0f9550ff888b0e2f607eb9cc8cde24ac358d459d9e43c6b74f0f8c74d5e7b429c1d WHIRLPOOL 49f35a6eef1e6e1222ae6a8ce89f0a7a13d9762578aff035a09225ba8b866cad4499621a93989dfc945f318e45037d191f9c2d9b40f384d16a071c325af8df5c
+EBUILD qmapshack-1.6.3.ebuild 594 SHA256 7a748fa6208f227f328a4450967e59bff54a3071b7646442a611f85fceaf002f SHA512 d6ba2f2fb68520668a89240021ab195477c94648b8fcf50040e671922a19f35d9107a8f0b56d33077bbb4b85f36787e995b26f54462ce8b62247d2fc4d118092 WHIRLPOOL 689409c700bb8c540c7e9474ececc21c0dd628e4d9d343a18b44e4bdde82f1957ddfceeb18c69ddd177c7f12f04b46a10d2ac27c0c322a2ab71571975541ef0c
+EBUILD qmapshack-1.7.1.ebuild 596 SHA256 fe8d9cc34da841bf6b774bbbc215d7d126b8d6fd57d67432a06aca51d6550093 SHA512 1e4535a8cb426ce73e1b059c3dd5b595af86c4f7b9225557b413c79eef426977195c62c8d1323136af6ac731d3ee96f1ba7de339262e31e2a5e50a5dd19b9475 WHIRLPOOL 0b8a23d3ca7e33d5d54f09e7b63e5ea0e97505700a22070e67c5475a04ebb87e997f385535e61023e5879dc3a2b90a1a6b231e9f5d78844c4c749ce4da7a6ef8
+EBUILD qmapshack-1.8.0-r1.ebuild 613 SHA256 a2cc0799f64726c92fadbe5374a0cd081f51358c614b6354cd5eacd1467a9413 SHA512 320af0e01d57a30d293d40ef9807fee19064010538ea100e7d2b92472cabd29d6825a79cf8e8042a2dca9f46fa112df1c4ea68e50f53412125997f0ec32a6170 WHIRLPOOL a7e91242409736915a42ed0cfdba5f1a4a58f80fce1886cb8236b965755e56aa69426134f3cc2bff838b2f3f4590684871de4e9982b8447486bae2dafa5bbe65
+EBUILD qmapshack-1.9.0.ebuild 613 SHA256 a2cc0799f64726c92fadbe5374a0cd081f51358c614b6354cd5eacd1467a9413 SHA512 320af0e01d57a30d293d40ef9807fee19064010538ea100e7d2b92472cabd29d6825a79cf8e8042a2dca9f46fa112df1c4ea68e50f53412125997f0ec32a6170 WHIRLPOOL a7e91242409736915a42ed0cfdba5f1a4a58f80fce1886cb8236b965755e56aa69426134f3cc2bff838b2f3f4590684871de4e9982b8447486bae2dafa5bbe65
+MISC ChangeLog 2509 SHA256 d77b4d0a1b677f69a45784ab2c799d47efab136813208ce5751e6ba93ce05ec8 SHA512 4f0575c45a3efbaa75ed1a8f6685d8525d0f5dbd2b6cb90d9bee7fc916e82d39d95fcfd64606eb8a4be68e1df5650fabf4ed7f7da5c70fbd94b3e5ce3ad91af4 WHIRLPOOL b1b9958feea7c863034407439e41dbd9b708e43e525091c7bf4569779f40518fc4360335b115809b13e3d4de467aebbf51acd84a4171d8851b46c229ad0355e6
+MISC metadata.xml 772 SHA256 5bd9b0fd44f52e3da5fdc531038f56701d671ae8e681b2e88d34b894ab84f59b SHA512 03cd1cf6d4e0b5a420b4301ffb1077f2dda9e023572dedd1c56ba4574ab4460c125d63bb5c7475b66b023ff15dc0b9c4cfc8479218366c935108e89850ed5d4d WHIRLPOOL ba97d24e7e819e747245a3172a1a7fd3af80af9d9ed5c886444946c5362838df674f7d605a01b5f3da1716dd69ae08fdaae25a81d2ca69375eebcd43e175f880
diff --git a/sci-geosciences/qmapshack/metadata.xml b/sci-geosciences/qmapshack/metadata.xml
new file mode 100644
index 000000000000..1ba0b96f82a1
--- /dev/null
+++ b/sci-geosciences/qmapshack/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Use QMapShack to plan your next outdoor trip or to visualize and archive
+ all the GPS recordings of your past exciting adventures.
+ QMapShack is the next generation of the famous QLandkarte GT application.
+ And of course it's even better and easier to use.
+</longdescription>
+ <upstream>
+ <remote-id type="bitbucket">maproom/qmapshack</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/qmapshack/qmapshack-1.6.3.ebuild b/sci-geosciences/qmapshack/qmapshack-1.6.3.ebuild
new file mode 100644
index 000000000000..b75a39d2f4d4
--- /dev/null
+++ b/sci-geosciences/qmapshack/qmapshack-1.6.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="GPS mapping utility"
+HOMEPAGE="https://bitbucket.org/maproom/qmapshack/wiki/Home"
+SRC_URI="https://bitbucket.org/maproom/${PN}/downloads/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RDEPEND="dev-qt/qtwebkit:5
+ dev-qt/qtscript:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtdbus:5
+ dev-qt/qttest:5
+ dev-qt/qtnetwork:5[ssl]
+ >=sci-geosciences/routino-3.1.1
+ sci-libs/gdal
+ sci-libs/proj"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5"
diff --git a/sci-geosciences/qmapshack/qmapshack-1.7.1.ebuild b/sci-geosciences/qmapshack/qmapshack-1.7.1.ebuild
new file mode 100644
index 000000000000..87fac728e18f
--- /dev/null
+++ b/sci-geosciences/qmapshack/qmapshack-1.7.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="GPS mapping utility"
+HOMEPAGE="https://bitbucket.org/maproom/qmapshack/wiki/Home"
+SRC_URI="https://bitbucket.org/maproom/${PN}/downloads/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="dev-qt/qtwebkit:5
+ dev-qt/qtscript:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtdbus:5
+ dev-qt/qttest:5
+ dev-qt/qtnetwork:5[ssl]
+ >=sci-geosciences/routino-3.1.1
+ sci-libs/gdal
+ sci-libs/proj"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5"
diff --git a/sci-geosciences/qmapshack/qmapshack-1.8.0-r1.ebuild b/sci-geosciences/qmapshack/qmapshack-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..5ad43397383e
--- /dev/null
+++ b/sci-geosciences/qmapshack/qmapshack-1.8.0-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="GPS mapping utility"
+HOMEPAGE="https://bitbucket.org/maproom/qmapshack/wiki/Home"
+SRC_URI="https://bitbucket.org/maproom/${PN}/downloads/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="dev-qt/qtwebkit:5
+ dev-qt/qtscript:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtdbus:5
+ dev-qt/qttest:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-libs/quazip
+ >=sci-geosciences/routino-3.1.1
+ sci-libs/gdal
+ sci-libs/proj"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5"
diff --git a/sci-geosciences/qmapshack/qmapshack-1.9.0.ebuild b/sci-geosciences/qmapshack/qmapshack-1.9.0.ebuild
new file mode 100644
index 000000000000..5ad43397383e
--- /dev/null
+++ b/sci-geosciences/qmapshack/qmapshack-1.9.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="GPS mapping utility"
+HOMEPAGE="https://bitbucket.org/maproom/qmapshack/wiki/Home"
+SRC_URI="https://bitbucket.org/maproom/${PN}/downloads/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="dev-qt/qtwebkit:5
+ dev-qt/qtscript:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtdbus:5
+ dev-qt/qttest:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-libs/quazip
+ >=sci-geosciences/routino-3.1.1
+ sci-libs/gdal
+ sci-libs/proj"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5"
diff --git a/sci-geosciences/readosm/Manifest b/sci-geosciences/readosm/Manifest
new file mode 100644
index 000000000000..512683c37aaf
--- /dev/null
+++ b/sci-geosciences/readosm/Manifest
@@ -0,0 +1,5 @@
+DIST readosm-1.0.0e.tar.gz 1096062 SHA256 1fd839e05b411db6ba1ca6199bf3334ab9425550a58e129c07ad3c6d39299acf SHA512 fde22e66b8ed80de168ff9302e8f9312a1a3111c7326f2db45d3176df98030f77e6590416ec5a5d0aef445f707a62cb091a47ee7533bede65eebf8ebf0fa4c28 WHIRLPOOL e12d84e99d26c317bb270b91e222d674ff544403c317aa1e73922a1e9103452ff14cec8f7478a2ea9dd0ce65c75c787ea7e94ef41ee0b33f3ed46178c7effcba
+EBUILD readosm-1.0.0e-r1.ebuild 579 SHA256 15832a31ec0e4804a441d58a045059b5993e330760cdbf6681f16994dcf0ce47 SHA512 0a1fa861ba7cf7494997b9c3f0edb25502c178f59b6f4025bd78e53d8b0b57a43f0e4ee9b997803864620c47e9fc72a7face6e662f41749415e81c73268e1471 WHIRLPOOL d23d393c2b44e9a57b3903ecd21fbeef63f644ac6f3c9c98c6eb66f6d2cf19afd343cd26426973c4948909065bb7aefc1c84ae7691f02bb0292666e05463febd
+MISC ChangeLog 2587 SHA256 5519a937b8ce3c61b8dd40afb01e8a12f55d4ea286613b683d2e159dcb586387 SHA512 c8668121d30a6263d830c4994ee366228d22ab70caae19b40b1e0f1bcd0075e7983d32dc6f300a2c6fc745313dd03dbe41c13710422ce3ec80056b82806972dc WHIRLPOOL 298c2708115d308b4d36c6f92d7c82299137f3d0c96ce9f228fd3f4e2012aec62a0808e3c2d183083f403b85e8f6b3a99df2d2177bbc5cd28d74dd9bf09e135c
+MISC ChangeLog-2015 396 SHA256 a3f74669cfcfe6fda0c64489811654c55c0eae7cef52be5ff626c0ede3a651fe SHA512 6bf2b15dc6f6eca8b60845badd2a1e00333fef40d63262bb9c5dacfdf97d4fce79574b5ab8cb903aa7c91d41f24b40ae2f207fd51af5597f9f4ff9524c979b6c WHIRLPOOL 13e403075d4049de364a8c815aaacc310605a9c7a9bd9ed20369f3fc94acc7b845b3ade89584b60211b43f9ec1df67db371c5bb40ae289a6b7c85debe3adff27
+MISC metadata.xml 269 SHA256 40cab114263d43c3b93b822066d1871574ffb54eb88971fe3ba2f978de6683df SHA512 9877d09d42c801d752617b41c7fb790db8e10c033c02ee9fe9a04fa1c6a8ea06d3baeb4f81d041b57e883d5d9dadb429289faae90d0293c62334ba35549e0276 WHIRLPOOL 4ab6badc6e62443d13b8f13341e48263abd3f6907a32dfa263470528c1eb445fb4ec79ad7f9979177846c0a3a39dcafa27dff466fd283946da5c8bc1872b9218
diff --git a/sci-geosciences/readosm/metadata.xml b/sci-geosciences/readosm/metadata.xml
new file mode 100644
index 000000000000..2761b1b9e5c0
--- /dev/null
+++ b/sci-geosciences/readosm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/readosm/readosm-1.0.0e-r1.ebuild b/sci-geosciences/readosm/readosm-1.0.0e-r1.ebuild
new file mode 100644
index 000000000000..84172b249675
--- /dev/null
+++ b/sci-geosciences/readosm/readosm-1.0.0e-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Library to extract valid data from an Open Street Map input file"
+HOMEPAGE="https://www.gaia-gis.it/spatialite"
+SRC_URI="https://www.gaia-gis.it/gaia-sins/${PN}-sources/${P}.tar.gz"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ dev-libs/expat
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/sci-geosciences/routino/Manifest b/sci-geosciences/routino/Manifest
new file mode 100644
index 000000000000..f8aff98b6c77
--- /dev/null
+++ b/sci-geosciences/routino/Manifest
@@ -0,0 +1,8 @@
+AUX routino-3.1.1.patch 828 SHA256 e2e73cb49a809c30e3fc94fb49b092dcb0e91d228f640cd689ea949b5ed91b5a SHA512 a7ff4acf285144f714ec3d83201459709aa30929d98215812505dda4c1a8103cd3c75839d22019b24bc1648c035b2bd8f5c71a340f4a10c682e3f45b456ac399 WHIRLPOOL 13b458493dfb53dff6252c98c7f8df33cf4544f4386128c54382e39ef45814e8ebc029d01e7b8301678e95bf29b86a828f21928ecfa1967cce6f89342e24ee9e
+AUX routino-3.2.patch 774 SHA256 374e34c33dad36805842be7ddfe70d8ac9af953d590c35f713eab56ed5c88246 SHA512 0ffb2e3c9183c88e17e720491ab3b3078febcd15d7be777004d9ac2b80cc16225d60f24a0bafc5d36c73db3e8c822ad3f8717e992f4a5bee12b62b2dc710defb WHIRLPOOL c2e8403b39933f3126b9a101d9ce5b9bba9b8783ff05a3153e5d4cbfc7484a867d58d32c1cc9582dbb113cb81ef460790db6d621264d22eecdf2740f85c78420
+DIST routino-3.1.1.tgz 1795118 SHA256 23b9fce43f0a85c9efe220c6c72026dd7b37f6a4a5153bb9dc4c4b0747c7f282 SHA512 088f22e9297f485418ed369d00827690f86e224e331b69085513339870fe6d97cffef62aa5e7e14883800469beff4af4b0a581ba8bad78920a383d7152be6ede WHIRLPOOL 914180a728120ba189ff9bc2bf51c64246f635f7cc2e6b6efecf4dbb2c76f9b61f6269225620b5a5204025c838a6fcd8ffc24953a8cf24c084edbbdfb24a6b58
+DIST routino-3.2.tgz 2463662 SHA256 e2a431eaffbafab630835966d342e4ae25d5edb94c8ed419200e1ffb50bc7552 SHA512 f5be46d9c026fcd92658490630d9ff6e4827e84ee57ccbaae48f54372da37ab78de24432ab9fa1d6860304a9a2ac86061eb876c12b39e821693282c4d4aaefcf WHIRLPOOL c30ea87987e60d5ef57591bcba8190ece3cc8acfba2cb62035785238119c0d84db65e9f53a2935d8cd2bb0c3d37cd9b8970e9c6ba897b0874f847db31f0858ee
+EBUILD routino-3.1.1.ebuild 459 SHA256 8c843fde4d6662aea7cf7fdc349c325587a3be1c2b6a74449e982b4518bc83f1 SHA512 143c56bf79d8e1bd62d4c180bdea711c4b67831d8fe5bae162b6bdfa33fe01d092772f16fce23e0a2fc5a6a228e25c7f81edf19e2af5506f989c01955a9b1742 WHIRLPOOL 9d4f9caefbe368f9c8176b5bec008cb06daa76f368205f87df6bb5bb7b35e090b6213738abdba97575cb6e4e05dc39961b71dc7b10e61ed4d39a114ba8f1f9f3
+EBUILD routino-3.2.ebuild 461 SHA256 356983ddeaa999404b1e7ca10a059fdd365473b3a43ca41aab92eab51735f8f5 SHA512 35a464426fa5c408842a73ca46b91e643689b66d0c8877b0781d4be04ece378b0bc352ade48dc5ebc520ee0589032e09c18b0b3928fb6b0a1af372371d9fa76d WHIRLPOOL edcbe0f08de87beb1f91aad70d0a1f255a257022bbecd7192ce91808f4ea0995784d0630b3af40e69477228787220639f58654a0c4f09f7238d55eb37bab4692
+MISC ChangeLog 1223 SHA256 a18015d346097a1e7254ac7fbf768f0e97e7774beb8c66e162f6ab603e4a013f SHA512 16324ad3437549e317af53bd45e354d78b2ba225c3b612e3ca21e5fc0192266a6ff45d998fe071a9571d39ab541d44a870a0b5715da8806763730ce03ff7c98f WHIRLPOOL c8a0a7cec5792d531cad7530e41edb621e172fdaaa63fe6a089f9dc1c075305095b7ad13f56d0acc43715ba05f23f7a278f3133f3cd0528d42394a047ad24681
+MISC metadata.xml 893 SHA256 15702f35b5bbdd59fc05edaf5274c86cd5777ed9f861d409b88801882b7748e1 SHA512 84bd42eadbfae10a8762f0d8e28d410d2bf6c69a02e38cf870a846b5f7431130116658e22de5b2411cca0965e027d2f5c71e02bcf6b5ce1e1a804f1c235f60ff WHIRLPOOL 04fcbc8f5256cb792e05ca3c9abd47f7c6d943faa9d1b1434734ed4e25b345760ebc3edc0055d9fa33fab3ebb021324b59dc5e98289cdffb1a0f3c28cc6598e0
diff --git a/sci-geosciences/routino/files/routino-3.1.1.patch b/sci-geosciences/routino/files/routino-3.1.1.patch
new file mode 100644
index 000000000000..15ba41b73feb
--- /dev/null
+++ b/sci-geosciences/routino/files/routino-3.1.1.patch
@@ -0,0 +1,34 @@
+diff -r -U1 routino-3.1.1.orig/Makefile.conf routino-3.1.1/Makefile.conf
+--- routino-3.1.1.orig/Makefile.conf 2016-03-05 19:49:21.000000000 +0600
++++ routino-3.1.1/Makefile.conf 2016-07-16 20:09:22.208869580 +0600
+@@ -47,3 +47,3 @@
+ ifneq ($(HOST),MINGW)
+-prefix=/usr/local
++prefix=/usr
+ bindir=$(prefix)/bin
+@@ -51,3 +51,3 @@
+ libdir=$(prefix)/lib
+-docdir=$(prefix)/doc/routino
++docdir=$(prefix)/share/doc/$(PF)
+ datadir=$(prefix)/share/routino
+@@ -76,6 +76,6 @@
+ # Maths library
+-LDFLAGS=-lm
++LDFLAGS+=-lm
+
+ # Language dialect selection
+-CFLAGS=-std=c99
++CFLAGS+=-std=c99
+
+@@ -85,3 +85,3 @@
+ # Optimisation options
+-CFLAGS+=-O3
++#CFLAGS+=-O3
+ CFLAGS+=-ffast-math
+@@ -141,4 +141,4 @@
+ # Required for xz support (uncomment these two lines if required)
+-#CFLAGS+=-DUSE_XZ
+-#LDFLAGS+=-llzma
++CFLAGS+=-DUSE_XZ
++LDFLAGS+=-llzma
+
diff --git a/sci-geosciences/routino/files/routino-3.2.patch b/sci-geosciences/routino/files/routino-3.2.patch
new file mode 100644
index 000000000000..484b61b68f10
--- /dev/null
+++ b/sci-geosciences/routino/files/routino-3.2.patch
@@ -0,0 +1,30 @@
+diff -r -U1 routino-3.2.orig/Makefile.conf routino-3.2/Makefile.conf
+--- routino-3.2.orig/Makefile.conf 2016-11-22 20:22:52.000000000 +0100
++++ routino-3.2/Makefile.conf 2017-04-01 23:58:23.835905270 +0200
+@@ -47,3 +47,3 @@
+ ifneq ($(HOST),MINGW)
+-prefix=/usr/local
++prefix=/usr
+ bindir=$(prefix)/bin
+@@ -51,3 +51,3 @@
+ libdir=$(prefix)/lib
+-docdir=$(prefix)/doc/routino
++docdir=$(prefix)/share/doc/$(PF)
+ datadir=$(prefix)/share/routino
+@@ -79,3 +79,3 @@
+ # Language dialect selection
+-CFLAGS=-std=c99
++CFLAGS+=-std=c99
+
+@@ -85,3 +85,3 @@
+ # Optimisation options
+-CFLAGS+=-O3
++#CFLAGS+=-O3
+ CFLAGS+=-ffast-math
+@@ -141,4 +141,4 @@
+ # Required for xz support (uncomment these two lines if required)
+-#CFLAGS+=-DUSE_XZ
+-#LDFLAGS+=-llzma
++CFLAGS+=-DUSE_XZ
++LDFLAGS+=-llzma
+
diff --git a/sci-geosciences/routino/metadata.xml b/sci-geosciences/routino/metadata.xml
new file mode 100644
index 000000000000..4b9330ffe671
--- /dev/null
+++ b/sci-geosciences/routino/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ An application for finding a route between two points using the dataset
+ of topographical information collected by http://www.OpenStreetMap.org.
+ This router uses a routing algorithm that takes OSM format data as its input
+ and calculates either the shortest or quickest route between two points.
+ To optimise the routing a custom database format is used.
+ This allows the routing to be performed quickly after a modest one-off pre-processing stage.
+ </longdescription>
+</pkgmetadata>
diff --git a/sci-geosciences/routino/routino-3.1.1.ebuild b/sci-geosciences/routino/routino-3.1.1.ebuild
new file mode 100644
index 000000000000..54aadaee9dd2
--- /dev/null
+++ b/sci-geosciences/routino/routino-3.1.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=6
+
+DESCRIPTION="Routing application based on openstreetmap data"
+HOMEPAGE="http://www.routino.org/"
+SRC_URI="http://www.routino.org/download/${P}.tgz"
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+DEPEND=""
+PATCHES=( "${FILESDIR}"/${P}.patch )
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ emake -j1
+ rm README.txt
+ mv doc/rm README.txt .
+}
diff --git a/sci-geosciences/routino/routino-3.2.ebuild b/sci-geosciences/routino/routino-3.2.ebuild
new file mode 100644
index 000000000000..cb1ceff2cd3c
--- /dev/null
+++ b/sci-geosciences/routino/routino-3.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=6
+
+DESCRIPTION="Routing application based on openstreetmap data"
+HOMEPAGE="http://www.routino.org/"
+SRC_URI="http://www.routino.org/download/${P}.tgz"
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND=""
+PATCHES=( "${FILESDIR}"/${P}.patch )
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ emake -j1
+ rm README.txt
+ mv doc/rm README.txt .
+}
diff --git a/sci-geosciences/seawater/Manifest b/sci-geosciences/seawater/Manifest
new file mode 100644
index 000000000000..35d8b84607cd
--- /dev/null
+++ b/sci-geosciences/seawater/Manifest
@@ -0,0 +1,7 @@
+DIST seawater-2.0.1.tar.gz 2680741 SHA256 e343ef9dba9cc5806b4040af5a63132e2d04bab6406216d5041f81f76d4b25cf SHA512 9d59d5c41f46311240934e18b8727514babc4e714553ba595017a17b95edf040c10ac7161f607c7e262c751e238a909d55a639a94fab4d4ce004a4c297af1e79 WHIRLPOOL 7bdff25f7f2152aa8c4c4184a05397b01a718b5198f821aabb1389acd54860038e5655c6f18e9a63ff699e61c4e66911e33e4085e03021f77452cb185e674ec6
+DIST seawater-3.3.4.tar.gz 22899 SHA256 1ec2c21b9fac3133d5c18ab654e3ff7c7167d9f437fcc16ee8d355e609533411 SHA512 1e448c0473809ae5022eda6b695d67db85a22767d068d7a025bdb1ad49a09f0f336e5f43b6a2fd869d39082895e45e7fa4ae2af98c1f2d613d28393f88ef27af WHIRLPOOL 62a759200bb73dc9ec048e61a165718a4e4ce68129f62b182d082eb4b9b120a6cc46f0a1e3365f6711b2f5c98c7803f7d3d13223c55948818635877793819e6c
+EBUILD seawater-2.0.1.ebuild 524 SHA256 861cc22595bfa3e2cd6f6f5eaef638fad0c202269e2293c30841117202a942a4 SHA512 98c290de8d96fcc7786b1d8d5fc1d4e71ab80ffcaa4643a2252b748345517e97fb7a1676605f8f30fd0f49dd2a2b118097101a252d520c9f7a37672f89860cab WHIRLPOOL 722af08f2d1b0eb0d01ab35a3b423430e88ba75192c82f18f4b63475aad16151e3d5af4b752dace4fe140992e3cd598a63699adff82e70693a9f013f69d62f4d
+EBUILD seawater-3.3.4.ebuild 726 SHA256 9ea65a637a8713f71d6f46c017d60e44ae5172322e11de3c8678cf62f84b94ae SHA512 5c415758c75142fb4deb09ba8c8df0ac6d80bb92acfe34572bf564048e13fa7260a626e8e54df02b0a76146b2f4141756853cf9a54a61802be9eb9a886ea47f8 WHIRLPOOL d4d7a53f5cf32438a4c30ef12935b5b94907fb9de779355bff20def3bd9173f474ad3a72f5ca5bc654b954705018876fe1dc156289eb49eb29223836071358b3
+MISC ChangeLog 3217 SHA256 2e11d705ec8e89a1961eb6acb5b91acd471fdaa1bed7763c9f05cab03983619f SHA512 13caaf3a5669b86f8c769598b37d48cd287233f075c426db14cb4cb45cbef106a4e65b1fec9be7dd6b8a39a2fb88146e1de98ad68ec8620cd6afd986534ff7df WHIRLPOOL 67a043b88c5cc8f2ebd767933e0f7a1bb84b6bf3f7539073cef4fb39e1b7fc0c023b090d4fea9cf3fa9aed395c42aff5f47d30708adb4d2a77f1128d5b457ae3
+MISC ChangeLog-2015 1744 SHA256 368f273a1d5d4dd69aed5b3c7b974f77ffac1e3ecfa35a760ca0212d98fec0c2 SHA512 5968b8ec88ef0c8a100cdb2aa8d5e5fb56a1be4c79a0d4d53e3cb22296c559c98eafeda7a15edabafdfed057ce911d460530c5937608420ce65bfb89f5e5914a WHIRLPOOL 63754e53ca037d0979aa41fca16e671f0bf29376fc4ef458a844f5a6ce0ad4b0ab58875d90d35e45318a348fb6d95c8c63d9d56114cb105ac6918cec0cd87b39
+MISC metadata.xml 243 SHA256 520438c3a6e8812d6091908b8e9357da2d5db9a4a6499215a53bcbeed554d08a SHA512 8dd5436eaded32c4c5bbf8bd6026ec0089cdf1ed92d43acbf535a8a711d1ce07a4d9650efe4bbdb9c5fa355b2aca45b4e40cbf94c34e14213adb2cbfbc9ec140 WHIRLPOOL eb05728ca262bebd2662bff81b07fb5d1e7257497e33afc1e4fd47fe9f7c29a49c06a836d7b2dbc3df5074904b289c0a77f31a211bdaffa8f8a992db3dfc0a0c
diff --git a/sci-geosciences/seawater/metadata.xml b/sci-geosciences/seawater/metadata.xml
new file mode 100644
index 000000000000..d505d3a8646a
--- /dev/null
+++ b/sci-geosciences/seawater/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="pypi">seawater</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/seawater/seawater-2.0.1.ebuild b/sci-geosciences/seawater/seawater-2.0.1.ebuild
new file mode 100644
index 000000000000..7e3abdb9163f
--- /dev/null
+++ b/sci-geosciences/seawater/seawater-2.0.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit distutils-r1
+
+DESCRIPTION="Calculate properties of sea water. Similar to SEAWATER 3.2 for MATLAB"
+HOMEPAGE="https://pypi.python.org/pypi/seawater/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+
+DOCS=( "${S}"/docs/. )
diff --git a/sci-geosciences/seawater/seawater-3.3.4.ebuild b/sci-geosciences/seawater/seawater-3.3.4.ebuild
new file mode 100644
index 000000000000..661ef8f40cad
--- /dev/null
+++ b/sci-geosciences/seawater/seawater-3.3.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit distutils-r1
+
+DESCRIPTION="Calculate properties of sea water. Similar to SEAWATER 3.2 for MATLAB"
+HOMEPAGE="https://pypi.python.org/pypi/seawater/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="test" # seems there are files missing
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/oct2py[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ esetup.py test
+}
diff --git a/sci-geosciences/swmm/Manifest b/sci-geosciences/swmm/Manifest
new file mode 100644
index 000000000000..a8fe6b697738
--- /dev/null
+++ b/sci-geosciences/swmm/Manifest
@@ -0,0 +1,6 @@
+AUX swmm-5.0.022-QA.patch 449 SHA256 c2302f85fac105ab72727e1d9337ba0022cd64331e8ff6045655d49084cd3c54 SHA512 b9d68d3273a1f43a34a568aa4a9b334834bfff4abf239d16350916326cad7d6d440f1778b9f75dbf8b2b8b8f6ff12f74cf103b03db6ed8868461c41845aec34d WHIRLPOOL 0bac67eca04836a5b0d72e1534241b3d27d11ad68cf0b7533e92a5be897af1f74363a98d41276e78a9c972f7cb05fa68be70f607caf438ae0b74a4fdf1482b5b
+DIST swmm50022_engine.zip 338011 SHA256 4dba36cbe5e39524c06b826e265ae8fdd2afb82b1c63bb5d9fd72214ed2d7409 SHA512 aa424d36c062656611bc6d6e4ced3108b6fd05806bf47ace30b44cc631860423073ad4fcafb523b2bf0ce7c73c5edc4386e5129009984d3d34f34e9260c69006 WHIRLPOOL feea6403a47ab88e95cc04b1d9b4f99e8fc26c2b5f1c51f69cf78f9ea71e70852bbfa71cea2466771c74ddf555cc5c92b7afa81ea1bc83baddb9cbf5a6a9f7fa
+EBUILD swmm-5.0.022.ebuild 1067 SHA256 681a4d0f81df51f6d5fd56672714c7b78651fb10e9b9c77ab1ca1960210e16ee SHA512 12f2d8068939f943f09e3de5ecb4c27facc8fd6369467158251c4de28157512be6214530d818cf75f2bb627dd48276970331007e475f2a9d7f08920a5722664a WHIRLPOOL 50c9b28b636f75f24907de2c74b9f1a1b2e738118171c4a28bb19bf45fc60e8c6ff28bbefbd7811bd1c2368128746f173ba9f0fbaec49d9d2927db3991374866
+MISC ChangeLog 2947 SHA256 a97c8e187dd6550620d6a1814ccf1d094cd261035c2d784d74847b9633fca92f SHA512 88f9a407b0dba67caf72b767020ca85ffafb5b511f3457fdabda3daa76029609d4cd0607160aa096fe905f2307e37a4386e5fa13749ea92ec6e8018f37d9695a WHIRLPOOL 1bec5a14b01138451a7ab85b9c343bc2d1c2a48421ebaabc5adce1c7931f574af9e0b1e9512297359203de33352500592c9d843073b71382f359e356fbc5494c
+MISC ChangeLog-2015 808 SHA256 f3d5dd8de4c29dfc2d6883c702e33fb8be3f2b063a887619eb3a8e2c4c88b10c SHA512 43a8335caeb77a38a6c683f677760bcd1b8f0c3cc9820be1767361a50c5d2e2f60bae4a2001fb17c9357d60c371806b9ce385687fb6f92f360df76e998dad170 WHIRLPOOL 0962f1c171946d935c3ad1839fbd65445d182720e80c4f8f5ff768de4994521c16d438911a3bf32b5a78fe36ccb6a6722ee96eb9c54cad5544b77d09a2622f3c
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sci-geosciences/swmm/files/swmm-5.0.022-QA.patch b/sci-geosciences/swmm/files/swmm-5.0.022-QA.patch
new file mode 100644
index 000000000000..c84d50f5f6b3
--- /dev/null
+++ b/sci-geosciences/swmm/files/swmm-5.0.022-QA.patch
@@ -0,0 +1,14 @@
+--- Makefile
++++ Makefile
+@@ -7,9 +7,10 @@
+ rain.o rdii.o report.o routing.o runoff.o shape.o snow.o stats.o \
+ statsrpt.o subcatch.o table.o toposort.o transect.o treatmnt.o xsect.o
+
++LIBS += -lm
+
+ swmm5 : $(objs)
+- cc -o swmm5 -lm $(objs)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o swmm5 $(objs) $(LIBS)
+
+ swmm5.o : consts.h macros.h enums.h error.h datetime.h objects.h funcs.h text.h globals.h swmm5.h
+ climate.o : headers.h
diff --git a/sci-geosciences/swmm/metadata.xml b/sci-geosciences/swmm/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sci-geosciences/swmm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sci-geosciences/swmm/swmm-5.0.022.ebuild b/sci-geosciences/swmm/swmm-5.0.022.ebuild
new file mode 100644
index 000000000000..defeb38e3854
--- /dev/null
+++ b/sci-geosciences/swmm/swmm-5.0.022.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils versionator toolchain-funcs
+
+MY_PV=$(delete_all_version_separators)
+MY_SRC="swmm${MY_PV}_engine.zip"
+DESCRIPTION="Storm Water Management Model-SWMM, hydrology, hydraulics, water quality model"
+HOMEPAGE="http://www.epa.gov/ednnrmrl/models/swmm/index.htm"
+SRC_URI="http://www.epa.gov/nrmrl/wswrd/wq/models/swmm/${MY_SRC}"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_unpack() {
+ unpack ${MY_SRC}
+ # Need to delete Readme.txt, because it is in makefiles.zip
+ rm Readme.txt || die
+ unpack ./makefiles.zip
+ unpack ./GNU_CON.zip
+ unpack ./source*.ZIP
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-QA.patch
+}
+
+src_compile(){
+ # 'sed' command has to accomodate DOS formatted file.
+ sed -i \
+ -e 's;^#define DLL;//#define DLL;' \
+ -e 's;^//#define CLE;#define CLE;' \
+ swmm5.c || die
+ emake
+}
+
+src_install(){
+ newbin swmm5 swmm
+ dodoc Roadmap.txt
+}
diff --git a/sci-geosciences/tappy/Manifest b/sci-geosciences/tappy/Manifest
new file mode 100644
index 000000000000..4f34a3f62c40
--- /dev/null
+++ b/sci-geosciences/tappy/Manifest
@@ -0,0 +1,5 @@
+DIST tappy-0.9.0.tar.gz 1250867 SHA256 273dce2595a0c2161752d9cb26e4e2569d6f42028cdf0b418c90775ff2443bf0 SHA512 2f3c7676c166dbfe88436cac9a0c4e3d3d4c027e17c39617c45eb02c1c2eda9276afb1ceaa16afd54bb6de130248f83c8c66aeb3509483cce642d2eb631fb9df WHIRLPOOL 83c24a29c2818c0ed6767b8e18c6b899befd26935de31ac933d83c5dd5d0e74bd908f52a174fe6dff8fcdd47e4cad8658be5a9f3c2bf12d70978cb1c2edc7ed0
+EBUILD tappy-0.9.0.ebuild 578 SHA256 852dacd1388f509c6ecba2f97bbbb6d9b22d4800204bfacf44884bc6ce1c269b SHA512 329455350b283d7950dece0ae582fe96570dc9ecfa41596f8174d7d0cdca90cf2dc581a4be8a8efa2aeb532fc898e7e98f969a73e430f55885dda8468ca9b700 WHIRLPOOL 58365d9bf5808ed0a72085bdde7bea8a26ecaecb614161bc00ee6531fb03c7706e72dd45e8f7cb7a354176231e0f0ee0b17804fd00594b19574184decdf4e064
+MISC ChangeLog 2523 SHA256 322552a6a7d2bf71f4c8c13c97c6fd6c462ec4bc8a3a04e20906dfc69970b395 SHA512 5dd8e65f6a5b75aa6ac8f7c7dd0a2454cfd60cd04d80f84fd13f16aea32cbbe30796695d12d83c096c4aaffed3e1f6492ebcfd56e158440dc6949ceae6031f13 WHIRLPOOL c797a522f45652aca1e03399ccaadbb6c97abf7bb3738d64ac538927fc62d5553e85e8736551ae17f77140045be7c7f08bffabc75a0a95d2713f1898bc165a03
+MISC ChangeLog-2015 669 SHA256 61d28034fd30dd8b0c09a431c7863688e16021454de0e9bf363789264472a76b SHA512 8099ed486c6467c50314429b195114e18aff40b0ef833a0c08fcf637173e32e0a523ea126825431e35e1e9a4bdd2a4e1b3b58feda2ad2c6b9deaf582b7e1347e WHIRLPOOL 14f932cef16a336b4b54c6f3d35321c51ec8d84e8e0fb796a6fd6f5caefd2d7ee964eab3036114371c61fd94540ddde66d29f1456f6419b66befea62a3b477c9
+MISC metadata.xml 242 SHA256 51157942c015068bc61ac6f1e69781eb500cd41a5383a4dd9f2c460e95ab30a4 SHA512 9f5f87d23e28667049584a6c7d3104f7c54a90c71a5527728415a683af6fdae01f64b9b22e9bf4e8d2627396b1000480cbaaaeb286ad7370ccf0aab9e93e01a3 WHIRLPOOL ada507f8a70fb0d3f87e7d1100bc154438a77fab03bb43e25764d0fc0122f7461e95e72489180c758fddf8bb968de53afddfe677c3bb84c8f15bac4b181f6d21
diff --git a/sci-geosciences/tappy/metadata.xml b/sci-geosciences/tappy/metadata.xml
new file mode 100644
index 000000000000..77c02458b0a4
--- /dev/null
+++ b/sci-geosciences/tappy/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">tappy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/tappy/tappy-0.9.0.ebuild b/sci-geosciences/tappy/tappy-0.9.0.ebuild
new file mode 100644
index 000000000000..cf6423bcefa9
--- /dev/null
+++ b/sci-geosciences/tappy/tappy-0.9.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+inherit distutils-r1
+
+DESCRIPTION="Tidal Analysis in Python breaks hourly water level into tidal components"
+HOMEPAGE="http://tappy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pywavelets
+ sci-libs/scipy[${PYTHON_USEDEP}]"
diff --git a/sci-geosciences/tcd-utils/Manifest b/sci-geosciences/tcd-utils/Manifest
new file mode 100644
index 000000000000..0412aa61d910
--- /dev/null
+++ b/sci-geosciences/tcd-utils/Manifest
@@ -0,0 +1,6 @@
+DIST tcd-utils-20120115.tar.bz2 118652 SHA256 85efc69209c41c089f0a93dec0356b2ce16ae2efba51bd73570828961cdb894e SHA512 be4f4b17e24d378cee45c6de20aa4727648f9b0c755118094a06fd830fb4ca78bf467cb4c5b0f430917ae124b2040fef83dcae60186893baf785342585b5d8aa WHIRLPOOL 3d7bafbed8ee412ef3181bca977b5c439c8e89a3195d8fc49d377c9d873dd8a3119d984cdd0e24440254ea9139c48d7895948523e96aea2644efce3ad8701506
+EBUILD tcd-utils-20120115-r1.ebuild 405 SHA256 524a81b81b233975c70d9f7fd898f8feeb49029c56eb3bfd0932b36bd80196bc SHA512 28e3d258cd28a4a7c2e9159b032077b748c2ede36f30cb03720ca0fbd4f1352dec702bfdf80dfa39c0b265038d6c2cd400e29830a8492be3ab48e66b0d027815 WHIRLPOOL 4061c3b780f6765b2210f568014b3d9f2430d3061abf0f47abc5d367872778bd9be8b6621f8dc818105cc99ba924fb462d16d824205b94bdc662ed2e942065b2
+EBUILD tcd-utils-20120115.ebuild 403 SHA256 182cc84cd6c8d0c69455271cbc0159810aedd7a7a1b9b58a3277969a5212d571 SHA512 5d0f1905850d3201ebd3b08815c2678fdcb0e41b793e68fdb12b7c9f8e79512cd53d72423512d8871279df4fdf27ca70d7f3be7bb0b5efbd15ab2dc60f470418 WHIRLPOOL 5061f796af7ef805accdd1b26b4a0628e7a6aefdbb890a6d52a237169dd0a731eff480eeb2cb38f4052b01bc0e8b98924613a8c0c15b6a6ae7ad347e5f019b8c
+MISC ChangeLog 2534 SHA256 f97875240dcb804f5e43d1825df9bfcf9e9efe61429f62d918eddc3d9219b7aa SHA512 7ba447672dbfc4951e6b9915b97d431a4909468176f0ff7a1243efc9b1346e2a84e3e4f261cf2025b4f2378d6b6f4756ed8c057fe9b0b55293a0cae11d263c64 WHIRLPOOL 71a196bd43f11210a6797cb3930a11876e530d4f1f973ba2679c1a9a19afdf953b7aa90e45c23238b458116ece3e4f8808dfa79e49edb08e0c07c9aabb047774
+MISC ChangeLog-2015 717 SHA256 fc223f17460bac7f0f2ec1c56ebf286b7bb3fdd1a467496af5404a1d71c5151e SHA512 faaa6ee9e6cf8ad28b5a200a5491a24672a8437758de66a625f302abaa5a770ebb412f068da566130055ec2549742e7af72e51159570661f6dfd19d092e83929 WHIRLPOOL bcd1c1cbc81aef4588e5275689033de1bec5b7deb4fefc6eb2db1cb252208593ab97a7b277186dfd28c2de87871133844edfb953c9d3bf2ccb90d31c5875489b
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sci-geosciences/tcd-utils/metadata.xml b/sci-geosciences/tcd-utils/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sci-geosciences/tcd-utils/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sci-geosciences/tcd-utils/tcd-utils-20120115-r1.ebuild b/sci-geosciences/tcd-utils/tcd-utils-20120115-r1.ebuild
new file mode 100644
index 000000000000..1128deea6116
--- /dev/null
+++ b/sci-geosciences/tcd-utils/tcd-utils-20120115-r1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Utilities for working with Tidal Constituent Databases"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=sci-geosciences/libtcd-2.2.4"
+RDEPEND="${DEPEND}"
diff --git a/sci-geosciences/tcd-utils/tcd-utils-20120115.ebuild b/sci-geosciences/tcd-utils/tcd-utils-20120115.ebuild
new file mode 100644
index 000000000000..e0a87ddc17f6
--- /dev/null
+++ b/sci-geosciences/tcd-utils/tcd-utils-20120115.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Utilities for working with Tidal Constituent Databases"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${P}.tar.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=sci-geosciences/libtcd-2.2.4"
+RDEPEND="${DEPEND}"
diff --git a/sci-geosciences/tilecache/Manifest b/sci-geosciences/tilecache/Manifest
new file mode 100644
index 000000000000..3c3ccdb3d19a
--- /dev/null
+++ b/sci-geosciences/tilecache/Manifest
@@ -0,0 +1,6 @@
+AUX tilecache-2.11-pil.patch 935 SHA256 8c871b69f7d166ee09a50f31afcd4e3f509ff6572767bf94347f2137b9ca84e0 SHA512 1fcc6b35ce464a76d99b858f2e6d3baf9a4e4e22ee81db4dc178eb63dfcf30f0501cd420624406a85987eb78f387156a2756f2d151c52cf301e2592500e5e924 WHIRLPOOL b8905f26ffe33ae4016e7d403aedb90d82d8ceae3918c9dcf6d43db277ef713d614513b4e7ff87d22fb0f145d98c9ac12bf797e97f0150d3798c6ade51e33239
+DIST tilecache-2.11.tar.gz 68705 SHA256 b46dc2731a19b40e3207cf3c9b43ea59b899a622a586aaa3c397c3b5aa00f887 SHA512 234fdba3465b9f940b4bf45a4427c61a803f4458266c59ac08d52bdaace4a186d7bf37cce7af6f273ba0ade9e8d6118fa58ce6dd37645a0667230dc507ee991a WHIRLPOOL aa3da22b95b35da7b6612ed6078ccec34828c0488ddff18b33642cdcbb7dc45a502f6b5717f25264b6d9ffc0b5d2bdd1fb4091bc49277d5c135d216f24b3567c
+EBUILD tilecache-2.11-r1.ebuild 597 SHA256 71b6fc7cf640fe3eb818d44d8a5cf8679411a8c245c5ec1fe8819c1288f7c9f4 SHA512 492159c37da6056b2a94b0e58d33c5582b6bd9da0e92c4898fba287d41a943e428178658c424ee1ee209ae7dac415d56976ecc999c7917ad5a94a0f96d63f2de WHIRLPOOL 0da37d8c13b21fb400d2eb3aca4e3c0a713fefa74762678e6ffc2a6cc82b8a9d7fff6c4c013e8518c86de1b012bf1fb79adb1d00b1265bb3761559de8be217c1
+MISC ChangeLog 2666 SHA256 6e2fb272708d6f7554e1fa40c35d7a7d76138c2c4bc9ba579b93b97a5112281e SHA512 001b97479d231a15406a891db3517072529cbf632015ebb1371f7ac3e87fdc52c3dddc98d7295c03d7897aebd8a85cbe9c1e410680865d836ce0788a82b81d91 WHIRLPOOL 0f203b44526c69e1295d0d07c3213acf1e0ce7ad68f96d183c392a6197049f4519021d904092d89ab7d4a5f6de7f5a8ec7b22bdcbcde0b51402c15d87fa13c60
+MISC ChangeLog-2015 1445 SHA256 b0093f7b8ebc5fbebc6ef3984127b1a03d599508ecb9dd90e61eba8a51cd02fc SHA512 429e04dd51ece72a78e02ea3e20451d5b5bd5fffd974cccbb7b262233dda6628ae794c7d3777d9bc02d46ab74a0e347b7aa493ebc7cdc5ef4e65a0a7a5a6e90e WHIRLPOOL eda12b2bc8fbf8caa86e0c2235951fb494de0ab759fe048130e4722c88966fca8249e6046d94334f81d6cdc4cad3fd90c91a06b990e70ded56ded3f52962d26b
+MISC metadata.xml 265 SHA256 4f6ab72340330e0b1a0e2ad7439bac9ccd74da94ce42ba76b58cbb81dc52125b SHA512 c08402155a91423d29d281e4adcb3bcb057a61def37efc13bbaf8ea03c147e258352fcc9d6ef12c935ed65078743d79a5191d72d7838429a80cadee42b32cb8f WHIRLPOOL 5204dd687ea2f450344a4a626383cbc05d27b2f264156054a4f2a5e2b7e80986224788b2411cee6011c0c0e604835f69be412eeaaa17076cc3762691855656f4
diff --git a/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch b/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch
new file mode 100644
index 000000000000..b596ae449ff7
--- /dev/null
+++ b/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch
@@ -0,0 +1,21 @@
+diff -Nuar tilecache-2.11.orig/TileCache/Layer.py tilecache-2.11/TileCache/Layer.py
+--- tilecache-2.11.orig/TileCache/Layer.py 2010-10-15 04:00:18.000000000 -0700
++++ tilecache-2.11/TileCache/Layer.py 2013-11-09 11:05:17.620475332 -0800
+@@ -391,7 +391,7 @@
+ return MetaTile(self, x, y, tile.z)
+
+ def renderMetaTile (self, metatile, tile):
+- import StringIO, Image
++ import StringIO, PIL.Image as Image
+
+ data = self.renderTile(metatile)
+ image = Image.open( StringIO.StringIO(data) )
+@@ -444,7 +444,7 @@
+ return self.renderTile(tile)
+
+ def watermark (self, img):
+- import StringIO, Image, ImageEnhance
++ import StringIO, PIL.Image as Image, PIL.ImageEnhance as ImageEnhance
+ tileImage = Image.open( StringIO.StringIO(img) )
+ wmark = Image.open(self.watermarkimage)
+ assert self.watermarkopacity >= 0 and self.watermarkopacity <= 1
diff --git a/sci-geosciences/tilecache/metadata.xml b/sci-geosciences/tilecache/metadata.xml
new file mode 100644
index 000000000000..1c984f64751f
--- /dev/null
+++ b/sci-geosciences/tilecache/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-geosciences/tilecache/tilecache-2.11-r1.ebuild b/sci-geosciences/tilecache/tilecache-2.11-r1.ebuild
new file mode 100644
index 000000000000..f52323268ed3
--- /dev/null
+++ b/sci-geosciences/tilecache/tilecache-2.11-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Web map tile caching system"
+HOMEPAGE="http://tilecache.org/"
+SRC_URI="http://${PN}.org/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/pillow
+ dev-python/paste"
+DEPEND="${RDEPEND}
+ dev-python/setuptools
+"
+
+PATCHES=( "${FILESDIR}/tilecache-2.11-pil.patch" )
+
+src_install() {
+ distutils-r1_src_install "--debian"
+}
+
+python_test() {
+ python setup.py test || die "Failed tests"
+}
diff --git a/sci-geosciences/viking/Manifest b/sci-geosciences/viking/Manifest
new file mode 100644
index 000000000000..ae8e6f273abc
--- /dev/null
+++ b/sci-geosciences/viking/Manifest
@@ -0,0 +1,6 @@
+DIST viking-1.6.2.tar.bz2 3324897 SHA256 dfe223b1cd3a1fed3616a70e732321db9013c89df3fd6e1ad0f733a1bb067826 SHA512 91f82aa1c0a7ab80990d501767ff0bf74c1d6153162e6213fc712e6a27fb465f89adf002e389a39fc51033f36f1b2ec5f05d20af328e5342dfc1158b8a9964f8 WHIRLPOOL 05e4e3d2694d80dae08c6c57ef1629aa2e5172cc8c75574e113809685ad76bb5a2b6321ac9938ba2ab962a1a461c5d67cfcbed114daf41a68ecc442272050fb4
+DIST viking.pdf 383200 SHA256 b45d2c35c36484f9e3550c2b161fc7c60609e0f1f6f163f73ff70886f5532138 SHA512 481c88afd43783475366d41cd46a7fa5fdbcd20fec27b3ce286fb8abe1e9efbb4164def0d19fca2380fa95b5b97e9472f25ff5e10f8d95261e85b7c4a52d29ee WHIRLPOOL b674549c160429de8757f337699d596be2573158a64f6d873b59769eddc1afa8519e4ab0ac8f13f6a36b57da11f85c5f1fa061eb06ba61cdc026bbc4702ab33e
+EBUILD viking-1.6.2.ebuild 1583 SHA256 9cff78b1fcf917c2648844e65cd903bc6f35aa7a74cd5c4838353a18077c045d SHA512 7b64f44743726d3b34d9f3f90c7c02f2d12ececabf2973456d819af5190714538aaf8fd0dd2c1c2e4f5329f7edc46da5389b9b2965a9012900c6b144f1eaafc8 WHIRLPOOL e796f1a0fd2d1b218b00d80f310a0279e5b1761c7e60ac7ab4c092519a04aa83049a2ec2b66e6c9d25bc44f1e399d2cfb829384957ef5ac0d1a1ab039e30e9e6
+MISC ChangeLog 2685 SHA256 b9d2cd6d210b2b016b047da5295fc0f6dbe3f003e4fd695e15a177f14548655e SHA512 5bd16f6169d5ce804f4d0a4676087c43497eb112a4a0bda6a0f95f9966fe9bb0f5a3660052ab4c801701b4ebf0857bfc6f06983c4fe64bdeba2745bfeb5b617f WHIRLPOOL b28897bd973f90fd897fa14744498c2bb6b0974c9d34880bca6499487e99e9c57c62cc33a9884f18adf517ae60176c2bbff6679b7c5b5f08c516a5f31dcada51
+MISC ChangeLog-2015 5645 SHA256 5e93241581389e755b3dc4085df0f39ae55db5c9064fa0f30b9735d7a7afff94 SHA512 8bfc153c6e4b59e2b311a71dc6f6ca914d16c2f98630911e92ecc9344f6173d99cf90fc008979600874142760d08e098a49beadfe733eba08f69c8d107101af3 WHIRLPOOL 5a59b2a5bc03f41462ae4a9158b4c8c5a8cbe49b2a72809342a6822e282426ba974b0d9f37632760c8a4133b9a871feb0c7626d6f93e3d5db2daf42198d25670
+MISC metadata.xml 828 SHA256 95a868454f2e3188b6dcafc8e2fdaaa1706dbe357fb8c17bc474905930096536 SHA512 c8b9fe12169e2ea31110188f2bb0aba17138dd325af8ad04d26803bed10ec63657a2de7fcc0ccb774b2731a1a85cf3bdad14c88796e6747ecbe5abb72d88e057 WHIRLPOOL cc955c8e179182d4e46e8fb2b34f28fee9785e1cc6dbf1feebdff360100418a52d4c61cf77a341212e0bd46b59563bcc7f0fb5f2fda20a6751c915217b734503
diff --git a/sci-geosciences/viking/metadata.xml b/sci-geosciences/viking/metadata.xml
new file mode 100644
index 000000000000..39d38e113b0a
--- /dev/null
+++ b/sci-geosciences/viking/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <use>
+ <flag name="libexif">
+ Use <pkg>media-libs/libexif</pkg> for EXIF support
+ </flag>
+ <flag name="magic">
+ Use libmagic to determine mimetypes
+ </flag>
+ <flag name="mapnik">
+ Enable a layer based on <pkg>sci-geosciences/mapnik</pkg>
+ </flag>
+ <flag name="sqlite">
+ Enable MBTiles support based on <pkg>dev-db/sqlite</pkg>
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">viking</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-geosciences/viking/viking-1.6.2.ebuild b/sci-geosciences/viking/viking-1.6.2.ebuild
new file mode 100644
index 000000000000..a87d9ea127f7
--- /dev/null
+++ b/sci-geosciences/viking/viking-1.6.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="GPS data editor and analyzer"
+HOMEPAGE="https://sourceforge.net/projects/viking/"
+IUSE="doc +exif libexif gps +magic mapnik nls sqlite"
+SRC_URI="
+ mirror://sourceforge/${PN}/${P}.tar.bz2
+ doc? ( mirror://sourceforge/${PN}/${PN}.pdf )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+COMMONDEPEND="
+ app-arch/bzip2
+ dev-libs/expat
+ dev-libs/glib:2
+ net-misc/curl
+ sys-libs/zlib
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ gps? ( >=sci-geosciences/gpsd-2.96 )
+ exif? ( libexif? ( media-libs/libexif ) !libexif? ( media-libs/gexiv2 ) )
+ magic? ( sys-apps/file )
+ mapnik? ( sci-geosciences/mapnik )
+ sqlite? ( dev-db/sqlite:3 )
+"
+RDEPEND="${COMMONDEPEND}
+ sci-geosciences/gpsbabel
+"
+DEPEND="${COMMONDEPEND}
+ app-text/gnome-doc-utils
+ dev-util/intltool
+ dev-util/gtk-doc-am
+ app-text/rarian
+ dev-libs/libxslt
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+src_configure() {
+ econf \
+ --disable-deprecations \
+ --with-libcurl \
+ --with-expat \
+ --enable-google \
+ --enable-terraserver \
+ --enable-expedia \
+ --enable-openstreetmap \
+ --enable-bluemarble \
+ --enable-geonames \
+ --enable-geocaches \
+ --disable-dem24k \
+ $(use_enable exif geotag) \
+ $(use_with libexif ) \
+ $(use_enable gps realtime-gps-tracking) \
+ $(use_enable magic) \
+ $(use_enable mapnik) \
+ $(use_enable nls) \
+ $(use_enable sqlite mbtiles )
+}
+
+src_install() {
+ default
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/${PN}.pdf
+ fi
+}
diff --git a/sci-geosciences/xtide/Manifest b/sci-geosciences/xtide/Manifest
new file mode 100644
index 000000000000..931ec7409019
--- /dev/null
+++ b/sci-geosciences/xtide/Manifest
@@ -0,0 +1,8 @@
+AUX xtide-2.13.1-Werror.patch 611 SHA256 f881186e23447f1b526fc289b9c0eea9e3a16270b86946a8eefefc33d3ba8d93 SHA512 3ce9ea4a32afe30d926be8f3c472745a84d146170e929925855583de2fa7ee10e867a6f6e6ac339bb4e2a66f6ec6a517d75959bac2a2f4d009c305933a513607 WHIRLPOOL 07aabbd8c464f92ae5ed1a586c662979a9ace4aae67a1c15f17a54085fd9957055f5adee9e8176bb90bb2e47f8335d998b168b0b7d8552a167819d0936343099
+AUX xtide-2.13.1-gps-switch.patch 2413 SHA256 4708502dbc80c65b176df76b0aa44d21bdc28e4ca7dd276af7b31d766ae2f2f1 SHA512 0f6dc8399962c76853d75dc00e4929ca7fa9c0f004c47902936b586e231ba8772b333330ae0ec909bb45c13ff393dcf212fabba3b7e52ddaa50e93920a9852f5 WHIRLPOOL c1786937e2f29a814fa8655b9e72de7db0eee5ebdabf551205e0b5cda0082b2a8cb328ef9ee384b66cb6ab1f6377162a0bddae11b2c640e6cb0af411917cb07b
+AUX xtide-2.13.2-clang.patch 913 SHA256 3c1ca79f384c8a8f323901ec4ccecdecc2a659023c670ce867f240b247a5ae99 SHA512 5f9d5ea48706cb42a6fe8be8615b54eb67b7304a933f6e7a577ac3ea162a374221cb325766263664dc74c6bb5d1340f9f3417032a663ae446892c17d5561b88b WHIRLPOOL 730305f40ab408f05be468f87c7915c6109729c6546109f38bf343afc10001a694943788dd702dbfd0e7e9f3d09fbe190aef62660f086a6c055cd2877e4f3e9a
+DIST xtide-2.13.2.tar.bz2 481183 SHA256 fabf6b3097bb345598649ea55d1f2db269cbb651cddd73c60a9768088173d542 SHA512 31b35190932413bf5021c82c640ec3f03424807ffd5295abd8ab9554febbe495896bc0d08f901e70e11b04d92c0d1991b8214dcdd5e95e04173f3e7bbf5faec0 WHIRLPOOL 7c7858918288fa19a8742c7b5876c83f1dea1c2e85c250084061b1e1aead9929bf3b0c8162b6cd26ac4bcbf548e14ab6774edb2bc4762b809374c18e4cd550c3
+EBUILD xtide-2.13.2.ebuild 1190 SHA256 a83ef1e4a7d49ed82d50c1dab1c586ac91f690758e76f9ab33abf2eebf44cc00 SHA512 32e5948a9e7d20633209c3079d13a0fa5bb979f92580b888dc3a5da4cd7104e5d60442b05162273ca4487c910d7f4a84ea422913b80c4385e65f2a077b5eb610 WHIRLPOOL 27d2bde2a36d599bc872c9cfac16b74c0f65458759bbf83731c085ed3a63c78f462394cb4499301bf2f4c053c1f3212fd489215c4258502a73eb960f601df4bc
+MISC ChangeLog 3201 SHA256 261a67756ac9673bd565222299e64897ef3ebdaabda06f2f5fb8015c3024e089 SHA512 056ecc2041bea4bbd3b059876eee1b2d38fa4d9252c0e51d8a6c4fba7a7ef31973b9417fdac6028926f1df9e7f91a432b0c7f16a637aba671d13feecd6b7bdf5 WHIRLPOOL 2d0f1578d2de68028036cc0c5d99de5495ab9dcade363c98c1d8d340422aeeab7d73e1938ab1bf9e10a0ac687e1359f31a15f2ff300bcafdba49910833d5b7c3
+MISC ChangeLog-2015 1060 SHA256 534265334a65e49ee6fadb2afa5a8779c2f58539f002133bf02a96c478214be2 SHA512 2ed5f1f0908ce5b6455c13f9daf71f3218029b67a2012b76062638f7d1a0395fe146f245760be7ebad35bedec202f72895c062aaf899b42fcb9648aaf62caf7c WHIRLPOOL 99a34216f95dc86e0489e68548b52ae28030415512c2c1841db7426357006989e3f7dbf095ab6715ab8b9106c97f8306c159a7aac964829e8bf3ba3336314a71
+MISC metadata.xml 244 SHA256 5b7c4e8c77253436d6bb1866954bc1677beee19afe4f70e233ad7eda21ca972b SHA512 2cf646d59cd730a1d957a67d2a5735dc205f9270342b86b4a201213e3c9455d8a73a640cac5248a4655f93ac2258f8092a3907553818783da3d864e8fe74323a WHIRLPOOL 5ff06d90e618fd2080051de4d9b385e8c6d86143295e13dca5cd8a01441b24b13e5c243177c5afc6451a34bd03292e5994704f0d455c5087176ebcb5d648c855
diff --git a/sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch b/sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch
new file mode 100644
index 000000000000..fcfd147e51bb
--- /dev/null
+++ b/sci-geosciences/xtide/files/xtide-2.13.1-Werror.patch
@@ -0,0 +1,21 @@
+commit 9cf2369051fa887bd5f13bf7df80c51bcf040306
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Jul 13 13:25:42 2013 +0200
+
+ BUILD: remove -Werror
+
+ It's discouraged to add non-specific Werror flags.
+
+diff --git a/configure.ac b/configure.ac
+index b366337..86c7569 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -11,7 +11,7 @@ m4_if(2.65, AC_AUTOCONF_VERSION, [m4_fatal([autoconf version 2.65 is broken and
+ # FIXME: Update version info on each release
+ AC_INIT([XTide], [2.13.1], [dave@flaterco.com])
+
+-AM_INIT_AUTOMAKE([-Wall -Werror])
++AM_INIT_AUTOMAKE([-Wall])
+
+ AC_LANG([C++])
+ AC_PROG_CXX
diff --git a/sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch b/sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch
new file mode 100644
index 000000000000..54c6546fe298
--- /dev/null
+++ b/sci-geosciences/xtide/files/xtide-2.13.1-gps-switch.patch
@@ -0,0 +1,88 @@
+commit 755677baae16fd8772efd523a25b787ea3fc0772
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Jul 13 13:26:24 2013 +0200
+
+ BUILD: add --with-gps switch
+
+ We don't want automagic gps detection, but give control
+ to the user.
+
+diff --git a/configure.ac b/configure.ac
+index 86c7569..307def4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -156,6 +156,12 @@ if test -z "${SKIP_COMPLICATED}"; then
+ fi
+ CXXFLAGS="${SAVED_CXXFLAGS}"
+
++AC_ARG_WITH([gps],
++ [AS_HELP_STRING([--with-gps],
++ [use libgpsd (default: no)])],
++ [gps=$withval],
++ [gps=no])
++
+ # xttpd configs
+ AC_ARG_WITH([xttpd-user],
+ [AS_HELP_STRING([--with-xttpd-user=user],
+@@ -381,32 +387,35 @@ AC_CHECK_HEADER([Dstr], [AC_CHECK_LIB([dstr], [DstrCompat20070215Check])])
+ AM_CONDITIONAL(NO_LIBDSTR, test "$ac_cv_lib_dstr_DstrCompat20070215Check" != "yes")
+
+ # libgps is optional; use it if you have a compatible version.
+-AC_CHECK_HEADER([gps.h], [AC_CHECK_LIB([gps], [timestamp], [
+- AC_MSG_CHECKING([if libgps is 3.x or newer, compatible version])
+- AC_COMPILE_IFELSE(
+- [AC_LANG_SOURCE([[
+-#include <gps.h>
+-#if (GPSD_API_MAJOR_VERSION < 5)
+-#FAIL
+-#endif
+-int main (int argc, char **argv) {
+- struct gps_data_t gpsdata;
+- gps_open ("127.0.0.1", "2947", &gpsdata);
+- gps_stream (&gpsdata, WATCH_ENABLE|WATCH_NEWSTYLE, NULL);
+- gps_read (&gpsdata);
+- return (gpsdata.fix.mode >= MODE_2D);
+-}
+- ]])],
+- [
+- AC_MSG_RESULT(yes)
+- AC_DEFINE([GPS_GOOD])
+- AC_SUBST([GPSD_LIBS], ["-lgps"])
+- ],
+- [
+- AC_MSG_RESULT(no)
+- ]
+- )
+-])])
++
++AS_IF([test "x$gps" = "xyes"], [
++ AC_CHECK_HEADER([gps.h], [AC_CHECK_LIB([gps], [timestamp], [
++ AC_MSG_CHECKING([if libgps is 3.x or newer, compatible version])
++ AC_COMPILE_IFELSE(
++ [AC_LANG_SOURCE([[
++ #include <gps.h>
++ #if (GPSD_API_MAJOR_VERSION < 5)
++ #FAIL
++ #endif
++ int main (int argc, char **argv) {
++ struct gps_data_t gpsdata;
++ gps_open ("127.0.0.1", "2947", &gpsdata);
++ gps_stream (&gpsdata, WATCH_ENABLE|WATCH_NEWSTYLE, NULL);
++ gps_read (&gpsdata);
++ return (gpsdata.fix.mode >= MODE_2D);
++ }
++ ]])],
++ [
++ AC_MSG_RESULT(yes)
++ AC_DEFINE([GPS_GOOD])
++ AC_SUBST([GPSD_LIBS], ["-lgps"])
++ ],
++ [
++ AC_MSG_RESULT(no)
++ ]
++ )
++ ], [AC_MSG_ERROR([cannot find libgps])])], [AC_MSG_ERROR([cannot find gps.h])])
++ ])
+
+ AC_TYPE_INT8_T
+ AC_TYPE_INT16_T
diff --git a/sci-geosciences/xtide/files/xtide-2.13.2-clang.patch b/sci-geosciences/xtide/files/xtide-2.13.2-clang.patch
new file mode 100644
index 000000000000..090aa6c4f7ab
--- /dev/null
+++ b/sci-geosciences/xtide/files/xtide-2.13.2-clang.patch
@@ -0,0 +1,33 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Mon Aug 17 20:15:03 UTC 2015
+Subject: fix build with clang
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,26 +22,6 @@
+ AC_SUBST([ADDED_CPPFLAGS])
+ AC_SUBST([ADDED_CXXFLAGS])
+
+-# Extended initializer lists were added in 4.4.
+-AC_MSG_CHECKING([if using a version of GCC older than 4.4])
+-AC_PREPROC_IFELSE(
+- [AC_LANG_SOURCE([[
+-#ifdef __GNUC__
+-#if (__GNUC__ * 100 + __GNUC_MINOR__) < 404
+-#FAIL
+-#endif
+-#endif
+- ]])],
+- [
+- AC_MSG_RESULT(no)
+- ],
+- [
+- AC_MSG_RESULT(yes)
+- AC_MSG_NOTICE([if using GCC, version 4.4 or later is required])
+- AC_MSG_ERROR([GCC too old])
+- ]
+-)
+-
+ # /tmp/ccB6kF2d.s: Assembler messages:
+ # /tmp/ccB6kF2d.s:1325: Error: symbol `_ZZN10SafeVectorIdEixEPdS1_jE19__PRETTY_FUNCTION__' is already defined
+ # /tmp/ccB6kF2d.s:1330: Error: symbol `_ZZN10SafeVectorI5AngleEixEPS0_S2_jE19__PRETTY_FUNCTION__' is already defined
diff --git a/sci-geosciences/xtide/metadata.xml b/sci-geosciences/xtide/metadata.xml
new file mode 100644
index 000000000000..e723c4be1d88
--- /dev/null
+++ b/sci-geosciences/xtide/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="gps">Use <pkg>sci-geosciences/gpsd</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-geosciences/xtide/xtide-2.13.2.ebuild b/sci-geosciences/xtide/xtide-2.13.2.ebuild
new file mode 100644
index 000000000000..16379601e784
--- /dev/null
+++ b/sci-geosciences/xtide/xtide-2.13.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils gnome2-utils
+
+DESCRIPTION="XTide provides tide and current predictions in a wide variety of formats"
+HOMEPAGE="http://www.flaterco.com/xtide/"
+SRC_URI="ftp://ftp.flaterco.com/xtide/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gps"
+
+DEPEND="
+ media-libs/libpng:0
+ >=sci-geosciences/libtcd-2.2.5_p2
+ x11-libs/libX11
+ x11-libs/libXaw3d
+ x11-libs/libXpm
+ x11-libs/libXt
+ gps? ( sci-geosciences/gpsd )"
+RDEPEND="${DEPEND}
+ media-fonts/font-schumacher-misc"
+DEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.13.1-{Werror,gps-switch}.patch \
+ "${FILESDIR}"/${P}-clang.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with gps)
+}
+
+src_install() {
+ dobin xtide tide xttpd
+ doman *.[18]
+
+ echo 'HFILE_PATH=/usr/share/harmonics' > 50xtide_harm
+ doenvd 50xtide_harm
+
+ newicon -s 48 iconsrc/icon_48x48_orig.png ${PN}.png
+
+ make_desktop_entry ${PN} 'Tide prediction' ${PN} 'Science'
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}