Date: Sun, 28 Oct 2012 19:55:30 GMT From: Ruslan Mahmatkhanov <rm@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173163: www/trac-defaultcc: do not directly depend on setuptools Message-ID: <201210281955.q9SJtU2E098641@red.freebsd.org> Resent-Message-ID: <201210282000.q9SK01Ye016012@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173163 >Category: ports >Synopsis: www/trac-defaultcc: 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:00: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 - bump PORTREVISION because of dependency change - trim Makefile header - remove indefinite article in COMMENT - limit python version to 2.x only - remove permissions fixing part - setuptools will take care of it - move pkg-plist contents into Makefile:PLIST_FILES buildlog: http://people.freebsd.org/~rm/trac-defaultcc-0.1_1.log >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 306539) +++ Makefile (working copy) @@ -1,42 +1,29 @@ -# New ports collection makefile for: trac-autocomplete -# Date created: August 18, 2011 -# Whom: Eygene Ryabinkin <rea@FreeBSD.org> -# +# Created by: Eygene Ryabinkin <rea@FreeBSD.org> # $FreeBSD$ -# PORTNAME= defaultcc PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= http://dist.codelabs.ru/fbsd/trac-${PORTNAME}/ PKGNAMEPREFIX= trac- DISTNAME= ${PORTNAME}plugin-r${REL} MAINTAINER= rea@FreeBSD.org -COMMENT= A plugin that adds default CC value for tickets +COMMENT= Plugin that adds default CC value for tickets -BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac -USE_PYTHON= yes +USE_PYTHON= -2.7 USE_ZIP= yes -NO_BUILD= yes -USE_PYDISTUTILS= yes +USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= Default_CC -PYDISTUTILS_NOEGGINFO= yes +PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% WRKSRC= ${WRKDIR}/${PORTNAME}plugin/trunk REL= 10605 -PLIST_SUB+= PYTHON_VER=${PYTHON_VER} -# We must fix file permissions -- ZIP file have 0000 for every file. -# Directory permissions are fine (they aren't stored inside ZIP -# file), but we set them too -- just in case. -post-extract: - @${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644 - @${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755 - # Target to generate packaging list plist: @${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type f | ${SED} -e's|^${PYTHON_SITELIBDIR}/|%%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|' Index: pkg-plist =================================================================== --- pkg-plist (revision 306539) +++ pkg-plist (working copy) @@ -1 +0,0 @@ -%%PYTHON_SITELIBDIR%%/Default_CC-0.1-py%%PYTHON_VER%%.egg >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210281955.q9SJtU2E098641>