1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Add desktop-file-utils and share-mime-info Uses. These will take care of all

the magic.

Approved by:	portmgr (bapt)
Feature safe:	yes
This commit is contained in:
Koop Mast 2013-04-16 21:21:25 +00:00
parent 2e75b56386
commit 609b9bbab0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315907
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# $FreeBSD$
#
# handle dependency depends on desktop-file-info and package regen
#
# MAINTAINER: gnome@FreeBSD.org
#
# Feature: desktop-file-info
# Usage: USES=desktop-file-info
# Valid ARGS: does not require args
#
#
.if !defined(_INCLUDE_USES_DESKTOP_FILE_INFO_MK)
_INCLUDE_USES_DESKTOP_FILE_INFO_MK= yes
.if defined(desktop-file-info_ARGS)
IGNORE= USES=desktop-file-info does not require args
.endif
BUILD_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
RUN_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
# bolt our post-install target to post-install
post-install: desktop-file-post-install
desktop-file-post-install:
# run for port post-install
@-update-desktop-database
# plist entries for packages.
@${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true" \
>> ${TMPPLIST}; \
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true" \
>> ${TMPPLIST}
.endif

View File

@ -0,0 +1,34 @@
# $FreeBSD$
#
# handle dependency depends on shared-mime-info and package regen
#
# MAINTAINER: gnome@FreeBSD.org
#
# Feature: shared-mime-info
# Usage: USES=shared-mime-info
# Valid ARGS: does not require args
#
#
.if !defined(_INCLUDE_USES_SHARED_MIME_INFO_MK)
_INCLUDE_USES_SHARED_MIME_INFO_MK= yes
.if defined(shared-mime-info_ARGS)
IGNORE= USES=shared-mime-info does not require args
.endif
BUILD_DEPENDS+= update-mime-database:${PORTSDIR}/misc/shared-mime-info
RUN_DEPENDS+= update-mime-database:${PORTSDIR}/misc/shared-mime-info
# bolt our post-install target to post-install
post-install: shared-mime-post-install
shared-mime-post-install:
# run for port post-install
@-update-desktop-database
# plist entries for packages.
@${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-mime-database %D/share/mime" \
>> ${TMPPLIST}; \
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-mime-database %D/share/mime" \
>> ${TMPPLIST}
.endif