diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-11-17 21:24:57 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-11-17 21:24:57 +0000 |
commit | bf45b7890ff4f8a960588ceb7ca698e7ff6e4d65 (patch) | |
tree | aaf1762c47d824c2cb329ae9563c46f65dc14d43 /japanese/k12 | |
parent | c6c11040c3f0c77e29131746646ff509fab55121 (diff) | |
download | ports-bf45b7890ff4f8a960588ceb7ca698e7ff6e4d65.tar.gz ports-bf45b7890ff4f8a960588ceb7ca698e7ff6e4d65.zip |
Notes
Diffstat (limited to 'japanese/k12')
-rw-r--r-- | japanese/k12/Makefile | 13 | ||||
-rw-r--r-- | japanese/k12/pkg-plist | 12 |
2 files changed, 13 insertions, 12 deletions
diff --git a/japanese/k12/Makefile b/japanese/k12/Makefile index 2aa1f5bea504..8db5878bde99 100644 --- a/japanese/k12/Makefile +++ b/japanese/k12/Makefile @@ -7,13 +7,14 @@ PORTNAME= kaname12 PORTVERSION= 1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= japanese x11-fonts MASTER_SITES= ${MASTER_SITE_PORTS_JP} \ http://www.din.or.jp/~storm/fonts/ DISTNAME= kaname_k12_bdf DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ knm_new_linux.tar.gz +EXTRACT_ONLY= knm_new_linux.tar.gz MAINTAINER= mita@jp.FreeBSD.org COMMENT= X11 12-dot kanji font @@ -25,11 +26,11 @@ RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ .include <bsd.port.pre.mk> WRKSRC= ${WRKDIR}/fonts -EXTRACT_ONLY= knm_new_linux.tar.gz FONTSDIR= lib/X11/fonts/local MAKE_ENV= FONTSDIR=${FONTSDIR} PLIST_SUB= FONTSDIR=${FONTSDIR} +DOCSDIR= ${PREFIX}/share/doc/k12 post-extract: @${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} @@ -41,10 +42,10 @@ pre-install: post-install: @(cd ${PREFIX}/${FONTSDIR} ; mkfontdir) .if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/k12 - @${INSTALL_DATA} ${WRKSRC}/readme ${PREFIX}/share/doc/k12 - @${INSTALL_DATA} ${WRKSRC}/readme.kaname_bdf ${PREFIX}/share/doc/k12 - @${INSTALL_DATA} ${WRKSRC}/doc.orig/* ${PREFIX}/share/doc/k12 + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/readme.kaname_bdf ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc.orig/* ${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/japanese/k12/pkg-plist b/japanese/k12/pkg-plist index 91b887128e26..476c4342d286 100644 --- a/japanese/k12/pkg-plist +++ b/japanese/k12/pkg-plist @@ -4,13 +4,13 @@ %%FONTSDIR%%/knmhn12x.pcf.gz %%FONTSDIR%%/knmzn12x.pcf.gz %%FONTSDIR%%/knmzn12xb.pcf.gz -share/doc/k12/gijutsu-siryou.doc -share/doc/k12/kaname.doc -share/doc/k12/readme -share/doc/k12/readme.kaname_bdf -share/doc/k12/readme.knm +%%PORTDOCS%%%%DOCSDIR%%/gijutsu-siryou.doc +%%PORTDOCS%%%%DOCSDIR%%/kaname.doc +%%PORTDOCS%%%%DOCSDIR%%/readme +%%PORTDOCS%%%%DOCSDIR%%/readme.kaname_bdf +%%PORTDOCS%%%%DOCSDIR%%/readme.knm @exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir @unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir @unexec if [ `wc -c %D/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/%%FONTSDIR%%/fonts.dir; fi @unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi -@dirrm share/doc/k12 +%%PORTDOCS%%@dirrm %%DOCSDIR%% |