1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Switch to USES=tar:tgz

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-12-08 19:19:36 +00:00
parent 61db027b0d
commit b5c1e63d80
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403339

View File

@ -7,11 +7,11 @@ PORTREVISION= 1
CATEGORIES= japanese textproc
MASTER_SITES= ftp://ftp.abk.nu/pub/redist/xtr/
DISTNAME= ${PORTNAME}1.50e-0.2
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Japanese text formatting processor
USES= tar:tgz
USE_CSTD= c89
USE_GCC= yes
@ -21,8 +21,6 @@ NO_CDROM= Need to obtain permission for commercial redistribution
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-extract:
@${ECHO_MSG} "===> Converting Kanji code for ${DISTNAME}"
@(cd ${WRKSRC} && $(SH) EUCsetup )
@ -30,13 +28,13 @@ post-extract:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/xtr ${STAGEDIR}${PREFIX}/bin/xtr
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/sample/*.xtr ${STAGEDIR}${PREFIX}/share/${PORTNAME}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in README doc/xtr.doc
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
${MKDIR} ${STAGEDIR}${PREFIX}/share/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/sample/*.xtr ${STAGEDIR}${PREFIX}/share/${PORTNAME}
.include <bsd.port.mk>