Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/desktop-file-utils.mk
Show All 13 Lines | |||||
.if defined(desktop-file-utils_ARGS) | .if defined(desktop-file-utils_ARGS) | ||||
IGNORE= USES=desktop-file-utils does not require args | IGNORE= USES=desktop-file-utils does not require args | ||||
.endif | .endif | ||||
BUILD_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils | BUILD_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils | ||||
RUN_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils | RUN_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils | ||||
desktop-file-post-install: | desktop-file-post-install: | ||||
.if defined(NO_STAGE) | |||||
# run for port post-install | |||||
@-update-desktop-database -q | |||||
.endif | |||||
# plist entries for packages. | # plist entries for packages. | ||||
@${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \ | @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST}; \ | >> ${TMPPLIST}; \ | ||||
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \ | ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \ | ||||
>> ${TMPPLIST} | >> ${TMPPLIST} | ||||
.endif | .endif |