aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-04-06 11:40:48 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-04-06 11:40:48 +0000
commita8c33abc4253f46ffaf40da457994295719a4657 (patch)
tree616abec8ba17704ee694872d0dea8126dab9452a /japanese
parentcc46d9987f2a004d03708abe134662bee725fa72 (diff)
downloadports-a8c33abc4253f46ffaf40da457994295719a4657.tar.gz
ports-a8c33abc4253f46ffaf40da457994295719a4657.zip
Fix post install script
PR: 199113 Reported by: hiroto.kagotani@gmail.com
Notes
Notes: svn path=/head/; revision=383417
Diffstat (limited to 'japanese')
-rw-r--r--japanese/font-ricty/Makefile2
-rw-r--r--japanese/font-ricty/files/pkg-install.in7
2 files changed, 3 insertions, 6 deletions
diff --git a/japanese/font-ricty/Makefile b/japanese/font-ricty/Makefile
index 71b2ae898d2d..c47a110c32c7 100644
--- a/japanese/font-ricty/Makefile
+++ b/japanese/font-ricty/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ricty
PORTVERSION= 3.2.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= japanese x11-fonts
PKGNAMEPREFIX= ja-font-
diff --git a/japanese/font-ricty/files/pkg-install.in b/japanese/font-ricty/files/pkg-install.in
index 69d6bb12c68b..36285e2cdac1 100644
--- a/japanese/font-ricty/files/pkg-install.in
+++ b/japanese/font-ricty/files/pkg-install.in
@@ -1,7 +1,5 @@
#!/bin/sh
-X_FONTSDIR=%%X_FONTSDIR%%/TTF
-
catfontsdir ()
{
while read _IN
@@ -86,7 +84,7 @@ nfonts ()
case "$2" in
POST-INSTALL)
- cd ${X_FONTSDIR}
+ cd ${FONTSDIR}
touch fonts.dir
(sed 1d fonts.dir | catfontsdir; addentries) > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
@@ -94,7 +92,7 @@ POST-INSTALL)
rm -f fonts.dir.tmp
;;
POST-DEINSTALL)
- cd ${X_FONTSDIR}
+ cd ${FONTSDIR}
sed 1d fonts.dir | catfontsdir > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
@@ -102,6 +100,5 @@ POST-DEINSTALL)
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
- rmdir ${X_FONTSDIR} > /dev/null 2>&1 || true
;;
esac