diff options
author | antoine <antoine@FreeBSD.org> | 2014-12-20 02:11:45 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-12-20 02:11:45 +0800 |
commit | c3ac28b4d684085a5f00ebc27c15391667dab3d5 (patch) | |
tree | 34f2e22c14c05745b88380ee02599904f6e0fa03 /textproc | |
parent | 9571a602138df49ef9097097084a1c104c6a1603 (diff) | |
download | freebsd-ports-gnome-c3ac28b4d684085a5f00ebc27c15391667dab3d5.tar.gz freebsd-ports-gnome-c3ac28b4d684085a5f00ebc27c15391667dab3d5.tar.zst freebsd-ports-gnome-c3ac28b4d684085a5f00ebc27c15391667dab3d5.zip |
Unbreak with and without DOCS
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/hevea/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/textproc/hevea/Makefile b/textproc/hevea/Makefile index 692a00fcb8b4..0389526649db 100644 --- a/textproc/hevea/Makefile +++ b/textproc/hevea/Makefile @@ -6,7 +6,8 @@ PORTVERSION= 2.20 CATEGORIES= textproc MASTER_SITES= http://para.inria.fr/~maranget/hevea/distri/ \ ftp://ftp.inria.fr/INRIA/moscova/hevea/ -EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= danilo@FreeBSD.org COMMENT= Convert LaTeX to HTML @@ -21,6 +22,8 @@ PORTDOCS= * DOCS_DISTFILES+= ${PORTNAME}-${PORTVERSION}-manual.pdf \ ${PORTNAME}-${PORTVERSION}-manual.tar.gz +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e '/^PREFIX=/s|/usr/local|${PREFIX}|' \ ${WRKSRC}/Makefile @@ -30,8 +33,10 @@ post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bibhva @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hevea @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hacha +.if ${PORT_OPTIONS:MDOCS} @${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) +.endif .include <bsd.port.mk> |