[124551] trunk/dports/gis

Ryan Schmidt ryandesign at macports.org
Mon Aug 25 18:05:04 PDT 2014


> On Aug 25, 2014, at 1:43 PM, vince at macports.org wrote:
> 
> Revision
> 124551
> Author
> vince at macports.org
> Date
> 2014-08-25 11:43:15 -0700 (Mon, 25 Aug 2014)
> Log Message
> 
> Initial commit

> --- trunk/dports/gis/kealib/Portfile	                        (rev 0)
> +++ trunk/dports/gis/kealib/Portfile	2014-08-25 18:43:15 UTC (rev 124551)
> @@ -0,0 +1,47 @@
> +# $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore at macports.org$
> +
> +PortSystem          1.0
> +PortGroup           cmake 1.0
> +PortGroup           bitbucket 1.0
> +
> +name                kealib
> +categories          gis
> +version             1.4.2.20140825
> +license             MIT
> +maintainers         vince
> +description         KEAlib - Implements KEA file format into HDF5 format
> +long_description    The KEA file format developed by the OSGEO is a GIS \
> +                    oriented format that supports the GDAL model and allows \
> +                    raster attribute tables for raster GIS operations. It is \
> +                    built atop HDF5.
> +platforms           darwin
> +homepage            https://bitbucket.org/chchrsc/kealib
> +master_sites        https://bitbucket.org/chchrsc/kealib
> +distname            kealib
> +
> +bitbucket.setup     chchrsc kealib c6d36f3
> +
> +depends_lib-append  port:gdal \
> +                    port:hdf5
> +
> +fetch.type          hg

The bitbucket.setup line is meant to replace many lines: name, version, homepage, master_sites, distname. In this particular case you'll still need the version line but the others could probably go away. In  addition, master_sites and distname aren't used anyway if you've changed fetch.type from the default, e.g. here to hg. But if possible, you should use the default fetch type, and not set fetch.type hg. Although the distname line should probably be deleted in this port, note for future reference that values of distname that do not include the version number are problematic as explained here: https://trac.macports.org/wiki/PortfileRecipes#unversioned-distfiles


> Added: svn:executable
> Added: trunk/dports/gis/rsgislib/Portfile (0 => 124551)

Portfiles shouldn't me marked executable. You should however set svn:eol-style native and svn:keywords Id. You should set up your auto-props in your subversion config to do this automatically. See https://trac.macports.org/wiki/CommittersTipsAndTricks#SetsvnpropertiesautomaticallyonnewPortfiles


> --- trunk/dports/gis/rsgislib/Portfile	                        (rev 0)
> +++ trunk/dports/gis/rsgislib/Portfile	2014-08-25 18:43:15 UTC (rev 124551)
> @@ -0,0 +1,105 @@
> +# $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore at macports.org$
> +
> +PortSystem          1.0
> +PortGroup           cmake 1.0
> +PortGroup           bitbucket 1.0
> +
> +name                rsgislib
> +categories          gis
> +version             2.1.20140825
> +license             GPL-3
> +maintainers         vince
> +description         RSGISlib - Remote Sensing and GIS Library
> +long_description    This library provides a lot of advanced tools to \
> +                    perform image analysis and feature detection in \
> +                    remote sensing and GIS applications.
> +platforms           darwin
> +homepage            http://www.rsgislib.org
> +master_sites        http://bitbucket.org/petebunting/rsgislib/downloads
> +distname            rsgislib
> +
> +bitbucket.setup     petebunting rsgislib 9135d61
> +
> +depends_lib-append      port:gdal \
> +                        port:geos \
> +                        port:cgal \
> +                        port:proj \
> +                        port:boost \
> +                        port:xercesc3 \
> +                        port:gsl \
> +                        port:fftw-3 \
> +                        port:kealib \
> +                        port:muparser
> +
> +pre-fetch {
> +    if {![variant_isset python27] && ![variant_isset python33] && \
> +        ![variant_isset python34]} {
> +
> +        return -code error "You must choose at least one Python variant."
> +    }
> +}
> +
> +fetch.type              hg

The same comments apply to this portfile.




More information about the macports-dev mailing list