diff options
Diffstat (limited to 'japanese/font-sazanami')
-rw-r--r-- | japanese/font-sazanami/Makefile | 9 | ||||
-rw-r--r-- | japanese/font-sazanami/files/pkg-install.in | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/japanese/font-sazanami/Makefile b/japanese/font-sazanami/Makefile index f20e71263545..7b962468edf1 100644 --- a/japanese/font-sazanami/Makefile +++ b/japanese/font-sazanami/Makefile @@ -2,7 +2,7 @@ PORTNAME= sazanami PORTVERSION= 20040629 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= japanese x11-fonts MASTER_SITES= SFJP/efont/10087 PKGNAMEPREFIX= ja-font- @@ -10,7 +10,8 @@ PKGNAMEPREFIX= ja-font- MAINTAINER= hrs@FreeBSD.org COMMENT= Sazanami Japanese TrueType fonts -USES= fonts tar:bzip2 +USES= fonts:fc tar:bzip2 +FONTNAME= TTF NO_BUILD= yes PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-install @@ -18,7 +19,6 @@ SUB_FILES= pkg-install DATADIR= ${PREFIX}/share/font-${PORTNAME} PORTDOCS= README doc -FONTNAME= TTF OPTIONS_DEFINE= DOCS do-install: @@ -36,7 +36,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: + +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${CP} -R ${PORTDOCS} ${STAGEDIR}${DOCSDIR} diff --git a/japanese/font-sazanami/files/pkg-install.in b/japanese/font-sazanami/files/pkg-install.in index cfc2a9f0ab0f..5d3a7c2b3be0 100644 --- a/japanese/font-sazanami/files/pkg-install.in +++ b/japanese/font-sazanami/files/pkg-install.in @@ -1,8 +1,6 @@ #!/bin/sh # $FreeBSD$ -FONTSDIR=%%FONTSDIR%%/ - catfontsdir () { while read _IN @@ -73,7 +71,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 @@ -81,7 +79,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 |