Index: head/graphics/py-pyproj/Makefile =================================================================== --- head/graphics/py-pyproj/Makefile (revision 428159) +++ head/graphics/py-pyproj/Makefile (revision 428160) @@ -1,31 +1,41 @@ # Created by: TAOKA Fumiyoshi # $FreeBSD$ PORTNAME= pyproj -PORTVERSION= 1.9.3 +PORTVERSION= 1.9.5.1 CATEGORIES= graphics python geography -MASTER_SITES= GOOGLE_CODE +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= fmysh@iijmio-mail.jp -COMMENT= Pyrex wrapper to provide python interfaces to PROJ.4 +COMMENT= Cython wrapper to provide python interfaces to PROJ.4 functions -BROKEN= Unfetchable (google code has gone away) +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE -WRKSRC= ${WRKDIR}/${DISTNAME:C/[a-z]$//} +LIB_DEPENDS= libproj.so:graphics/proj + USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= distutils autoplist concurrent -PORTDOCS= Changelog README LICENSE_proj4 +MAKE_ENV= PROJ_DIR=${LOCALBASE} + +PORTDOCS= * +PORTDOCS1= Changelog README.md docs/* PORTEXAMPLES= datum_shift.py geodtest.py sample.out \ - test.py test2.py test_transform.py + test.py test2.py test_datum.py test_transform.py OPTIONS_DEFINE= DOCS EXAMPLES post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_proj.so + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS1:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/test/,} ${STAGEDIR}${EXAMPLESDIR} .include Index: head/graphics/py-pyproj/distinfo =================================================================== --- head/graphics/py-pyproj/distinfo (revision 428159) +++ head/graphics/py-pyproj/distinfo (revision 428160) @@ -1,2 +1,3 @@ -SHA256 (pyproj-1.9.3.tar.gz) = 912ed86c5e407f091d0f3d076594af4fb569e27c68199b7d71651edd522aaa0c -SIZE (pyproj-1.9.3.tar.gz) = 2687498 +TIMESTAMP = 1481180431 +SHA256 (pyproj-1.9.5.1.tar.gz) = 53fa54c8fa8a1dfcd6af4bf09ce1aae5d4d949da63b90570ac5ec849efaf3ea8 +SIZE (pyproj-1.9.5.1.tar.gz) = 4424543 Index: head/graphics/py-pyproj/pkg-descr =================================================================== --- head/graphics/py-pyproj/pkg-descr (revision 428159) +++ head/graphics/py-pyproj/pkg-descr (revision 428160) @@ -1,8 +1,24 @@ -Pyrex wrapper to provide python interfaces to -PROJ.4 (http://proj.maptools.org) functions. +Cython wrapper to provide python interfaces to PROJ.4 functions. -Performs cartographic transformations (converts from longitude,latitude -to native map projection x,y coordinates and vice versa, or from -one map projection coordinate system directly to another). +Performs cartographic transformations and geodetic computations. -WWW: http://code.google.com/p/pyproj +The Proj class can convert from geographic (longitude,latitude) +to native map projection (x,y) coordinates and vice versa, or +from one map projection coordinate system directly to another. +The module variable pj_list is a dictionary containing all the +available projections and their descriptions. + +The Geod class can perform forward and inverse geodetic, or +Great Circle, computations. The forward computation involves +determining latitude, longitude and back azimuth of a terminus +point given the latitude and longitude of an initial point, +plus azimuth and distance. The inverse computation involves +determining the forward and back azimuths and distance given +the latitudes and longitudes of an initial and terminus point. + +Input coordinates can be given as python arrays, lists/tuples, +scalars or numpy/Numeric/numarray arrays. Optimized for objects +that support the Python buffer protocol (regular python and +numpy array objects). + +WWW: https://github.com/jswhit/pyproj