aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-mplus-ipa
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-mplus-ipa
parentc716728e4a1cae2ad6028534945293e137836147 (diff)
downloadports-0b3da8c79c80795126e216954b18291047315961.tar.gz
ports-0b3da8c79c80795126e216954b18291047315961.zip
Notes
Diffstat (limited to 'japanese/font-mplus-ipa')
-rw-r--r--japanese/font-mplus-ipa/Makefile8
-rw-r--r--japanese/font-mplus-ipa/files/pkg-install.in6
2 files changed, 7 insertions, 7 deletions
diff --git a/japanese/font-mplus-ipa/Makefile b/japanese/font-mplus-ipa/Makefile
index 6b4b9e927cb8..36ca5fc9c75f 100644
--- a/japanese/font-mplus-ipa/Makefile
+++ b/japanese/font-mplus-ipa/Makefile
@@ -2,7 +2,7 @@
PORTNAME= mplus-ipa
PORTVERSION= 1.0.20060520.p1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= japanese x11-fonts
MASTER_SITES= LOCAL/hrs
PKGNAMEPREFIX= ja-font-
@@ -13,7 +13,8 @@ COMMENT= Mixed Japanese font with IPA, M-plus outline, and Bitstream Vera
CONFLICTS= ja-ipa-ttfonts-[0-9]*
-USES= fonts tar:bzip2
+USES= fonts:fc tar:bzip2
+FONTNAME= TTF
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
@@ -22,7 +23,6 @@ DATADIR= ${PREFIX}/share/font-${PORTNAME}
PORTDOCS= Bitstream-COPYRIGHT.txt Mplus-LICENSE_E.txt \
Mplus-LICENSE_J.txt README.txt
-FONTNAME= TTF
OPTIONS_DEFINE= DOCS
do-install:
@@ -41,6 +41,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-mplus-ipa/files/pkg-install.in b/japanese/font-mplus-ipa/files/pkg-install.in
index 55787236c51a..f3e90598333f 100644
--- a/japanese/font-mplus-ipa/files/pkg-install.in
+++ b/japanese/font-mplus-ipa/files/pkg-install.in
@@ -1,8 +1,6 @@
#!/bin/sh
# $FreeBSD$
-FONTSDIR=%%FONTSDIR%%/
-
catfontsdir ()
{
while read _IN
@@ -74,7 +72,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
@@ -82,7 +80,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