1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Fix fonts.dir. It was totally broken since r381876.

This commit is contained in:
Hiroki Sato 2015-09-12 23:13:05 +00:00
parent 673ac30b79
commit 5a316c4cdd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396784
2 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= ipa
PORTVERSION= 00303
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://info.openlab.ipa.go.jp/ipafont/fontdata/
PKGNAMEPREFIX= ja-font-

View File

@ -1,8 +1,6 @@
#!/bin/sh
# $FreeBSD$
FONTSDIR=%%FONTSDIR%%/OTF
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
;;
POST-DEINSTALL)
cd ${FONTSDIR}
cd %%FONTSDIR%%
catfontsdir < fonts.dir > fonts.dir.tmp
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir