aboutsummaryrefslogtreecommitdiff
path: root/mail/svnmailer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/svnmailer/Makefile')
-rw-r--r--mail/svnmailer/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/svnmailer/Makefile b/mail/svnmailer/Makefile
index 99cbbd7e8941..0788bcf5b96c 100644
--- a/mail/svnmailer/Makefile
+++ b/mail/svnmailer/Makefile
@@ -21,21 +21,18 @@ PYDISTUTILS_PKGVERSION= ${DISTVERSION}
MAN1= svn-mailer.1
-.include <bsd.port.pre.mk>
+PORTDOCS= *
-pre-patch:
-.if ${PYTHON_REL} >= 250
EXTRA_PATCHES= ${FILESDIR}/py25-src-lib-svnmailer-notifier-_base.py
-.endif
-.if defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ! ${PORT_OPTIONS:MDOCS}
PYDISTUTILS_INSTALLARGS+= --no-install-docs
-.else
-PORTDOCS= *
.endif
post-patch:
@${REINPLACE_CMD} -e "1s|^.*|#!${PYTHON_CMD}|" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "1s|^.*|#!${PYTHON_CMD}|" ${WRKSRC}/src/svn-mailer
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>