ports/173111: www/trac-robotstxt: do not directly depend on setuptools
Ruslan Mahmatkhanov
rm at FreeBSD.org
Fri Oct 26 07:50:01 UTC 2012
>Number: 173111
>Category: ports
>Synopsis: www/trac-robotstxt: 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: Fri Oct 26 07:50:01 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 dependencies list isn't changed
- 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-robotxt-1.0.1_4.log
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 306424)
+++ Makefile (working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: trac-robotxt
-# Date created: 03. 23, 2007
-# Whom: Martin Wilke <miwi at FreeBSD.org>
-#
+# Created by: Martin Wilke <miwi at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= robotxt
PORTVERSION= 1.0.1
@@ -14,26 +10,13 @@
DISTNAME= TracRobotsTxt-${PORTVERSION}
MAINTAINER= miwi at FreeBSD.org
-COMMENT= Allows simple management of a robots.txt.
+COMMENT= Allows simple management of a robots.txt
-BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
-RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
- tracd:${PORTSDIR}/www/trac
+RUN_DEPENDS= tracd:${PORTSDIR}/www/trac
-USE_PYTHON= yes
-USE_PYDISTUTILS= yes
+USE_PYTHON= -2.7
+USE_PYDISTUTILS= easy_install
+PYDISTUTILS_PKGNAME= TracRobotsTxt
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
-
-PYDISTUTILS_BUILD_TARGET= bdist_egg
-PYDISTUTILS_INSTALL_TARGET= easy_install
-PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${TRACROBO_EGG}
-PYDISTUTILS_NOEGGINFO= yes
-
-TRACROBO_EGG= TracRobotsTxt-${PORTVERSION}-py${PYTHON_VER}.egg
-
-PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
- TRACROBO_EGG=${TRACROBO_EGG} \
- TRACROBO_EGG_VER="TracRobotsTxt==${PORTVERSION}"
-
.include <bsd.port.mk>
Index: pkg-descr
===================================================================
--- pkg-descr (revision 306424)
+++ pkg-descr (working copy)
@@ -1,4 +1,4 @@
Serve a robots.txt file from Trac. Mostly useful to tracd users,
but works on anything. Just put the data you want in the wiki page RobotsTxt.
-WWW: http://trac-hacks.org/wiki/RobotsTxtPlugin
+WWW: http://trac-hacks.org/wiki/RobotsTxtPlugin
Index: pkg-plist
===================================================================
--- pkg-plist (revision 306424)
+++ pkg-plist (working copy)
@@ -1,3 +0,0 @@
- at unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%TRACROBO_EGG_VER%%
-%%PYTHON_SITELIBDIR%%/%%TRACROBO_EGG%%
- at exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%TRACROBO_EGG_VER%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list