1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/textproc/denature/Makefile
2021-04-06 16:31:07 +02:00

40 lines
934 B
Makefile

# Created by: ijliao
PORTNAME= denature
PORTVERSION= 0.6.5
PORTREVISION= 2
CATEGORIES= textproc java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= HTML to PDF converter
LICENSE= GPLv2
RUN_DEPENDS= p5-HTML-Parser>=0:www/p5-HTML-Parser \
p5-HTML-Tagset>=0:www/p5-HTML-Tagset \
p5-HTML-Tree>=0:www/p5-HTML-Tree \
p5-CSS-Tiny>=0:textproc/p5-CSS-Tiny \
fop:textproc/fop
USES= perl5
USE_JAVA= yes
POD2MAN?= pod2man
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/denature man/man1/denature.1.gz
post-patch:
@${REINPLACE_CMD} -i '' -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|%%JAVA_HOME%%|${JAVA_HOME}|' \
${WRKSRC}/denature
do-build:
cd ${WRKSRC} && ${POD2MAN} denature > denature.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/denature ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/denature.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>