1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- Trim old-style header.

- Use OPTIONS_DEFINE.
- Style clean-ups.
This commit is contained in:
Hiroki Sato 2013-04-30 23:47:02 +00:00
parent 4b5d27750f
commit f516df6e05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316974
2 changed files with 15 additions and 13 deletions

View File

@ -1,13 +1,10 @@
# New ports collection makefile for: font-ipa
# Date created: 26 April 2009
# Whom: hrs
# $FreeBSD$
#
PORTNAME= font-ipa
PORTNAME= ipa
PORTVERSION= 00303
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://info.openlab.ipa.go.jp/ipafont/fontdata/
PKGNAMEPREFIX= ja-font-
DISTNAME= IPAfont${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
@ -25,12 +22,17 @@ SUB_FILES= pkg-install
SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
DATADIR= ${PREFIX}/share/font-${PORTNAME}
PORTDOCS= IPA_Font_License_Agreement_v1.0.txt \
Readme_IPAfont${PORTVERSION}.txt
LOCAL_FONTSDIR= share/fonts
X_FONTSDIR= lib/X11/fonts
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-extract:
cd ${WRKSRC} && for F in *.ttf; do ${MV} $${F} $${F%.ttf}.otf; done
@ -45,14 +47,14 @@ do-install:
${LN} -s -f \
${DATADIR}/ipa*.otf \
${PREFIX}/${X_FONTSDIR}/OTF/
${INSTALL_DATA} ${FILESDIR}/20-unhint-ipa.conf \
${FILESDIR}/62-fonts-ipa.conf \
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
${FILESDIR}/62-fonts-${PORTNAME}.conf \
${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-ipa.conf \
${PREFIX}/etc/fonts/conf.d/20-unhint-ipa.conf
${LN} -s -f ../conf.avail/62-fonts-ipa.conf \
${PREFIX}/etc/fonts/conf.d/62-fonts-ipa.conf
.if !defined(NOPORTDOCS)
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

View File

@ -1,4 +1,4 @@
Japanese TrueType fonts distributed by Infomation-technology Promotion
Agency (IPA) Japan.
WWW: http://ossipedia.ipa.go.jp/ipafont/index.html
WWW: http://ossipedia.ipa.go.jp/ipafont/index.html