From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 22 15:30:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B9E427DB for ; Thu, 22 Nov 2012 15:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8EAD58FC12 for ; Thu, 22 Nov 2012 15:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAMFU0Dw097670 for ; Thu, 22 Nov 2012 15:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAMFU0gU097669; Thu, 22 Nov 2012 15:30:00 GMT (envelope-from gnats) Resent-Date: Thu, 22 Nov 2012 15:30:00 GMT Resent-Message-Id: <201211221530.qAMFU0gU097669@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ruslan Mahmatkhanov Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 549C979C for ; Thu, 22 Nov 2012 15:25:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 32DC78FC08 for ; Thu, 22 Nov 2012 15:25:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAMFPRjE088936 for ; Thu, 22 Nov 2012 15:25:27 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qAMFPRGp088935; Thu, 22 Nov 2012 15:25:27 GMT (envelope-from nobody) Message-Id: <201211221525.qAMFPRGp088935@red.freebsd.org> Date: Thu, 22 Nov 2012 15:25:27 GMT From: Ruslan Mahmatkhanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/173838: www/trac-tickettemplate: do not directly depend on setuptools X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 15:30:00 -0000 >Number: 173838 >Category: ports >Synopsis: www/trac-tickettemplate: 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: Thu Nov 22 15:30:00 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 py-setuptools, use USE_DISTUTILS=easy_install instead - bump PORTREVISION because of dependencies change - trim Makefile header - remove indefinite article from COMMENT - limit python version to 2.x - remove checks for deprecated python versions - general Makefile clean-up - move pkg-plist content into Makefile:PLIST_FILES buildlog: http://people.freebsd.org/~rm/trac-tickettemplate-0.7_1.log >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 307655) +++ Makefile (working copy) @@ -1,53 +1,26 @@ -# New ports collection makefile for: trac-autocomplete -# Date created: August 18, 2011 -# Whom: Eygene Ryabinkin -# +# Created by: Eygene Ryabinkin # $FreeBSD$ -# PORTNAME= tickettemplate PORTVERSION= 0.7 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= http://dist.codelabs.ru/fbsd/trac-${PORTNAME}/ PKGNAMEPREFIX= trac- DISTNAME= trac${PORTNAME}plugin-r${REL} MAINTAINER= rea@FreeBSD.org -COMMENT= A plugin for making ticket templates +COMMENT= Plugin for making ticket templates -BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac -USE_PYTHON= yes +USE_PYTHON= -2.7 +USE_PYDISTUTILS=easy_install +PYDISTUTILS_PKGNAME= TracTicketTemplate USE_ZIP= yes -NO_BUILD= yes -.include - -# Python < 2.6 needs simplejson package. -.if ${PYTHON_VER} == 2.4 || ${PYTHON_VER} == 2.5 -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}simplejson:${PORTSDIR}/devel/py-simplejson -.endif - -USE_PYDISTUTILS= yes -PYDISTUTILS_PKGNAME= TracTicketTemplate -PYDISTUTILS_NOEGGINFO= yes - WRKSRC= ${WRKDIR}/trac${PORTNAME}plugin/0.11 REL= 10605 -PLIST_SUB+= PYTHON_VER=${PYTHON_VER} +PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% -# 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|' - @${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type d -mindepth 1 | ${SORT} -r | ${SED} -e's|^${PYTHON_SITELIBDIR}/|@dirrm %%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|' - @[ -d ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg ] && ${ECHO} '@dirrm %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg' - -.include +.include Index: pkg-plist =================================================================== --- pkg-plist (revision 307655) +++ pkg-plist (working copy) @@ -1 +0,0 @@ -%%PYTHON_SITELIBDIR%%/TracTicketTemplate-0.7-py%%PYTHON_VER%%.egg >Release-Note: >Audit-Trail: >Unformatted: