Fetching sources from two git repositories for a single port (aquaterm)

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sat May 5 05:58:24 PDT 2012


On Sat, May 5, 2012 at 9:27 AM, Ryan Schmidt wrote:
> On May 5, 2012, at 02:22, Mojca Miklavec wrote:
>
>> I would like to create an update for AquaTerm and gnuplot, where
>> AquaTerm would come from a git repository. However it has always been
>> split into two separate (CVS) repositories and only combined together
>> for the release. (I'm trying to reach the author (Per Persson), but he
>> seem to be busy enough and hard enough to reach. Even if the changes
>> don't get committed into Macports' SVN yet, I would at least like to
>> have a local port for me and others to be able to test if everything
>> works ok. He might respond in the meantime.)
>>
>> I would like to try fetching sources from the following two repositories:
>>    https://github.com/gnuplot/aquaterm_adapters
>>    https://github.com/mojca/aquaterm_aquaterm
>>
>> I've seen some ports using github.setup, but it is not clear to me how
>> I could conveniently fetch sources from multiple repositories at once.
>> Another option would be of course to split aquaterm into two ports,
>> but apart from the tiny inconvenience in fetching sources, I don't see
>> any compelling reason to do that. Adapters are really small. Another
>> option is to combine the two repositories into a single one.
>
> There's no feature in MacPorts to fetch from multiple version control systems in a single port. You'll have to code the port to fetch from one of the version control systems, then write a post-fetch block to manually fetch from the other one.

Thank you.

I have submitted a port for testing to
    http://trac.macports.org/ticket/34346
by simply dropping one of the two repositories for a moment. I would
be grateful for any hints about the proper way to fetch the second
repository (it might also happen that I will try to merge the two
repositories together, but I first need to study a bit of git trickery
to do that properly). The second repository doesn't require running
configure/make or anything else, just copying the files to the desired
destination, so apart from fetching files there should be nothing
particularly tricky.

I'll upload a patch for gnuplot next.

Mojca


More information about the macports-dev mailing list