aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2012-09-14 03:33:38 +0800
committercrees <crees@FreeBSD.org>2012-09-14 03:33:38 +0800
commit874d17d09ec87a5c891c8150c92f5f29310ec6a9 (patch)
tree1ce94a1bee3e6d14e6cfd90645e6cba636c067a8
parent94529c7b0af7329a54aa91c19dfadb2ccd6db16e (diff)
downloadfreebsd-ports-gnome-874d17d09ec87a5c891c8150c92f5f29310ec6a9.tar.gz
freebsd-ports-gnome-874d17d09ec87a5c891c8150c92f5f29310ec6a9.tar.zst
freebsd-ports-gnome-874d17d09ec87a5c891c8150c92f5f29310ec6a9.zip
Small changes to ignore deprecation Python warnings
PR: ports/171607 Submitted by: Thomas Vogt <thomas@bsdunix.ch> (based on) Approved by: maintainer (Corey Halpin <chalpin@cs.wisc.edu>) While here, anchor and optimise regex
-rw-r--r--mail/pyzor/Makefile6
1 files changed, 3 insertions, 3 deletions
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