gitlab tags

Joshua Root jmr at macports.org
Thu Mar 9 17:11:38 UTC 2017


On 2017-3-10 02:42 , Jonathan Stickel wrote:
> I am trying to make a port for git-latexdiff. It is hosted on gitlab:
>
> https://gitlab.com/git-latexdiff/git-latexdiff
>
> The project has "tags" which look similar to github's tags (and
> releases). I am having trouble specifying the "master_sites" and
> "distname" variables for the port in order to download the appropriately
> tagged tarball. The download link, e.g.,
>
> https://gitlab.com/git-latexdiff/git-latexdiff/repository/archive.tar.gz?ref=v1.1.4
>
>
> automatically morphs into a download file of
>
> git-latexdiff-v1.1.4-dc84273afc2e366d6c4f98a07052e651c7d297dd.tar.gz
>
> I've used the github portgroup to mange this with github-hosted ports,
> but there is no "gitlab" portgroup.
>
> Any help is appreciated.

I don't know about Gitlab specifically, but if they really don't have 
any other way to download the source, you can use the ?dummy= trick:

<https://trac.macports.org/wiki/PortfileRecipes#fetchwithgetparams>

- Josh


More information about the macports-dev mailing list