Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.sites.mk
Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | |||||
# This new scheme rerolls distfiles. Also ensure they are renamed to avoid | # This new scheme rerolls distfiles. Also ensure they are renamed to avoid | ||||
# conflicts. Use _GITHUB_REV in case github changes their zipping or structure | # conflicts. Use _GITHUB_REV in case github changes their zipping or structure | ||||
# which has happened before. | # which has happened before. | ||||
_GITHUB_REV= 0 | _GITHUB_REV= 0 | ||||
. if ${MASTER_SITES:MGH} | . if ${MASTER_SITES:MGH} | ||||
DISTNAME:= ${DISTNAME}_GH${_GITHUB_REV} | DISTNAME:= ${DISTNAME}_GH${_GITHUB_REV} | ||||
. endif | . endif | ||||
_GITHUB_EXTRACT_SUFX= .tar.gz | _GITHUB_EXTRACT_SUFX= .tar.gz | ||||
# If there are non default groups | |||||
. if !empty(_GITHUB_GROUPS:NDEFAULT) | |||||
# Put the DEFAULT distfile first | # Put the DEFAULT distfile first | ||||
. if !${USE_GITHUB:Mnodefault} | . if !${USE_GITHUB:Mnodefault} && defined(_GITHUB_MUST_SET_DISTNAME) | ||||
DISTFILES+= ${DISTNAME}${_GITHUB_EXTRACT_SUFX} | DISTFILES+= ${DISTNAME}${_GITHUB_EXTRACT_SUFX} | ||||
. endif | . endif | ||||
# If there are non default groups | |||||
. if !empty(_GITHUB_GROUPS:NDEFAULT) | |||||
# Then for each of the remaining groups, add DISTFILES and MASTER_SITES | # Then for each of the remaining groups, add DISTFILES and MASTER_SITES | ||||
# entries with the correct group and create {WRKSRC,DISTNAME,DISTFILES}_group | # entries with the correct group and create {WRKSRC,DISTNAME,DISTFILES}_group | ||||
# helper variables. | # helper variables. | ||||
. for _group in ${_GITHUB_GROUPS:NDEFAULT} | . for _group in ${_GITHUB_GROUPS:NDEFAULT} | ||||
GH_ACCOUNT_${_group}?= ${GH_ACCOUNT_DEFAULT} | GH_ACCOUNT_${_group}?= ${GH_ACCOUNT_DEFAULT} | ||||
GH_PROJECT_${_group}?= ${GH_PROJECT_DEFAULT} | GH_PROJECT_${_group}?= ${GH_PROJECT_DEFAULT} | ||||
GH_TAGNAME_${_group}?= ${GH_TAGNAME_DEFAULT} | GH_TAGNAME_${_group}?= ${GH_TAGNAME_DEFAULT} | ||||
GH_TAGNAME_${_group}_SANITIZED= ${GH_TAGNAME_${_group}:S,/,-,} | GH_TAGNAME_${_group}_SANITIZED= ${GH_TAGNAME_${_group}:S,/,-,} | ||||
▲ Show 20 Lines • Show All 830 Lines • Show Last 20 Lines |