aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2015-09-13 07:24:15 +0800
committerhrs <hrs@FreeBSD.org>2015-09-13 07:24:15 +0800
commit01f9dbd7aad2958be54b6dca2e2c92b50884459d (patch)
tree43f4ec0f680dbbb14b6620e8a1fa7eb0f7c714fe /japanese
parent310b80cf0de223fd85d9c911d8ed3c65dc4e2662 (diff)
downloadfreebsd-ports-gnome-01f9dbd7aad2958be54b6dca2e2c92b50884459d.tar.gz
freebsd-ports-gnome-01f9dbd7aad2958be54b6dca2e2c92b50884459d.tar.zst
freebsd-ports-gnome-01f9dbd7aad2958be54b6dca2e2c92b50884459d.zip
- Use post-install-DOCS-on.
- Use %%FONTSDIR%% directly.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/font-kochi/Makefile2
-rw-r--r--japanese/font-kochi/files/pkg-install.in6
2 files changed, 4 insertions, 4 deletions
diff --git a/japanese/font-kochi/Makefile b/japanese/font-kochi/Makefile
index 2a30fb624394..9cb66f31532c 100644
--- a/japanese/font-kochi/Makefile
+++ b/japanese/font-kochi/Makefile
@@ -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} && ${CP} -R ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
diff --git a/japanese/font-kochi/files/pkg-install.in b/japanese/font-kochi/files/pkg-install.in
index 75d5e82733a5..c4d37ceb0aff 100644
--- a/japanese/font-kochi/files/pkg-install.in
+++ b/japanese/font-kochi/files/pkg-install.in
@@ -1,8 +1,6 @@
#!/bin/sh
# $FreeBSD$
-FONTSDIR=%%FONTSDIR%%
-
catfontsdir ()
{
while read _IN
@@ -77,7 +75,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
@@ -85,7 +83,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