aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2013-08-23 15:29:19 +0200
committerAndré Erdmann <dywi@mailerd.de>2013-08-23 15:32:03 +0200
commita17317efef4cf7de370ca72deba0816817d101ca (patch)
tree8b8909b92c0ef97d6088945df59d4e4ac06a59fb /config
parentconfig/repo.list: add rstan (diff)
downloadR_overlay-a17317efef4cf7de370ca72deba0816817d101ca.tar.gz
R_overlay-a17317efef4cf7de370ca72deba0816817d101ca.tar.bz2
R_overlay-a17317efef4cf7de370ca72deba0816817d101ca.zip
config/package_rules: set per-repo categories
Diffstat (limited to 'config')
-rw-r--r--config/package_rules60
1 files changed, 25 insertions, 35 deletions
diff --git a/config/package_rules b/config/package_rules
index ee56bf2..16644e7 100644
--- a/config/package_rules
+++ b/config/package_rules
@@ -4,38 +4,28 @@
# Refer to "Package Rules" in the usage guide (doc/rst/usage.rst or
# doc/html/usage.html).
#
-#
-# set KEYWORDS to "-x86 amd64" for all packages from CRAN that have "x86_64"
-# or "amd64" in their name
-#
-# MATCH:
-# repo == CRAN
-# or
-# * package ~ x86_64
-# * package ~ amd64
-# ACTION:
-# keywords "-x86 amd64"
-# END;
-#
-#
-# move packages from CRAN and its archive to the sci-CRAN category
-# and prefix their source files with "cran_"
-#
-# MATCH:
-# or
-# * repo CRAN
-# * repo CRAN-Archive
-# ACTION:
-# set category sci-CRAN
-# rename destfile s/^/cran_/
-# END;
-#
-#
-# move packages from the bioc repos (BIOC/*) to the sci-BIOC category
-#
-# MATCH:
-# repo ~ ^BIOC
-# ACTION:
-# set category sci-BIOC
-# END;
-#
+
+# per-repo categories
+#
+# The following rule puts packages from CRAN and its archive into sci-CRAN,
+# packages from BIOC-2.10/bioc, BIOC-2.10/experiment into sci-BIOC,
+# omegahat into sci-omegahat etc., while leaving packages from a few
+# repos (R-Forge and rstan) in the default category.
+#
+MATCH:
+ or
+ * repo R-Forge
+ * repo rstan
+ACTION:
+ # use default category
+ pass
+ELSE:
+ rename category s=^(?P<repo>[^-/]+)([-/].*)?$=sci-\g<repo>=
+END;
+
+## uncomment to move all source files into a separate directory
+#MATCH:
+# any
+#ACTION:
+# set destfile R_packages/{package_filename}
+#END;