mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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:
parent
b5a4355527
commit
c9633df3f6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304228
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue