- 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:
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
|
@ -1,9 +1,5 @@
|
||||||
# New ports collection makefile for: trac-robotxt
|
# Created by: Martin Wilke <miwi@FreeBSD.org>
|
||||||
# Date created: 03. 23, 2007
|
|
||||||
# Whom: Martin Wilke <miwi@FreeBSD.org>
|
|
||||||
#
|
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
|
||||||
|
|
||||||
PORTNAME= robotxt
|
PORTNAME= robotxt
|
||||||
PORTVERSION= 1.0.1
|
PORTVERSION= 1.0.1
|
||||||
|
@ -14,26 +10,13 @@ PKGNAMEPREFIX= trac-
|
||||||
DISTNAME= TracRobotsTxt-${PORTVERSION}
|
DISTNAME= TracRobotsTxt-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= miwi@FreeBSD.org
|
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= tracd:${PORTSDIR}/www/trac
|
||||||
RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
|
|
||||||
tracd:${PORTSDIR}/www/trac
|
|
||||||
|
|
||||||
USE_PYTHON= yes
|
USE_PYTHON= -2.7
|
||||||
USE_PYDISTUTILS= yes
|
USE_PYDISTUTILS= easy_install
|
||||||
|
PYDISTUTILS_PKGNAME= TracRobotsTxt
|
||||||
EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
||||||
|
|
||||||
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>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Serve a robots.txt file from Trac. Mostly useful to tracd users,
|
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.
|
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
|
||||||
|
|
|
@ -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%%
|
|
Loading…
Reference in a new issue