[125176] trunk/dports/lang/ocaml-camlp4/Portfile

Ryan Schmidt ryandesign at macports.org
Mon Sep 8 14:25:17 PDT 2014


> On Sep 8, 2014, at 3:23 PM, mww at macports.org wrote:
> 
> Revision
> 125176
> Author
> mww at macports.org
> Date
> 2014-09-08 13:23:04 -0700 (Mon, 08 Sep 2014)
> Log Message
> 
> ocaml-camlp4: dont use "+" in version string
> Modified Paths
> 
> 	• trunk/dports/lang/ocaml-camlp4/Portfile
> Diff
> 
> Modified: trunk/dports/lang/ocaml-camlp4/Portfile (125175 => 125176)
> 
> --- trunk/dports/lang/ocaml-camlp4/Portfile	2014-09-08 18:36:38 UTC (rev 125175)
> +++ trunk/dports/lang/ocaml-camlp4/Portfile	2014-09-08 20:23:04 UTC (rev 125176)
> 
> @@ -4,9 +4,10 @@
> 
>  PortGroup           ocaml 1.0
> 
>  PortGroup           github 1.0
> 
>  
> 
> -github.setup        ocaml camlp4 4.02.0+1
> 
> +# dont do that:
> +#github.setup        ocaml camlp4 4.02.0+1
> +version             4.02.0.1
> 
>  
> 
> -revision            1
> 
>  name                ocaml-camlp4
> 
>  categories          lang devel ml
> 
>  maintainers         mww openmaintainer
> 
> @@ -24,11 +25,15 @@
> 
>      easier to maintain and to learn: ppx rewriters and extension points.
> 
>  
> 
>  homepage            https://github.com/ocaml/camlp4
> +master_sites        https://github.com/ocaml/camlp4/archive/
> 
> +distname            4.02.0+1
> 
>  platforms           darwin
> 
>  
> 
> -checksums           rmd160  4f10c7b345c5434967f4cbb9f751fed559a7f978 \
> -                    sha256  89c73269adabf536596da129b978f2d37dc8193a61c1ea5804c94f692f828087
> 
> +checksums           rmd160  5f7a2c34ac7e147c1b44cb24791c2ac8464bcb74 \
> +                    sha256  f626486ad4b6872e22baf55edcdbc3023f4c721d18f6808a7d59a01f2571a500
> 
>  
> 
> +worksrcdir          camlp4-4.02.0-1
> +


Thanks, but you should still use the same github.setup line you used before, to specify the github project author, project name, tag name, and optionally tag prefix, and then it's not necessary to specify master_sites, distname or worksrcdir because the github portgroup does it for you. The assumption is that the project name specified in the github.setup line is the same as the port name; if not, you override the "name" variable. And it is assumed the project tag name is the same as the port version number, and if that's not so, then you override the "version" variable.




More information about the macports-dev mailing list