ports/173232: devel/py-trace2html: do not directly depend on setuptools

Ruslan Mahmatkhanov rm at FreeBSD.org
Wed Oct 31 09:10:00 UTC 2012


>Number:         173232
>Category:       ports
>Synopsis:       devel/py-trace2html: 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:   Wed Oct 31 09:10:00 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
- no PORTREVISION bump is needed, because it already had run/build dependency
- trim Makefile header
- add license (GPLv2)
- 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/py27-trace2html-0.2.1.log
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 306738)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	py-trace2html
-# Date created:		Feb. 26, 2007
-# Whom:			Li-Wen Hsu <lwhsu at lwhsu.org>
-#
+# Created by: Li-Wen Hsu <lwhsu at lwhsu.org>
 # $FreeBSD$
-#
 
 PORTNAME=	trace2html
 PORTVERSION=	0.2.1
@@ -14,23 +10,12 @@
 MAINTAINER=	lwhsu at FreeBSD.org
 COMMENT=	HTML coverage report generator for trace.py
 
-BUILD_DEPENDS=	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
-RUN_DEPENDS=	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+LICENSE=	GPLv2
 
-USE_PYTHON=	yes
-USE_PYDISTUTILS=	yes
+USE_PYTHON=	-2.7
+USE_PYDISTUTILS=	easy_install
 
-EASY_INSTALL_CMD?=	easy_install-${PYTHON_VER}
+PLIST_FILES=	bin/trace2html.py \
+		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
 
-PYDISTUTILS_NOEGGINFO=	yes # XXX convert easy_install support to bsd.python.mk's
-PYDISTUTILS_BUILD_TARGET=	bdist_egg
-PYDISTUTILS_INSTALL_TARGET=	easy_install
-PYDISTUTILS_INSTALLARGS=	-O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYTRACE2HTML_EGG}
-
-PYTRACE2HTML_EGG=	${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
-
-PLIST_SUB+=	EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
-		PYTRACE2HTML_EGG=${PYTRACE2HTML_EGG} \
-		PYTRACE2HTML_EGG_VER="${PORTNAME}==${PORTVERSION}"
-
 .include <bsd.port.mk>
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 306738)
+++ pkg-descr	(working copy)
@@ -2,4 +2,4 @@
 with the `trace' module of the standard python library into a set of human
 readable HTML documents showing sortable summary and annotated source files.
 
-WWW:	http://cheeseshop.python.org/pypi/trace2html
+WWW: http://pypi.python.org/pypi/trace2html
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 306738)
+++ pkg-plist	(working copy)
@@ -1,4 +0,0 @@
- at unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYTRACE2HTML_EGG_VER%%
-%%PYTHON_SITELIBDIR%%/%%PYTRACE2HTML_EGG%%
- at exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYTRACE2HTML_EGG_VER%%
-bin/trace2html.py


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


More information about the freebsd-ports-bugs mailing list