summaryrefslogtreecommitdiff
path: root/databases/shared-mime-info
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 /databases/shared-mime-info
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 'databases/shared-mime-info')
-rw-r--r--databases/shared-mime-info/DEINSTALL9
-rw-r--r--databases/shared-mime-info/INSTALL5
-rw-r--r--databases/shared-mime-info/Makefile4
3 files changed, 11 insertions, 7 deletions
diff --git a/databases/shared-mime-info/DEINSTALL b/databases/shared-mime-info/DEINSTALL
new file mode 100644
index 00000000000..02f5e54120d
--- /dev/null
+++ b/databases/shared-mime-info/DEINSTALL
@@ -0,0 +1,9 @@
+# $NetBSD: DEINSTALL,v 1.1 2006/06/15 20:40:15 jlam Exp $
+
+MIMEDB_PATH="@MIMEDB_PATH@"
+
+case ${STAGE} in
+POST-DEINSTALL)
+ ${RM} -rf ${MIMEDB_PATH}
+ ;;
+esac
diff --git a/databases/shared-mime-info/INSTALL b/databases/shared-mime-info/INSTALL
index f339cab5445..307a7ca9217 100644
--- a/databases/shared-mime-info/INSTALL
+++ b/databases/shared-mime-info/INSTALL
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.1 2004/08/31 11:43:44 jmmv Exp $
+# $NetBSD: INSTALL,v 1.2 2006/06/15 20:40:15 jlam Exp $
MIMEDB_PATH="@MIMEDB_PATH@"
UPDATE_MIMEDB="@UPDATE_MIMEDB@"
@@ -7,7 +7,4 @@ case ${STAGE} in
POST-INSTALL)
${UPDATE_MIMEDB} ${MIMEDB_PATH} >/dev/null
;;
-POST-DEINSTALL)
- ${RM} -rf ${MIMEDB_PATH}
- ;;
esac
diff --git a/databases/shared-mime-info/Makefile b/databases/shared-mime-info/Makefile
index 99400a6974f..b0fbad32302 100644
--- a/databases/shared-mime-info/Makefile
+++ b/databases/shared-mime-info/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2006/06/08 09:56:43 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2006/06/15 20:40:15 jlam Exp $
#
DISTNAME= shared-mime-info-0.17
@@ -28,8 +28,6 @@ CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
CFLAGS+= -c99
.endif
-DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL
-
FILES_SUBST+= MIMEDB_PATH="${PREFIX}/share/mime"
FILES_SUBST+= UPDATE_MIMEDB="${PREFIX}/bin/update-mime-database"