aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-11-27 19:32:06 +0800
committergahr <gahr@FreeBSD.org>2012-11-27 19:32:06 +0800
commit460a88b4db15ff184130f9f6c8a3a7420905939a (patch)
treeb65e87255d4e44301bb4b78eba924f1b4adaa715 /Mk
parentf48182699a0cb44d274fb1c85b8919ec4a4061a6 (diff)
downloadfreebsd-ports-gnome-460a88b4db15ff184130f9f6c8a3a7420905939a.tar.gz
freebsd-ports-gnome-460a88b4db15ff184130f9f6c8a3a7420905939a.tar.zst
freebsd-ports-gnome-460a88b4db15ff184130f9f6c8a3a7420905939a.zip
- Add support for cloud.github.com when using USE_GITHUB
Feature safe: yes Approved by: bapt (portmgr@)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.sites.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
index 100352f5e863..501dc62eb98b 100644
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -517,9 +517,10 @@ MASTER_SITE_GENTOO+= \
# default: not set, mandatory
#
.if defined(USE_GITHUB)
-MASTER_SITE_GITHUB+= https://nodeload.github.com/%SUBDIR%
-.if !defined(MASTER_SITES) || !${MASTER_SITES:MGH}
-MASTER_SITES+= GH
+MASTER_SITE_GITHUB+= https://nodeload.github.com/%SUBDIR%
+MASTER_SITE_GITHUB_CLOUD+= http://cloud.github.com/downloads/%SUBDIR%
+.if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC}
+MASTER_SITES+= GH GHC
.endif
GH_PROJECT?= ${PORTNAME}
GH_TAGNAME?= ${DISTVERSION}
@@ -1427,6 +1428,7 @@ MASTER_SITE_KERNEL_ORG+= \
MASTER_SITES_ABBREVS= CPAN:PERL_CPAN \
GH:GITHUB \
+ GHC:GITHUB_CLOUD \
NL:NETLIB \
SF:SOURCEFORGE \
SFJP:SOURCEFORGE_JP \
@@ -1441,6 +1443,7 @@ MASTER_SITES_SUBDIRS= \
DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \
GCC:releases/${DISTNAME} \
GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ \
+ GITHUB_CLOUD:${GH_ACCOUNT}/${GH_PROJECT}/ \
GNOME:sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \
GNU:${PORTNAME} \
HORDE:${PORTNAME} \