aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2011-09-10 03:56:29 +0800
committerpav <pav@FreeBSD.org>2011-09-10 03:56:29 +0800
commit274df87a90b68e8e3e02eed29f9e7233e915cd01 (patch)
tree50660d089f370b6716389ca024a6dbd4fb1d33f9
parent34c9a143c7041f67d963821e07da636561d7e5f9 (diff)
downloadfreebsd-ports-gnome-274df87a90b68e8e3e02eed29f9e7233e915cd01.tar.gz
freebsd-ports-gnome-274df87a90b68e8e3e02eed29f9e7233e915cd01.tar.zst
freebsd-ports-gnome-274df87a90b68e8e3e02eed29f9e7233e915cd01.zip
- Fix handling of shared mime data
Reported by: pointyhat
-rw-r--r--graphics/edje/Makefile4
-rw-r--r--graphics/edje/pkg-plist2
2 files changed, 6 insertions, 0 deletions
diff --git a/graphics/edje/Makefile b/graphics/edje/Makefile
index 860f541b4997..1f926e3847a6 100644
--- a/graphics/edje/Makefile
+++ b/graphics/edje/Makefile
@@ -16,6 +16,7 @@ MAINTAINER= stas@FreeBSD.org
COMMENT= Edje is a complex graphical design and layout engine
LIB_DEPENDS= lua-5.1:${PORTSDIR}/lang/lua
+RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
LICENSE= BSD
DIST_SUBDIR= e17
@@ -33,4 +34,7 @@ post-patch:
@${REINPLACE_CMD} -E -e "/^SUBDIRS[[:space:]]+=/s/utils//" \
${WRKSRC}/Makefile.in
+post-install:
+ -update-mime-database ${PREFIX}/share/mime
+
.include <bsd.port.mk>
diff --git a/graphics/edje/pkg-plist b/graphics/edje/pkg-plist
index f24362213ce1..c73bf2e006d5 100644
--- a/graphics/edje/pkg-plist
+++ b/graphics/edje/pkg-plist
@@ -16,3 +16,5 @@ share/mime/packages/edje.xml
@dirrm include/edje-1
@dirrm %%DATADIR%%/include
@dirrm %%DATADIR%%
+@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
+@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime