summaryrefslogtreecommitdiff
path: root/math/R/files
diff options
context:
space:
mode:
authormarkd <markd>2007-03-14 11:50:17 +0000
committermarkd <markd>2007-03-14 11:50:17 +0000
commit1fa29a2ab8ea623f1e0ee55549b0dc657c673e57 (patch)
tree314e0033e2eddc015c1c7645312626cdb0f2746f /math/R/files
parent32393888fcb556f7b5dba5e98b6af17c04dd2549 (diff)
downloadpkgsrc-1fa29a2ab8ea623f1e0ee55549b0dc657c673e57.tar.gz
Update R to version 2.4.1.
pkgsrc changes: no longer automatically generate the PLIST. use (de)install templates for handling updating the index files when adding/removing R packages. Changes 2.4.1 This is a maintenance release and fixes a number of mostly minor bugs. Changes 2.4.0 This release has many new features. One important aspect is that S4 classes now have their own internal type, and S4 method dispatch has been completely revised to using cached generic functions, giving substantial performance improvements. As a consequence, all packages depending on "methods" need to be reinstalled.
Diffstat (limited to 'math/R/files')
-rw-r--r--math/R/files/pkg-index.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/math/R/files/pkg-index.tmpl b/math/R/files/pkg-index.tmpl
new file mode 100644
index 00000000000..4a3ddedbb71
--- /dev/null
+++ b/math/R/files/pkg-index.tmpl
@@ -0,0 +1,25 @@
+# $NetBSD: pkg-index.tmpl,v 1.1 2007/03/14 11:50:34 markd Exp $
+#
+# Rebuild R package indexes
+#
+
+case ${STAGE} in
+POST-INSTALL)
+ R CMD ${PERL5} @PREFIX@/lib/R/share/perl/build-help.pl --htmllists 2>/dev/null
+ ${CAT} @PREFIX@/lib/R/library/*/CONTENTS > @PREFIX@/lib/R/doc/html/search/index.txt 2>/dev/null
+ ;;
+DEINSTALL)
+ if [ "${PKGBASE}" = "R" ] ; then
+ ${RM} -f @PREFIX@/lib/R/doc/html/packages.html
+ ${RM} -f @PREFIX@/lib/R/doc/html/search/index.txt
+ fi
+ ;;
+POST-DEINSTALL)
+ if [ "${PKGBASE}" != "R" ] ; then
+ R CMD ${PERL5} @PREFIX@/lib/R/share/perl/build-help.pl --htmllists 2>/dev/null
+ ${CAT} @PREFIX@/lib/R/library/*/CONTENTS > @PREFIX@/lib/R/doc/html/search/index.txt 2>/dev/null
+ fi
+ ;;
+*)
+ ;;
+esac