diff --git a/devel/desktop-file-utils/Makefile b/devel/desktop-file-utils/Makefile index ff765677b064..4a83a8eab39a 100644 --- a/devel/desktop-file-utils/Makefile +++ b/devel/desktop-file-utils/Makefile @@ -1,31 +1,27 @@ # Created by: Jean-Yves Lefort PORTNAME= desktop-file-utils PORTVERSION= 0.26 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/releases/ MAINTAINER= desktop@FreeBSD.org COMMENT= Couple of command line utilities for working with desktop entries LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= compiler:c11 gettext meson gnome pkgconfig tar:xz +USES= compiler:c11 gettext meson gnome pkgconfig trigger tar:xz USE_GNOME= glib20 -PKGINSTALL= ${WRKDIR}/pkg-install -PKGDEINSTALL= ${WRKDIR}/pkg-deinstall - -PORT_MIMEDIRS= ${LOCALBASE}/share/applications - -MIMEDIRS= ${PORT_MIMEDIRS} - -SUB_FILES= pkg-deinstall pkg-install +MIMEDIRS= share/applications SUB_LIST= MIMEDIRS="${MIMEDIRS}" +PKGPOSTINSTALL= ${WRKDIR}/pkg-post-install +SUB_FILES= pkg-post-install.lua post-install: ${INSTALL_DATA} ${WRKSRC}/misc/desktop-entry-mode.el \ ${STAGEDIR}${PREFIX}/share/emacs/site-lisp/desktop-entry-mode.el .include diff --git a/devel/desktop-file-utils/files/desktop-file-utils.ucl.in b/devel/desktop-file-utils/files/desktop-file-utils.ucl.in new file mode 100644 index 000000000000..ed07df4f223f --- /dev/null +++ b/devel/desktop-file-utils/files/desktop-file-utils.ucl.in @@ -0,0 +1,24 @@ +path: "%%PREFIX%%/%%MIMEDIRS%%" +cleanup: { + type: lua + script: <