From 874d17d09ec87a5c891c8150c92f5f29310ec6a9 Mon Sep 17 00:00:00 2001 From: crees Date: Thu, 13 Sep 2012 19:33:38 +0000 Subject: Small changes to ignore deprecation Python warnings PR: ports/171607 Submitted by: Thomas Vogt (based on) Approved by: maintainer (Corey Halpin ) While here, anchor and optimise regex --- mail/pyzor/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/pyzor/Makefile b/mail/pyzor/Makefile index ad63862bc49c..ba48923393e8 100644 --- a/mail/pyzor/Makefile +++ b/mail/pyzor/Makefile @@ -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 -- cgit