ports/173169: www/trac-gantt: do not directly depend on setuptools
Ruslan Mahmatkhanov
rm at FreeBSD.org
Sun Oct 28 20:20:01 UTC 2012
>Number: 173169
>Category: ports
>Synopsis: www/trac-gantt: 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 20:20: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
- bump PORTREVISION because of dependency change
- remove indefinite article in COMMENT
- convert to optionsng
- 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-TracGantt-0.3.2a_6.log
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 306539)
+++ Makefile (working copy)
@@ -1,41 +1,35 @@
-# New ports collection makefile for: trac-gantt
-# Date created: July 12 2006
-# Whom: Dryice Liu <dryice at dryice.name>
-#
+# Created by: Dryice Liu <dryice at dryice.name>
# $FreeBSD$
-#
PORTNAME= TracGantt
PORTVERSION= 0.3.2a
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= www devel python
MASTER_SITES= http://willbarton.com/files/ \
http://dryice.name/computer/FreeBSD/distfiles/
PKGNAMEPREFIX= trac-
MAINTAINER= dryice at dryice.name
-COMMENT= A plugin to creates Gantt charts for trac
+COMMENT= Plugin to creates Gantt charts for trac
-BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac
-NO_BUILD= yes
-USE_PYTHON= yes
-USE_PYDISTUTILS=yes
-PLIST_SUB+= PORTVERSION=${PORTVERSION} PYTHONVERSION=${_PYTHON_VERSION}
-PYDISTUTILS_NOEGGINFO= yes
+USE_PYTHON= -2.7
+USE_PYDISTUTILS= easy_install
+PYDISTUTILS_PKGNAME= TracGantt
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= PKG-INFO README
.endif
-.include <bsd.port.pre.mk>
-
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: pkg-descr
===================================================================
--- pkg-descr (revision 306539)
+++ pkg-descr (working copy)
@@ -13,4 +13,4 @@
generated on-the-fly from the ticket reports, using only the tickets
provided by the report.
-WWW: http://willbarton.com/code/tracgantt/
+WWW: http://willbarton.com/code/tracgantt/
Index: pkg-plist
===================================================================
--- pkg-plist (revision 306539)
+++ pkg-plist (working copy)
@@ -1 +0,0 @@
-%%PYTHON_SITELIBDIR%%/TracGantt-%%PORTVERSION%%-py%%PYTHONVERSION%%.egg
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list