2015-09-25 23:48:09 +02:00
|
|
|
# Created by: Yoshiro MIHIRA <sanpei@sanpei.org>
|
|
|
|
|
|
|
|
PORTNAME= kanji
|
|
|
|
PORTVERSION= 1.0
|
2019-12-30 05:40:55 +01:00
|
|
|
PORTREVISION= 3
|
2015-09-25 23:48:09 +02:00
|
|
|
CATEGORIES= japanese x11-fonts
|
2018-03-25 16:42:13 +02:00
|
|
|
MASTER_SITES= PORTS_JP/${DISTNAME}
|
2015-09-25 23:48:09 +02:00
|
|
|
PKGNAMEPREFIX= ja-font-
|
|
|
|
PKGNAMESUFFIX?= 18
|
|
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
DISTFILES?= 573.z 574.z 575.z 576.z 577.z 578.z 579.z 580.z 581.z
|
|
|
|
DIST_SUBDIR= ${DISTNAME}
|
|
|
|
|
2018-03-25 16:42:13 +02:00
|
|
|
MAINTAINER= CQG00620@nifty.ne.jp
|
2015-09-25 23:48:09 +02:00
|
|
|
COMMENT= ${PKGNAMESUFFIX}-dot Kanji font
|
|
|
|
|
2016-04-01 16:08:37 +02:00
|
|
|
BUILD_DEPENDS= mkbold:x11-fonts/mkbold-mkitalic \
|
|
|
|
bdftopcf:x11-fonts/bdftopcf
|
2015-09-25 23:48:09 +02:00
|
|
|
|
|
|
|
USES= fonts
|
2019-12-30 05:40:55 +01:00
|
|
|
FONTNAME= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
FONTPATHSPEC= ${FONTNAME}:unscaled:pri=60
|
2015-09-25 23:48:09 +02:00
|
|
|
NO_ARCH= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
EXTRACT_CMD= ${GZCAT}
|
|
|
|
EXTRACT_BEFORE_ARGS=
|
|
|
|
EXTRACT_AFTER_ARGS= | ${SED} '/bin\/sh/,/exit 0/!d' \
|
2015-11-05 13:36:25 +01:00
|
|
|
| (cd ${WRKSRC} && ${SH})
|
2015-09-25 23:48:09 +02:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install
|
2015-11-05 13:36:25 +01:00
|
|
|
MAKEFILE= ${WRKDIR}/Makefile
|
2019-12-30 05:40:55 +01:00
|
|
|
SUB_FILES= Makefile pkg-install
|
2018-03-25 16:42:13 +02:00
|
|
|
SUB_LIST= FONTSALIAS="${FONTSDIR}/fonts.alias.${PKGNAMESUFFIX}" \
|
2015-09-25 23:48:09 +02:00
|
|
|
SRCS="${SRCS}"
|
|
|
|
PORTDOCS= README.${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
SRCS?= kanji18.bdf kanji16.bdf
|
|
|
|
README_FILE?= 573.z
|
|
|
|
RESIZESED_FILE?=18to16.sed
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC} && ${CAT} ${DISTNAME}.?? | uudecode
|
2015-11-05 13:36:25 +01:00
|
|
|
${GUNZIP_CMD} ${WRKSRC}/*.Z
|
2015-09-25 23:48:09 +02:00
|
|
|
${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/${README_FILE} \
|
|
|
|
| ${SED} '/bin\/sh/,/exit 0/d' \
|
|
|
|
> ${WRKSRC}/README.${DISTNAME}
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${SED} -f ${RESIZESED_FILE} < ${PORTNAME}${PKGNAMESUFFIX}.bdf \
|
|
|
|
> ${PORTNAME}${RESIZESED_FILE:R:C/^[0-9][0-9]to//}.bdf
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/fonts.alias.${PKGNAMESUFFIX} \
|
2018-03-25 16:42:13 +02:00
|
|
|
${STAGEDIR}${FONTSDIR}/fonts.alias.${PKGNAMESUFFIX}
|
2015-09-25 23:48:09 +02:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} README.${DISTNAME} ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|