1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/Mk
Stefan Eßer 5dccc48cd7 Mk/bsd.sites.mk: fall back to default WWW URLs for specific ports
This change has been accepted as part of review D36558. A follow-up
commit will apply the reminder of the patches in that review.

A separate commit is used since providing default values for certain
ports is logically different than support for multiple URLs in WWW.

This commit adds default WWW values if the following conditions are
met:

1) no value assigned to the WWW macro by the port

2) at least one of USE_GITHUB, USE_GITLAB, or USES=pear is used in
   the port

Further defaults for USES cases could be added at a later time.

The following values are used as default URLs:

USES=pear:	https://pear.php.net/package/${PORTNAME}/
USE_GITHUB:	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/
USE_GITLAB:	https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/

If both a USES case and USE_GITHUB or USE_GITLAB apply, the default
URL of the USES case takes precedence.

Approved by:	portmgr (tcberner)
2022-09-21 13:23:44 +02:00
..
Features
Scripts Mk/Scripts: protect URL string by enclosing it quotes 2022-09-09 18:46:47 +02:00
Uses Mk/bsd.sites.mk: fall back to default WWW URLs for specific ports 2022-09-21 13:23:44 +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
bsd.default-versions.mk
bsd.destdir.mk
bsd.gcc.mk
bsd.gecko.mk Mk/bsd.gecko.mk: remove references to older gecko releases 2022-09-12 22:12:19 +02:00
bsd.java.mk
bsd.ldap.mk
bsd.licenses.db.mk
bsd.licenses.mk
bsd.local.mk
bsd.ocaml.mk
bsd.octave.mk
bsd.options.desc.mk
bsd.options.mk
bsd.port.mk Mk/bsd.port.mk: do not use master site as default for WWW 2022-09-09 18:54:49 +02:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.ruby.mk lang/ruby32: Update to 3.2.0-preview2 2022-09-11 00:07:01 +08:00
bsd.sanity.mk
bsd.sites.mk Mk/bsd.sites.mk: fall back to default WWW URLs for specific ports 2022-09-21 13:23:44 +02:00
bsd.tex.mk
bsd.wx.mk