aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-07-04 17:15:57 +0800
committervanilla <vanilla@FreeBSD.org>2014-07-04 17:15:57 +0800
commit0a83cf2f7b385840d40264486549f16da804b083 (patch)
tree7a7c10fc234ebfa170a62f04b6028e957c787fb0 /x11-fonts
parent8b69f1e458de88b1082f41d70a7e0ee2aa7f4e14 (diff)
downloadfreebsd-ports-gnome-0a83cf2f7b385840d40264486549f16da804b083.tar.gz
freebsd-ports-gnome-0a83cf2f7b385840d40264486549f16da804b083.tar.zst
freebsd-ports-gnome-0a83cf2f7b385840d40264486549f16da804b083.zip
1: Stagify.
2: USES=tar:bzip2 3: use @fc.
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/fonts-te/Makefile25
-rw-r--r--x11-fonts/fonts-te/pkg-plist4
2 files changed, 9 insertions, 20 deletions
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 <bsd.port.mk>
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%%