freebsd-ports/Mk
Felix Palmen 16bde072b1 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
2023-07-12 20:55:08 +02:00
..
Features Uses/cabal.mk: Add support for LTO feature. 2023-02-27 21:11:10 +03:00
Scripts framework: Fix fetch-url-list and fetch-urlall-list 2023-07-12 16:18:21 +02:00
Uses bsd.sites.mk: Support tag names with USE_GITLAB 2023-07-12 20:55:08 +02:00
Wrappers
bsd.ccache.mk Mk/bsd.ccache.mk: Add CCACHE_ENABLED variable for ports' convenience 2022-09-12 00:47:54 -07:00
bsd.commands.mk SMP: Use nproc(1) instead of sysctl kern.smp.cpus 2023-02-16 16:51:36 +01:00
bsd.default-versions.mk Mk: ghostscript: modernize 2023-07-02 20:19:02 +02:00
bsd.destdir.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.gcc.mk Mk/bsd.gcc.mk: Add GCC 14 2023-05-01 19:57:00 +02:00
bsd.gecko.mk Mk/bsd.gecko.mk: fix merge typo 2023-06-27 23:38:46 +02:00
bsd.java.mk */*: Refactor java/openjdk7 removal 2023-04-04 13:10:53 -05:00
bsd.licenses.db.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.licenses.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.local.mk Mk/bsd.local.mk: Remove accidental addition from previous commit 2023-07-11 11:34:51 -05:00
bsd.ocaml.mk framework: cleanup conditional-indentations in Mk/ 2022-04-24 12:00:20 +02:00
bsd.options.desc.mk Mk/bsd.options.desc.mk: Improve TCMALLOC_DESC wording 2023-06-06 18:01:01 -07:00
bsd.options.mk bsd.sites.mk: Support tag names with USE_GITLAB 2023-07-12 20:55:08 +02:00
bsd.port.mk bsd.sites.mk: Support tag names with USE_GITLAB 2023-07-12 20:55:08 +02:00
bsd.port.options.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk component: Mk framework 2023-01-11 23:41:24 +01:00
bsd.sanity.mk Mk/**ldap.mk: Convert USE_LDAP to USES=ldap 2023-02-08 04:53:56 -06:00
bsd.sites.mk bsd.sites.mk: Support tag names with USE_GITLAB 2023-07-12 20:55:08 +02:00
bsd.wx.mk x11-toolkits/wxgtk28*: Sunset 2022-12-31 03:58:33 +01:00