summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
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