Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.sites.mk
Show First 20 Lines • Show All 541 Lines • ▼ Show 20 Lines | |||||
GL_SITE+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\1\8@:S@::@:@} | GL_SITE+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\1\8@:S@::@:@} | ||||
GL_ACCOUNT+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\5\8@} | GL_ACCOUNT+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\5\8@} | ||||
GL_PROJECT+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\6\8@} | GL_PROJECT+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\6\8@} | ||||
GL_COMMIT+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\7\8@} | GL_COMMIT+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\7\8@} | ||||
GL_SUBDIR+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\9\8@:M/*:S/^\///} | GL_SUBDIR+= ${GL_TUPLE:C@^(([^:]*://[^:/]*(:[0-9]{1,5})?(/[^:]*[^/])?:)?)([^:]*):([^:]*):([^:]*)(:[^:/]*)((/.*)?)@\9\8@:M/*:S/^\///} | ||||
. endif | . endif | ||||
. if empty(USE_GITLAB:Mnodefault) | . if empty(USE_GITLAB:Mnodefault) | ||||
MASTER_SITES+= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/repository/${GL_COMMIT}/archive.tar.gz?dummy=/ | MASTER_SITES+= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/archive/${GL_COMMIT}.tar.gz?dummy=/ | ||||
. endif | . endif | ||||
GL_SITE_DEFAULT= https://gitlab.com | GL_SITE_DEFAULT= https://gitlab.com | ||||
GL_SITE?= ${GL_SITE_DEFAULT} | GL_SITE?= ${GL_SITE_DEFAULT} | ||||
GL_ACCOUNT_DEFAULT= ${PORTNAME} | GL_ACCOUNT_DEFAULT= ${PORTNAME} | ||||
GL_ACCOUNT?= ${GL_ACCOUNT_DEFAULT} | GL_ACCOUNT?= ${GL_ACCOUNT_DEFAULT} | ||||
GL_PROJECT_DEFAULT= ${PORTNAME} | GL_PROJECT_DEFAULT= ${PORTNAME} | ||||
GL_PROJECT?= ${GL_PROJECT_DEFAULT} | GL_PROJECT?= ${GL_PROJECT_DEFAULT} | ||||
_GITLAB_GROUPS= DEFAULT | _GITLAB_GROUPS= DEFAULT | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
. endif | . endif | ||||
GL_ACCOUNT_${_group}?= ${GL_ACCOUNT_DEFAULT} | GL_ACCOUNT_${_group}?= ${GL_ACCOUNT_DEFAULT} | ||||
GL_PROJECT_${_group}?= ${GL_PROJECT_DEFAULT} | GL_PROJECT_${_group}?= ${GL_PROJECT_DEFAULT} | ||||
_GL_TUPLE_OUT:= ${_GL_TUPLE_OUT} ${GL_SITE_${_group}}:${GL_ACCOUNT_${_group}}:${GL_PROJECT_${_group}}:${GL_COMMIT_${_group}}:${_group}/${GL_SUBDIR_${_group}} | _GL_TUPLE_OUT:= ${_GL_TUPLE_OUT} ${GL_SITE_${_group}}:${GL_ACCOUNT_${_group}}:${GL_PROJECT_${_group}}:${GL_COMMIT_${_group}}:${_group}/${GL_SUBDIR_${_group}} | ||||
DISTNAME_${_group}:= ${GL_ACCOUNT_${_group}}-${GL_PROJECT_${_group}}-${GL_COMMIT_${_group}}_GL${_GITLAB_REV} | DISTNAME_${_group}:= ${GL_ACCOUNT_${_group}}-${GL_PROJECT_${_group}}-${GL_COMMIT_${_group}}_GL${_GITLAB_REV} | ||||
DISTFILE_${_group}:= ${DISTNAME_${_group}}${_GITLAB_EXTRACT_SUFX} | DISTFILE_${_group}:= ${DISTNAME_${_group}}${_GITLAB_EXTRACT_SUFX} | ||||
DISTFILES:= ${DISTFILES} ${DISTFILE_${_group}}:${_group} | DISTFILES:= ${DISTFILES} ${DISTFILE_${_group}}:${_group} | ||||
MASTER_SITES:= ${MASTER_SITES} ${GL_SITE_${_group}}/${GL_ACCOUNT_${_group}}/${GL_PROJECT_${_group}}/repository/${GL_COMMIT_${_group}}/archive.tar.gz?dummy=/:${_group} | MASTER_SITES:= ${MASTER_SITES} ${GL_SITE_${_group}}/${GL_ACCOUNT_${_group}}/${GL_PROJECT_${_group}}/-/archive/${GL_COMMIT_${_group}}.tar.gz?dummy=/:${_group} | ||||
WRKSRC_${_group}:= ${WRKDIR}/${GL_PROJECT_${_group}}-${GL_COMMIT_${_group}}-${GL_COMMIT_${_group}} | WRKSRC_${_group}:= ${WRKDIR}/${GL_PROJECT_${_group}}-${GL_COMMIT_${_group}} | ||||
. if !empty(GL_SUBDIR_${_group}) | . if !empty(GL_SUBDIR_${_group}) | ||||
_SITES_extract:= ${_SITES_extract} 690:post-extract-gl-${_group} | _SITES_extract:= ${_SITES_extract} 690:post-extract-gl-${_group} | ||||
post-extract-gl-${_group}: | post-extract-gl-${_group}: | ||||
@${RMDIR} ${WRKSRC}/${GL_SUBDIR_${_group}} 2>/dev/null || : | @${RMDIR} ${WRKSRC}/${GL_SUBDIR_${_group}} 2>/dev/null || : | ||||
@${MKDIR} ${WRKSRC}/${GL_SUBDIR_${_group}:H} 2>/dev/null || : | @${MKDIR} ${WRKSRC}/${GL_SUBDIR_${_group}:H} 2>/dev/null || : | ||||
@${MV} ${WRKSRC_${_group}} ${WRKSRC}/${GL_SUBDIR_${_group}} | @${MV} ${WRKSRC_${_group}} ${WRKSRC}/${GL_SUBDIR_${_group}} | ||||
@${LN} -s ${WRKSRC:T}/${GL_SUBDIR_${_group}} ${WRKSRC_${_group}} | @${LN} -s ${WRKSRC:T}/${GL_SUBDIR_${_group}} ${WRKSRC_${_group}} | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 721 Lines • Show Last 20 Lines |