Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2014 18:11:46 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374961 - head/textproc/hevea
Message-ID:  <201412191811.sBJIBk80080077@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Dec 19 18:11:45 2014
New Revision: 374961
URL: https://svnweb.freebsd.org/changeset/ports/374961
QAT: https://qat.redports.org/buildarchive/r374961/

Log:
  Unbreak with and without DOCS

Modified:
  head/textproc/hevea/Makefile

Modified: head/textproc/hevea/Makefile
==============================================================================
--- head/textproc/hevea/Makefile	Fri Dec 19 18:08:40 2014	(r374960)
+++ head/textproc/hevea/Makefile	Fri Dec 19 18:11:45 2014	(r374961)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412191811.sBJIBk80080077>