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 1/4] 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ı + + From 6b551b5bff83dd6ec559edec59f263e3334ec83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Thu, 25 Feb 2016 15:08:15 +0200 Subject: [PATCH 2/4] gdal OK --- science/gis/gdal/actions.py | 16 +- .../gis/gdal/files/gdal-python-install.patch | 10 + science/gis/gdal/pspec.xml | 53 +++- science/gis/geos/pspec.xml | 3 +- science/gis/libfreexl/actions.py | 23 ++ science/gis/libfreexl/pspec.xml | 76 +++++ science/gis/libgeotiff/actions.py | 25 ++ science/gis/libgeotiff/pspec.xml | 87 +++++ science/gis/libgeotiff/translations.xml | 16 + science/gis/libspatialite/actions.py | 23 ++ science/gis/libspatialite/pspec.xml | 106 +++++++ science/gis/libspatialite/translations.xml | 13 + science/gis/ogdi/actions.py | 39 +++ science/gis/ogdi/files/ogdi-3.1.6-fpic.patch | 38 +++ .../ogdi/files/patch_for_proj48_redhat.patch | 298 ++++++++++++++++++ science/gis/ogdi/pspec.xml | 86 +++++ science/gis/ogdi/translations.xml | 13 + science/mathematics/netcdf/actions.py | 37 +++ science/mathematics/netcdf/pspec.xml | 101 ++++++ science/mathematics/netcdf/translations.xml | 18 ++ 20 files changed, 1068 insertions(+), 13 deletions(-) create mode 100644 science/gis/gdal/files/gdal-python-install.patch create mode 100644 science/gis/libfreexl/actions.py create mode 100644 science/gis/libfreexl/pspec.xml create mode 100644 science/gis/libgeotiff/actions.py create mode 100644 science/gis/libgeotiff/pspec.xml create mode 100644 science/gis/libgeotiff/translations.xml create mode 100644 science/gis/libspatialite/actions.py create mode 100644 science/gis/libspatialite/pspec.xml create mode 100644 science/gis/libspatialite/translations.xml create mode 100644 science/gis/ogdi/actions.py create mode 100644 science/gis/ogdi/files/ogdi-3.1.6-fpic.patch create mode 100644 science/gis/ogdi/files/patch_for_proj48_redhat.patch create mode 100644 science/gis/ogdi/pspec.xml create mode 100644 science/gis/ogdi/translations.xml create mode 100644 science/mathematics/netcdf/actions.py create mode 100644 science/mathematics/netcdf/pspec.xml create mode 100644 science/mathematics/netcdf/translations.xml diff --git a/science/gis/gdal/actions.py b/science/gis/gdal/actions.py index 798090a1e0..3ffbb71eb2 100644 --- a/science/gis/gdal/actions.py +++ b/science/gis/gdal/actions.py @@ -11,8 +11,8 @@ from pisi.actionsapi import shelltools from pisi.actionsapi import perlmodules def setup(): - autotools.autoreconf("-vfi") - autotools.aclocal() +# autotools.autoreconf("-vfi") +# autotools.aclocal() pisitools.cflags.add("-fno-strict-aliasing") autotools.configure("--disable-static \ @@ -63,9 +63,16 @@ def setup(): --without-epsilon \ --without-idb \ --without-sde \ + --mandir=/usr/share/man \ --without-ruby") pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + + #for bug 13646 + #pisitools.dosed("GDALmake.opt", "PY_HAVE_SETUPTOOLS=1 ", "PY_HAVE_SETUPTOOLS= ") + #pisitools.dosed("apps/GNUmakefile", "EXE_DEP_LIBS ", "KILL_EXE_DEP_LIBS ") + + def build(): autotools.make() @@ -73,6 +80,9 @@ def build(): def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) #remove egg - pisitools.removeDir("/usr/lib/python2.7/site-packages/GDAL-*") +# pisitools.removeDir("/usr/lib/python2.7/site-packages/GDAL-*") + + pisitools.domove("/usr/man/man3/*", "/usr/share/man/man3") + pisitools.removeDir("/usr/man/") perlmodules.removePodfiles() diff --git a/science/gis/gdal/files/gdal-python-install.patch b/science/gis/gdal/files/gdal-python-install.patch new file mode 100644 index 0000000000..03bf6da4ba --- /dev/null +++ b/science/gis/gdal/files/gdal-python-install.patch @@ -0,0 +1,10 @@ +--- swig/python/GNUmakefile.orig 2015-06-14 21:06:33.000000000 +0200 ++++ swig/python/GNUmakefile 2015-06-27 22:02:07.805035411 +0200 +@@ -70,5 +70,5 @@ + 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 diff --git a/science/gis/gdal/pspec.xml b/science/gis/gdal/pspec.xml index 19f65c2967..faccda8180 100644 --- a/science/gis/gdal/pspec.xml +++ b/science/gis/gdal/pspec.xml @@ -18,27 +18,30 @@ geos-devel hdf5-devel - + ogdi-devel tiff-devel webp-devel giflib-devel jasper-devel - + netcdf-devel podofo-devel cfitsio-devel unixODBC-devel xerces-c-devel - + libfreexl-devel + libgeotiff-devel libjpeg-turbo-devel postgresql-lib + libpng-devel + expat-devel + curl-devel + sqlite-devel + libpcre-devel + + libxml2-devel - gdal-1.5.1-python-install.patch - gdal-1.6.0-swig-fix.patch - gdal-sqlite-3.8.7.patch - + gdal-python-install.patch @@ -61,6 +64,14 @@ libgeotiff libjpeg-turbo postgresql-lib + curl + zlib + expat + libpcre + libgcc + libpng + sqlite + libxml2 /usr/bin @@ -75,6 +86,8 @@ gdal python-numpy + libgcc + python /usr/lib/python2.7 @@ -86,6 +99,28 @@ Development files for gdal gdal + geos-devel + hdf5-devel + ogdi-devel + tiff-devel + webp-devel + giflib-devel + jasper-devel + netcdf-devel + podofo-devel + cfitsio-devel + unixODBC-devel + xerces-c-devel + libfreexl-devel + libgeotiff-devel + libjpeg-turbo-devel + postgresql-lib + libpng-devel + expat-devel + curl-devel + sqlite-devel + libpcre-devel + libxml2-devel /usr/include diff --git a/science/gis/geos/pspec.xml b/science/gis/geos/pspec.xml index 00e130cd2d..a7315c6d78 100644 --- a/science/gis/geos/pspec.xml +++ b/science/gis/geos/pspec.xml @@ -27,7 +27,6 @@ geos - ruby python libgcc @@ -43,6 +42,8 @@ Development files for geos geos + ruby-devel + python-devel /usr/include diff --git a/science/gis/libfreexl/actions.py b/science/gis/libfreexl/actions.py new file mode 100644 index 0000000000..3edbd78239 --- /dev/null +++ b/science/gis/libfreexl/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/copyleft/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import get +from pisi.actionsapi import pisitools + +def setup(): + pisitools.ldflags.add("-lm") + + autotools.autoreconf("-vif") + autotools.configure("--enable-gcov=no \ + --disable-static") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README") + diff --git a/science/gis/libfreexl/pspec.xml b/science/gis/libfreexl/pspec.xml new file mode 100644 index 0000000000..b12d3d494b --- /dev/null +++ b/science/gis/libfreexl/pspec.xml @@ -0,0 +1,76 @@ + + + + + libfreexl + https://www.gaia-gis.it/fossil/freexl/index + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + science.gis + library + Library to extract valid data from within an Excel (.xls) spreadsheet + FreeXL is an open source library to extract valid data from within an Excel (.xls) spreadsheet. + http://www.gaia-gis.it/gaia-sins/freexl-1.0.2.tar.gz + + + libfreexl + + /usr/lib + /usr/share/doc/* + + + + + libfreexl-devel + Development files for libfreexl + + /usr/include/* + /usr/lib/pkgconfig/freexl.pc + /usr/lib/libfreexl.so + + + libfreexl + + + + + + 2016-02-25 + 1.0.2 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-01-29 + 1.0.0h + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-05-31 + 1.0.0g + Version bump. + Alihan Öztürk + alihan@pisilinux.org + + + 2013-10-08 + 1.0.0f + Version bump + Richard de Bruin + richdb@pisilinux.org + + + 2013-03-11 + 1.0.0d + First release + Richard de Bruin + admins@pisilinux.org + + + diff --git a/science/gis/libgeotiff/actions.py b/science/gis/libgeotiff/actions.py new file mode 100644 index 0000000000..216f984ab7 --- /dev/null +++ b/science/gis/libgeotiff/actions.py @@ -0,0 +1,25 @@ +#!/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 \ + --with-jpeg \ + --with-libtiff=/usr/include \ + --with-proj \ + --with-zip") + +def build(): + autotools.make("-j1") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("README", "LICENSE") diff --git a/science/gis/libgeotiff/pspec.xml b/science/gis/libgeotiff/pspec.xml new file mode 100644 index 0000000000..799343b3e7 --- /dev/null +++ b/science/gis/libgeotiff/pspec.xml @@ -0,0 +1,87 @@ + + + + + libgeotiff + http://geotiff.osgeo.org + + PisiLinux Community + admins@pisilinux.org + + as-is + library + Library for reading TIFF files with embedded tags + Library for reading TIFF files with embedded tags for geographic (cartographic) information. + http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.1.tar.gz + + libjpeg-turbo-devel + proj-devel + tiff-devel + zlib-devel + doxygen + + + + + libgeotiff + + libjpeg-turbo + proj + tiff + zlib + + + /usr/bin + /usr/lib + /usr/share/epsg_csv + /usr/share/doc + /usr/share/man + + + + + libgeotiff-devel + Development files for libgeotiff + + libgeotiff + libjpeg-turbo-devel + proj-devel + tiff-devel + zlib-devel + + + /usr/include + + + + + + 2015-01-29 + 1.4.1 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-05-31 + 1.4.0 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-01-30 + 1.4.0 + Rebuild + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2012-11-10 + 1.4.0 + First release + Marcin Bojara + marcin@pisilinux.org + + + diff --git a/science/gis/libgeotiff/translations.xml b/science/gis/libgeotiff/translations.xml new file mode 100644 index 0000000000..db63593c8e --- /dev/null +++ b/science/gis/libgeotiff/translations.xml @@ -0,0 +1,16 @@ + + + + libgeotiff + Gömülü etiket içeren TIFF dosyalarını okumak için kütüphane + Biblioteka GeoTIFF + Coğrafik bilgi için gömülü etikletler içeren TIFF dosyalarını okumaya yarayan bir kütüphane. + Ta biblioteka pozwala na odczytywanie i analizowanie znaczników „GeoTIFF”, a także definiowanie i zapisywanie znaczników w nowych plikach. + + + + libgeotiff-devel + libgeotiff için geliştirme dosyaları + Pliki naglowkowe do libgeotiff + + diff --git a/science/gis/libspatialite/actions.py b/science/gis/libspatialite/actions.py new file mode 100644 index 0000000000..2e8891c63e --- /dev/null +++ b/science/gis/libspatialite/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/copyleft/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import get +from pisi.actionsapi import pisitools + +def setup(): + autotools.configure("--disable-static \ + --disable-geosadvanced") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.dodoc("AUTHORS", "COPYING", "README", "README.coverage") + +# By PiSiDo 2.0.0 diff --git a/science/gis/libspatialite/pspec.xml b/science/gis/libspatialite/pspec.xml new file mode 100644 index 0000000000..0604eb7644 --- /dev/null +++ b/science/gis/libspatialite/pspec.xml @@ -0,0 +1,106 @@ +?xml version="1.0" ?> + + + + libspatialite + https://www.gaia-gis.it/fossil/libspatialite/index + + PisiLinux Community + admins@pisilinux.org + + MPL-1.0 + science.gis + library + SQLite extension to support spatial data types and operations + SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities. + http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.2.0.tar.gz + + geos-devel + libfreexl-devel + proj-devel + sqlite-devel + zlib-devel + libxml2-devel + + + + + libspatialite + + geos + libfreexl + proj + sqlite + zlib + libxml2 + + + /usr/lib + /usr/share/doc/* + + + + + libspatialite-devel + Development files for libspatialite + + libspatialite + geos-devel + libfreexl-devel + proj-devel + sqlite-devel + zlib-devel + libxml2-devel + + + /usr/include/* + /usr/lib/pkgconfig/* + /usr/lib/libspatialite.so + + + + + + 2015-01-29 + 4.2.0 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-06-14 + 4.1.1 + Rebuild for gcc + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-02-20 + 4.1.1 + Rebuild Unused + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-10-08 + 4.1.1 + Version Bump + Richard de Bruin + richdb@pisilinux.org + + + 2013-06-08 + 4.1.0 + V.Bump + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-03-10 + 4.0.0 + First release + Richard de Bruin + admins@pisilinux.org + + + diff --git a/science/gis/libspatialite/translations.xml b/science/gis/libspatialite/translations.xml new file mode 100644 index 0000000000..68f4611044 --- /dev/null +++ b/science/gis/libspatialite/translations.xml @@ -0,0 +1,13 @@ + + + + libspatialite + SQLite extension to support spatial data types and operations + SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities. + + + + libspatialite-devel + libspatialite için geliştirme dosyaları + + \ No newline at end of file diff --git a/science/gis/ogdi/actions.py b/science/gis/ogdi/actions.py new file mode 100644 index 0000000000..58cfa97f42 --- /dev/null +++ b/science/gis/ogdi/actions.py @@ -0,0 +1,39 @@ +#!/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 shelltools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +WorkDir = "ogdi-3.2.0.beta2" + +shelltools.export("TOPDIR", "%s/%s" % (get.workDIR(), WorkDir)) + +def setup(): + autotools.configure('--with-zlib \ + --with-projlib="-L/usr/lib -lproj" \ + --with-expat \ + --with-binconfigs') + +def build(): + shelltools.export("TARGET", "Linux") + shelltools.export("CFG", "release") + autotools.make("-j1") + +def install(): + pisitools.dolib_so("bin/Linux/*.so") + pisitools.dosym("/usr/lib/libogdi.so", "/usr/lib/libogdi.so.3") + + for i in ["gltpd", "ogdi_import", "ogdi_info"]: + pisitools.dobin("bin/Linux/%s" % i) + pisitools.dobin("ogdi-config") + + pisitools.insinto("/usr/lib/pkgconfig", "ogdi.pc") + + pisitools.insinto("/usr/include", "ogdi/include/*.h") + + pisitools.dodoc("ChangeLog", "NEWS", "README") diff --git a/science/gis/ogdi/files/ogdi-3.1.6-fpic.patch b/science/gis/ogdi/files/ogdi-3.1.6-fpic.patch new file mode 100644 index 0000000000..f6fbc85e5a --- /dev/null +++ b/science/gis/ogdi/files/ogdi-3.1.6-fpic.patch @@ -0,0 +1,38 @@ +diff --git a/config/generic.mak.in b/config/generic.mak.in +index 1cb74f5..2e9cabe 100644 +--- a/config/generic.mak.in ++++ b/config/generic.mak.in +@@ -35,16 +35,16 @@ AR = ar cr + # Compilation and linking flags + # + SHLIB_CFLAGS = @C_PIC@ +-COMMON_CFLAGS = $(OPTIMIZATION) @CFLAGS@ @C_WFLAGS@ -DUNIX=1 ++COMMON_CFLAGS = $(OPTIMIZATION) @CFLAGS@ @C_WFLAGS@ -DUNIX=1 @C_PIC@ + +-SHLIB_LDFLAGS = -shared +-COMMON_LDFLAGS = $(OPTIMIZATION) ++SHLIB_LDFLAGS = -shared -Wl,-soname,$(LIB_PREFIX)$(TOBEGEN).$(SHLIB_EXT).$(OGDI_MAJOR) ++COMMON_LDFLAGS = $(OPTIMIZATION) $(LDFLAGS) + + RPC_INCLUDES = @RPC_INCLUDES@ + + UCB_STATICLIB = + +-TCL_INCLUDE = -I/usr/include/tcl8.3 ++TCL_INCLUDE = -I${prefix}/include + TCL_LINKLIB = + + # +diff --git a/config/unix.mak b/config/unix.mak +index e3af578..927b0fc 100644 +--- a/config/unix.mak ++++ b/config/unix.mak +@@ -55,7 +55,7 @@ LINK_SW = -L + ifeq ($(CFG),debug) + OPTIMIZATION = -g + else +-OPTIMIZATION = -O ++OPTIMIZATION = + endif + + # diff --git a/science/gis/ogdi/files/patch_for_proj48_redhat.patch b/science/gis/ogdi/files/patch_for_proj48_redhat.patch new file mode 100644 index 0000000000..33f1b5eba2 --- /dev/null +++ b/science/gis/ogdi/files/patch_for_proj48_redhat.patch @@ -0,0 +1,298 @@ +Index: ogdi-dfsg/configure +=================================================================== +--- ogdi-dfsg.orig/configure ++++ ogdi-dfsg/configure +@@ -3939,7 +3939,7 @@ + fi + + +-for ac_header in projects.h ++for ac_header in proj_api.h + do + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` + if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then +@@ -4085,8 +4085,8 @@ + { (exit 1); exit 1; }; } + fi + if test "$ac_cv_header_projects_h" = no ; then +- { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&5 +-echo "$as_me: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&2;} ++ { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&5 ++echo "$as_me: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&2;} + { (exit 1); exit 1; }; } + fi + +@@ -4095,12 +4095,12 @@ + + elif test "$with_proj" != "no" -a "$with_proj" != "" ; then + +- if test -r $with_proj/include/projects.h ; then +- echo "checking for $with_proj/include/projects.h ... found" ++ if test -r $with_proj/include/proj_api.h ; then ++ echo "checking for $with_proj/include/proj_api.h ... found" + PROJ_INCLUDE=-I$with_proj/include + else +- { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/projects.h" >&5 +-echo "$as_me: error: Unable to find $with_proj/include/projects.h" >&2;} ++ { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/proj_api.h" >&5 ++echo "$as_me: error: Unable to find $with_proj/include/proj_api.h" >&2;} + { (exit 1); exit 1; }; } + fi + +Index: ogdi-dfsg/configure.in +=================================================================== +--- ogdi-dfsg.orig/configure.in ++++ ogdi-dfsg/configure.in +@@ -81,13 +81,13 @@ + if test "$with_proj" = "yes" ; then + + AC_CHECK_LIB(proj,pj_init,PROJ_SETTING=external,PROJ_SETTING=missing,) +- AC_CHECK_HEADERS(projects.h) ++ AC_CHECK_HEADERS(proj_api.h) + + if test $PROJ_SETTING = missing ; then + AC_MSG_ERROR([Unable to find external PROJ.4 library, give path or use default internal library.]) + fi + if test "$ac_cv_header_projects_h" = no ; then +- AC_MSG_ERROR([Unable to find external PROJ.4 projects.h file, give path or use default internal library.]) ++ AC_MSG_ERROR([Unable to find external PROJ.4 proj_api.h file, give path or use default internal library.]) + fi + + PROJ_SETTING=external +@@ -95,11 +95,11 @@ + + elif test "$with_proj" != "no" -a "$with_proj" != "" ; then + +- if test -r $with_proj/include/projects.h ; then +- echo "checking for $with_proj/include/projects.h ... found" ++ if test -r $with_proj/include/projapi.h ; then ++ echo "checking for $with_proj/include/proj_api.h ... found" + PROJ_INCLUDE=-I$with_proj/include + else +- AC_MSG_ERROR([Unable to find $with_proj/include/projects.h]) ++ AC_MSG_ERROR([Unable to find $with_proj/include/proj_api.h]) + fi + + if test -r $with_proj/lib/libproj.so ; then +Index: ogdi-dfsg/ogdi/c-api/client.c +=================================================================== +--- ogdi-dfsg.orig/ogdi/c-api/client.c ++++ ogdi-dfsg/ogdi/c-api/client.c +@@ -1576,7 +1576,7 @@ + char *error_message; + ecs_CtlPoints *cpts; + ecs_Result *res; +- PJ *tempproj; ++ projPJ tempproj; + + if (multiblock != 0) { + res = &cln_dummy_result; +@@ -1598,7 +1598,7 @@ + /* Check if the projection is valid */ + + if (strncmp(projection,PROJ_LONGLAT,13) != 0) { +- tempproj = (PJ *) cln_ProjInit(projection); ++ tempproj = (projPJ) cln_ProjInit(projection); + if(tempproj == NULL) { + res = &cln_dummy_result; + ecs_SetError(res,1,"This projection string is invalid"); +@@ -1775,7 +1775,7 @@ + ecs_Result *res; + register ecs_Client *cln; + char *server_proj; +- PJ *oldtarget,*oldsource; ++ projPJ oldtarget,oldsource; + ecs_Region oldreg; + int oldisprojequal; + int oldisTargetLL; +@@ -1874,7 +1874,7 @@ + + if (strncmp(projection,PROJ_LONGLAT,13) != 0) { + cln->isTargetLL = FALSE; +- cln->target = (PJ *) cln_ProjInit(projection); ++ cln->target = (projPJ) cln_ProjInit(projection); + if(cln->target == NULL) { + goto setprojerror; + } +@@ -1920,7 +1920,7 @@ + + if (strncmp(server_proj,PROJ_LONGLAT,13) != 0) { + cln->isSourceLL = FALSE; +- cln->source = (PJ *) cln_ProjInit(server_proj); ++ cln->source = (projPJ) cln_ProjInit(server_proj); + if(cln->source == NULL) { + goto setprojerror; + } +@@ -2328,13 +2328,13 @@ + * char *d: Projection name + * + * OUT +- * return PJ *: New projection structure. If NULL, the operation ++ * return projPJ: New projection structure. If NULL, the operation + * is a failure. + * + *---------------------------------------------------------------------- + */ + +-PJ *cln_ProjInit(d) ++projPJ cln_ProjInit(d) + char *d; + { + int i,n; +@@ -2343,7 +2343,7 @@ + char *l; + int longueur; + char *c; +- PJ *retour; ++ projPJ retour; + + if ((c = (char *) malloc(strlen(d)+3)) == NULL) { + return NULL; +@@ -2378,7 +2378,7 @@ + n++; + } + +- retour = (PJ *) pj_init(n, (char **) tableau); ++ retour = (projPJ) pj_init(n, (char **) tableau); + free(c); + free(tableau); + +Index: ogdi-dfsg/ogdi/c-api/ecsgeo.c +=================================================================== +--- ogdi-dfsg.orig/ogdi/c-api/ecsgeo.c ++++ ogdi-dfsg/ogdi/c-api/ecsgeo.c +@@ -310,7 +310,7 @@ + char *projection; + double X1,Y1,X2,Y2; + { +- PJ *proj; ++ projPJ proj; + char **argv; + int argc; + double lon1,lat1,lon2,lat2; +Index: ogdi-dfsg/ogdi/datum_driver/usa/dtusa.c +=================================================================== +--- ogdi-dfsg.orig/ogdi/datum_driver/usa/dtusa.c ++++ ogdi-dfsg/ogdi/datum_driver/usa/dtusa.c +@@ -26,7 +26,12 @@ + ********************************************************************/ + + #include "ecs.h" +-#include "projects.h" ++#include "proj_api.h" ++ ++/* Definition from Proj.4 */ ++projUV nad_cvt(projUV, int, struct CTABLE *); ++struct CTABLE *nad_init(projCtx ctx, char *); ++void nad_free(struct CTABLE *); + + typedef struct { + struct CTABLE *dtptr; +@@ -124,7 +129,7 @@ + strcat(pathfile,"/"); + strcat(pathfile,table); + +- ptr->dtptr = nad_init(pathfile); ++ ptr->dtptr = nad_init(pj_get_default_ctx(), pathfile); + if (ptr->dtptr == NULL) { + ptr->count--; + return FALSE; +Index: ogdi-dfsg/ogdi/include/ecs_util.h +=================================================================== +--- ogdi-dfsg.orig/ogdi/include/ecs_util.h ++++ ogdi-dfsg/ogdi/include/ecs_util.h +@@ -105,12 +105,7 @@ + #include + #include + +-#include "projects.h" +- +-/* Ensure we are compatible with PROJ.4.4.x and PROJ.4.3.x */ +-#ifndef USE_PROJUV +-# define projUV UV +-#endif ++#include "proj_api.h" + + #include "ecs.h" + +@@ -1054,8 +1049,8 @@ + ecs_Family currentSelectionFamily: Current layer selection type + char *tclprocname: attribute callback procedure for tcl + char *target_proj: Projection descriptor +- PJ *target: target (c interface) projection descriptors +- PJ *source: source (driver) projection descriptors ++ projPJ target: target (c interface) projection descriptors ++ projPJ source: source (driver) projection descriptors + ecs_Datum targetdatum: target datum information + ecs_Datum sourcedatum: source datum information + void *dthandle: Handle to the datum driver +@@ -1092,8 +1088,8 @@ + ecs_Family currentSelectionFamily; /* Current layer selection type */ + char *tclprocname; /* attribute callback procedure for tcl */ + char *target_proj; +- PJ *target; /* source and target projection descriptors */ +- PJ *source; ++ projPJ target; /* source and target projection descriptors */ ++ projPJ source; + int isSourceLL; /* flags to avoid unnecessary computation */ + int isTargetLL; + int isProjEqual; +@@ -1165,7 +1161,7 @@ + + /* Projection conversion functions */ + +-PJ *cln_ProjInit _ANSI_ARGS_((char *d)); ++projPJ cln_ProjInit _ANSI_ARGS_((char *d)); + int cln_CompareProjections _ANSI_ARGS_((int ClientID)); + int cln_UpdateMaxRegion _ANSI_ARGS_((int ClientID, double x, double y, ecs_Region *gr, int sens, int first)); + int cln_ConvRegion _ANSI_ARGS_((int ClientID, ecs_Region *gr, int sens)); +Index: ogdi-dfsg/contrib/ogdi_import/ogdi_import.c +=================================================================== +--- ogdi-dfsg.orig/contrib/ogdi_import/ogdi_import.c ++++ ogdi-dfsg/contrib/ogdi_import/ogdi_import.c +@@ -63,12 +63,7 @@ + #include "ecs.h" + #include "shapefil.h" + #include +-#include "projects.h" +- +-#ifndef PJ_VERSION +-#define projPJ PJ* +-#define projUV UV +-#endif ++#include "proj_api.h" + + static int ClientID = -1; + static int bNoDict = FALSE; +Index: ogdi-dfsg/contrib/ogdi_info/ogdi_info.c +=================================================================== +--- ogdi-dfsg.orig/contrib/ogdi_info/ogdi_info.c ++++ ogdi-dfsg/contrib/ogdi_info/ogdi_info.c +@@ -63,7 +63,7 @@ + */ + + #include "ecs.h" +-#include "projects.h" ++#include "proj_api.h" + + static int ClientID = -1; + static int bNoDict = FALSE; +@@ -214,7 +214,7 @@ + /* DumpGlobalRegion() */ + /************************************************************************/ + +-static int DumpGlobalRegion( ecs_Region * region, PJ * proj_defn ) ++static int DumpGlobalRegion( ecs_Region * region, projPJ proj_defn ) + + { + ecs_Result *result; +@@ -398,7 +398,7 @@ + + { + ecs_Result *result; +- PJ *proj_defn = NULL; ++ projPJ proj_defn = NULL; + + /* -------------------------------------------------------------------- */ + /* Close old client if there is one active. */ + diff --git a/science/gis/ogdi/pspec.xml b/science/gis/ogdi/pspec.xml new file mode 100644 index 0000000000..a69fa64d5c --- /dev/null +++ b/science/gis/ogdi/pspec.xml @@ -0,0 +1,86 @@ + + + + + ogdi + http://ogdi.sourceforge.net + + PisiLinux Community + admins@pisilinux.org + + as-is + library + Open Geographical Datastore Interface, a GIS support library + OGDI is an application programming interface (API) that uses a standardized access methods to work in conjunction with GIS software packages (the application) and various geospatial data products. + mirrors://sourceforge/ogdi/ogdi-3.2.0.beta2.tar.gz + + proj-devel + zlib-devel + expat-devel + + + ogdi-3.1.6-fpic.patch + patch_for_proj48_redhat.patch + + + + + ogdi + + proj + zlib + expat + + + /usr/bin + /usr/lib + /usr/share/doc + + + + + ogdi-devel + Development files for ogdi + + ogdi + proj-devel + zlib-devel + expat-devel + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-05-31 + 3.2.0_beta2 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-03-09 + 3.2.0_beta2 + Rebuild + Alihan Öztürk + alihan@pisilinux.org + + + 2013-07-28 + 3.2.0_beta2 + Move pc files to devel pack, rebuild + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-10-13 + 3.2.0_beta2 + First release + Marcin Bojara + marcin@pisilinux.org + + + diff --git a/science/gis/ogdi/translations.xml b/science/gis/ogdi/translations.xml new file mode 100644 index 0000000000..37f1049aa8 --- /dev/null +++ b/science/gis/ogdi/translations.xml @@ -0,0 +1,13 @@ + + + + ogdi + Açık coğrafik veri kayıt arayüzü, GIS destek kütüphanesi + OGDI, GIS yazılım paketleri ve çeşitli mekansal/coğrafik veri ürünleriyle çalışabilecek standart erişim metodları içeren açık bir uygulama geliştirme arayüzüdür. + + + + ogdi-devel + ogdi için geliştirme dosyaları + + diff --git a/science/mathematics/netcdf/actions.py b/science/mathematics/netcdf/actions.py new file mode 100644 index 0000000000..4c8726abaf --- /dev/null +++ b/science/mathematics/netcdf/actions.py @@ -0,0 +1,37 @@ +#!/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(): + shelltools.export("CPPFLAGS", "-DNDEBUG -fPIC") + shelltools.export("FC", "gfortran") + shelltools.export("F90", "gfortran") + shelltools.export("FFLAGS", "-fPIC %s" % get.CFLAGS()) + shelltools.export("FCFLAGS", "-fPIC %s" % get.CFLAGS()) + shelltools.export("F90FLAGS", "-fPIC %s" % get.CFLAGS()) + + autotools.configure("--enable-shared \ + --enable-netcdf-4 \ + --enable-dap-netcdf \ + --disable-static \ + ") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def check(): + autotools.make("-j1 check") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + #pisitools.dodoc("README") diff --git a/science/mathematics/netcdf/pspec.xml b/science/mathematics/netcdf/pspec.xml new file mode 100644 index 0000000000..9b82897b9d --- /dev/null +++ b/science/mathematics/netcdf/pspec.xml @@ -0,0 +1,101 @@ + + + + + netcdf + http://my.unidata.ucar.edu/content/software/netcdf/index.html + + PisiLinux Community + admins@pisilinux.org + + UCAR-Unidata + library + Scientific library and interface for array oriented data access + netcdf (network common data form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. + ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.4.0.tar.gz + + hdf5-devel + curl-devel + libgfortran + + + + + + + + netcdf + + hdf5 + curl + libgfortran + + + /usr/bin + /usr/lib + /usr/share/doc + /usr/share/man + /usr/share/info + + + + + netcdf-devel + Development files for netcdf + + netcdf + hdf5-devel + curl-devel + + + /usr/include + /usr/lib/pkgconfig + /usr/share/man/man3 + + + + + + 2016-02-25 + 4.4.0 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-02-12 + 4.3.2 + Version bump. + Hakan Yıldız + hknyldz93@gmail.com + + + 2014-05-31 + 4.3.1 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-01-23 + 4.3.1 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-08-04 + 4.3.0 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2012-11-11 + 4.2.1 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/science/mathematics/netcdf/translations.xml b/science/mathematics/netcdf/translations.xml new file mode 100644 index 0000000000..9bf145b994 --- /dev/null +++ b/science/mathematics/netcdf/translations.xml @@ -0,0 +1,18 @@ + + + + netcdf + Dizi (array) odaklı veri erişimi için arayüz ve bilimsel kütüphane + Librairie scientifique et interface pour l'accès aux données orientées tableaux. + + + + netcdf-devel + netcdf için geliştirme dosyaları + + + + netcdf-devel + netcdf için geliştirme dosyaları + + From b60edf00f48a9f497d2907cc4cb0f9d21fd4e085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Thu, 25 Feb 2016 16:30:37 +0200 Subject: [PATCH 3/4] postgis fix build, verbump --- science/gis/postgis/actions.py | 2 +- science/gis/postgis/pspec.xml | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/science/gis/postgis/actions.py b/science/gis/postgis/actions.py index 77b512c63c..e55c047a1a 100644 --- a/science/gis/postgis/actions.py +++ b/science/gis/postgis/actions.py @@ -16,7 +16,7 @@ def setup(): pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") def build(): - autotools.make() + autotools.make("-j1") def install(): autotools.rawInstall('DESTDIR=%s' % get.installDIR()) diff --git a/science/gis/postgis/pspec.xml b/science/gis/postgis/pspec.xml index 172782ff27..bbea472a01 100644 --- a/science/gis/postgis/pspec.xml +++ b/science/gis/postgis/pspec.xml @@ -12,16 +12,17 @@ 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 + http://download.osgeo.org/postgis/source/postgis-2.2.1.tar.gz - gtk2-devel + proj-devel gdal-devel geos-devel - postgresql-lib + json-c-devel + postgresql-lib libxslt-devel libxml2-devel - imagemagick-devel + @@ -31,6 +32,10 @@ proj gdal geos + zlib + libxml2 + libpcre + json-c postgresql-lib @@ -46,6 +51,13 @@ + + 2016-02-25 + 2.2.1 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + 2015-01-25 2.1.5 From 835cb452f79e958c60278b10b6e3d138a9e39375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Thu, 25 Feb 2016 18:22:36 +0200 Subject: [PATCH 4/4] postgis need postgresql-server --- science/gis/postgis/pspec.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/science/gis/postgis/pspec.xml b/science/gis/postgis/pspec.xml index bbea472a01..22f4e7d566 100644 --- a/science/gis/postgis/pspec.xml +++ b/science/gis/postgis/pspec.xml @@ -14,7 +14,6 @@ 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.2.1.tar.gz - proj-devel gdal-devel geos-devel @@ -22,7 +21,6 @@ postgresql-lib libxslt-devel libxml2-devel - @@ -37,6 +35,7 @@ libpcre json-c postgresql-lib + postgresql-server /etc