aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-07-13 06:10:05 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-07-13 06:10:05 +0500
commite98af0285b14fd83da83642401f68c7cf2e807b1 (patch)
treee8d5edbe68dc62e6d45306bea83d55fa076e5f98 /eclass
parentR-packages.eclass: document CRAN_PN (diff)
downloadguru-e98af0285b14fd83da83642401f68c7cf2e807b1.tar.gz
guru-e98af0285b14fd83da83642401f68c7cf2e807b1.tar.bz2
guru-e98af0285b14fd83da83642401f68c7cf2e807b1.zip
R-packages.eclass: document CRAN_SNAPSHOT_DATE
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/R-packages.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass
index c8b5329f6..ad76d1206 100644
--- a/eclass/R-packages.eclass
+++ b/eclass/R-packages.eclass
@@ -29,6 +29,12 @@ inherit edo eutils optfeature toolchain-funcs
# String variable containing the list of upstream suggested packages. Consider
# using optfeature directly instead for more concise descriptions.
+# @ECLASS_VARIABLE: CRAN_SNAPSHOT_DATE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# The date the ebuild was updated in YYYY-MM-DD format used to fetch distfiles
+# from Microsoft CRAN mirror. This will be required in the future.
+
# @ECLASS_VARIABLE: CRAN_PN
# @DESCRIPTION:
# Package name to use for fetching distfiles from CRAN.
@@ -39,8 +45,6 @@ inherit edo eutils optfeature toolchain-funcs
# Package version to use for fetching distfiles from CRAN.
: ${CRAN_PV:=${PV}}
-# Set CRAN_SNAPSHOT_DATE to the date the ebuild was updated in the ebuild
-
if [[ ${CRAN_SNAPSHOT_DATE} ]]; then
SRC_URI="https://cran.microsoft.com/snapshot/${CRAN_SNAPSHOT_DATE}"
else