aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-vlgothic
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-vlgothic
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-vlgothic')
-rw-r--r--japanese/font-vlgothic/Makefile8
-rw-r--r--japanese/font-vlgothic/files/pkg-install.in6
2 files changed, 7 insertions, 7 deletions
diff --git a/japanese/font-vlgothic/Makefile b/japanese/font-vlgothic/Makefile
index 32b027d21ab0..106e214dff2a 100644
--- a/japanese/font-vlgothic/Makefile
+++ b/japanese/font-vlgothic/Makefile
@@ -3,7 +3,7 @@
PORTNAME= vlgothic
PORTVERSION= 20141206
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= japanese x11-fonts
MASTER_SITES= SFJP/vlgothic/62375
PKGNAMEPREFIX= ja-font-
@@ -12,7 +12,8 @@ DISTNAME= VLGothic-${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= VLGothic Japanese TrueType fonts
-USES= fonts tar:xz
+USES= fonts:fc tar:xz
+FONTNAME= TTF
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
@@ -22,7 +23,6 @@ PORTDOCS= Changelog LICENSE LICENSE.en LICENSE_E.mplus LICENSE_J.mplus \
README README.sazanami README_J.mplus
WRKSRC= ${WRKDIR}/VLGothic
-FONTNAME= TTF
OPTIONS_DEFINE= DOCS
do-install:
@@ -40,6 +40,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-vlgothic/files/pkg-install.in b/japanese/font-vlgothic/files/pkg-install.in
index e7903675a690..ac9b43e5532a 100644
--- a/japanese/font-vlgothic/files/pkg-install.in
+++ b/japanese/font-vlgothic/files/pkg-install.in
@@ -1,8 +1,6 @@
#!/bin/sh
# $FreeBSD$
-FONTSDIR=%%FONTSDIR%%/TTF
-
catfontsdir ()
{
while read _IN
@@ -72,7 +70,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
@@ -80,7 +78,7 @@ POST-INSTALL)
rm -f fonts.dir.tmp
;;
DEINSTALL)
- cd ${FONTSDIR}
+ cd %%FONTSDIR%%
catfontsdir < fonts.dir > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir