FreeBSD Bugzilla – Attachment 154943 Details for
Bug 194898
[bsd.sites.mk] Change GitHub URL to comply with their API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Include file with GitHub (codeload backend) usage example
githubv3_backend.mk (text/plain), 1.21 KB, created by
lightside
on 2015-03-29 02:37:10 UTC
(
hide
)
Description:
Include file with GitHub (codeload backend) usage example
Filename:
MIME Type:
Creator:
lightside
Created:
2015-03-29 02:37:10 UTC
Size:
1.21 KB
patch
obsolete
>.if !defined(_INCLUDE_GITHUBv3_backend_MK) >_INCLUDE_GITHUBv3_backend_MK= yes > >.if defined(USE_GITHUBv3_backend) ># Account on GitHub >GH_ACCOUNT?= ${PORTNAME} ># Project on GitHub >GH_PROJECT?= ${PORTNAME} >.if defined(GH_COMMIT) >GH_METHOD?= legacy.tar.gz >.elif defined(GH_TAGNAME) >GH_METHOD?= tar.gz >.else >IGNORE= GH_COMMIT or GH_TAGNAME need to be defined. >.endif > >.if ${GH_METHOD:Mlegacy.zip} || ${GH_METHOD:Mzip} >USES+= zip >.endif > >.if ${GH_METHOD:Mlegacy.tar.gz} || ${GH_METHOD:Mlegacy.zip} ># Useful for known (abbreviated) commit hash (or not moving branch, as reference) >MASTER_SITES?= https://codeload.github.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_METHOD}/${GH_REFERENCE}?dummy=/ >GH_REFERENCE?= ${GH_COMMIT} >_GH_COMMIT_LEGACY= ${GH_COMMIT:C/^(.{7}).*/\1/} >WRKSRC?= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${_GH_COMMIT_LEGACY} >.elif ${GH_METHOD:Mtar.gz} || ${GH_METHOD:Mzip} ># Useful for known tag or (abbreviated) commit hash >MASTER_SITES?= https://codeload.github.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_METHOD}/${GH_TAGNAME}${EXTRACT_SUFX}?dummy=/ >WRKSRC?= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:C/^v([0-9])/\1/} >.else >IGNORE= Not supported GH_METHOD=${GH_METHOD}. Supported: legacy.tar.gz, legacy.zip, tar.gz, zip. >.endif > >.endif > >.endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 194898
:
149183
|
154783
|
154942
|
154943