R-packages.eclass: document CRAN_SNAPSHOT_DATE

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-07-13 06:10:05 +05:00
parent 4db1815c13
commit e98af0285b

View File

@@ -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