git: a22657c963e0 - main - Mk/Uses/cran.mk: default WWW to the canonical CRAN package URL
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Sep 2026 23:19:17 UTC
The branch main has been updated by dteske:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a22657c963e003b738ccc10dc221f7b36c651dd4
commit a22657c963e003b738ccc10dc221f7b36c651dd4
Author: Devin Teske <dteske@FreeBSD.org>
AuthorDate: 2026-09-15 23:14:59 +0000
Commit: Devin Teske <dteske@FreeBSD.org>
CommitDate: 2026-09-15 23:14:59 +0000
Mk/Uses/cran.mk: default WWW to the canonical CRAN package URL
The WWW of older R ports is https://cran.r-project.org/web/packages/${PORTNAME}
The WWW of newer R ports is https://cran.r-project.org/package=${PORTNAME}
There are currently 230 R-cran ports using the older URL and 168 using the
newer. R-cran does not recommend the older URL format. If it goes away, we’ll
have to update WWW on over 200 R-cran ports.
At present, there are 497 R-cran ports setting WWW and all but 99 use either
the old or new standard URL.
If cran.mk offered a default WWW then we could eliminate the need to maintain
WWW at the individual port level.
All R-cran ports that set a WWW location that is not on cran directly would
continue to do-so while the ones that could stand to inherit a sensible default
could be nimble enough to not have to worry about their old deprecated URL
format one day not working.
Approved by: fuz (mentor)
Reviewed by: fuz (mentor)
Differential Revision: https://reviews.freebsd.org/D59678
---
CHANGES | 9 +++++++++
Mk/Uses/cran.mk | 2 ++
2 files changed, 11 insertions(+)
diff --git a/CHANGES b/CHANGES
index 22010d492aa6..47b126bef06c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,15 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
+20260914:
+AUTHOR: dteske@FreeBSD.org
+
+ USES=cran now provides a default WWW of
+ https://cran.r-project.org/package=${PORTNAME} when the port does not
+ set WWW. This matches the existing GitHub/GitLab (bsd.sites.mk) and
+ USES=pear defaults. If the project homepage is not the CRAN package
+ page, set WWW in the Makefile as before.
+
20251111:
AUTHOR: kiwi@FreeBSD.org
diff --git a/Mk/Uses/cran.mk b/Mk/Uses/cran.mk
index 722f55d7e916..7ab03dafeb87 100644
--- a/Mk/Uses/cran.mk
+++ b/Mk/Uses/cran.mk
@@ -19,6 +19,8 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/R:math/R
PKGNAMEPREFIX?= R-cran-
+WWW?= https://cran.r-project.org/package=${PORTNAME}
+
R_LIB_DIR= lib/R/library
R_MOD_DIR?= ${R_LIB_DIR}/${PORTNAME}
PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR}