diff options
author | hrs <hrs@FreeBSD.org> | 2013-05-01 07:55:58 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2013-05-01 07:55:58 +0800 |
commit | fbc1294c66a6302047b64f1b239b12da95f801aa (patch) | |
tree | 61084997fb15ccad600240c71257942a57332a16 /japanese | |
parent | 28550130a8ddb8b7af73d82a6dd6358710035fee (diff) | |
download | freebsd-ports-gnome-fbc1294c66a6302047b64f1b239b12da95f801aa.tar.gz freebsd-ports-gnome-fbc1294c66a6302047b64f1b239b12da95f801aa.tar.zst freebsd-ports-gnome-fbc1294c66a6302047b64f1b239b12da95f801aa.zip |
- Use OPTIONS_DEFINE.
- Fix DATADIR.
- Style clean-ups.
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/font-ipaex/Makefile | 20 | ||||
-rw-r--r-- | japanese/font-ipaex/pkg-descr | 2 |
2 files changed, 14 insertions, 8 deletions
diff --git a/japanese/font-ipaex/Makefile b/japanese/font-ipaex/Makefile index e95f89a76ba0..643c6a6b4156 100644 --- a/japanese/font-ipaex/Makefile +++ b/japanese/font-ipaex/Makefile @@ -2,6 +2,7 @@ PORTNAME= ipaex PORTVERSION= 00201 +PORTREVISION= 1 CATEGORIES= japanese x11-fonts MASTER_SITES= http://info.openlab.ipa.go.jp/ipafont/fontdata/7bf84182a04a9632268dbcb03f100d05/ PKGNAMEPREFIX= ja-font- @@ -20,12 +21,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_IPAexfont${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 @@ -40,14 +46,14 @@ do-install: ${LN} -s -f \ ${DATADIR}/ipaex*.otf \ ${PREFIX}/${X_FONTSDIR}/OTF/ - ${INSTALL_DATA} ${FILESDIR}/20-unhint-ipaex.conf \ - ${FILESDIR}/62-fonts-ipaex.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-ipaex.conf \ - ${PREFIX}/etc/fonts/conf.d/20-unhint-ipaex.conf - ${LN} -s -f ../conf.avail/62-fonts-ipaex.conf \ - ${PREFIX}/etc/fonts/conf.d/62-fonts-ipaex.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 diff --git a/japanese/font-ipaex/pkg-descr b/japanese/font-ipaex/pkg-descr index 0298ce8ca80a..b7c7baebbb1b 100644 --- a/japanese/font-ipaex/pkg-descr +++ b/japanese/font-ipaex/pkg-descr @@ -8,4 +8,4 @@ printing font tradition, namely, Japanese characters (Kanji, Kana and punctuation marks) are full width mono-space pitch, and Western characters are proportional pitch. -WWW: http://ossipedia.ipa.go.jp/ipafont/index.html +WWW: http://ossipedia.ipa.go.jp/ipafont/index.html |