[114094] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Fri Nov 29 00:06:55 PST 2013


On Nov 28, 2013, at 18:06, mojca at macports.org wrote:

> Revision
> 114094
> Author
> mojca at macports.org
> Date
> 2013-11-28 16:06:46 -0800 (Thu, 28 Nov 2013)
> Log Message
> 
> py-cartopy: new port (#41337)
> Added Paths
> 
> 	• trunk/dports/python/py-cartopy/
> 	• trunk/dports/python/py-cartopy/Portfile
> Diff
> 
> Added: trunk/dports/python/py-cartopy/Portfile (0 => 114094)
> 
> --- trunk/dports/python/py-cartopy/Portfile	                        (rev 0)
> +++ trunk/dports/python/py-cartopy/Portfile	2013-11-29 00:06:46 UTC (rev 114094)
> 
> @@ -0,0 +1,54 @@
> 
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
> +# $Id$
> +
> +PortSystem          1.0
> +PortGroup           python 1.0
> +PortGroup           github 1.0
> +
> +github.setup        SciTools cartopy 0.9.0 v
> +
> +name                py-cartopy
> +version             0.9.0
> +categories-append   science gis graphics
> +platforms           darwin
> +
> +maintainers         bo.ingv.it:peter.danecek openmaintainer
> +
> +license             LGPL3

Needs to be “LGPL-3” (or “LGPL-3+” if later versions are allowed).

> +if {${subport} != ${name}} {

Remember to use eq and ne for string comparisons instead of == and !=.

> +    depends_build-append    port:py${python.version}-setuptools \
> +                            port:py${python.version}-cython \
> +                            port:py${python.version}-numpy
> +
> +    depends_lib-append      port:proj \
> +                            port:geos
> +
> +    depends_run-append      port:py${python.version}-numpy \
> +                            port:py${python.version}-scipy \
> +                            port:py${python.version}-matplotlib \
> +                            port:py${python.version}-shapely \
> +                            port:py${python.version}-pyshp
> +
> +    # testing only
> +    depends_run-append      port:py${python.version}-nose \
> +                            port:py${python.version}-pep8 \
> +                            port:py${python.version}-mock \
> +                            port:py${python.version}-pil
> +}

How do you mean, “testing only”? If you mean the test phase, as in “sudo port test”, this port doesn’t enable the test phase, and even if it did, runtime dependencies aren’t guaranteed to have been installed by the time the test phase runs.




More information about the macports-dev mailing list