proper Portfile lines for a weird release on github?

Zero King l2dy at macports.org
Fri Nov 17 04:07:37 UTC 2017


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}
```

[1] https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/github-1.0.tcl
[2] https://guide.macports.org/chunked/reference.tcl-extensions.html#reference.tcl-extensions.strsed

-- 
Best regards,
Zero King
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3612 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20171117/22533207/attachment-0001.bin>


More information about the macports-dev mailing list