[120617] trunk/dports/devel

Ryan Schmidt ryandesign at macports.org
Sat Jun 7 09:49:08 PDT 2014


On Jun 3, 2014, at 11:50 AM, devans at macports.org wrote:

> Revision
> 120617
> Author
> devans at macports.org
> Date
> 2014-06-03 09:50:48 -0700 (Tue, 03 Jun 2014)
> Log Message
> 
> appstream-glib: new port, provides objects and helper methods to help reading and writing AppStream metadata.
> Added Paths
> 
> 	• trunk/dports/devel/appstream-glib/
> 	• trunk/dports/devel/appstream-glib/Portfile
> 	• trunk/dports/devel/appstream-glib/files/
> 	• trunk/dports/devel/appstream-glib/files/patch-configure.ac.diff
> Diff
> 
> Added: trunk/dports/devel/appstream-glib/Portfile (0 => 120617)
> 
> --- trunk/dports/devel/appstream-glib/Portfile	                        (rev 0)
> +++ trunk/dports/devel/appstream-glib/Portfile	2014-06-03 16:50:48 UTC (rev 120617)
> 
> @@ -0,0 +1,39 @@
> 
> +# -*- 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           github 1.0
> +
> +github.setup        hughsie appstream-glib 0_1_6 appstream_glib_

Ports should use version numbers in dotted decimal format, e.g. 0.1.6, especially if that is the format the project itself uses, which in appstream-glib's case, it is:

$ appstream-util --version
Version:	0.1.6

Where the projects use underscores or other version number component separators in their github tag names, this should be fixed by manually setting the version after the github.setup line, for example using strsed:


github.setup        hughsie appstream-glib 0_1_6 appstream_glib_
version             [strsed ${version} g/_/./]



More information about the macports-dev mailing list