View | Details | Raw Unified | Return to bug 226122 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +10 lines)
Lines 26-32 Link Here
26
PORTDATA=	*
26
PORTDATA=	*
27
PORTDOCS=	CREDITS NEWS README
27
PORTDOCS=	CREDITS NEWS README
28
28
29
OPTIONS_DEFINE=	DOCS
29
OPTIONS_DEFINE=	CACHE_ICONS DOCS
30
CACHE_ICONS_DESC=	Update icon cache after installation (GTK+)
31
CACHE_ICONS_RUN_DEPENDS=	gtk-update-icon-cache:graphics/gtk-update-icon-cache
30
32
31
post-patch:
33
post-patch:
32
	@${REINPLACE_CMD} -e '/INSTALLS/s/man //' \
34
	@${REINPLACE_CMD} -e '/INSTALLS/s/man //' \
Lines 36-41 Link Here
36
	${INSTALL_MAN} ${WRKSRC}/resources/unix/focuswriter.1 \
38
	${INSTALL_MAN} ${WRKSRC}/resources/unix/focuswriter.1 \
37
		${STAGEDIR}${MANPREFIX}/man/man1
39
		${STAGEDIR}${MANPREFIX}/man/man1
38
40
41
post-install-CACHE_ICONS-on:
42
.for d in share/icons/hicolor
43
	@${ECHO_CMD} "@rmtry ${d}/icon-theme.cache" >> ${TMPPLIST}
44
	@${ECHO_CMD} "@postexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/${d} 2>/dev/null || /usr/bin/true" >> ${TMPPLIST}
45
	@${ECHO_CMD} "@postunexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/${d} 2>/dev/null || /usr/bin/true" >> ${TMPPLIST}
46
.endfor
47
39
post-install-DOCS-on:
48
post-install-DOCS-on:
40
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
49
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
41
50

Return to bug 226122