HI, If there is really no way to get everything via a tarball, one way is to configure the port to fetch directly from git clone and not a tar ball, and then in a post-fetch block run the git submodule init. See eg.
https://github.com/macports/macports-ports/blob/master/devel/ccls/Portfile <https://github.com/macports/macports-ports/blob/master/devel/ccls/Portfile> as a randomly picked example. Its not ideal, as for instance it by-passes macports checksum checks for instance, but if there is no other way … Chris > On 1 Feb 2020, at 5:57 pm, miniupnp <[email protected]> wrote: > > Hello, > > I have a Portfile that fetches sources from gitlab. > https://github.com/macports/macports-ports/blob/master/graphics/grafx2/Portfile > > I used to get the .tar.bz2 archive from gitlab and that was ok, but now > there is a git submodule which of course is not included in the .tar.bz2 > archive. > What is the right way of doing it ? > > Regards, > > Thomas Bernard >
smime.p7s
Description: S/MIME cryptographic signature
