From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 20 21:10:05 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDCD51065673 for ; Tue, 20 Sep 2011 21:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9B7198FC0C for ; Tue, 20 Sep 2011 21:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8KLA5DF094021 for ; Tue, 20 Sep 2011 21:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8KLA5Zk094020; Tue, 20 Sep 2011 21:10:05 GMT (envelope-from gnats) Resent-Date: Tue, 20 Sep 2011 21:10:05 GMT Resent-Message-Id: <201109202110.p8KLA5Zk094020@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 [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98C5B106564A for ; Tue, 20 Sep 2011 21:08:50 +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 6F9A28FC14 for ; Tue, 20 Sep 2011 21:08:50 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8KL8o0C092908 for ; Tue, 20 Sep 2011 21:08:50 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8KL8oNr092907; Tue, 20 Sep 2011 21:08:50 GMT (envelope-from nobody) Message-Id: <201109202108.p8KL8oNr092907@red.freebsd.org> Date: Tue, 20 Sep 2011 21:08:50 GMT From: Ruslan Mahmatkhanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/160859: [PATCH] www/py-tornado: depend on simplejson conditionally X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2011 21:10:05 -0000 >Number: 160859 >Category: ports >Synopsis: [PATCH] www/py-tornado: depend on simplejson conditionally >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: Tue Sep 20 21:10:05 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ruslan Mahmatkhanov >Release: 9.0-BETA2 >Organization: >Environment: 9.0-BETA2 i386 >Description: This port is only needed simplejson if it run with python less than 2.6. From README: """ To use all of the features of Tornado, you need to have PycURL and (for Python 2.5 only) simplejson installed. """ so patch attached makes it depend on simplejson only if python version is < 2.6. - bump portrevision because of dependency change tag: simplejson26 >How-To-Repeat: >Fix: Patch attached with submission follows: diff --git a/Makefile b/Makefile index 04d6829..1f37d03 100644 --- a/Makefile +++ b/Makefile @@ -17,12 +17,17 @@ COMMENT= Python Web Server from FriendFeed LICENSE= ASL -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curl>0:${PORTSDIR}/ftp/py-curl \ - ${PYTHON_PKGNAMEPREFIX}simplejson>0:${PORTSDIR}/devel/py-simplejson +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curl>0:${PORTSDIR}/ftp/py-curl USE_PYTHON= 2.5+ USE_PYDISTUTILS= easy_install FETCH_ARGS= -pRr -.include +.include + +.if ${PYTHON_REL} < 260 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0.9:${PORTSDIR}/devel/py-simplejson +.endif + +.include diff --git a/pkg-descr b/pkg-descr index ccd6de6..f0e09a0 100644 --- a/pkg-descr +++ b/pkg-descr @@ -1,10 +1,10 @@ Tornado is an open source version of this web server and some of the tools we use most often at FriendFeed. -The framework is distinct from most mainstream web server frameworks (and -certainly most Python frameworks) because it is non-blocking and reasonably -fast. Because it is non-blocking and uses epoll, it can handle 1000s of -simultaneous standing connections, which means the framework is ideal for +The framework is distinct from most mainstream web server frameworks (and +certainly most Python frameworks) because it is non-blocking and reasonably +fast. Because it is non-blocking and uses epoll, it can handle 1000s of +simultaneous standing connections, which means the framework is ideal for real-time web services. WWW: http://www.tornadoweb.org >Release-Note: >Audit-Trail: >Unformatted: