Date: Thu, 25 Oct 2012 09:39:16 GMT From: Ruslan Mahmatkhanov <rm@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173056: www/trac-spam-filter: do not directly depend on setuptools Message-ID: <201210250939.q9P9dGAH031738@red.freebsd.org> Resent-Message-ID: <201210250940.q9P9e2nR047613@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173056 >Category: ports >Synopsis: www/trac-spam-filter: do not directly depend on setuptools >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 25 09:40:02 UTC 2012 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210250939.q9P9dGAH031738>