1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- do not directly depend on setuptools, use USE_DISTUTILS instead

- bump PORTREVISION because of dependency change
- trim Makefile header
- limit python version to 2.x only
- move pkg-plist contents into Makefile:PLIST_FILES

PR:		173160
Submitted by:	rm (myself)
Approved by:	brooks (maintainer, by mail)
Feature safe:	yes
This commit is contained in:
Ruslan Makhmatkhanov 2012-10-30 19:41:46 +00:00
parent d933f05f4f
commit dcd0809913
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306698
2 changed files with 6 additions and 14 deletions

View File

@ -1,13 +1,9 @@
# New ports collection makefile for: trac-addcomment
# Date created: December 28 2006
# Whom: Gerrit Beine <gerrit.beine@gmx.de>
#
# Created by: Gerrit Beine <gerrit.beine@gmx.de>
# $FreeBSD$
#
PORTNAME= addcomment
PORTVERSION= 0.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www devel python
MASTER_SITES= http://www.gerritbeine.de/download/trac/
PKGNAMEPREFIX= trac-
@ -16,16 +12,13 @@ DISTNAME= ${PORTNAME}macro-${PORTVERSION}
MAINTAINER= brooks@FreeBSD.org
COMMENT= Add formatted comments to wiki pages
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac \
${PYTHON_SITELIBDIR}/TracMacroPost-0.2-py${_PYTHON_VERSION}.egg:${PORTSDIR}/www/trac-macropost
trac-macropost>0:${PORTSDIR}/www/trac-macropost
WRKSRC= ${WRKDIR}/${PORTNAME}macro
NO_BUILD= yes
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= TracAddCommentMacro
PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
PLIST_SUB+= PORTVERSION=${PORTVERSION} PYTHONVERSION=${_PYTHON_VERSION}
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
.include <bsd.port.mk>

View File

@ -1 +0,0 @@
%%PYTHON_SITELIBDIR%%/TracAddCommentMacro-%%PORTVERSION%%-py%%PYTHONVERSION%%.egg