Convert to USES=fonts
Bump portrevision the package is behaving differently now
This commit is contained in:
parent
9e93906c65
commit
f9087ca5d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=381621
2 changed files with 2 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= anonymous-pro
|
||||
PORTVERSION= 1.002
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-fonts
|
||||
MASTER_SITES= http://www.marksimonson.com/assets/content/fonts/
|
||||
DISTNAME= AnonymousPro-${PORTVERSION}
|
||||
|
@ -12,9 +13,7 @@ COMMENT= Fixed width sans designed especially for coders
|
|||
|
||||
LICENSE= OFL11
|
||||
|
||||
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
||||
|
||||
USES= zip
|
||||
USES= fonts zip
|
||||
NO_BUILD= yes
|
||||
|
||||
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
|
||||
|
@ -26,16 +25,10 @@ WRKSRC= ${WRKDIR}/${DISTNAME}.001
|
|||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
|
||||
${MKDIR} ${STAGEDIR}${FONTSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}${FONTSDIR}
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Running fc-cache"
|
||||
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -6,7 +6,3 @@
|
|||
%%PORTDOCS%%%%DOCSDIR%%/OFL-FAQ.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/OFL.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@unexec /bin/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
|
||||
|
|
Loading…
Reference in a new issue