pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/shared-mime-info If the fake update-mime-dat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2674a8681d9f
branches:  trunk
changeset: 536215:2674a8681d9f
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Dec 06 11:38:26 2007 +0000

description:
If the fake update-mime-database is invoked with just "-v" let it report
the correct version information.

diffstat:

 databases/shared-mime-info/buildlink3.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c67b8a0f53d8 -r 2674a8681d9f databases/shared-mime-info/buildlink3.mk
--- a/databases/shared-mime-info/buildlink3.mk  Thu Dec 06 11:29:20 2007 +0000
+++ b/databases/shared-mime-info/buildlink3.mk  Thu Dec 06 11:38:26 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.8 2006/07/08 23:10:40 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2007/12/06 11:38:26 markd Exp $
 
 BUILDLINK_DEPTH:=                      ${BUILDLINK_DEPTH}+
 SHARED_MIME_INFO_BUILDLINK3_MK:=       ${SHARED_MIME_INFO_BUILDLINK3_MK}+
@@ -27,6 +27,7 @@
                ${ECHO_BUILDLINK_MSG} "Creating "${_SMI_FAKE_UPDATEDB:Q}; \
                ${MKDIR} ${_SMI_FAKE_UPDATEDB:H};                       \
                ${ECHO} "#!/bin/sh" > ${_SMI_FAKE_UPDATEDB};            \
+               ${ECHO} 'if [ "$$1" = "-v" ]; then' ${BUILDLINK_PREFIX.shared-mime-info}/bin/update-mime-database "-v; fi" >> ${_SMI_FAKE_UPDATEDB};            \
                ${ECHO} "echo '[pkgsrc] Doing nothing for update-mime-database' \$$*" >> ${_SMI_FAKE_UPDATEDB};         \
                ${CHMOD} +x ${_SMI_FAKE_UPDATEDB};                      \
        fi



Home | Main Index | Thread Index | Old Index