freebsd-ports/textproc/hevea/Makefile
Danilo Egea Gondolfo cd41a9a54d - Update to 2.31
2018-01-01 00:13:11 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
# $FreeBSD$
PORTNAME= hevea
PORTVERSION= 2.31
CATEGORIES= textproc
MASTER_SITES= http://para.inria.fr/~maranget/hevea/distri/ \
ftp://ftp.inria.fr/INRIA/moscova/hevea/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Convert LaTeX to HTML
BUILD_DEPENDS= ocamlc:lang/ocaml
OPTIONS_DEFINE= DOCS
PLIST_SUB= HEVEAVERSION=${PORTVERSION}
PORTDOCS= *
DOCS_DISTFILES+= ${PORTNAME}-${PORTVERSION}-manual.pdf \
${PORTNAME}-${PORTVERSION}-manual.tar.gz
post-patch:
@${REINPLACE_CMD} -e '/^PREFIX=/s|/usr/local|${PREFIX}|' \
${WRKSRC}/Makefile
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/esponja
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bibhva
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hevea
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hacha
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/hevea
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-manual.pdf ${STAGEDIR}${PREFIX}/share/doc/hevea
(cd ${STAGEDIR}${PREFIX}/share/doc/hevea; ${TAR} xvfz ${DISTDIR}/${PORTNAME}-${PORTVERSION}-manual.tar.gz)
.include <bsd.port.mk>