aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.sites.mk
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2012-10-11 02:20:21 +0800
committerbeat <beat@FreeBSD.org>2012-10-11 02:20:21 +0800
commitc0d3a8e9fc65fdd741d0cf89a0708f85af360556 (patch)
tree3515128f74bbb1267c3eda0d3a322d013a400eb0 /Mk/bsd.sites.mk
parenta21bf936d17fdcd7de389c73f405c8c1c55aaf1d (diff)
downloadfreebsd-ports-graphics-c0d3a8e9fc65fdd741d0cf89a0708f85af360556.tar.gz
freebsd-ports-graphics-c0d3a8e9fc65fdd741d0cf89a0708f85af360556.tar.zst
freebsd-ports-graphics-c0d3a8e9fc65fdd741d0cf89a0708f85af360556.zip
- Only add GH to MASTER_SITES if not already there [1]
- Allow WRKSRC to be overridden when using USE_GITHUB [2] PR: ports/171644 [1], ports/171688 [2] Submitted by: bdrewery Reviewed by: gahr Tested by: Exp-run on pointyhat
Diffstat (limited to 'Mk/bsd.sites.mk')
-rw-r--r--Mk/bsd.sites.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
index 1d0307a74e3..7c48c26b5b8 100644
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -546,10 +546,11 @@ MASTER_SITE_GET_E+= \
#
.if defined(USE_GITHUB)
MASTER_SITE_GITHUB+= https://nodeload.github.com/%SUBDIR%
+.if !defined(MASTER_SITES) || !${MASTER_SITES:MGH}
MASTER_SITES+= GH
+.endif
GH_PROJECT?= ${PORTNAME}
GH_TAGNAME?= ${DISTVERSION}
-WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}
.endif
.endif