On Wed, Apr 08, 2020 at 05:09:56PM +0200, Martin Reindl wrote:
> Hello,
> 
> attached is a port of py-mercantile:
> 
> Mercantile is a module of utilities for working with XYZ style
> spherical mercator tiles (as in Google Maps, OSM, Mapbox, etc.) and
> includes a set of command line programs built on these utilities.
> 
> This is also a RDEP for a py-rio-cogeo update.

interesting, as i also worked on it (together with py-supermercado) but
i didnt see the 1.1.2 version of mercantile.

> OKs?

i would use the standard way of FLAVOR=python3 as its a lib, but other
than that your version looks good. Find attached my attempt, including
the port for py-supermercado and the update to py-rio-cogeo.

Landry
? 1.1.8.diff
? py-rio-cogeo-1.1.10.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/geo/py-rio-cogeo/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile    25 Feb 2020 10:01:42 -0000      1.4
+++ Makefile    9 Apr 2020 05:59:08 -0000
@@ -2,11 +2,9 @@
 
 COMMENT =      cloud optimized GeoTiff creation plugin for rasterio
 
-# 1.0dev9 and later require numpy 1.15
-MODPY_EGG_VERSION =    1.0.dev8
+MODPY_EGG_VERSION =    1.1.10
 DISTNAME =     rio-cogeo-${MODPY_EGG_VERSION}
 PKGNAME =      py-${DISTNAME:S/.dev/pre/}
-REVISION =     1
 
 CATEGORIES =   geo
 
@@ -21,7 +19,10 @@
 MODPY_SETUPTOOLS =     Yes
 MODPY_PI =     Yes
 
-RUN_DEPENDS =  geo/py-rasterio${MODPY_FLAVOR}
+RUN_DEPENDS =  geo/py-rasterio${MODPY_FLAVOR} \
+               geo/py-mercantile${MODPY_FLAVOR} \
+               geo/py-supermercado${MODPY_FLAVOR} \
+               math/py-numpy${MODPY_FLAVOR}>=1.15
 
 # test_read_no_band requires hdf5 support in GDAL
 # requires datafiles only on github...
Index: distinfo
===================================================================
RCS file: /cvs/ports/geo/py-rio-cogeo/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    24 Feb 2019 20:51:18 -0000      1.1.1.1
+++ distinfo    9 Apr 2020 05:59:08 -0000
@@ -1,2 +1,2 @@
-SHA256 (rio-cogeo-1.0.dev8.tar.gz) = 
nGeHkm9vN19xq16hekFb9r/v5xe3oZ8o8GJZk+qkDF0=
-SIZE (rio-cogeo-1.0.dev8.tar.gz) = 5481
+SHA256 (rio-cogeo-1.1.10.tar.gz) = +Ppf9EW1/bZjyHffyLaMqa403xk4+kEjRMGJ2tIW/dE=
+SIZE (rio-cogeo-1.1.10.tar.gz) = 20217
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/geo/py-rio-cogeo/pkg/PLIST,v
retrieving revision 1.2
diff -u -r1.2 PLIST
--- pkg/PLIST   25 Feb 2020 10:01:42 -0000      1.2
+++ pkg/PLIST   9 Apr 2020 05:59:08 -0000
@@ -13,8 +13,11 @@
 
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/rio_cogeo/${MODPY_PYCACHE}/
 
lib/python${MODPY_VERSION}/site-packages/rio_cogeo/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/rio_cogeo/${MODPY_PYCACHE}cogeo.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/rio_cogeo/${MODPY_PYCACHE}errors.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/rio_cogeo/${MODPY_PYCACHE}profiles.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/rio_cogeo/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
 lib/python${MODPY_VERSION}/site-packages/rio_cogeo/cogeo.py
+lib/python${MODPY_VERSION}/site-packages/rio_cogeo/errors.py
 lib/python${MODPY_VERSION}/site-packages/rio_cogeo/profiles.py
 lib/python${MODPY_VERSION}/site-packages/rio_cogeo/scripts/
 lib/python${MODPY_VERSION}/site-packages/rio_cogeo/scripts/__init__.py
@@ -22,3 +25,4 @@
 
lib/python${MODPY_VERSION}/site-packages/rio_cogeo/scripts/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/rio_cogeo/scripts/${MODPY_PYCACHE}cli.${MODPY_PYC_MAGIC_TAG}pyc
 lib/python${MODPY_VERSION}/site-packages/rio_cogeo/scripts/cli.py
+lib/python${MODPY_VERSION}/site-packages/rio_cogeo/utils.py

Attachment: py-perc.tgz
Description: application/tar-gz

Reply via email to