Use FONTPATHSPEC

This commit is contained in:
Hajimu UMEMOTO 2019-12-30 17:41:00 +00:00
parent f479d52bd9
commit bc75f8f1e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521551
2 changed files with 10 additions and 8 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= genjyuugothic
PORTVERSION= 20150607
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= japanese x11-fonts
MASTER_SITES= OSDN/users/8/8636
PKGNAMEPREFIX= ja-font-
@ -13,7 +13,7 @@ COMMENT= GenJyuuGothic Japanese TrueType fonts
LICENSE= OFL11
USES= 7z fonts:fc
FONTNAME= ${PORTNAME}
FONTPATHSPEC= ${FONTNAME}:pri=60
NO_ARCH= yes
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
@ -29,13 +29,13 @@ do-install:
cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTSDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
${FILESDIR}/62-fonts-${PORTNAME}.conf \
${INSTALL_DATA} ${FILESDIR}/20-unhint-${FONTNAME}.conf \
${FILESDIR}/62-fonts-${FONTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
${LN} -s -f ../conf.avail/20-unhint-${FONTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${FONTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${FONTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${FONTNAME}.conf
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}

View File

@ -1,5 +1,7 @@
etc/fonts/conf.avail/20-unhint-genjyuugothic.conf
etc/fonts/conf.avail/62-fonts-genjyuugothic.conf
etc/fonts/conf.d/20-unhint-genjyuugothic.conf
etc/fonts/conf.d/62-fonts-genjyuugothic.conf
%%FONTSDIR%%/GenJyuuGothic-Bold.ttf
%%FONTSDIR%%/GenJyuuGothic-ExtraLight.ttf
%%FONTSDIR%%/GenJyuuGothic-Heavy.ttf