ports/173161: www/trac-accountmanager: do not directly depend on setuptools

Ruslan Mahmatkhanov rm at FreeBSD.org
Sun Oct 28 19:50:02 UTC 2012


>Number:         173161
>Category:       ports
>Synopsis:       www/trac-accountmanager: 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:   Sun Oct 28 19:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT amd64
>Description:
- remove direct setuptools dependency
- no PORTREVISION bump is needed, because it is already depending on it via
  USE_DISTUTILS
- trim Makefile header
- limit python version to 2.x only
- move pkg-plist contents into Makefile:PLIST_FILES

buildlog:
http://people.freebsd.org/~rm/trac-accountmanager-0.4.11722%2c1.log
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 306539)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: trac-accountmanager
-# Date created:                      17 Feb 2006
-# Whom:                              kuriyama at FreeBSD.org
-#
+# Created by: kuriyama at FreeBSD.org
 # $FreeBSD$
-#
 
 PORTNAME=	accountmanager
 PORTVERSION=	0.4.${REV}
@@ -18,23 +14,18 @@
 MAINTAINER=	kuriyama at FreeBSD.org
 COMMENT=	Account Manager Plugin for trac
 
-BUILD_DEPENDS=	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
 RUN_DEPENDS=	tracd:${PORTSDIR}/www/trac
 
 FETCH_BEFORE_ARGS=	-o ${DISTFILES}
 REV=			11722
 USE_ZIP=		yes
-USE_PYTHON=		yes
+USE_PYTHON=		-2.7
 USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_PKGNAME=	TracAccountManager
 PYDISTUTILS_PKGVERSION=	0.4dev
+PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
 WRKSRC=			${WRKDIR}/accountmanagerplugin/trunk
 
-EASY_INSTALL_CMD?=	easy_install-${PYTHON_VER}
-
-pre-build:
-	cd ${WRKSRC} && ${PYTHON_CMD} setup.py bdist_egg
-
 # --- trac.ini
 # [components]
 # acct_mgr.* = enabled
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 306539)
+++ pkg-plist	(working copy)
@@ -1 +0,0 @@
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list