1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

x11-fonts/fira: Simplify port

* Just extract what we really need which makes it cleaner and
  reduces I/O.
* Drop DOCS option
* Remove reference of www/fira-webfont (pointed out by maintainer)

PR:		278793
Reviewed by:	Trenton Schulz <trueos@norwegianrockcat.com> (maintainer)
This commit is contained in:
Daniel Engberg 2024-05-07 20:19:48 +02:00
parent 5de3a84b43
commit ac8a8a98c1
2 changed files with 14 additions and 17 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= fira
PORTVERSION= 4.301
PORTREVISION= 1
DISTVERSION= 4.301
PORTREVISION= 2
CATEGORIES= x11-fonts
MAINTAINER= trueos@norwegianrockcat.com
@ -9,30 +9,28 @@ WWW= https://bboxtype.com/typefaces/FiraSans/
LICENSE= OFL11
USES= fonts xorg
USE_XORG= x11
USES= fonts
EXTRACT_AFTER_ARGS= --include ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/Fira_Code_3_2/Fonts/FiraCode_OTF_32/*.otf \
--include ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/Fira_Mono_3_2/Fonts/FiraMono_OTF_32/*.otf \
--include ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/Fira_Sans_4_3/Fonts/Fira_Sans_OTF_4301 \
--strip-components 4 \
--no-same-owner --no-same-permissions
USE_GITHUB= yes
GH_ACCOUNT= bBoxType
GH_PROJECT= FiraSans
GH_TAGNAME= f54eeb3
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= pkg-message
PORTDOCS= *.pdf *.rtf
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
${FIND} ${WRKSRC}/Fira* -type f -name \*.otf | while read f; do \
${INSTALL_DATA} $$f ${STAGEDIR}${FONTSDIR} ; done
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Fira*/PDF/*.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Fira_Sans_4_3/Fira_4_3_Change_Log.rtf \
${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.otf ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/*/*/*.otf ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>

View File

@ -17,7 +17,6 @@ or
https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf
http://en.wikipedia.org/wiki/List_of_typographic_features
For Web Font please use www/fira-webfont port.
EOM
}
]