Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2014 18:26:30 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356006 - head/mail/pyzor
Message-ID:  <201405311826.s4VIQUOv054046@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sat May 31 18:26:30 2014
New Revision: 356006
URL: http://svnweb.freebsd.org/changeset/ports/356006
QAT: https://qat.redports.org/buildarchive/r356006/

Log:
  Add a DOCS option to allow control of installing PORTDOCS. The
  autoplist stuff sure makes this difficult!

Modified:
  head/mail/pyzor/Makefile

Modified: head/mail/pyzor/Makefile
==============================================================================
--- head/mail/pyzor/Makefile	Sat May 31 18:15:34 2014	(r356005)
+++ head/mail/pyzor/Makefile	Sat May 31 18:26:30 2014	(r356006)
@@ -3,7 +3,7 @@
 
 PORTNAME=	pyzor
 PORTVERSION=	0.5.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	mail python
 MASTER_SITES=	SF
 
@@ -12,7 +12,7 @@ COMMENT=	Collaborative, networked system
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gdbm>=0:${PORTSDIR}/databases/py-gdbm
 
-USE_BZIP2=	yes
+USES=	tar:bzip2
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_AUTOPLIST=	yes
@@ -20,15 +20,25 @@ PYDISTUTILS_AUTOPLIST=	yes
 PLIST_FILES=	man/man1/pyzor.1.gz \
 		man/man1/pyzord.1.gz
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	${REINPLACE_CMD} -e '1s,^#!/usr/bin/python,#!/usr/bin/env -S python -Wignore::DeprecationWarning,' \
 	${WRKSRC}/scripts/pyzor ${WRKSRC}/scripts/pyzord
+.if ${PORT_OPTIONS:MDOCS}
 	${REINPLACE_CMD} -e 's|share/doc/pyzor|${DOCSDIR}|' ${WRKSRC}/setup.py
+.else
+	${REINPLACE_CMD} -e '/usage.html/d' ${WRKSRC}/setup.py
+.endif
 
 post-install:
-	${CHMOD} ${SHAREMODE} ${STAGEDIR}${DOCSDIR}/usage.html
 	${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/pyzor ${STAGEDIR}${PREFIX}/bin/pyzord
 	${INSTALL_MAN} ${WRKSRC}/docs/pyzor.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 	${INSTALL_MAN} ${WRKSRC}/docs/pyzord.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+	${CHMOD} ${SHAREMODE} ${STAGEDIR}${DOCSDIR}/usage.html
+.endif
 
 .include <bsd.port.mk>



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