aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2014-12-20 23:59:46 +0800
committerswills <swills@FreeBSD.org>2014-12-20 23:59:46 +0800
commit3bb0d643e466607a13015aef470bcfa4a0ef4d88 (patch)
tree8de9c92625ebb72cde217c32d420998dd0a73ebb /Mk
parent29efbe434e05eed2b8899ab6f49d5f9f416a506f (diff)
downloadfreebsd-ports-gnome-3bb0d643e466607a13015aef470bcfa4a0ef4d88.tar.gz
freebsd-ports-gnome-3bb0d643e466607a13015aef470bcfa4a0ef4d88.tar.zst
freebsd-ports-gnome-3bb0d643e466607a13015aef470bcfa4a0ef4d88.zip
Make using GitHub releases easier
Differential Revision: https://reviews.freebsd.org/D1340 With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.sites.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
index 862092d250b7..e6fd7d54ad38 100644
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -544,18 +544,16 @@ IGNORE?= Using master as GH_TAGNAME is invalid. \
MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR% \
http://codeload.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
+MASTER_SITE_GITHUB_RELEASE+= https://github.com/%SUBDIR%
+
+.if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC} && !${MASTER_SITES:MGHR}
+MASTER_SITES+= GH GHC GHR
.endif
+GH_ACCOUNT?= ${PORTNAME}
GH_PROJECT?= ${PORTNAME}
GH_TAGNAME?= ${DISTVERSION}
.endif
.endif
-#
-# GitHub files can also be obtained, without the need for any of the above, by doing:
-#
-# MASTER_SITES= http://github.com/accountname/${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/
-#
.if !defined(IGNORE_MASTER_SITE_GNOME)
MASTER_SITE_GNOME+= \
@@ -1509,6 +1507,7 @@ MASTER_SITE_KERNEL_ORG+= \
MASTER_SITES_ABBREVS= CPAN:PERL_CPAN \
GH:GITHUB \
GHC:GITHUB_CLOUD \
+ GHR:GITHUB_RELEASE \
LODEV:LIBREOFFICE_DEV \
NL:NETLIB \
SF:SOURCEFORGE \
@@ -1523,6 +1522,7 @@ MASTER_SITES_SUBDIRS= APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \
GCC:releases/${DISTNAME} \
GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ \
GITHUB_CLOUD:${GH_ACCOUNT}/${GH_PROJECT}/ \
+ GITHUB_RELEASE:${GH_ACCOUNT}/${GH_PROJECT}/archive/${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}?dummy=/ \
GNOME:sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \
GIMP:${PORTNAME}/${PORTVERSION:R}/ \
GNU:${PORTNAME} \