proper Portfile lines for a weird release on github?
Joshua Root
jmr at macports.org
Fri Nov 17 05:37:08 UTC 2017
On 2017-11-17 15:07 , Zero King wrote:
> On Thu, Nov 16, 2017 at 10:17:09PM -0500, Perry E. Metzger wrote:
>> camlp5 version 7.03 is located in
>>
>> https://github.com/camlp5/camlp5/archive/rel703.tar.gz
>>
>> What do I do in an updated Portfile to point at that?
>
> You can use the github PortGroup[1] with strsed[2], e.g.
>
> ```
> PortGroup github 1.0
> set _version 7.03
> github.setup camlp5 camlp5 [strsed ${_version} {g/\.//}] rel
> version ${_version}
> ```
Alternatively you can use Tcl's built-in 'string map', which may be
clearer to some readers.
[string map {. ""} ${_version}]
- Josh
More information about the macports-dev
mailing list