diff options
author | Sven Wegener <swegener@gentoo.org> | 2016-06-28 18:26:03 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2016-07-18 20:39:24 +0000 |
commit | 8091a2d1eef7b014d2aaee3d2c6906397bc970d0 (patch) | |
tree | 83887b73637d6ac8217bce3a8aa1a630a6f489d3 /sci-libs/gdal/files | |
parent | app-admin/eclean-kernel: Bump to 1.99.0 pre-release (diff) | |
download | gentoo-8091a2d1eef7b014d2aaee3d2c6906397bc970d0.tar.gz gentoo-8091a2d1eef7b014d2aaee3d2c6906397bc970d0.tar.bz2 gentoo-8091a2d1eef7b014d2aaee3d2c6906397bc970d0.zip |
sci-libs/gdal: Fix building with >=swig-3.0.6
Package-Manager: portage-2.2.28
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'sci-libs/gdal/files')
-rw-r--r-- | sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch b/sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch new file mode 100644 index 000000000000..4f4e80b84f9b --- /dev/null +++ b/sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch @@ -0,0 +1,22 @@ +--- gdal/swig/include/python/ogr_python.i ++++ gdal/swig/include/python/ogr_python.i +@@ -67,7 +67,7 @@ + def __getitem__(self, value): + """Support dictionary, list, and slice -like access to the datasource. +-ds[0] would return the first layer on the datasource. +-ds['aname'] would return the layer named "aname". +-ds[0:4] would return a list of the first four layers.""" ++ ds[0] would return the first layer on the datasource. ++ ds['aname'] would return the layer named "aname". ++ ds[0:4] would return a list of the first four layers.""" + if isinstance(value, slice): + output = [] +@@ -135,6 +135,6 @@ + def __getitem__(self, value): + """Support list and slice -like access to the layer. +-layer[0] would return the first feature on the layer. +-layer[0:4] would return a list of the first four features.""" ++ layer[0] would return the first feature on the layer. ++ layer[0:4] would return a list of the first four features.""" + if isinstance(value, slice): + import sys |