Convert to options target helper

- Cosmetic change
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-03-28 12:47:10 +00:00
parent f2e3fc94fe
commit c40884fc0c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=529359

View file

@ -3,8 +3,8 @@
PORTNAME= dejavu
PORTVERSION= 2.37
PORTREVISION= 1
DISTVERSIONPREFIX= fonts-ttf-
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= https://github.com/dejavu-fonts/dejavu-fonts/releases/download/version_${PORTVERSION:R}_${PORTVERSION:E}/
@ -21,14 +21,10 @@ LICENSE_PERMS_AMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_AREV= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_BITSTREAM=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
OPTIONS_DEFINE= DOCS LINKS
OPTIONS_DEFAULT=LINKS
OPTIONS_SUB= yes
LINKS_DESC= Install links of configuration files in conf.d
USES= fonts tar:bzip2
NO_ARCH= yes
NO_BUILD= yes
USES= fonts tar:bzip2
PLIST_SUB= FCDIR=${FCDIR} FCDIR_LINKS=${FCDIR_LINKS}
PORTDOCS= README.md langcover.txt status.txt unicover.txt
@ -37,11 +33,18 @@ SUB_FILES= pkg-message
FCDIR?= etc/fonts/conf.avail
FCDIR_LINKS= ${FCDIR:S|conf.avail|conf.d|}
OPTIONS_DEFINE= DOCS LINKS
OPTIONS_DEFAULT=LINKS
OPTIONS_SUB= yes
LINKS_DESC= Install links of configuration files in conf.d
do-install:
cd ${STAGEDIR}${PREFIX}/ && ${MKDIR} ${FCDIR}/ ${FCDIR_LINKS}/ ${STAGEDIR}${FONTSDIR}/
${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${PREFIX}/${FCDIR}/
cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf .
${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/