aboutsummaryrefslogtreecommitdiff
path: root/Mk/Uses/xorg-cat.mk
diff options
context:
space:
mode:
authorFelix Palmen <zirias@FreeBSD.org>2022-10-21 07:10:41 +0000
committerFelix Palmen <zirias@FreeBSD.org>2023-07-12 18:55:08 +0000
commit16bde072b16daca1c886116e602c94b5fa99c20f (patch)
treefc40cd4d4d69fccd4e37c29a8574302163a6a0e0 /Mk/Uses/xorg-cat.mk
parent7427b14c29f6c4d4dd30fa99d44ec8cb492ff547 (diff)
downloadports-16bde072b16daca1c886116e602c94b5fa99c20f.tar.gz
ports-16bde072b16daca1c886116e602c94b5fa99c20f.zip
bsd.sites.mk: Support tag names with USE_GITLAB
Since quite some time, it's possible to download generated tarballs from gitlab for a tag name without knowing the corresponding git hash. This is preferable because you have a single source of truth about the software version. Support this by replacing GL_COMMIT with GL_TAGNAME which also accepts a commit hash, similar to USE_GITHUB. Unfortunately, there's a catch, the DISTFILE must be named exactly: ${GL_PROJECT}-${GL_TAGNAME}.tar.bz2, otherwise it extracts in a directory that contains the commit hash. So, we can't add the gitlab account or the revision suffix to make it work. Therefore, detect whether GL_TAGNAME contains a commit hash, and if it does, use the old behavior of deriving DISTNAME and DISTFILES. Document in CHANGES, also add a DEV_WARNING similar to USE_GITHUB when there's an URL in MASTER_SITES that looks like a gitlab URL. With support for tags, there shouldn't be any reason left to hardcode such an URL in MASTER_SITES. PR: 248967 Approved by: portmgr (tcberner, mentor) Differential Revision: https://reviews.freebsd.org/D37077
Diffstat (limited to 'Mk/Uses/xorg-cat.mk')
-rw-r--r--Mk/Uses/xorg-cat.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/xorg-cat.mk b/Mk/Uses/xorg-cat.mk
index 3b64eecad9ae..0853fd6b3e3c 100644
--- a/Mk/Uses/xorg-cat.mk
+++ b/Mk/Uses/xorg-cat.mk
@@ -26,7 +26,7 @@
# * meson (experimental)
#
#
-# By defining USE_GITLAB and GL_COMMIT, it is possible to pull code straight
+# By defining USE_GITLAB and GL_TAGNAME, it is possible to pull code straight
# from the freedesktop.org gitlab, instead of official release tarballs.
#
#.MAINTAINER: x11@FreeBSD.org