R-packages.eclass: document CRAN_PN

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

View File

@@ -29,13 +29,16 @@ 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_PN
# @DESCRIPTION:
# Package name to use for fetching distfiles from CRAN.
: ${CRAN_PN:=${PN//_/.}}
# @ECLASS_VARIABLE: CRAN_PV
# @DESCRIPTION:
# Package version to use for fetching distfiles from CRAN.
: ${CRAN_PV:=${PV}}
CRAN_PN=${CRAN_PN:-${PN//_/.}}
# Set CRAN_SNAPSHOT_DATE to the date the ebuild was updated in the ebuild
if [[ ${CRAN_SNAPSHOT_DATE} ]]; then