1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00

Make using GitHub releases easier

Differential Revision:	https://reviews.freebsd.org/D1340
With hat:	portmgr
This commit is contained in:
Steve Wills 2014-12-20 15:59:46 +00:00
parent e23f55f07c
commit f261a66f03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375010

View File

@ -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} \