summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2005-01-03 21:46:28 +0000
committermarcus <marcus@FreeBSD.org>2005-01-03 21:46:28 +0000
commite66275c34b7dd86ba422d5fe93f5f3c2f94c907a (patch)
tree315baa1bfa057f386a1aa5b038c8d17e9b2e73d0 /misc
parentb4c8954daf713103cc37d9b4c4f443d953ee5526 (diff)
downloadFreeBSD-ports-e66275c34b7dd86ba422d5fe93f5f3c2f94c907a.zip
FreeBSD-ports-e66275c34b7dd86ba422d5fe93f5f3c2f94c907a.tar.gz
Be sure to create all of the X11BASE MIME subdirectories since we will
be responsible for removing them. Approved by: portmgr (implicit)
Diffstat (limited to 'misc')
-rw-r--r--misc/shared-mime-info/Makefile8
-rw-r--r--misc/shared-mime-info/pkg-plist9
2 files changed, 15 insertions, 2 deletions
diff --git a/misc/shared-mime-info/Makefile b/misc/shared-mime-info/Makefile
index 91de41e..44fcb1e 100644
--- a/misc/shared-mime-info/Makefile
+++ b/misc/shared-mime-info/Makefile
@@ -6,7 +6,7 @@
PORTNAME= shared-mime-info
PORTVERSION= 0.15
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= misc gnome
MASTER_SITES= http://www.marcuscom.com/downloads/ \
http://www.freedesktop.org/software/shared-mime-info/
@@ -28,6 +28,8 @@ MIMEDIRS= ${X11BASE}/share/gnome/mime \
${X11BASE}/share/mime \
${LOCALBASE}/share/mime \
/usr/share/mime
+MIMESUBDIRS= audio image inode message model multipart \
+ packages text video
post-patch:
@${REINPLACE_CMD} -e 's|%%MIMEDIRS%%|${MIMEDIRS}|g' \
@@ -37,7 +39,9 @@ post-patch:
${WRKSRC}/update-mime-database.c
pre-su-install:
- ${MKDIR} ${X11BASE}/share/mime/packages
+.for subdir in ${MIMESUBDIRS}
+ ${MKDIR} ${X11BASE}/share/mime/${subdir}
+.endfor
post-install:
@${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
diff --git a/misc/shared-mime-info/pkg-plist b/misc/shared-mime-info/pkg-plist
index 7544699..c19e201 100644
--- a/misc/shared-mime-info/pkg-plist
+++ b/misc/shared-mime-info/pkg-plist
@@ -1,4 +1,13 @@
+@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
OpenPOWER on IntegriCloud