PORTNAME=	prn
PORTVERSION=	1.0
PORTREVISION=	3
CATEGORIES=	japanese print
MASTER_SITES=	PORTS_JP
DISTNAME=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Yet another converter from text file to postscript (with Japanese support)

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	kcc:japanese/kcc

do-install:
.for i in cmt prn psconv
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
.endfor
	${LN} -sf prn ${STAGEDIR}${PREFIX}/bin/cprn
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} cmtdefs ${STAGEDIR}${DATADIR})
.for i in cmt cprn prn psconv
	(cd ${WRKSRC} && ${INSTALL_MAN} ${i}.jman \
		${STAGEDIR}${PREFIX}/share/man/man1/${i}.1)
.endfor
	(cd ${WRKSRC} && ${INSTALL_MAN} cmtdefs.jman \
		${STAGEDIR}${PREFIX}/share/man/man5/cmtdefs.5)

.include <bsd.port.mk>
