diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2015-09-13 23:36:45 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2015-09-13 23:36:45 +0000 |
commit | 0b3da8c79c80795126e216954b18291047315961 (patch) | |
tree | cb890cbf02753a51263acc8e2df899b6dbcf79be /japanese/font-motoya-al | |
parent | c716728e4a1cae2ad6028534945293e137836147 (diff) | |
download | ports-0b3da8c79c80795126e216954b18291047315961.tar.gz ports-0b3da8c79c80795126e216954b18291047315961.zip |
Fix fonts.dir by using fonts:fc and style consistency.
Notes
Notes:
svn path=/head/; revision=396873
Diffstat (limited to 'japanese/font-motoya-al')
-rw-r--r-- | japanese/font-motoya-al/Makefile | 13 | ||||
-rw-r--r-- | japanese/font-motoya-al/files/pkg-install.in | 6 |
2 files changed, 10 insertions, 9 deletions
diff --git a/japanese/font-motoya-al/Makefile b/japanese/font-motoya-al/Makefile index 32d9a6cdf929..b589777ad962 100644 --- a/japanese/font-motoya-al/Makefile +++ b/japanese/font-motoya-al/Makefile @@ -1,23 +1,24 @@ # $FreeBSD$ -PORTNAME= font-motoya-al +PORTNAME= motoya-al PORTVERSION= 0.0.20100921 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= japanese x11-fonts MASTER_SITES= LOCAL/hrs -DISTNAME= motoya-al-fonts-${PORTVERSION:S,^0.0.,,} +PKGNAMEPREFIX= ja-font- +DISTNAME= ${PORTNAME}-fonts-${PORTVERSION:S,^0.0.,,} MAINTAINER= hrs@FreeBSD.org COMMENT= Free Japanese fonts by MOTOYA -USES= fonts tar:bzip2 +USES= fonts:fc tar:bzip2 +FONTNAME= TTF NO_BUILD= yes PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-install SUB_FILES= pkg-install PORTDOCS= newsrelease20100921.pdf -FONTNAME= TTF OPTIONS_DEFINE= DOCS do-install: @@ -35,6 +36,8 @@ do-install: ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-motoya-al.conf ${LN} -s -f ../conf.avail/62-fonts-motoya-al.conf \ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-motoya-al.conf + +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} diff --git a/japanese/font-motoya-al/files/pkg-install.in b/japanese/font-motoya-al/files/pkg-install.in index a4e47a941d82..139f89f8583e 100644 --- a/japanese/font-motoya-al/files/pkg-install.in +++ b/japanese/font-motoya-al/files/pkg-install.in @@ -1,8 +1,6 @@ #!/bin/sh # $FreeBSD$ -FONTSDIR=%%FONTSDIR%% - catfontsdir () { while read _IN @@ -76,7 +74,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 @@ -84,7 +82,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 |