[133168] trunk/dports/sysutils

Clemens Lang cal at macports.org
Mon Mar 2 01:40:16 PST 2015


Hi,

----- On 2 Mar, 2015, at 08:19, Ryan Schmidt ryandesign at macports.org wrote:
> I've had to do this kind of thing enough times myself (e.g. with MongoHub,
> MyPaint-devel), and now I see others like you doing it, that it's probably time
> for me to enhance the github portgroup to automate this.

You'd have to parse the .gitmodules file to do this correctly. I'm not sure
it's worth the effort (but it could nonetheless be done). Note that the .gitmodules
could also contain references to projects hosted outside of Github, which would
not offer automatically generated tarballs.


> Still wish developers would provide proper release tarballs which would obviate
> the need...

It's convenient for developers to just use the submodules. As long as we just
fetch the tags, there's nothing they can do. Of course, they could use github's
release feature, though.

FWIW, the textmate2 Portfile has the same problem, and I've just used

  fetch.type git
  post-fetch {
      system -W ${worksrcpath} "${git.cmd} submodule update --init"
  }

to deal with it (which the github PortGroup does not support either, as far as I
can see).

-- 
Clemens Lang


More information about the macports-dev mailing list