summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorseb <seb>2003-06-19 21:41:13 +0000
committerseb <seb>2003-06-19 21:41:13 +0000
commitec43864321c397f506d4c87364c62d0faf0e9b03 (patch)
treea2fb7483e3a18fa8f83edeb1496c00f88dff6039 /mk/install
parentcae7c884543723229b126e5eec290473b9d438bb (diff)
downloadpkgsrc-ec43864321c397f506d4c87364c62d0faf0e9b03.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-info25
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