diff options
author | seb <seb@pkgsrc.org> | 2003-06-19 21:41:13 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2003-06-19 21:41:13 +0000 |
commit | 5ab8be8066273669ac731b3a0f60adee2c6fa7d9 (patch) | |
tree | a2fb7483e3a18fa8f83edeb1496c00f88dff6039 /mk/install | |
parent | 4c7c717eed7b924103792374e8c81cc3608d302c (diff) | |
download | pkgsrc-5ab8be8066273669ac731b3a0f60adee2c6fa7d9.tar.gz |
Introduce a new framework to handle info files, install-info and
makeinfo commands.
The goal of the new framework is twofold:
- reduce the number of '@exec' and '@unexec' in PLIST by
using INSTALL/DEINSTALL scripts to handle entries addition/removal
Info directory file.
- achieve lighter dependencies by avoiding unnecessary run-time
dependency on the gtexinfo package and if needed with the help of the
standalone install-info command provided by the recently imported package
pkgtools/pkg_install-info.
A package must be sightly updated to use this new framework and
must define the variable USE_NEW_TEXINFO. This variable will
be removed from the pkgsrc tree when all package would have been
updated.
For details see section 10.24 of Packages.txt, comments in
mk/{texinfo.mk,buildlink2/bsd.buildlink2.mk} and upcoming mail to
<tech-pkg at netbsd dot org>.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/install-info | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mk/install/install-info b/mk/install/install-info new file mode 100644 index 00000000000..b55194c76a4 --- /dev/null +++ b/mk/install/install-info @@ -0,0 +1,25 @@ +# $NetBSD +# +# Handle registration of Info files; used by texinfo.mk. +# + +INFO_FILES="@INFO_FILES@" +INSTALL_INFO="@INSTALL_INFO@" +INFO_DIR="@INFO_DIR@" + +case ${STAGE} in +POST-INSTALL) + for f in ${INFO_FILES}; do + ${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \ + ${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1 + ${INSTALL_INFO} --info-dir=${PKG_PREFIX}/${INFO_DIR} \ + ${PKG_PREFIX}/${INFO_DIR}/${f} + done + ;; +DEINSTALL) + for f in ${INFO_FILES}; do + ${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \ + ${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1 + done + ;; +esac |