- use DOCSDIR
- fix plist for -DNOPORTDOCS - bump PORTREVISION - pet portlint Approved by: maintainer timeout to QAT BotMail Prompted by: QAT QA run
This commit is contained in:
parent
c6c11040c3
commit
bf45b7890f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222988
@ -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>
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user