diff options
author | bapt <bapt@FreeBSD.org> | 2015-04-06 19:40:48 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-04-06 19:40:48 +0800 |
commit | 1b4504c4f6f92283aab2797ea23d54cf332e160b (patch) | |
tree | 616abec8ba17704ee694872d0dea8126dab9452a /japanese/font-ricty | |
parent | 016a94880f4bcb6d087dcac68ce66df247a656b2 (diff) | |
download | freebsd-ports-gnome-1b4504c4f6f92283aab2797ea23d54cf332e160b.tar.gz freebsd-ports-gnome-1b4504c4f6f92283aab2797ea23d54cf332e160b.tar.zst freebsd-ports-gnome-1b4504c4f6f92283aab2797ea23d54cf332e160b.zip |
Fix post install script
PR: 199113
Reported by: hiroto.kagotani@gmail.com
Diffstat (limited to 'japanese/font-ricty')
-rw-r--r-- | japanese/font-ricty/Makefile | 2 | ||||
-rw-r--r-- | japanese/font-ricty/files/pkg-install.in | 7 |
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 |