- Cleanup GITHUB master sites.
While we currently have 3 github mirrors:
MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR% \
http://codeload.github.com/%SUBDIR%
MASTER_SITE_GITHUB_CLOUD+= http://cloud.github.com/downloads/%SUBDIR%
only first one works. Second one doesn't reply and clound reply with 403.
Leave only first one.
- Use new GITHUB fetching scheme.
In addition to the scheme which we currently use:
https://codeload.github.com/Bertram25/ValyriaTear/legacy.tar.gz/1.0.0?dummy=/valyriatear-1.0.0.tar.gz
GitHub allows other one:
https://codeload.github.com/Bertram25/ValyriaTear/tar.gz/1.0.0?dummy=/valyriatear-1.0.0.tar.gz
The difference is that root directory of tarball is named
${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT} in the first case and
${GH_PROJECT}-${GH_TAGNAME} in the second one.
The second scheme is more convenient, as it doesn't require maintainer to retrieve and specify commit hash.
I propose to make use of the new scheme while leaving support for the old one. To select scheme, GH_COMMIT is checked. If it's defined, the old scheme is used. If not, the new one. Since GH_COMMIT is mandatory in the old scheme, this change is fully backwards compatible. Now, ports may just omit GH_COMMIT to use the new scheme.