Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.sites.mk
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# GH_TAGNAME - name of the tag to download (2.0.1, hash, ...) | # GH_TAGNAME - name of the tag to download (2.0.1, hash, ...) | ||||
# Using the name of a branch here is incorrect. It is | # Using the name of a branch here is incorrect. It is | ||||
# possible to do GH_TAGNAME=${GH_COMMIT} to do a snapshot | # possible to do GH_TAGNAME=${GH_COMMIT} to do a snapshot | ||||
# default: ${DISTVERSION} | # default: ${DISTVERSION} | ||||
# | # | ||||
# GH_COMMIT - first 7 digits of the commit that generated GH_TAGNAME | # GH_COMMIT - first 7 digits of the commit that generated GH_TAGNAME | ||||
# (man git-describe(1)) | # (man git-describe(1)) | ||||
# default: not set, mandatory | # if this is not set, archive corresponding to tag is fetched | ||||
# default: not set | |||||
# | # | ||||
.if defined(USE_GITHUB) | .if defined(USE_GITHUB) | ||||
.if defined(GH_TAGNAME) && ${GH_TAGNAME} == master | . if defined(GH_TAGNAME) && ${GH_TAGNAME} == master | ||||
IGNORE?= Using master as GH_TAGNAME is invalid. \ | IGNORE?= Using master as GH_TAGNAME is invalid. \ | ||||
Must use a tag or commit hash so the upstream does \ | Must use a tag or commit hash so the upstream does \ | ||||
not "reroll" as soon as the branch is updated | not "reroll" as soon as the branch is updated | ||||
.endif | . endif | ||||
MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR% \ | MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR% | ||||
http://codeload.github.com/%SUBDIR% | |||||
MASTER_SITE_GITHUB_CLOUD+= http://cloud.github.com/downloads/%SUBDIR% | MASTER_SITE_GITHUB_CLOUD+= http://cloud.github.com/downloads/%SUBDIR% | ||||
MASTER_SITE_GITHUB_LEGACY+= https://codeload.github.com/%SUBDIR% | |||||
MASTER_SITE_GITHUB_RELEASE+= https://github.com/%SUBDIR% | MASTER_SITE_GITHUB_RELEASE+= https://github.com/%SUBDIR% | ||||
. if defined(GH_COMMIT) | |||||
. if !defined(MASTER_SITES) || !${MASTER_SITES:MGHL} | |||||
antoine: With this, audio/lua51-mpd fails to fetch (it uses GHC but it's not explicit) | |||||
Not Done Inline Actionsmy comment was wrong, audia/lua51-mpd fails to fetch because it uses GH legacy but doesn't have a GH_COMMIT antoine: my comment was wrong, audia/lua51-mpd fails to fetch because it uses GH legacy but doesn't… | |||||
MASTER_SITES+= GHL | |||||
. endif | |||||
. else | |||||
.if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC} && !${MASTER_SITES:MGHR} | . if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC} && !${MASTER_SITES:MGHR} | ||||
Not Done Inline ActionsI think I would change this condition to: antoine: I think I would change this condition to:
.if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} &&… | |||||
Not Done Inline Actionsswills: Correct me if I'm wrong, but I think that's the same logic I added in rP375010 (D1340) | |||||
Not Done Inline ActionsThe result is not the same :-) antoine: The result is not the same :-) | |||||
MASTER_SITES+= GH GHC GHR | MASTER_SITES+= GH | ||||
.endif | . endif | ||||
. endif | |||||
GH_ACCOUNT?= ${PORTNAME} | GH_ACCOUNT?= ${PORTNAME} | ||||
GH_PROJECT?= ${PORTNAME} | GH_PROJECT?= ${PORTNAME} | ||||
GH_TAGNAME?= ${DISTVERSION} | GH_TAGNAME?= ${DISTVERSION} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if !defined(IGNORE_MASTER_SITE_GNOME) | .if !defined(IGNORE_MASTER_SITE_GNOME) | ||||
MASTER_SITE_GNOME+= \ | MASTER_SITE_GNOME+= \ | ||||
▲ Show 20 Lines • Show All 930 Lines • ▼ Show 20 Lines | MASTER_SITE_KERNEL_ORG+= \ | ||||
http://slackware.cs.utah.edu/pub/kernel.org/pub/%SUBDIR%/ | http://slackware.cs.utah.edu/pub/kernel.org/pub/%SUBDIR%/ | ||||
.endif | .endif | ||||
# Macro magic | # Macro magic | ||||
MASTER_SITES_ABBREVS= CPAN:PERL_CPAN \ | MASTER_SITES_ABBREVS= CPAN:PERL_CPAN \ | ||||
GH:GITHUB \ | GH:GITHUB \ | ||||
GHC:GITHUB_CLOUD \ | GHC:GITHUB_CLOUD \ | ||||
GHL:GITHUB_LEGACY \ | |||||
GHR:GITHUB_RELEASE \ | GHR:GITHUB_RELEASE \ | ||||
LODEV:LIBREOFFICE_DEV \ | LODEV:LIBREOFFICE_DEV \ | ||||
NL:NETLIB \ | NL:NETLIB \ | ||||
SF:SOURCEFORGE \ | SF:SOURCEFORGE \ | ||||
SFJP:SOURCEFORGE_JP \ | SFJP:SOURCEFORGE_JP \ | ||||
RG:RUBYGEMS | RG:RUBYGEMS | ||||
MASTER_SITES_SUBDIRS= APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \ | MASTER_SITES_SUBDIRS= APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \ | ||||
BERLIOS:${PORTNAME:tl}.berlios \ | BERLIOS:${PORTNAME:tl}.berlios \ | ||||
CENKES:myports \ | CENKES:myports \ | ||||
CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:C/(.*)-[0-9].*/\1/} \ | CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:C/(.*)-[0-9].*/\1/} \ | ||||
CSME:myports \ | CSME:myports \ | ||||
DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \ | DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \ | ||||
GCC:releases/${DISTNAME} \ | GCC:releases/${DISTNAME} \ | ||||
GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ \ | GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ \ | ||||
GITHUB_CLOUD:${GH_ACCOUNT}/${GH_PROJECT}/ \ | GITHUB_CLOUD:${GH_ACCOUNT}/${GH_PROJECT}/ \ | ||||
GITHUB_LEGACY:${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ \ | |||||
GITHUB_RELEASE:${GH_ACCOUNT}/${GH_PROJECT}/archive/${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}?dummy=/ \ | 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/} \ | GNOME:sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \ | ||||
GIMP:${PORTNAME}/${PORTVERSION:R}/ \ | GIMP:${PORTNAME}/${PORTVERSION:R}/ \ | ||||
GNU:${PORTNAME} \ | GNU:${PORTNAME} \ | ||||
GNU_ALPHA:${PORTNAME} \ | GNU_ALPHA:${PORTNAME} \ | ||||
HORDE:${PORTNAME} \ | HORDE:${PORTNAME} \ | ||||
LOGILAB:${PORTNAME} \ | LOGILAB:${PORTNAME} \ | ||||
LIBREOFFICE_DEV:${PORTNAME} \ | LIBREOFFICE_DEV:${PORTNAME} \ | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |
With this, audio/lua51-mpd fails to fetch (it uses GHC but it's not explicit)