From 0a83cf2f7b385840d40264486549f16da804b083 Mon Sep 17 00:00:00 2001 From: vanilla Date: Fri, 4 Jul 2014 09:15:57 +0000 Subject: 1: Stagify. 2: USES=tar:bzip2 3: use @fc. --- x11-fonts/fonts-te/Makefile | 25 ++++++++----------------- x11-fonts/fonts-te/pkg-plist | 4 +--- 2 files changed, 9 insertions(+), 20 deletions(-) (limited to 'x11-fonts') diff --git a/x11-fonts/fonts-te/Makefile b/x11-fonts/fonts-te/Makefile index a80318a4de2f..9df0ddf295d2 100644 --- a/x11-fonts/fonts-te/Makefile +++ b/x11-fonts/fonts-te/Makefile @@ -9,34 +9,25 @@ MASTER_SITES= http://itachi.prudhvi.org/te_fonts/ \ http://freebsd.unixfreunde.de/sources/ MAINTAINER= ports@FreeBSD.org -COMMENT= Telugu fonts for te_IN. +COMMENT= Telugu fonts for te_IN RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig -USE_BZIP2= yes +USES= tar:bzip2 NO_BUILD= yes PORTDOCS= MANUAL.PDF PKGMESSAGE= ${PKGDIR}/pkg-message FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME} PLIST_SUB= FONTSDIR=${FONTSDIR:S|^${PREFIX}/||} +OPTIONS_DEFINE= DOCS -NO_STAGE= yes do-install: - ${MKDIR} ${FONTSDIR} - ${INSTALL_DATA} ${WRKSRC}/Pothana2000.ttf ${FONTSDIR} - ${INSTALL_DATA} ${WRKSRC}/vemana.ttf ${FONTSDIR} -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/Pothana2000.ttf ${STAGEDIR}${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/vemana.ttf ${STAGEDIR}${FONTSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif - -post-install: - @${ECHO_MSG} "===> Running fc-cache" - -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR} - @${ECHO_MSG} - ${CAT} ${PKGMESSAGE} - @${ECHO_MSG} .include diff --git a/x11-fonts/fonts-te/pkg-plist b/x11-fonts/fonts-te/pkg-plist index bad2de32825e..5f29d1529b15 100644 --- a/x11-fonts/fonts-te/pkg-plist +++ b/x11-fonts/fonts-te/pkg-plist @@ -1,5 +1,3 @@ %%FONTSDIR%%/Pothana2000.ttf %%FONTSDIR%%/vemana.ttf -@unexec rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true -@dirrm %%FONTSDIR%% -@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || /usr/bin/true +@fc %%FONTSDIR%% -- cgit