- Use @fcfontsdir
- Bump PORTREVISION for package change
This commit is contained in:
parent
e995ac7a7f
commit
e08681c64f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362685
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
PORTNAME= dejavu
|
PORTNAME= dejavu
|
||||||
PORTVERSION= 2.34
|
PORTVERSION= 2.34
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= x11-fonts
|
CATEGORIES= x11-fonts
|
||||||
MASTER_SITES= SF
|
MASTER_SITES= SF
|
||||||
DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
|
DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
|
||||||
@ -11,7 +11,8 @@ DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
|
|||||||
MAINTAINER= sunpoet@FreeBSD.org
|
MAINTAINER= sunpoet@FreeBSD.org
|
||||||
COMMENT= Bitstream Vera Fonts clone with a wider range of characters
|
COMMENT= Bitstream Vera Fonts clone with a wider range of characters
|
||||||
|
|
||||||
BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
BUILD_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
|
||||||
|
${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
||||||
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS LINKS
|
OPTIONS_DEFINE= DOCS LINKS
|
||||||
@ -19,6 +20,7 @@ OPTIONS_DEFAULT=LINKS
|
|||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
LINKS_DESC= Install links of configuration files in conf.d
|
LINKS_DESC= Install links of configuration files in conf.d
|
||||||
|
|
||||||
|
NO_BUILD= yes
|
||||||
USES= tar:bzip2
|
USES= tar:bzip2
|
||||||
|
|
||||||
PLIST_SUB= FCDIR=${FCDIR} FCDIR_LINKS=${FCDIR_LINKS} FONTSDIR=${FONTSDIR}
|
PLIST_SUB= FCDIR=${FCDIR} FCDIR_LINKS=${FCDIR_LINKS} FONTSDIR=${FONTSDIR}
|
||||||
@ -30,15 +32,11 @@ FCDIR?= etc/fonts/conf.avail
|
|||||||
FCDIR_LINKS= ${FCDIR:S|conf.avail|conf.d|}
|
FCDIR_LINKS= ${FCDIR:S|conf.avail|conf.d|}
|
||||||
FONTSDIR?= lib/X11/fonts/${PORTNAME}
|
FONTSDIR?= lib/X11/fonts/${PORTNAME}
|
||||||
|
|
||||||
do-build:
|
|
||||||
@cd ${WRKSRC}/ttf/ && ${LOCALBASE}/bin/mkfontscale
|
|
||||||
@cd ${WRKSRC}/ttf/ && ${LOCALBASE}/bin/mkfontdir
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
cd ${STAGEDIR}${PREFIX}/ && ${MKDIR} ${FCDIR}/ ${FCDIR_LINKS}/ ${FONTSDIR}/
|
cd ${STAGEDIR}${PREFIX}/ && ${MKDIR} ${FCDIR}/ ${FCDIR_LINKS}/ ${FONTSDIR}/
|
||||||
${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${PREFIX}/${FCDIR}/
|
${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${PREFIX}/${FCDIR}/
|
||||||
cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf .
|
cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf .
|
||||||
${INSTALL_DATA} ${WRKSRC}/ttf/fonts.* ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${PREFIX}/${FONTSDIR}/
|
${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${PREFIX}/${FONTSDIR}/
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
||||||
|
|
||||||
|
@ -31,9 +31,7 @@
|
|||||||
%%FONTSDIR%%/DejaVuSerifCondensed-BoldItalic.ttf
|
%%FONTSDIR%%/DejaVuSerifCondensed-BoldItalic.ttf
|
||||||
%%FONTSDIR%%/DejaVuSerifCondensed-Italic.ttf
|
%%FONTSDIR%%/DejaVuSerifCondensed-Italic.ttf
|
||||||
%%FONTSDIR%%/DejaVuSerifCondensed.ttf
|
%%FONTSDIR%%/DejaVuSerifCondensed.ttf
|
||||||
%%FONTSDIR%%/fonts.dir
|
@fcfontsdir %%FONTSDIR%%
|
||||||
%%FONTSDIR%%/fonts.scale
|
|
||||||
@dirrm %%FONTSDIR%%
|
|
||||||
%%LINKS%%@dirrmtry %%FCDIR_LINKS%%
|
%%LINKS%%@dirrmtry %%FCDIR_LINKS%%
|
||||||
@dirrmtry %%FCDIR%%
|
@dirrmtry %%FCDIR%%
|
||||||
@dirrmtry etc/fonts
|
@dirrmtry etc/fonts
|
||||||
|
Loading…
Reference in New Issue
Block a user