pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk install a copy of scrollkeeper/omf.mk in a central ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2e051b936831
branches: trunk
changeset: 535290:2e051b936831
user: drochner <drochner%pkgsrc.org@localhost>
date: Mon Nov 12 20:45:52 2007 +0000
description:
install a copy of scrollkeeper/omf.mk in a central place so that
pkgs needing scrollkeeper compatible .omf install scripts get directed
to the replacement pkg (currently: rarian) even if scrollkeeper itself
is removed
diffstat:
mk/omf-scrollkeeper.mk | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diffs (44 lines):
diff -r f0e93ce8d58e -r 2e051b936831 mk/omf-scrollkeeper.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/omf-scrollkeeper.mk Mon Nov 12 20:45:52 2007 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: omf-scrollkeeper.mk,v 1.1 2007/11/12 20:45:52 drochner Exp $
+#
+# This Makefile fragment is intended to be included by packages that install
+# OMF files. It redirects callers to compatibility scripts provided
+# by textproc/rarian.
+#
+# The following variables are automatically defined for free use in packages:
+# SCROLLKEEPER_DATADIR - scrollkeeper's data directory.
+# SCROLLKEEPER_REBUILDDB - scrollkeeper-rebuilddb binary program.
+# SCROLLKEEPER_UPDATEDB - scrollkeeper-update binary program.
+#
+
+.if !defined(SCROLLKEEPER_OMF_MK)
+SCROLLKEEPER_OMF_MK= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+# scrollkeeper's data directory.
+SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.rarian}/libdata/scrollkeeper
+
+# scrollkeeper binary programs.
+SCROLLKEEPER_REBUILDDB= ${BUILDLINK_PREFIX.rarian}/bin/scrollkeeper-rebuilddb
+SCROLLKEEPER_UPDATEDB= ${BUILDLINK_PREFIX.rarian}/bin/scrollkeeper-update
+
+INSTALL_TEMPLATES+= \
+ ${.CURDIR}/../../textproc/rarian/files/install-scrollkeeper.tmpl
+DEINSTALL_TEMPLATES+= \
+ ${.CURDIR}/../../textproc/rarian/files/install-scrollkeeper.tmpl
+
+FILES_SUBST+= SCROLLKEEPER_DATADIR=${SCROLLKEEPER_DATADIR:Q}
+FILES_SUBST+= SCROLLKEEPER_REBUILDDB=${SCROLLKEEPER_REBUILDDB:Q}
+FILES_SUBST+= SCROLLKEEPER_UPDATEDB=${SCROLLKEEPER_UPDATEDB:Q}
+
+PRINT_PLIST_AWK+= /^@dirrm share\/omf$$/ \
+ { print "@comment in rarian: " $$0; \
+ next; }
+
+.include "../../textproc/rarian/buildlink3.mk"
+
+.endif # SCROLLKEEPER_OMF_MK
Home |
Main Index |
Thread Index |
Old Index