Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2012 19:33:39 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304228 - head/mail/pyzor
Message-ID:  <201209131933.q8DJXd1i060730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@bsdunix.ch> (based on)
  Approved by:	maintainer (Corey Halpin <chalpin@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209131933.q8DJXd1i060730>