- 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

PR:		173111
Submitted by:	rm (myself)
Approved by:	reassigned to the heap
Feature safe:	yes
This commit is contained in:
Ruslan Makhmatkhanov 2012-10-29 18:55:20 +00:00
parent ff9a188681
commit 070776a5ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306627
3 changed files with 8 additions and 28 deletions

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: trac-robotxt
# Date created: 03. 23, 2007
# Whom: Martin Wilke <miwi@FreeBSD.org>
#
# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= robotxt
PORTVERSION= 1.0.1
@ -14,26 +10,13 @@ PKGNAMEPREFIX= trac-
DISTNAME= TracRobotsTxt-${PORTVERSION}
MAINTAINER= miwi@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
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}"
USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= TracRobotsTxt
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
.include <bsd.port.mk>

View file

@ -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

View file

@ -1,3 +0,0 @@
@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%TRACROBO_EGG_VER%%
%%PYTHON_SITELIBDIR%%/%%TRACROBO_EGG%%
@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%TRACROBO_EGG_VER%%