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
This commit is contained in:
Chris Rees 2012-09-13 19:33:38 +00:00
parent b5a4355527
commit c9633df3f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304228

View file

@ -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