- Use FONTPATHSPEC and nuke pkg-message for adding FontPath manually.

- Add LICENSE.
- Update MASTER_SITES.
- Use FONTSDIR consistently.
This commit is contained in:
Hiroki Sato 2019-12-30 04:32:21 +00:00
parent 9adc8c4fa0
commit d1d3c3961d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521437
2 changed files with 22 additions and 28 deletions

View File

@ -2,27 +2,28 @@
PORTNAME= ipa
PORTVERSION= 00303
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://dl.ipafont.ipa.go.jp/IPAfont/
MASTER_SITES= https://ipafont.ipa.go.jp/IPAfont/
PKGNAMEPREFIX= ja-font-
DISTNAME= IPAfont${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= IPA Japanese fonts
CONFLICTS= ja-ipa-ttfonts-[0-9]*
LICENSE= IPAFONTLICv1.0
LICENSE_NAME= IPA Font License Agreement v1.0
LICENSE_FILE= ${WRKSRC}/IPA_Font_License_Agreement_v1.0.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= fonts:fc zip
FONTNAME= OTF
FONTPATHSPEC= ${FONTNAME}:pri=60
NO_ARCH= yes
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
SUB_FILES= pkg-install
DATADIR= ${PREFIX}/share/font-${PORTNAME}
PORTDOCS= IPA_Font_License_Agreement_v1.0.txt \
Readme_IPAfont${PORTVERSION}.txt
PORTDOCS= Readme_IPAfont${PORTVERSION}.txt
OPTIONS_DEFINE= DOCS
@ -30,23 +31,20 @@ post-extract:
cd ${WRKSRC} && for F in *.ttf; do ${MV} $${F} $${F%.ttf}.otf; done
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.otf ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${STAGEDIR}${FONTSDIR}/ && ${LN} -s -f \
../../../${DATADIR_REL}/ipa*.otf .
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
@${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/*.otf ${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}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,12 +1,8 @@
%%DATADIR%%/ipamp.otf
%%DATADIR%%/ipam.otf
%%DATADIR%%/ipagp.otf
%%DATADIR%%/ipag.otf
etc/fonts/conf.avail/20-unhint-ipa.conf
etc/fonts/conf.avail/62-fonts-ipa.conf
etc/fonts/conf.d/20-unhint-ipa.conf
etc/fonts/conf.d/62-fonts-ipa.conf
%%FONTSDIR%%/ipag.otf
%%FONTSDIR%%/ipagp.otf
%%FONTSDIR%%/ipam.otf
%%FONTSDIR%%/ipamp.otf
etc/fonts/conf.avail/20-unhint-ipa.conf
etc/fonts/conf.avail/62-fonts-ipa.conf
etc/fonts/conf.d/20-unhint-ipa.conf
etc/fonts/conf.d/62-fonts-ipa.conf