summaryrefslogtreecommitdiff
path: root/mk/fetch/github.mk
AgeCommit message (Collapse)AuthorFilesLines
2015-10-19Don't encode the github tag into the distfile name if we are packagingtnn1-2/+2
a github release and the release version happens to look like a tag. (a date like 20150714 could be misinterpreted as a git "short SHA")
2015-03-12'-' is a valid character in github account namestnn1-2/+2
2015-03-09Use SITES.${_GITHUB_DEFAULT_DISTFILES} instead of ugly := assignmenttnn1-3/+11
to MASTER_SITES which could conceivably break some use cases. Also add comment in bsd.fetch-vars.mk.
2015-03-09MASTER_SITE_GITHUB goes in sites.mktnn1-4/+1
2015-03-07Address issues raised by agc@ to make the github master site handlingtnn1-43/+42
more pkgsrcesque. 1) turn _USE_GITHUB into an internal infrastructure variable 2) put back MASTER_SITES in packages' Makefiles. 3) encode the account in the master site URL, remove GH_ACCOUNT 4) rename GH_PROJECT to GITHUB_PROJECT 5) rename GH_TAGNAME to GITHUB_TAG and allow it to accept commit hash as well as tag. GH_COMMIT is gone. 6) turn on this functionality when MASTER_SITES matches a predefined github pattern instead of via explicit USE_GITHUB setting.
2015-03-07use https. Unconditionally gets redirected to https, so saves a redirect.tnn1-2/+2
2015-03-07improve inline documentationtnn1-7/+6
2015-03-07add keyword for make helptnn1-1/+3
2015-03-07Adopt USE_GITHUB from FreeBSD ports to make github MASTER_SITEtnn1-0/+68
handling less painful. See: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github To use, set in Makefile: DISTNAME= exampleproject-1.2 USE_GITHUB= YES The following variables alter USE_GITHUB behavior: GH_ACCOUNT defaults to PKGBASE GH_PROJECT defaults to PKGBASE GH_TAGNAME defaults to PKGVERSION_NOREV (sometimes you want to override with v${PKGVERSION_NOREV}) GH_COMMIT explicit commit hash if no tag is available GH_RELEASE default empty, may be set to ${DISTNAME} for example GH_TYPE overrides the autodetected MASTER_SITE URL scheme