From f161bba4dac32b7691325ab164b14cf1b8884468 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 9 Sep 2011 19:56:29 +0000 Subject: - Fix handling of shared mime data Reported by: pointyhat --- graphics/edje/Makefile | 4 ++++ graphics/edje/pkg-plist | 2 ++ 2 files changed, 6 insertions(+) (limited to 'graphics') 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 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 -- cgit v1.2.3