1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: USES=tar:bzip2
3: use @fc.
This commit is contained in:
Vanilla I. Shu 2014-07-04 09:15:57 +00:00
parent 0075b9e51f
commit db0bfcda7d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360582
2 changed files with 9 additions and 20 deletions

View File

@ -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>

View File

@ -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%%