summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-12-30 21:34:20 +0000
committerpav <pav@FreeBSD.org>2004-12-30 21:34:20 +0000
commitac096317a283a4c5662932600b360e94ca59a10f (patch)
tree51cef91903957bd984eee14891a913719afecdd5 /misc
parente1a6cef2f4432bfb0c7e372139dbb376bd5a83ba (diff)
downloadFreeBSD-ports-ac096317a283a4c5662932600b360e94ca59a10f.zip
FreeBSD-ports-ac096317a283a4c5662932600b360e94ca59a10f.tar.gz
- Create an empty database in X11BASE
This is not strictly needed, and it violates a "stay in prefix" rule, but it's necessary to avoid pointyhat from reporting leftover files in ports which actually do create mime database in X11BASE, for example, comms/xlog. - Change @cwd+%D to %%X11BASE%%, there are no files listed after @cwd anymore.
Diffstat (limited to 'misc')
-rw-r--r--misc/shared-mime-info/Makefile5
-rw-r--r--misc/shared-mime-info/pkg-plist30
2 files changed, 19 insertions, 16 deletions
diff --git a/misc/shared-mime-info/Makefile b/misc/shared-mime-info/Makefile
index 9b99835..91de41e 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= 5
+PORTREVISION= 6
CATEGORIES= misc gnome
MASTER_SITES= http://www.marcuscom.com/downloads/ \
http://www.freedesktop.org/software/shared-mime-info/
@@ -36,6 +36,9 @@ post-patch:
s|%%X11BASE%%|${X11BASE}|g' \
${WRKSRC}/update-mime-database.c
+pre-su-install:
+ ${MKDIR} ${X11BASE}/share/mime/packages
+
post-install:
@${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
s|%%MIMEDIRS%%|${MIMEDIRS}|' \
diff --git a/misc/shared-mime-info/pkg-plist b/misc/shared-mime-info/pkg-plist
index cbf2e1a..7544699 100644
--- a/misc/shared-mime-info/pkg-plist
+++ b/misc/shared-mime-info/pkg-plist
@@ -1,3 +1,4 @@
+@exec mkdir -p %%X11BASE%%/share/mime/packages
bin/update-mime-database
libdata/pkgconfig/shared-mime-info.pc
@unexec [ -f %D/share/mime/XMLnamespaces ] && rm -f %D/share/mime/XMLnamespaces || true
@@ -398,18 +399,17 @@ share/mime/video/x-sgi-movie.xml
@unexec rmdir %D/share/mime/audio 2>/dev/null || true
@unexec rmdir %D/share/mime/application 2>/dev/null || true
@unexec rmdir %D/share/mime 2>/dev/null || true
-@cwd %%X11BASE%%
-@unexec [ -f %D/share/mime/XMLnamespaces ] && rm -f %D/share/mime/XMLnamespaces || true
-@unexec [ -f %D/share/mime/globs ] && rm -f %D/share/mime/globs || true
-@unexec [ -f %D/share/mime/magic ] && rm -f %D/share/mime/magic || true
-@unexec rmdir %D/share/mime/video 2>/dev/null || true
-@unexec rmdir %D/share/mime/text 2>/dev/null || true
-@unexec rmdir %D/share/mime/packages 2>/dev/null || true
-@unexec rmdir %D/share/mime/multipart 2>/dev/null || true
-@unexec rmdir %D/share/mime/model 2>/dev/null || true
-@unexec rmdir %D/share/mime/message 2>/dev/null || true
-@unexec rmdir %D/share/mime/inode 2>/dev/null || true
-@unexec rmdir %D/share/mime/image 2>/dev/null || true
-@unexec rmdir %D/share/mime/audio 2>/dev/null || true
-@unexec rmdir %D/share/mime/application 2>/dev/null || true
-@unexec rmdir %D/share/mime 2>/dev/null || true
+@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 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 rmdir %%X11BASE%%/share/mime 2>/dev/null || true
OpenPOWER on IntegriCloud