[macports-ports] branch master updated: minetest: new port
Ryan Schmidt
ryandesign at macports.org
Mon Dec 11 02:04:15 UTC 2017
On Dec 10, 2017, at 19:15, Ken Cunningham wrote:
> On Dec 10, 2017, at 4:54 PM, Ryan Schmidt wrote:
>
>>> +# also need the minetest game
>>> +
>>> +post-extract {
>>> + system -W ${worksrcpath} "curl --output minetest-game.tar.gz https://codeload.github.com/minetest/minetest_game/tar.gz/${version}"
>>> + system -W ${worksrcpath} "tar xvf minetest-game.tar.gz"
>>> + system -W ${worksrcpath} "mv minetest_game-${version} minetest_game"
>>> +}
>>
>> Please don't fetch files in the extract phase. Fetch in the fetch phase.
>>
>> Please don't fetch files manually if possible. Instead, use the existing MacPorts mechanisms for downloading multiple files (distfiles, master_sites, :tags).
>>
>
> You know, I totally cannot figure out after nearly two years of Port development how to do this using MacPorts mechanisms, if it is possible at all.
>
> Please educate me on the correct way you would like this done, when you have a moment.
>
> ( I put it in post-extract so it wouldn’t mess up the github portgroup’s fetching.)
Here's an example of how to do it:
https://trac.macports.org/attachment/ticket/55440/libpsl-with-updated-publicsuffix-list.diff
More information about the macports-dev
mailing list