1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

x11-fonts/paratype,x11-fonts/profont: STAGEify

This commit is contained in:
Boris Samorodov 2014-07-02 18:31:49 +00:00
parent 40ee0c9bd0
commit c6c573ede3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360242
2 changed files with 8 additions and 17 deletions

View File

@ -17,7 +17,6 @@ LICENSE= OFL11
INSTALLS_TTF= yes INSTALLS_TTF= yes
NO_BUILD= yes NO_BUILD= yes
NO_WRKSUBDIR= yes NO_WRKSUBDIR= yes
USE_TGZ= yes
USES= zip USES= zip
XORG_CAT= font XORG_CAT= font
@ -27,15 +26,11 @@ PLIST_SUB= FONTDIR="${FONTROOTDIR:S/${PREFIX}\///}/${FONTDIR}"
SUB_FILES= pkg-message SUB_FILES= pkg-message
SUB_LIST= FONTDIR="${FONTROOTDIR:S/${PREFIX}\///}/${FONTDIR}" SUB_LIST= FONTDIR="${FONTROOTDIR:S/${PREFIX}\///}/${FONTDIR}"
NO_STAGE= yes
do-configure: do-configure:
@${DO_NADA} @${DO_NADA}
do-install: do-install:
@${MKDIR} ${FONTROOTDIR}/${FONTDIR} @${MKDIR} ${STAGEDIR}${FONTROOTDIR}/${FONTDIR}
@${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTROOTDIR}/${FONTDIR}/ ${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}${FONTROOTDIR}/${FONTDIR}/
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -3,30 +3,26 @@
PORTNAME= profont PORTNAME= profont
PORTVERSION= 400 PORTVERSION= 400
PORTREVISION= 1
CATEGORIES= x11-fonts CATEGORIES= x11-fonts
MASTER_SITES= http://www.tobiasjung.net/dl/ MASTER_SITES= http://www.tobiasjung.net/dl/
DISTNAME= ${PORTNAME}-x11 DISTNAME= ${PORTNAME}-x11
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Profont - The ultimate programming font. COMMENT= Ultimate programming font
BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
fc-cache:${PORTSDIR}/x11-fonts/fontconfig mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
FONTDIR= lib/X11/fonts/${PORTNAME} FONTDIR= lib/X11/fonts/${PORTNAME}
PLIST_SUB+= FONTDIR=${FONTDIR} PLIST_SUB+= FONTDIR=${FONTDIR}
NO_STAGE= yes
do-build: do-build:
${GZIP_CMD} ${WRKSRC}/*.pcf ${GZIP_CMD} ${WRKSRC}/*.pcf
do-install: do-install:
${MKDIR} ${LOCALBASE}/${FONTDIR} @${MKDIR} ${STAGEDIR}${LOCALBASE}/${FONTDIR}
${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${LOCALBASE}/${FONTDIR} ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${STAGEDIR}${LOCALBASE}/${FONTDIR}
(cd ${STAGEDIR}${LOCALBASE}/${FONTDIR}; mkfontdir; mkfontscale)
post-install:
@cd ${LOCALBASE}/${FONTDIR}; mkfontdir
@${CP} ${LOCALBASE}/${FONTDIR}/fonts.dir ${LOCALBASE}/${FONTDIR}/fonts.scale || true
@command fc-cache -f -v ${LOCALBASE}/${FONTDIR} || true
.include <bsd.port.mk> .include <bsd.port.mk>