summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/shared-mime-info/Makefile3
-rw-r--r--misc/shared-mime-info/files/patch-Makefile.in2
-rw-r--r--misc/shared-mime-info/pkg-plist27
3 files changed, 3 insertions, 29 deletions
diff --git a/misc/shared-mime-info/Makefile b/misc/shared-mime-info/Makefile
index 27766476e..262bf8188 100644
--- a/misc/shared-mime-info/Makefile
+++ b/misc/shared-mime-info/Makefile
@@ -3,7 +3,8 @@
# Whom: olgeni@FreeBSD.org
#
# $FreeBSD$
-# $MCom: ports/misc/shared-mime-info/Makefile,v 1.6 2007/05/19 21:53:14 marcus Exp $
+# $MCom: ports/misc/shared-mime-info/Makefile,v 1.7 2007/05/19 21:54:52 marcus Exp $
+#
PORTNAME= shared-mime-info
PORTVERSION= 0.21
diff --git a/misc/shared-mime-info/files/patch-Makefile.in b/misc/shared-mime-info/files/patch-Makefile.in
index 4a6a2643e..87fc8e270 100644
--- a/misc/shared-mime-info/files/patch-Makefile.in
+++ b/misc/shared-mime-info/files/patch-Makefile.in
@@ -14,7 +14,7 @@
install-data-hook:
-@ENABLE_UPDATE_MIMEDB_TRUE@ $(DESTDIR)"$(bindir)/update-mime-database" -V "$(DESTDIR)$(datadir)/mime"
-+@ENABLE_UPDATE_MIMEDB_TRUE@ for mdir in /usr/local/share/mime /usr/X11R6/share/mime /usr/local/share/mime; do \
++@ENABLE_UPDATE_MIMEDB_TRUE@ for mdir in %%MIMEDIRS%%; do \
+@ENABLE_UPDATE_MIMEDB_TRUE@ if [ -d $${mdir} ]; then \
+@ENABLE_UPDATE_MIMEDB_TRUE@ $(DESTDIR)"$(bindir)/update-mime-database" "$${mdir}" ; \
+@ENABLE_UPDATE_MIMEDB_TRUE@ fi; \
diff --git a/misc/shared-mime-info/pkg-plist b/misc/shared-mime-info/pkg-plist
index a34c91b47..70daa6e96 100644
--- a/misc/shared-mime-info/pkg-plist
+++ b/misc/shared-mime-info/pkg-plist
@@ -1,13 +1,3 @@
-@exec mkdir -p %%X11BASE%%/share/mime/application
-@exec mkdir -p %%X11BASE%%/share/mime/audio
-@exec mkdir -p %%X11BASE%%/share/mime/image
-@exec mkdir -p %%X11BASE%%/share/mime/inode
-@exec mkdir -p %%X11BASE%%/share/mime/message
-@exec mkdir -p %%X11BASE%%/share/mime/model
-@exec mkdir -p %%X11BASE%%/share/mime/multipart
-@exec mkdir -p %%X11BASE%%/share/mime/packages
-@exec mkdir -p %%X11BASE%%/share/mime/text
-@exec mkdir -p %%X11BASE%%/share/mime/video
bin/update-mime-database
libdata/pkgconfig/shared-mime-info.pc
@unexec [ -f %D/share/mime/XMLnamespaces ] && rm -f %D/share/mime/XMLnamespaces || true
@@ -560,20 +550,3 @@ share/mime/video/x-theora+ogg.xml
@dirrmtry share/mime/application
@unexec [ -f %D/share/mime/mime.cache ] && rm -f %D/share/mime/mime.cache || true
@dirrmtry share/mime
-@unexec [ -f %%X11BASE%%/share/mime/XMLnamespaces ] && rm -f %%X11BASE%%/share/mime/XMLnamespaces || true
-@unexec [ -f %%X11BASE%%/share/mime/globs ] && rm -f %%X11BASE%%/share/mime/globs || true
-@unexec [ -f %%X11BASE%%/share/mime/magic ] && rm -f %%X11BASE%%/share/mime/magic || true
-@unexec [ -f %%X11BASE%%/share/mime/aliases ] && rm -f %%X11BASE%%/share/mime/aliases || true
-@unexec [ -f %%X11BASE%%/share/mime/subclasses ] && rm -f %%X11BASE%%/share/mime/subclasses || true
-@unexec rmdir %%X11BASE%%/share/mime/video 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/text 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/packages 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/multipart 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/model 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/message 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/inode 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/image 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/audio 2>/dev/null || true
-@unexec rmdir %%X11BASE%%/share/mime/application 2>/dev/null || true
-@unexec [ -f %%X11BASE%%/share/mime/mime.cache ] && rm -f %%X11BASE%%/share/mime/mime.cache || true
-@unexec rmdir %%X11BASE%%/share/mime 2>/dev/null || true