diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2009-05-31 13:03:28 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2009-05-31 13:03:28 +0000 |
commit | 1c3480236ab5fa08f0739a4dccb10fbc7b9b1409 (patch) | |
tree | b9af23ea2f872f2eb4367b00367e730f2661889f /japanese/font-shinonome | |
parent | b6e9d40d287a971eaec4e4b8857cb6d466abd4f7 (diff) |
Notes
Diffstat (limited to 'japanese/font-shinonome')
-rw-r--r-- | japanese/font-shinonome/Makefile | 7 | ||||
-rw-r--r-- | japanese/font-shinonome/files/pkg-install.in | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/japanese/font-shinonome/Makefile b/japanese/font-shinonome/Makefile index 284d2a10020d..01fc3864a3d5 100644 --- a/japanese/font-shinonome/Makefile +++ b/japanese/font-shinonome/Makefile @@ -16,7 +16,8 @@ MAINTAINER= hrs@FreeBSD.org COMMENT= Shinonome Japanese fonts, 12/14/16 dots BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf -RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir +RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ + fc-cache:${PORTSDIR}/x11-fonts/fontconfig WRKSRC= ${WRKDIR}/${PORTNAME:C/^font-//}-${PORTVERSION:C/.p.*$//} USE_BZIP2= yes @@ -25,8 +26,8 @@ PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \ SUB_FILES= pkg-install SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR} \ FONTSALIAS=${DATADIR}/fonts.alias -PKGINSTALL= pkg-install -PKGDEINSTALL= pkg-install +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-install PORTDOCS= AUTHORS BUGS ChangeLog ChangeLog.0 DESIGN.12 DESIGN.14 \ DESIGN.16 DESIGN.18 INSTALL README THANKS TODO LICENSE diff --git a/japanese/font-shinonome/files/pkg-install.in b/japanese/font-shinonome/files/pkg-install.in index fe75f621c96e..df4a97d6f177 100644 --- a/japanese/font-shinonome/files/pkg-install.in +++ b/japanese/font-shinonome/files/pkg-install.in @@ -10,18 +10,20 @@ POST-INSTALL) %%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc touch fonts.alias grep -v -- "-shinonome-" fonts.alias > fonts.alias.tmp - cat fonts.alias.tmp %%FONTSALIAS%% > fonts.alias + (cat fonts.alias.tmp; grep -v "^!!" %%FONTSALIAS%%) > fonts.alias rm -f fonts.alias.tmp ;; -DEINSTALL) +POST-DEINSTALL) %%LOCALBASE%%/bin/fc-cache -f -v ${X_FONTSDIR}/misc rm -f ${X_FONTSDIR}/misc/fonts.cache-1 cd ${X_FONTSDIR}/misc + %%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc if [ -r ${X_FONTSDIR}/misc/fonts.dir -a `/usr/bin/wc -l < ${X_FONTSDIR}/misc/fonts.dir` = 1 ]; then rm -f ${X_FONTSDIR}/misc/fonts.dir fi + touch fonts.alias grep -v -- "-shinonome-" fonts.alias > fonts.alias.tmp if [ -s fonts.alias.tmp ]; then |