svn commit: r304228 - head/mail/pyzor
Chris Rees
crees at FreeBSD.org
Thu Sep 13 19:33:39 UTC 2012
Author: crees
Date: Thu Sep 13 19:33:38 2012
New Revision: 304228
URL: http://svn.freebsd.org/changeset/ports/304228
Log:
Small changes to ignore deprecation Python warnings
PR: ports/171607
Submitted by: Thomas Vogt <thomas at bsdunix.ch> (based on)
Approved by: maintainer (Corey Halpin <chalpin at cs.wisc.edu>)
While here, anchor and optimise regex
Modified:
head/mail/pyzor/Makefile
Modified: head/mail/pyzor/Makefile
==============================================================================
--- head/mail/pyzor/Makefile Thu Sep 13 18:16:05 2012 (r304227)
+++ head/mail/pyzor/Makefile Thu Sep 13 19:33:38 2012 (r304228)
@@ -8,7 +8,7 @@
PORTNAME= pyzor
PORTVERSION= 0.5.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail python
MASTER_SITES= SF
@@ -22,8 +22,8 @@ USE_PYDISTUTILS= yes
MAN1= pyzor.1 pyzord.1
post-patch:
- ${REINPLACE_CMD} -e "s,/usr/bin/python2,${PYTHON_CMD}," \
- ${WRKSRC}/scripts/pyzor ${WRKSRC}/scripts/pyzord
+ ${REINPLACE_CMD} -e '1s,^#!/usr/bin/python,#!/usr/bin/env -S python -Wignore::DeprecationWarning,' \
+ ${WRKSRC}/scripts/pyzor ${WRKSRC}/scripts/pyzord
post-install:
${CHMOD} ${SHAREMODE} ${DOCSDIR}/usage.html
More information about the svn-ports-all
mailing list