[89133] users/cal/ports

Ryan Schmidt ryandesign at macports.org
Thu Jan 19 13:14:06 PST 2012


On Jan 19, 2012, at 15:01, cal at macports.org wrote:

> Revision: 89133
>          http://trac.macports.org/changeset/89133
> Author:   cal at macports.org
> Date:     2012-01-19 13:01:19 -0800 (Thu, 19 Jan 2012)
> Log Message:
> -----------
> user ports libdivecomputer: update to current, subsurface: update to 1.2, switch to GitHub portgroup

> Modified: users/cal/ports/devel/libdivecomputer/Portfile
> ===================================================================
> --- users/cal/ports/devel/libdivecomputer/Portfile	2012-01-19 20:58:42 UTC (rev 89132)
> +++ users/cal/ports/devel/libdivecomputer/Portfile	2012-01-19 21:01:19 UTC (rev 89133)
> @@ -5,7 +5,7 @@
> 
> name                    libdivecomputer
> # please, when updating libdivecomputer, check whether subsurface still builds against the new version
> -version                 2011101900
> +version                 20120119
> categories              devel
> platforms               darwin
> license                 LGPL-2.1

If this were a public port, you would have needed to increase the epoch at this point, since the version decreased from 2011101900 to 20120119. Since this is a private port and presumably nobody is using it, or those who are using it know not to rely on "port outdated" being correct, it's not a problem. I wouldn't have mentioned it, except that you did increase the epoch of the other port you modified in this commit below.


> Modified: users/cal/ports/x11/subsurface/Portfile
> ===================================================================
> --- users/cal/ports/x11/subsurface/Portfile	2012-01-19 20:58:42 UTC (rev 89132)
> +++ users/cal/ports/x11/subsurface/Portfile	2012-01-19 21:01:19 UTC (rev 89133)
> @@ -2,10 +2,12 @@
> # $Id $
> 
> PortSystem              1.0
> +PortGroup               github 1.0
> 
> name                    subsurface
> # when updating subsurface, it's probably a good idea to update libdivecomputer, too
> -version                 2011101900
> +version                 1.2
> +epoch                   1
> categories              x11
> platforms               darwin
> license                 GPL-2
> @@ -14,10 +16,8 @@
> description             Subsurface is an open source dive log program written in C.
> long_description        ${description}
> 
> +github.setup            torvalds subsurface 1.2 v
> homepage                http://subsurface.hohndel.org/
> -fetch.type              git
> -git.url                 https://github.com/torvalds/subsurface.git
> -git.branch              04f372f8aa5b4f9ba462e0e93b76f3dde6af00f1

Note that the github.setup procedure sets name and version for you, so you should remove the name and version lines of the portfile. Traditionally when using a portgroup that has a setup procedure, it goes first in the portfile, right after the portsystem and portgroup inclusions, taking the place of the name and version lines.




More information about the macports-dev mailing list