Page MenuHomeFreeBSD

D31960.diff
No OneTemporary

D31960.diff

diff --git a/Mk/Uses/gnome.mk b/Mk/Uses/gnome.mk
--- a/Mk/Uses/gnome.mk
+++ b/Mk/Uses/gnome.mk
@@ -46,12 +46,6 @@
# file and add apropriate @postexec/@postunexec directives for
# each .omf file found to track OMF registration database.
#
-# INSTALLS_ICONS - If a GTK+ port installs Freedesktop-style icons to
-# ${LOCALBASE}/share/icons, then you should use this
-# macro. Using this macro ensures that icons are cached
-# and will display correctly. This macro isn't needed
-# for QT based applications, which use a different method.
-#
# MAINTAINER: gnome@FreeBSD.org
.if !defined(_INCLUDE_USES_GNOME_MK)
@@ -458,24 +452,5 @@
done
.endif
-.if defined(INSTALLS_ICONS)
-_USES_install+= 690:gnome-post-icons
-gnome-post-icons:
- @${RM} ${TMPPLIST}.icons1
- @for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \
- ${ECHO_CMD} "@rmtry $${i}/icon-theme.cache" \
- >> ${TMPPLIST}.icons1; \
- ${ECHO_CMD} "@postexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \
- >> ${TMPPLIST}; \
- ${ECHO_CMD} "@postunexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \
- >> ${TMPPLIST}; \
- done
- @if test -f ${TMPPLIST}.icons1; then \
- ${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \
- ${RM} ${TMPPLIST}.icons1; \
- ${MV} -f ${TMPPLIST}.icons2 ${TMPPLIST}; \
- fi
-.endif
-
.endif
# End of use part.
diff --git a/Mk/Uses/trigger.mk b/Mk/Uses/trigger.mk
new file mode 100644
--- /dev/null
+++ b/Mk/Uses/trigger.mk
@@ -0,0 +1,29 @@
+# Feature: trigger
+# Usage: USES=trigger
+# Valid ARGS: none
+#
+# Variables:
+# TRIGGERS: list of triggers to package
+#
+# MAINTAINER= portmgr@FreeBSD.org
+
+.if !defined(_INCLUDE_USES_TRIGGER_MK)
+_INCLUDE_USES_TRIGGER_MK= yes
+
+.if !empty(trigger_ARGS)
+IGNORE= Incorrect 'USES+= trigger:${trigger_ARGS}' trigger takes no arguments
+.endif
+
+TRIGGERS?= ${PORTNAME}
+.for t in ${TRIGGERS}
+SUB_FILES+= ${t}.ucl
+PLIST_FILES+= ${LOCALBASE}/share/pkg/triggers/$t.ucl
+.endfor
+
+_USES_install+= 601:trigger-post-install
+trigger-post-install:
+ ${MKDIR} ${STAGEDIR}${LOCALBASE}/share/pkg/triggers
+.for t in ${TRIGGERS}
+ ${INSTALL_DATA} ${WRKDIR}/$t.ucl ${STAGEDIR}${LOCALBASE}/share/pkg/triggers/
+.endfor
+.endif

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 23, 9:02 PM (11 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30206181
Default Alt Text
D31960.diff (2 KB)

Event Timeline