pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/rarian Mimic scrollkeeper's buildlink3.mk and...
details: https://anonhg.NetBSD.org/pkgsrc/rev/002f384b9648
branches: trunk
changeset: 535003:002f384b9648
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Mon Nov 05 17:06:33 2007 +0000
description:
Mimic scrollkeeper's buildlink3.mk and create fake wrappers for those
tools that we don't want packages to execute directly.
diffstat:
textproc/rarian/buildlink3.mk | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r a8ddbbba31af -r 002f384b9648 textproc/rarian/buildlink3.mk
--- a/textproc/rarian/buildlink3.mk Mon Nov 05 15:56:43 2007 +0000
+++ b/textproc/rarian/buildlink3.mk Mon Nov 05 17:06:33 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/10/11 18:43:48 drochner Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2007/11/05 17:06:33 jmmv Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
RARIAN_BUILDLINK3_MK:= ${RARIAN_BUILDLINK3_MK}+
@@ -16,4 +16,26 @@
BUILDLINK_PKGSRCDIR.rarian?= ../../textproc/rarian
.endif # RARIAN_BUILDLINK3_MK
+.if !empty(RARIAN_BUILDLINK3_MK:M+)
+BUILDLINK_TARGETS+= rarian-buildlink-fake
+
+rarian-buildlink-fake:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ for fake in scrollkeeper-update scrollkeeper-rebuilddb \
+ rarian-sk-update rarian-sk-rebuild; \
+ do \
+ if [ ! -f ${BUILDLINK_DIR}/bin/$${fake} ]; then \
+ ${ECHO_BUILDLINK_MSG} \
+ "Creating ${BUILDLINK_DIR}/bin/$${fake}"; \
+ ${MKDIR} ${BUILDLINK_DIR}/bin; \
+ ${ECHO} "#!/bin/sh" \
+ > ${BUILDLINK_DIR}/bin/$${fake}; \
+ ${ECHO} "echo '[pkgsrc] Doing nothing for" \
+ "$${fake}' \$$*" \
+ >>${BUILDLINK_DIR}/bin/$${fake}; \
+ ${CHMOD} +x ${BUILDLINK_DIR}/bin/$${fake}; \
+ fi; \
+ done
+.endif # RARIAN_BUILDLINK3_MK
+
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
Home |
Main Index |
Thread Index |
Old Index