summaryrefslogtreecommitdiff
path: root/textproc/rarian
diff options
context:
space:
mode:
authorjmmv <jmmv>2007-11-05 17:06:33 +0000
committerjmmv <jmmv>2007-11-05 17:06:33 +0000
commit8d1d989bb3c639bd8be4ba7608fea94a34375334 (patch)
tree8a46d2f8bd628dba06143e2e9bda642e2592bedb /textproc/rarian
parent13f92bdf9193aec2c4ca45355fdd7269a3334db7 (diff)
downloadpkgsrc-8d1d989bb3c639bd8be4ba7608fea94a34375334.tar.gz
Mimic scrollkeeper's buildlink3.mk and create fake wrappers for those
tools that we don't want packages to execute directly.
Diffstat (limited to 'textproc/rarian')
-rw-r--r--textproc/rarian/buildlink3.mk24
1 files changed, 23 insertions, 1 deletions
diff --git a/textproc/rarian/buildlink3.mk b/textproc/rarian/buildlink3.mk
index 49ffec3fb7c..415dc5bee1e 100644
--- a/textproc/rarian/buildlink3.mk
+++ b/textproc/rarian/buildlink3.mk
@@ -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_API_DEPENDS.rarian+= rarian>=0.6.0
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/+$//}