Date: Tue, 13 Dec 2016 14:57:05 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428492 - head/Mk Message-ID: <201612131457.uBDEv5Xc068948@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Tue Dec 13 14:57:04 2016 New Revision: 428492 URL: https://svnweb.freebsd.org/changeset/ports/428492 Log: Add a small target to help converting long strings of GH_* to GH_TUPLE. Sponsored by: Absolight Modified: head/Mk/bsd.sites.mk (contents, props changed) Modified: head/Mk/bsd.sites.mk ============================================================================== --- head/Mk/bsd.sites.mk Tue Dec 13 14:54:28 2016 (r428491) +++ head/Mk/bsd.sites.mk Tue Dec 13 14:57:04 2016 (r428492) @@ -569,6 +569,7 @@ GH_PROJECT_${_group}?= ${GH_PROJECT_DEFA GH_TAGNAME_${_group}?= ${GH_TAGNAME_DEFAULT} GH_TAGNAME_${_group}_SANITIZED= ${GH_TAGNAME_${_group}:S,/,-,} GH_TAGNAME_${_group}_EXTRACT= ${GH_TAGNAME_${_group}_SANITIZED:C/^[vV]([0-9])/\1/} +_GH_TUPLE_OUT:= ${_GH_TUPLE_OUT} ${GH_ACCOUNT_${_group}}:${GH_PROJECT_${_group}}:${GH_TAGNAME_${_group}}:${_group}/${GH_SUBDIR_${_group}} DISTNAME_${_group}:= ${GH_ACCOUNT_${_group}}-${GH_PROJECT_${_group}}-${GH_TAGNAME_${_group}_SANITIZED} DISTFILE_${_group}:= ${DISTNAME_${_group}}_GH${_GITHUB_REV}${_GITHUB_EXTRACT_SUFX} DISTFILES:= ${DISTFILES} ${DISTFILE_${_group}}:${_group} @@ -584,6 +585,8 @@ post-extract-gh-${_group}: . endif . endfor . endif +convert-to-gh-tuple: + @${ECHO_MSG} ${GH_ACCOUNT}:${GH_PROJECT}:${GH_TAGNAME} ${_GH_TUPLE_OUT:S/\/$//} .endif # defined(USE_GITHUB) .endif # !defined(IGNORE_MASTER_SITE_GITHUB)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612131457.uBDEv5Xc068948>