Switch from MASTER_SITES0 to new SITES* with suffix.

While here, use module variables in a way more consistent with
other font ports.
master
bentley 2023-09-15 07:08:40 +00:00
parent f8f2422e95
commit d0069a5719
2 changed files with 20 additions and 22 deletions

View File

@ -1,10 +1,10 @@
COMMENT = greater legibility and readability for low vision readers
TYPEFACE = Atkinson-Hyperlegible
V = 2020-0514
VPDF = 2020-1104
REVISION = 0
PKGNAME = ${TYPEFACE:L}-${V:S/-/./}
TYPEFACE = atkinson-hyperlegible
VDIST = 2020-0514
V = ${VDIST:S/-/./}
REVISION = 1
DISTNAME = Atkinson-Hyperlegible-Font-Print-and-Web-${VDIST}
CATEGORIES = fonts
HOMEPAGE = https://brailleinstitute.org/freefont
@ -15,23 +15,21 @@ PERMIT_PACKAGE = Yes
MODULES = font
FONTTYPES = otf
MASTER_SITES = https://brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/
MASTER_SITES0 = https://brailleinstitute.org/wp-content/uploads/2020/11/
DISTFILES = Atkinson-Hyperlegible-Font-Print-and-Web-${V}.zip \
Atkinson-Hyperlegible-Font-License-${VPDF}.pdf:0
SITES = https://brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/
SITES.doc = https://brailleinstitute.org/wp-content/uploads/2020/11/
DISTFILES.doc = Atkinson-Hyperlegible-Font-License-2020-1104.pdf
EXTRACT_ONLY = Atkinson-Hyperlegible-Font-Print-and-Web-${V}.zip
EXTRACT_ONLY = ${DISTFILES}
NO_BUILD = Yes
NO_TEST = Yes
SUBST_VARS += VPDF
WRKSRC = ${WRKDIR}/${TYPEFACE}-Font-Print-and-Web-${V}/Print\ Fonts
DOCDIR = ${PREFIX}/share/doc/hyperlegible
WRKSRC = ${WRKDIST}/Print\ Fonts
DOCDIR = ${PREFIX}/share/doc/${TYPEFACE}
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${FULLDISTDIR}/${TYPEFACE}-Font-License-${VPDF}.pdf \
${DOCDIR}
${INSTALL_DATA} ${FULLDISTDIR}/${DISTFILES.doc} \
${DOCDIR}/Atkinson-Hyperlegible-Font-License.pdf
.include <bsd.port.mk>

View File

@ -1,8 +1,8 @@
share/doc/hyperlegible/
share/doc/hyperlegible/Atkinson-Hyperlegible-Font-License-${VPDF}.pdf
share/doc/atkinson-hyperlegible/
share/doc/atkinson-hyperlegible/Atkinson-Hyperlegible-Font-License.pdf
share/fonts/
@fontdir share/fonts/Atkinson-Hyperlegible/
share/fonts/Atkinson-Hyperlegible/Atkinson-Hyperlegible-Bold-102.otf
share/fonts/Atkinson-Hyperlegible/Atkinson-Hyperlegible-BoldItalic-102.otf
share/fonts/Atkinson-Hyperlegible/Atkinson-Hyperlegible-Italic-102.otf
share/fonts/Atkinson-Hyperlegible/Atkinson-Hyperlegible-Regular-102.otf
@fontdir share/fonts/atkinson-hyperlegible/
share/fonts/atkinson-hyperlegible/Atkinson-Hyperlegible-Bold-102.otf
share/fonts/atkinson-hyperlegible/Atkinson-Hyperlegible-BoldItalic-102.otf
share/fonts/atkinson-hyperlegible/Atkinson-Hyperlegible-Italic-102.otf
share/fonts/atkinson-hyperlegible/Atkinson-Hyperlegible-Regular-102.otf