> On Jun 6, 2015, at 6:27 PM, [email protected] wrote:
> 
> Revision
> 137221
> Author
> [email protected]
> Date
> 2015-06-06 16:27:36 -0700 (Sat, 06 Jun 2015)
> Log Message
> 
> gnofract4d: move to github

> Modified: trunk/dports/gnome/gnofract4d/Portfile (137220 => 137221)
> --- trunk/dports/gnome/gnofract4d/Portfile    2015-06-06 22:44:46 UTC (rev 
> 137220)
> +++ trunk/dports/gnome/gnofract4d/Portfile    2015-06-06 23:27:36 UTC (rev 
> 137221)
> @@ -3,9 +3,10 @@
>  
>  PortSystem              1.0
>  PortGroup               python 1.0
> +PortGroup               github 1.0
>  
> -name                    gnofract4d
> -version                 3.14.1
> +github.setup            edyoung gnofract4d 3.14.1 V

The correct invocation of github.setup for this project would be:

github.setup            edyoung gnofract4d 3_14_1 V_

Then you need to fix the version, for example:

versione                [string map {_ .} ${version}]


> +revision                1
>  description             Gnofract4D is a program to draw fractals.
>  long_description        Gnofract 4D is a fractal browser. It can \
>                          generate many different fractals, including \
> @@ -17,13 +18,14 @@
>  categories              gnome math python
>  license                 LGPL-2.1+
>  platforms               darwin
> -homepage                http://gnofract4d.sourceforge.net/
> -master_sites            sourceforge:project/gnofract4d/gnofract4d/${version}
> +master_sites            https://github.com/edyoung/gnofract4d/archive/
>  
> -checksums               rmd160  c99aeb2c6331ac26a59a32baaba3a916409a98f1 \
> -                        sha256  
> dea77e4119a488cdc5ae29dc64f2975eaaa7bbaca84e1c02aa016ff1eb5c59dc
> +checksums               rmd160  e42b53ec651430d88d7479fb8cb2704d0b33ab6d \
> +                        sha256  
> 29f05d9b07f7b53bf250b0f81f74b76dbd68efc5d6ba71f4d55ef332f6b6f83d
>  
> -dist_subdir             ${name}
> +dist_subdir             ${name}/${version}_1
> +distname                V_[regsub -all {\.} $version {_}]
> +worksrcdir              ${name}-${distname}

You shouldn't need to change master_sites, distname, or worksrcdir when using 
the github portgroup. Please check the usage guidelines in the github 
portgroup's comments. However, changing this now would cause the checksums to 
change again, so you should probably hold off until the next update, so that 
another virtually-identical file doesn't need to be downloaded by users and 
mirrored by our servers.

See also https://trac.macports.org/ticket/40518 for the story on github archive 
URLs.

I've attached a patch that you can apply now, with comments showing what to 
remove at the next version update.


Attachment: gnofract4d.diff
Description: Binary data

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to