From 055130ed39f2551846d1334deae31ba8de44ddc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Wed, 24 Feb 2016 23:12:16 +0200 Subject: [PATCH] works for postgis --- science/gis/gdal/actions.py | 78 ++++++++ science/gis/gdal/files/fix-extra-libs.patch | 20 ++ .../files/gdal-1.5.1-python-install.patch | 14 ++ .../gis/gdal/files/gdal-1.6.0-swig-fix.patch | 20 ++ .../gis/gdal/files/gdal-sqlite-3.8.7.patch | 17 ++ science/gis/gdal/files/libtool.patch | 11 ++ science/gis/gdal/pspec.xml | 175 ++++++++++++++++++ science/gis/gdal/translations.xml | 13 ++ science/gis/geos/actions.py | 35 ++++ science/gis/geos/files/geos-gcc43.patch | 10 + science/gis/geos/pspec.xml | 106 +++++++++++ science/gis/geos/translations.xml | 19 ++ science/gis/postgis/actions.py | 24 +++ science/gis/postgis/pspec.xml | 106 +++++++++++ science/gis/postgis/translations.xml | 9 + science/gis/proj/actions.py | 23 +++ science/gis/proj/pspec.xml | 74 ++++++++ science/gis/proj/translations.xml | 13 ++ 18 files changed, 767 insertions(+) create mode 100644 science/gis/gdal/actions.py create mode 100644 science/gis/gdal/files/fix-extra-libs.patch create mode 100644 science/gis/gdal/files/gdal-1.5.1-python-install.patch create mode 100644 science/gis/gdal/files/gdal-1.6.0-swig-fix.patch create mode 100644 science/gis/gdal/files/gdal-sqlite-3.8.7.patch create mode 100644 science/gis/gdal/files/libtool.patch create mode 100644 science/gis/gdal/pspec.xml create mode 100644 science/gis/gdal/translations.xml create mode 100644 science/gis/geos/actions.py create mode 100644 science/gis/geos/files/geos-gcc43.patch create mode 100644 science/gis/geos/pspec.xml create mode 100644 science/gis/geos/translations.xml create mode 100644 science/gis/postgis/actions.py create mode 100644 science/gis/postgis/pspec.xml create mode 100644 science/gis/postgis/translations.xml create mode 100644 science/gis/proj/actions.py create mode 100644 science/gis/proj/pspec.xml create mode 100644 science/gis/proj/translations.xml diff --git a/science/gis/gdal/actions.py b/science/gis/gdal/actions.py new file mode 100644 index 0000000000..798090a1e0 --- /dev/null +++ b/science/gis/gdal/actions.py @@ -0,0 +1,78 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import perlmodules + +def setup(): + autotools.autoreconf("-vfi") + autotools.aclocal() + pisitools.cflags.add("-fno-strict-aliasing") + + autotools.configure("--disable-static \ + --enable-shared \ + --datadir=/usr/share/gdal \ + --with-ogdi \ + --with-threads \ + --with-jasper \ + --with-odbc=/usr/lib/unixODBC \ + --with-expat \ + --with-cfitsio \ + --with-hdf5 \ + --with-netcdf \ + --with-png \ + --with-geos \ + --without-mysql \ + --with-curl \ + --with-perl \ + --with-jpeg \ + --with-jpeg12=no \ + --with-libtiff \ + --with-sqlite3 \ + --with-geotiff=external \ + --with-podofo \ + --with-spatialite \ + --with-ogr \ + --with-grib \ + --with-curl \ + --with-webp \ + --with-python \ + --without-poppler \ + --with-xerces \ + --without-openjpeg \ + --without-libtool \ + --without-hdf4 \ + --without-fme \ + --without-pcraster \ + --without-kakadu \ + --without-mrsid \ + --without-jp2mrsid \ + --without-msg \ + --without-bsb \ + --without-dods-root \ + --without-oci \ + --without-ingres \ + --without-spatialite \ + --without-dwgdirect \ + --without-epsilon \ + --without-idb \ + --without-sde \ + --without-ruby") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + #remove egg + pisitools.removeDir("/usr/lib/python2.7/site-packages/GDAL-*") + + perlmodules.removePodfiles() diff --git a/science/gis/gdal/files/fix-extra-libs.patch b/science/gis/gdal/files/fix-extra-libs.patch new file mode 100644 index 0000000000..fe1bda0d13 --- /dev/null +++ b/science/gis/gdal/files/fix-extra-libs.patch @@ -0,0 +1,20 @@ +--- configure.orig 2011-01-28 15:27:41.522000144 +0200 ++++ configure 2011-02-11 17:11:08.468000061 +0200 +@@ -15470,7 +15470,7 @@ + #define HAVE_LIBRT 1 + _ACEOF + +- LIBS="-lrt $LIBS" ++ LIBS="$LIBS" + + fi + +@@ -20537,7 +20537,7 @@ + + MYSQL_INC=$MYSQL_INC + +-MYSQL_LIB=$MYSQL_LIB ++MYSQL_LIB="-L/usr/lib/mysql -lmysqlclient" + + + diff --git a/science/gis/gdal/files/gdal-1.5.1-python-install.patch b/science/gis/gdal/files/gdal-1.5.1-python-install.patch new file mode 100644 index 0000000000..fd1b7e488c --- /dev/null +++ b/science/gis/gdal/files/gdal-1.5.1-python-install.patch @@ -0,0 +1,14 @@ +--- swig/python/GNUmakefile.orig 2008-02-02 17:00:52.000000000 -0800 ++++ swig/python/GNUmakefile 2008-02-02 17:02:03.000000000 -0800 +@@ -51,9 +51,9 @@ + install: + + ifeq ($(PY_HAVE_SETUPTOOLS),1) +- $(PYTHON) setup.py install ++ $(PYTHON) setup.py install --root=$(DESTDIR) + else +- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) ++ $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(prefix) + endif + + for f in $(SCRIPTS) ; do $(INSTALL) ./scripts/$$f $(DESTDIR)$(INST_BIN) ; done diff --git a/science/gis/gdal/files/gdal-1.6.0-swig-fix.patch b/science/gis/gdal/files/gdal-1.6.0-swig-fix.patch new file mode 100644 index 0000000000..38c94da52f --- /dev/null +++ b/science/gis/gdal/files/gdal-1.6.0-swig-fix.patch @@ -0,0 +1,20 @@ +--- swig/include/gdal.i.orig 2009-04-24 21:55:06.315863023 -0700 ++++ swig/include/gdal.i 2009-04-24 22:10:28.806611326 -0700 +@@ -176,6 +176,17 @@ + %include "gdal_typemaps.i" + #endif + ++/* Default memberin typemaps required to support SWIG 1.3.39 and above */ ++%typemap(memberin) char *Info %{ ++/* char* Info memberin typemap */ ++$1; ++%} ++ ++%typemap(memberin) char *Id %{ ++/* char* Info memberin typemap */ ++$1; ++%} ++ + //************************************************************************ + // + // Define the exposed CPL functions. diff --git a/science/gis/gdal/files/gdal-sqlite-3.8.7.patch b/science/gis/gdal/files/gdal-sqlite-3.8.7.patch new file mode 100644 index 0000000000..308cf7a95c --- /dev/null +++ b/science/gis/gdal/files/gdal-sqlite-3.8.7.patch @@ -0,0 +1,17 @@ +diff --git a/gdal/ogr/ogrsf_frmts/sqlite/ogrsqlitevirtualogr.cpp b/gdal/ogr/ogrsf_frmts/sqlite/ogrsqlitevirtualogr.cpp +index a30b452..d45f3ff 100644 +--- a/gdal/ogr/ogrsf_frmts/sqlite/ogrsqlitevirtualogr.cpp ++++ b/gdal/ogr/ogrsf_frmts/sqlite/ogrsqlitevirtualogr.cpp +@@ -2451,6 +2451,12 @@ int OGR2SQLITE_static_register (sqlite3 * hDB, char **pzErrMsg, + /* OGR2SQLITE_Register() */ + /************************************************************************/ + ++#ifdef sqlite3_auto_extension ++// Sqlite 3.8.7 defines sqlite3_auto_extension via sqlite3_api ++// which is not initialized at this moment ++#undef sqlite3_auto_extension ++#endif ++ + /* We call this function so that each time a db is created, */ + /* OGR2SQLITE_static_register is called, to initialize the sqlite3_api */ + /* structure with the right pointers. */ diff --git a/science/gis/gdal/files/libtool.patch b/science/gis/gdal/files/libtool.patch new file mode 100644 index 0000000000..e4d0c363fd --- /dev/null +++ b/science/gis/gdal/files/libtool.patch @@ -0,0 +1,11 @@ +--- GNUmakefile.orig 2010-12-27 15:37:19.715000013 +0200 ++++ GNUmakefile 2010-12-27 15:37:35.036000014 +0200 +@@ -176,7 +176,7 @@ + (cd swig; $(MAKE) install) + endif + for f in LICENSE.TXT data/*.* ; do $(INSTALL_DATA) $$f $(DESTDIR)$(INST_DATA) ; done +- $(LIBTOOL_FINISH) $(INST_LIB) ++ $(LIBTOOL_FINISH) $(DESTDIR)$(INST_LIB) + + + ifeq ($(HAVE_LIBTOOL),yes) diff --git a/science/gis/gdal/pspec.xml b/science/gis/gdal/pspec.xml new file mode 100644 index 0000000000..19f65c2967 --- /dev/null +++ b/science/gis/gdal/pspec.xml @@ -0,0 +1,175 @@ + + + + + gdal + http://www.gdal.org/ + + PisiLinux Community + admins@pisilinux.org + + MIT + library + A translator library for raster geospatial data formats (includes OGR support) + GDAL is a translator library for raster geospatial data formats which presents a single abstract data model to the calling application for all supported formats. + http://download.osgeo.org/gdal/2.0.2/gdal-2.0.2.tar.gz + + python-numpy + + geos-devel + hdf5-devel + + tiff-devel + webp-devel + giflib-devel + jasper-devel + + podofo-devel + cfitsio-devel + unixODBC-devel + xerces-c-devel + + libjpeg-turbo-devel + postgresql-lib + + + gdal-1.5.1-python-install.patch + gdal-1.6.0-swig-fix.patch + gdal-sqlite-3.8.7.patch + + + + + + gdal + + geos + hdf5 + ogdi + tiff + webp + giflib + jasper + netcdf + podofo + cfitsio + unixODBC + xerces-c + libfreexl + libgeotiff + libjpeg-turbo + postgresql-lib + + + /usr/bin + /usr/lib + /usr/share + + + + + python-gdal + gdal python bindings + + gdal + python-numpy + + + /usr/lib/python2.7 + + + + + gdal-devel + Development files for gdal + + gdal + + + /usr/include + /usr/share/man/man3 + + + + + + 2016-02-24 + 2.0.2 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-01-13 + 1.11.1 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-05-30 + 1.9.2 + Rebuild, cleanup, add python bindings. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-04-23 + 1.9.2 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2014-01-31 + 1.9.2 + Rebuild Unused + Varol Maksutoğlu + waroi@pisilinux.org + + + 2014-01-23 + 1.9.2 + rebuild. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-12-01 + 1.9.2 + Rebuild for new perl. + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-10-10 + 1.9.2 + Rebuil for new poppler, use podofo instead of poppler. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-08-16 + 1.9.2 + Fix build + Marcin Bojara + marcin@pisilinux.org + + + 2013-07-28 + 1.9.2 + Dep Fixed + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-11-10 + 1.9.2 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/science/gis/gdal/translations.xml b/science/gis/gdal/translations.xml new file mode 100644 index 0000000000..bc6240f4e4 --- /dev/null +++ b/science/gis/gdal/translations.xml @@ -0,0 +1,13 @@ + + + + gdal + Coğrafi raster veri formatları için dönüştürücü bir kütüphane (OGR desteği de vardır) + GDAL çağıran uygulamaya tüm desteklenen formatlar için tek bir soyut veri modeli sunan raster veri formatı dönüştürücü bir kütüphanedir. + + + + gdal-devel + gdal için geliştirme dosyaları + + diff --git a/science/gis/geos/actions.py b/science/gis/geos/actions.py new file mode 100644 index 0000000000..93c6934728 --- /dev/null +++ b/science/gis/geos/actions.py @@ -0,0 +1,35 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + autotools.configure("--disable-static \ + --disable-dependency-tracking \ + --enable-python \ + --enable-ruby \ + --disable-php ") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + autotools.make("check") + + shelltools.cd("doc") + autotools.make("doxygen-html") + +def install(): + autotools.rawInstall("DESTDIR=%(D)s \ + PYTHON_PREFIX=%(D)s/usr/lib/%(V)s \ + PYTHON_EXEC_PREFIX=%(D)s/usr/lib/%(V)s" % {"D": get.installDIR(), + "V": get.curPYTHON()}) + + pisitools.insinto("/usr/share/doc/geos", "doc/doxygen_docs/html") + pisitools.dodoc("README", "ChangeLog", "AUTHORS", "NEWS", "COPYING") diff --git a/science/gis/geos/files/geos-gcc43.patch b/science/gis/geos/files/geos-gcc43.patch new file mode 100644 index 0000000000..b1dddb57d8 --- /dev/null +++ b/science/gis/geos/files/geos-gcc43.patch @@ -0,0 +1,10 @@ +--- tests/unit/geos_unit.cpp.old 2009-12-02 13:21:54.000000000 +0200 ++++ tests/unit/geos_unit.cpp 2009-12-02 13:22:12.000000000 +0200 +@@ -9,6 +9,7 @@ + #include + // geos + #include ++#include + // std + #include + #include diff --git a/science/gis/geos/pspec.xml b/science/gis/geos/pspec.xml new file mode 100644 index 0000000000..00e130cd2d --- /dev/null +++ b/science/gis/geos/pspec.xml @@ -0,0 +1,106 @@ + + + + + geos + http://geos.refractions.net + + PisiLinux Community + admins@pisilinux.org + + LGPLv2 + library + Geometry engine library for Geographic Information Systems + GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS). + http://download.osgeo.org/geos/geos-3.5.0.tar.bz2 + + doxygen + ruby-devel + swig + python-devel + + + geos-gcc43.patch + + + + + geos + + ruby + python + libgcc + + + /usr/bin + /usr/lib + /usr/share/doc/geos + + + + + geos-devel + Development files for geos + + geos + + + /usr/include + + + + + geos-docs + + geos + + + /usr/share/doc/geos/html + + + + + + 2016-02-24 + 3.5.0 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-05-31 + 3.4.2 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-04-23 + 3.4.2 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2014-01-31 + 3.4.2 + Rebuild Unused + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-10-08 + 3.4.2 + Version bump + Richard de Bruin + richdb@pisilinux.org + + + 2012-11-09 + 3.3.5 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/science/gis/geos/translations.xml b/science/gis/geos/translations.xml new file mode 100644 index 0000000000..c544664879 --- /dev/null +++ b/science/gis/geos/translations.xml @@ -0,0 +1,19 @@ + + + + geos + Coğrafi bilgi sistemleri için geometri motoru sunan bir kütüphane + GEOS (Açık Kaynak Geometri Motoru) Java Topology Suit (JTS) kütüphanesinin C++ portudur. + + + + geos-devel + geos için geliştirme dosyaları + + + + geos-docs + geos dokümantasyonu + + + diff --git a/science/gis/postgis/actions.py b/science/gis/postgis/actions.py new file mode 100644 index 0000000000..77b512c63c --- /dev/null +++ b/science/gis/postgis/actions.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Copyright 2013 Alokin Software Pvt Ltd. +# Licensed under the GNU General Public License, version 2. +# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import shelltools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.configure() + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall('DESTDIR=%s' % get.installDIR()) + + pisitools.dodoc("ChangeLog", "CREDITS", "NEWS", "README.postgis", "STYLE", "TODO") diff --git a/science/gis/postgis/pspec.xml b/science/gis/postgis/pspec.xml new file mode 100644 index 0000000000..172782ff27 --- /dev/null +++ b/science/gis/postgis/pspec.xml @@ -0,0 +1,106 @@ + + + + + postgis + http://postgis.refractions.net + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + library + Adds support for geographic objects to PostgreSQL + PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. + http://download.osgeo.org/postgis/source/postgis-2.1.5.tar.gz + + gtk2-devel + proj-devel + gdal-devel + geos-devel + postgresql-lib + libxslt-devel + libxml2-devel + imagemagick-devel + + + + + postgis + + proj + gdal + geos + postgresql-lib + + + /etc + /usr/bin + /usr/include + /usr/lib + /usr/share/locale + /usr/share/man + /usr/share/doc + /usr/share + + + + + + 2015-01-25 + 2.1.5 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-10-02 + 2.1.4 + Version bump. + Aydın Demirel + aydin.demirel@pisilinux.org + + + 2014-06-14 + 2.1.0 + Rebuild for gcc. + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-04-23 + 2.1.0 + Rebuild for webp. + Kamil Atlı + suvarice@gmail.com + + + 2014-02-16 + 2.1.0 + Delete Unused Deps. + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-10-10 + 2.1.0 + Version Bump. + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-07-30 + 2.0.2 + Rebuild + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-03-25 + 2.0.2 + First release. + Alokin Software + hello@alokin.in + + + diff --git a/science/gis/postgis/translations.xml b/science/gis/postgis/translations.xml new file mode 100644 index 0000000000..185be6bb51 --- /dev/null +++ b/science/gis/postgis/translations.xml @@ -0,0 +1,9 @@ + + + + postgis + Coğrafi nesneler için PostgreSQL eklentisi + postgis, PostgreSQL nesne yönelimli veritabanı için coğrafi nesneler ekleme desteği sağlayan bir pakettir. Gerçekte postgis, coğrafi bilgi sistemleri için kullanılan spatial veritabanı bağlayıcısında olduğu gibi (daha çok ESRI'nin SDE'sine veya Oracle'in Spatial eklentisine benzer) PostgreSQL sunucusunda da benzer işleri yapabilmenizi sağlar. + + + diff --git a/science/gis/proj/actions.py b/science/gis/proj/actions.py new file mode 100644 index 0000000000..0cae54e9c7 --- /dev/null +++ b/science/gis/proj/actions.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.configure("--disable-static") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + #pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/test*") + #pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/pj_out*.dist") + + pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README") diff --git a/science/gis/proj/pspec.xml b/science/gis/proj/pspec.xml new file mode 100644 index 0000000000..b3143e8f17 --- /dev/null +++ b/science/gis/proj/pspec.xml @@ -0,0 +1,74 @@ + + + + + proj + http://trac.osgeo.org/proj/ + + PisiLinux Community + admins@pisilinux.org + + MIT + library + app:console + Cartographic Projections library + Proj.4 cartographic projection software with updated NAD27 grids. + http://download.osgeo.org/proj/proj-4.9.2.tar.gz + http://download.osgeo.org/proj/proj-datumgrid-1.5.zip + + + + proj + + /usr/bin + /usr/share/proj + /usr/lib + /usr/share/man + /usr/share/doc + + + + + proj-devel + Development files for proj + + proj + + + /usr/include + /usr/lib/pkgconfig + /usr/share/man/man3 + + + + + + 2016-02-24 + 4.9.2 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-05-31 + 4.8.0 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-02-05 + 4.8.0 + Rebuild + Alihan Öztürk + alihan@pisilinux.org + + + 2012-10-13 + 4.8.0 + First release + Marcin Bojara + isbaran@comu.edu.r + + + diff --git a/science/gis/proj/translations.xml b/science/gis/proj/translations.xml new file mode 100644 index 0000000000..3e7c9fee39 --- /dev/null +++ b/science/gis/proj/translations.xml @@ -0,0 +1,13 @@ + + + + proj + Kartografik görüntüleme kütüphanesi + Güncellenmiş NAD27 gridlerini de içeren kartografik görüntüleme yazılımı. + + + + proj-devel + proj için geliştirme dosyaları + +