freebsd-ports/textproc/hevea/Makefile
Pietro Cerutti 3f4be323f9 - Update to 2.06 (old distfile is unfetchable)
Changes (2 bugs fixes):
  - Some spaces dissapeared in toc's. FIX -> add braces around macro
    expansion in subst_expn.
  - Spurious '_' outside of math mode warnings when \label{..._...} occurs
    in section titles. FIX -> add \@getprint around \sec@id@attr in
    \@doaddtoc [latexcommon.hva] and \cuthere [html/hevea.hva].

Reported by:	John Marino <draco@marino.st> (ports/177655)
Approved by:	portmgr
2013-04-08 12:12:46 +00:00

41 lines
1.3 KiB
Makefile

# Created by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
# $FreeBSD$
PORTNAME= hevea
PORTVERSION= 2.06
CATEGORIES= textproc
MASTER_SITES= http://para.inria.fr/~maranget/hevea/distri/ \
ftp://ftp.inria.fr/INRIA/moscova/hevea/
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
${PORTNAME}-${PORTVERSION}-manual.pdf \
${PORTNAME}-${PORTVERSION}-manual.ps.gz \
${PORTNAME}-${PORTVERSION}-manual.tar.gz
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= gahr@FreeBSD.org
COMMENT= Convert LaTeX to HTML
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
PLIST_SUB= HEVEAVERSION=${PORTVERSION}
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/^PREFIX=/s|/usr/local|${PREFIX}|' \
${WRKSRC}/Makefile
post-install:
@${STRIP_CMD} ${PREFIX}/bin/hevea
@${STRIP_CMD} ${PREFIX}/bin/hacha
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${PREFIX}/share/doc/hevea
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-manual.pdf ${PREFIX}/share/doc/hevea
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-manual.ps.gz ${PREFIX}/share/doc/hevea
(cd ${PREFIX}/share/doc/hevea; ${TAR} xvfz ${DISTDIR}/${PORTNAME}-${PORTVERSION}-manual.tar.gz)
(cd ${PREFIX}/share/doc/hevea; ${GUNZIP_CMD} ${PORTNAME}-${PORTVERSION}-manual.ps.gz)
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/hevea
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>