public inbox for gentoo-guru@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-guru] [RFC PATCH 0/3] eclass/R-packages: improvements
@ 2022-07-05  7:15 Robert Greener
  2022-07-06  0:24 ` Alessandro Barbieri
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Greener @ 2022-07-05  7:15 UTC (permalink / raw
  To: gentoo-guru; +Cc: Robert Greener

Hello,

This is very much a RFC on some improvements to the R-packages eclass.

There is currently a problem with the SRC_URI in that it will only work
with up-to-date packages, for example dplyr 1.0.9 will work, however,
dplyr 1.0.8 will not. This significantly increases the maintenance
burden of dev-R/*, as all packages must be up-to-date at all times, in
order for them to build.

To fix this, I propose to change SRC_URI to use either src/contrib or
src/contrib/Archive (where old packages will be). However, the drawback
of this is that we only use the main CRAN. As there are many mirrors to
search, it would be impractial to search them all before searching the
archive.

I also suggest 2 further changes. Firstly, replacing _ with . in the PN
in SRC_URI and HOMEPAGE. This is already done elsewhere in the eclass,
and would mean that these don't need to be overrided in the ebuild.

Finally, I suggest adding a variable CRAN_PV, that defaults to PV, for
the case where the version is something like "1.2-24". This is used in
SRC_URI, meaning that this doesn't need to be overrided in the ebuild.

--
Robert

Robert Greener (3):
  eclass/R-packages: Use src/contrib or src/contrib/Archive from main
    CRAN
  eclass/R-packages: substitute _ with . in SRC_URI  and HOMEPAGE
  eclass/R-packages: Add CRAN_PV

 eclass/R-packages.eclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


-- 
2.35.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-24 22:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05  7:15 [gentoo-guru] [RFC PATCH 0/3] eclass/R-packages: improvements Robert Greener
2022-07-06  0:24 ` Alessandro Barbieri
2022-07-06  9:08   ` Robert Greener
2022-07-06 11:21     ` Anna “CyberTailor”

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox