This change is to add GH_ASSET to support "releases/download" URL
to download GitHub release assets, instead of using a raw URL
in MASTER_SITES.
When USE_GITHUB=yes and GH_ASSET is defined, the following variables
will be set:
MASTER_SITES+= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${GH_TAGNAME}/
DISTFILES+= ${GH_ASSET}
The GH_ASSET variable is typically ${DISTNAME}${EXTRACT_SUFX}.
Examples of rewriting the existing ports using releases/download
URLs have been attached to this review:
accessibility/speech-dispatcher: Use GH_ASSET instead of a raw URL of GitHub
archivers/advancecomp: Use GH_ASSET instead of a raw URL of GitHub
archivers/laszip: Use GH_ASSET instead of a raw URL of GitHub
archivers/libarchive: Use GH_ASSET instead of a raw URL of GitHub
archivers/libzip: Use GH_ASSET instead of a raw URL of GitHub
archivers/makeself: Use GH_ASSET instead of a raw URL of GitHub
archivers/peazip: Use GH_ASSET instead of a raw URL of GitHub
archivers/upx: Use GH_ASSET instead of a raw URL of GitHub
archivers/zstd: Use GH_ASSET instead of a raw URL of GitHub
astro/erfa: Use GH_ASSET instead of a raw URL of GitHub
astro/osmosis: Use GH_ASSET instead of a raw URL of GitHub
astro/pal: Use GH_ASSET instead of a raw URL of GitHub
astro/starfetch: Use GH_ASSET instead of a raw URL of GitHub
astro/stellarium: Use GH_ASSET instead of a raw URL of GitHub
The total number of ports using raw URLs is ~650.