From nobody@FreeBSD.org  Thu Oct 25 09:39:17 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 051B4E27
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Oct 2012 09:39:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C879E8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Oct 2012 09:39:16 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9P9dGcM031739
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Oct 2012 09:39:16 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9P9dGAH031738;
	Thu, 25 Oct 2012 09:39:16 GMT
	(envelope-from nobody)
Message-Id: <201210250939.q9P9dGAH031738@red.freebsd.org>
Date: Thu, 25 Oct 2012 09:39:16 GMT
From: Ruslan Mahmatkhanov <rm@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/trac-spam-filter: do not directly depend on setuptools
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: zhoushuqun@gmail.com

>Number:         173056
>Category:       ports
>Synopsis:       www/trac-spam-filter: do not directly depend on setuptools
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 25 09:40:02 UTC 2012
>Closed-Date:    Wed Oct 31 08:12:26 UTC 2012
>Last-Modified:  Wed Oct 31 08:12:26 UTC 2012
>Originator:     Ruslan Mahmatkhanov
>Release:        10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT amd64
>Description:
- do not directly depend on setuptools, use USE_DISTUTILS instead
- bump PORTREVISION because of dependency change
- trim Makefile header
- limit python version to 2.x only
- move pkg-plist contents into Makefile:PLIST_FILES
- tab -> space change in pkg-descr:WWW

buildlog:
http://people.freebsd.org/~rm/trac-TracSpamFilter-0.2.1_5.log
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 306373)
+++ Makefile	(working copy)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	trac-spam-filter
-# Date created:	23 September 2007
-# Whom:					sutra
-#
+# Created by: sutra
 # $FreeBSD$
-#
 
 PORTNAME=	TracSpamFilter
 PORTVERSION=	0.2.1
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	www devel python
 MASTER_SITES=	http://zhoushuqun.com/files/ \
 		http://freebsd.unixfreunde.de/sources/
@@ -17,22 +13,12 @@
 COMMENT=	Allow different ways to reject contributions that contain spam
 
 RUN_DEPENDS=	tracd:${PORTSDIR}/www/trac
-BUILD_DEPENDS=	easy_install:${PORTSDIR}/devel/py-setuptools
 
-WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}dev
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}dev
 
-USE_PYTHON=	yes
-USE_PYDISTUTILS=	yes
-PYDISTUTILS_NOEGGINFO=	yes
-PLIST_SUB+=	PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} PYTHONVERSION=${_PYTHON_VERSION}
+USE_PYTHON=	-2.7
+USE_PYDISTUTILS=	easy_install
+PYDISTUTILS_PKGVERSION=	${PORTVERSION}dev
+PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
 
-do-build:
-	cd ${WRKSRC}; \
-	${PYTHON_CMD} setup.py bdist_egg
-
-do-install:
-.for i in *
-	${INSTALL_DATA} ${WRKSRC}/dist/${i} ${PYTHON_SITELIBDIR}/
-.endfor
-
 .include <bsd.port.mk>
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 306373)
+++ pkg-descr	(working copy)
@@ -1,4 +1,4 @@
 A plugin is being developed that will allow different ways to reject
 contributions that contain spam.
 
-WWW:	http://trac.edgewall.org/wiki/SpamFilter
+WWW: http://trac.edgewall.org/wiki/SpamFilter
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 306373)
+++ pkg-plist	(working copy)
@@ -1 +0,0 @@
-%%PYTHON_SITELIBDIR%%/%%PORTNAME%%-%%PORTVERSION%%dev-py%%PYTHONVERSION%%.egg


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Oct 25 09:40:19 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173056 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: zhoushuqun@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/173056: www/trac-spam-filter: do not directly depend on setuptools
Date: Thu, 25 Oct 2012 09:40:18 UT

 Maintainer of www/trac-spam-filter,
 
 Please note that PR ports/173056 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/173056
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: freebsd-ports-bugs->rm 
Responsible-Changed-By: rm 
Responsible-Changed-When: Thu Oct 25 10:26:37 UTC 2012 
Responsible-Changed-Why:  
My PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173056 

From: Sutra Zhou <zhoushuqun@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/173056: www/trac-spam-filter: do not directly depend on setuptools
Date: Wed, 31 Oct 2012 20:43:24 +1300

 I tested it, and it works. Please commit it, thanks.
State-Changed-From-To: feedback->closed 
State-Changed-By: rm 
State-Changed-When: Wed Oct 31 08:12:25 UTC 2012 
State-Changed-Why:  
Committed, thank you! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173056 
>Unformatted:
