pkgsrc/math/R/files/pkg-index.tmpl
markd 2087cf1507 Update R to 2.14.0
changes to many to list - see NEWS file in distribution for details.
2011-11-20 04:57:02 +00:00

26 lines
578 B
Cheetah

# $NetBSD: pkg-index.tmpl,v 1.3 2011/11/20 04:57:03 markd Exp $
#
# Rebuild R package indices upon installation or deinstallation of an
# R extension.
#
rebuild_R_pkg_indices()
{
${ECHO} "${PKGNAME}: rebuilding R package indices and help files"
R CMD ${PERL5} ${PKG_PREFIX}/lib/R/share/perl/build-help.pl \
--htmllists 2>/dev/null
}
case ${STAGE} in
POST-INSTALL)
rebuild_R_pkg_indices
;;
DEINSTALL)
if [ "${PKGBASE}" = "R" ] ; then
${RM} -f ${PKG_PREFIX}/lib/R/doc/html/packages.html
fi
;;
POST-DEINSTALL)
[ "${PKGBASE}" = "R" ] || rebuild_R_pkg_indices
;;
esac