Page MenuHomeFreeBSD

D1340.diff
No OneTemporary

D1340.diff

Index: Mk/bsd.sites.mk
===================================================================
--- Mk/bsd.sites.mk
+++ Mk/bsd.sites.mk
@@ -544,18 +544,16 @@
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_SITES_ABBREVS= CPAN:PERL_CPAN \
GH:GITHUB \
GHC:GITHUB_CLOUD \
+ GHR:GITHUB_RELEASE \
LODEV:LIBREOFFICE_DEV \
NL:NETLIB \
SF:SOURCEFORGE \
@@ -1523,6 +1522,7 @@
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} \

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 8:56 AM (11 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15603075
Default Alt Text
D1340.diff (1 KB)

Event Timeline