Set DISTFILES as OPTIONs helpers.

This allows one to only download the tarball corresponding to the chosen
VARIANT option, at the expense of making `make makesum' more cumbersome to
run (so add a comment to remind me of how to do it).

PR:		228206
Submitted by:	tobik
This commit is contained in:
Raphael Kubo da Costa 2018-05-14 20:26:49 +00:00
parent 3720dfe89b
commit 37665a9bac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469962

View file

@ -5,10 +5,6 @@ PORTVERSION= 1.7.2
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= https://github.com/belluzj/fantasque-sans/releases/download/v${PORTVERSION}/
DISTFILES= FantasqueSansMono-Normal.tar.gz \
FantasqueSansMono-NoLoopK.tar.gz \
FantasqueSansMono-LargeLineHeight.tar.gz \
FantasqueSansMono-LargeLineHeight-NoLoopK.tar.gz
MAINTAINER= rakuco@FreeBSD.org
COMMENT= Programming font, designed with functionality in mind
@ -22,6 +18,9 @@ USES= fonts
OPTIONS_DEFINE= DOCS
# For `make makesum' to include all distfiles, it should be run with
# WITH="$(make -V OPTIONS_SINGLE_VARIANT)".
OPTIONS_SINGLE= VARIANT
OPTIONS_SINGLE_VARIANT= NORMAL NOLOOPK LLINE LLINENOLOOPK
@ -32,10 +31,10 @@ LLINENOLOOPK_DESC= Large line spacing with Nondescript K
OPTIONS_DEFAULT= NORMAL
NORMAL_EXTRACT_ONLY= FantasqueSansMono-Normal.tar.gz
NOLOOPK_EXTRACT_ONLY= FantasqueSansMono-NoLoopK.tar.gz
LLINE_EXTRACT_ONLY= FantasqueSansMono-LargeLineHeight.tar.gz
LLINENOLOOPK_EXTRACT_ONLY= FantasqueSansMono-LargeLineHeight-NoLoopK.tar.gz
NORMAL_DISTFILES= FantasqueSansMono-Normal.tar.gz
NOLOOPK_DISTFILES= FantasqueSansMono-NoLoopK.tar.gz
LLINE_DISTFILES= FantasqueSansMono-LargeLineHeight.tar.gz
LLINENOLOOPK_DISTFILES= FantasqueSansMono-LargeLineHeight-NoLoopK.tar.gz
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}