aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-takao
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2015-09-13 23:36:45 +0000
committerHiroki Sato <hrs@FreeBSD.org>2015-09-13 23:36:45 +0000
commit0b3da8c79c80795126e216954b18291047315961 (patch)
treecb890cbf02753a51263acc8e2df899b6dbcf79be /japanese/font-takao
parentc716728e4a1cae2ad6028534945293e137836147 (diff)
downloadports-0b3da8c79c80795126e216954b18291047315961.tar.gz
ports-0b3da8c79c80795126e216954b18291047315961.zip
Fix fonts.dir by using fonts:fc and style consistency.
Notes
Notes: svn path=/head/; revision=396873
Diffstat (limited to 'japanese/font-takao')
-rw-r--r--japanese/font-takao/Makefile10
-rw-r--r--japanese/font-takao/files/pkg-install.in6
2 files changed, 7 insertions, 9 deletions
diff --git a/japanese/font-takao/Makefile b/japanese/font-takao/Makefile
index 7b41d540028d..8bcb8968d9bf 100644
--- a/japanese/font-takao/Makefile
+++ b/japanese/font-takao/Makefile
@@ -2,7 +2,7 @@
PORTNAME= takao
PORTVERSION= 003.02.01
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://launchpadlibrarian.net/40218948/
PKGNAMEPREFIX= ja-font-
@@ -11,7 +11,8 @@ DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Improved IPA Japanese fonts
-USES= fonts
+USES= fonts:fc
+FONTNAME= OTF
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
@@ -22,11 +23,8 @@ PORTDOCS= IPA_Font_License_Agreement_v1.0.txt \
README.ja \
ChangeLog
-FONTNAME= OTF
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-extract:
cd ${WRKSRC} && for F in *.ttf; do ${MV} $${F} $${F%.ttf}.otf; done
@@ -45,6 +43,8 @@ do-install:
${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
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
diff --git a/japanese/font-takao/files/pkg-install.in b/japanese/font-takao/files/pkg-install.in
index bd7c7c5d592b..e0136dd8b480 100644
--- a/japanese/font-takao/files/pkg-install.in
+++ b/japanese/font-takao/files/pkg-install.in
@@ -1,8 +1,6 @@
#!/bin/sh
# $FreeBSD$
-FONTSDIR=%%FONTSDIR%%
-
catfontsdir ()
{
while read _IN
@@ -76,7 +74,7 @@ nfonts ()
case "$2" in
POST-INSTALL)
- cd ${FONTSDIR}
+ cd %%FONTSDIR%%
touch fonts.dir
(catfontsdir < fonts.dir; addentries) > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
@@ -84,7 +82,7 @@ POST-INSTALL)
rm -f fonts.dir.tmp
;;
POST-DEINSTALL)
- cd ${FONTSDIR}
+ cd %%FONTSDIR%%
catfontsdir < fonts.dir > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir