[124551] trunk/dports/gis
Ryan Schmidt
ryandesign at macports.org
Mon Aug 25 18:07:45 PDT 2014
On Aug 25, 2014, at 8:05 PM, Ryan Schmidt wrote:
>
>
>> 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
I should add: the bitbucket.setup line is usually positioned where you would otherwise have the name line, or, if the port name is to differ from the bitbucket project name, then right above the name line.
More information about the macports-dev
mailing list