Bug 171607 - [PATCH] mail/pyzor: Small changes to ignore deprecation Python warnings
Summary: [PATCH] mail/pyzor: Small changes to ignore deprecation Python warnings
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-13 13:50 UTC by thomas
Modified: 2012-09-13 20:40 UTC (History)
1 user (show)

See Also:


Attachments
pyzor-0.5.0_1.patch (543 bytes, patch)
2012-09-13 13:50 UTC, thomas
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thomas 2012-09-13 13:50:02 UTC
Small changes to ignore deprecation Python warnings

Port maintainer (chalpin@cs.wisc.edu) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-13 13:50:12 UTC
Maintainer of mail/pyzor,

Please note that PR ports/171607 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171607

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-13 13:50:18 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Corey Halpin 2012-09-13 15:22:39 UTC
  Approve.

~crh

On 2012-09-13, Edwin Groothuis wrote:
> Maintainer of mail/pyzor,
> 
> Please note that PR ports/171607 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171607
> 
> -- 
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
> 
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2012-09-13 20:21:07 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 5 Chris Rees freebsd_committer freebsd_triage 2012-09-13 20:24:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

I'll take it.
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-09-13 20:33:51 UTC
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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 7 Chris Rees freebsd_committer freebsd_triage 2012-09-13 20:33:55 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!