summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-15 20:40:15 +0000
committerjlam <jlam@pkgsrc.org>2006-06-15 20:40:15 +0000
commit827643d4bb8f5f83c28919b7df0d42108769e37d (patch)
treefdcc07230f85f6fc9861a7659692fa83b1801fd4 /textproc
parent16435dbba43f2f98501e2daefad890a6542aab31 (diff)
downloadpkgsrc-827643d4bb8f5f83c28919b7df0d42108769e37d.tar.gz
Split out deinstall portions of INSTALL scripts into DEINSTALL scripts.
This avoids the need for a confusing line of the form: DEINSTALL_TEMPLATE+= path/to/INSTALL in the package Makefile, and actually removes the need to specify it altogether since by convention, the existence of the DEINSTALL script is enough to add it to DEINSTALL_TEMPLATE.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/scrollkeeper/DEINSTALL9
-rw-r--r--textproc/scrollkeeper/INSTALL5
-rw-r--r--textproc/scrollkeeper/Makefile4
3 files changed, 11 insertions, 7 deletions
diff --git a/textproc/scrollkeeper/DEINSTALL b/textproc/scrollkeeper/DEINSTALL
new file mode 100644
index 00000000000..f2a06d32617
--- /dev/null
+++ b/textproc/scrollkeeper/DEINSTALL
@@ -0,0 +1,9 @@
+# $NetBSD: DEINSTALL,v 1.1 2006/06/15 20:40:16 jlam Exp $
+
+SCROLLKEEPER_DATADIR="@SCROLLKEEPER_DATADIR@"
+
+case ${STAGE} in
+DEINSTALL)
+ ${RM} -rf ${SCROLLKEEPER_DATADIR}
+ ;;
+esac
diff --git a/textproc/scrollkeeper/INSTALL b/textproc/scrollkeeper/INSTALL
index 0e53377b4e3..25fc60a6413 100644
--- a/textproc/scrollkeeper/INSTALL
+++ b/textproc/scrollkeeper/INSTALL
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.2 2004/01/23 16:55:37 jmmv Exp $
+# $NetBSD: INSTALL,v 1.3 2006/06/15 20:40:16 jlam Exp $
SCROLLKEEPER_REBUILDDB="@SCROLLKEEPER_REBUILDDB@"
SCROLLKEEPER_DATADIR="@SCROLLKEEPER_DATADIR@"
@@ -11,7 +11,4 @@ POST-INSTALL)
${MKDIR} ${SCROLLKEEPER_DATADIR}/db
${SCROLLKEEPER_REBUILDDB} -q -p ${SCROLLKEEPER_DATADIR}/db > /dev/null 2>&1
;;
-DEINSTALL)
- ${RM} -rf ${SCROLLKEEPER_DATADIR}
- ;;
esac
diff --git a/textproc/scrollkeeper/Makefile b/textproc/scrollkeeper/Makefile
index f0008c3f356..6f3aa91723a 100644
--- a/textproc/scrollkeeper/Makefile
+++ b/textproc/scrollkeeper/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2006/06/04 21:09:30 schwarz Exp $
+# $NetBSD: Makefile,v 1.41 2006/06/15 20:40:16 jlam Exp $
#
DISTNAME= scrollkeeper-0.3.14
@@ -34,8 +34,6 @@ CONFIGURE_ARGS+= --with-omfdirs=${PREFIX}/share/omf
CONFIGURE_ARGS+= --with-omfdirs=${LOCALBASE}/share/omf:${X11PREFIX}/share/omf
.endif
-DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL
-
SCROLLKEEPER_DATADIR= ${PREFIX}/libdata/scrollkeeper
SCROLLKEEPER_REBUILDDB= ${PREFIX}/bin/scrollkeeper-rebuilddb
FILES_SUBST+= SCROLLKEEPER_DATADIR=${SCROLLKEEPER_DATADIR:Q}