summaryrefslogtreecommitdiff
path: root/g_cran
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-07-07 22:38:55 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-07-07 22:38:55 +0200
commit756c1cc1f8e1dd8490191db915c34d77715eb73a (patch)
tree1bcc6a01daa2bf079b29150b470f9ae4d03a3085 /g_cran
parentPORTDIR regex code was slightly off, which gets fixed by this commit (diff)
downloadg-cran-756c1cc1f8e1dd8490191db915c34d77715eb73a.tar.gz
g-cran-756c1cc1f8e1dd8490191db915c34d77715eb73a.tar.bz2
g-cran-756c1cc1f8e1dd8490191db915c34d77715eb73a.zip
Support depending on core libraries
Diffstat (limited to 'g_cran')
-rw-r--r--g_cran/cran_read.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/g_cran/cran_read.py b/g_cran/cran_read.py
index 6fe4039..3e703fd 100644
--- a/g_cran/cran_read.py
+++ b/g_cran/cran_read.py
@@ -91,12 +91,24 @@ def listify_package_list(package_list):
packages.append(package_part[0])
return packages
+R_core_packages=['base','datasets','grDevices','graphics','grid','methods','splines',
+ 'stats','stats4','tcltk','tools','utils',]
+R_recommended_packages=['KernSmooth','MASS','Matrix','base','boot','class','cluster',
+ 'codetools','datasets','foreign','grDevices','graphics','grid','lattice','methods',
+ 'mgcv','nlme','nnet','rpart','spatial','splines','stats','stats4','survival','tcltk',
+ 'tools','utils',]
def pmsify_package_list(package_list, cran_packages):
#note: the following returns a list of tuples
pms_packages=[]
portage_packages=portage_possible_deps()
for package in package_list:
- if package in cran_packages:
+ if package=='tcltk':
+ pms_packages.append('dev-lang/R[tk]')
+ elif package in R_core_packages:
+ pms_packages.append('dev-lang/R')
+ elif package in R_recommended_packages:
+ pms_packages.append('dev-lang/R[-minimal]')
+ elif package in cran_packages:
pms_packages.append('dev-R/'+pmsify_package_name(package))
elif package in portage_packages:
pms_packages.append(portage_packages[package][0]) #get qualified package name from the portage tree