From owner-svn-ports-head@FreeBSD.ORG Sat Feb 21 03:28:17 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02F692DF; Sat, 21 Feb 2015 03:28:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7C557E7; Sat, 21 Feb 2015 03:28:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1L3SGII069136; Sat, 21 Feb 2015 03:28:16 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1L3SGxW069134; Sat, 21 Feb 2015 03:28:16 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201502210328.t1L3SGxW069134@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Sat, 21 Feb 2015 03:28:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r379480 - head/devel/py-twistedCore X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2015 03:28:17 -0000 Author: koobs Date: Sat Feb 21 03:28:15 2015 New Revision: 379480 URL: https://svnweb.freebsd.org/changeset/ports/379480 QAT: https://qat.redports.org/buildarchive/r379480/ Log: devel/py-twistedCore: Create OPTION for service_identity service_identity is an optional dependency that hasn't yet been added to setup.py upstream as an extras_require [1] Create a VERIFY option to make the dependency optional, as it adds a decent number [~9] of subsequent dependencies that aren't needed in most cases. Set the VERIFY option to be a OPTIONS_DEFAULT *for now* since a few consumers (and their ports) bail out with an error if its not installed (deluge) [2]. For these cases, the port should instead depend on service_identity directly, as in www/calendarserver. While I'm here: - Strip shared libraries - Tweak COMMENT [1] http://twistedmatrix.com/trac/ticket/3696 [2] http://svnweb.freebsd.org/ports?view=revision&revision=375833 Approved by: python (hat) Modified: head/devel/py-twistedCore/Makefile Modified: head/devel/py-twistedCore/Makefile ============================================================================== --- head/devel/py-twistedCore/Makefile Sat Feb 21 03:25:27 2015 (r379479) +++ head/devel/py-twistedCore/Makefile Sat Feb 21 03:28:15 2015 (r379480) @@ -3,6 +3,7 @@ PORTNAME= twistedCore PORTVERSION= 15.0.0 +PORTREVISION= 1 CATEGORIES= devel net python MASTER_SITES= http://twistedmatrix.com/Releases/Core/${PORTVERSION:R}/ \ LOCAL/sunpoet @@ -10,14 +11,19 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= TwistedCore-${PORTVERSION} MAINTAINER= python@FreeBSD.org -COMMENT= Asynchronous networking framework for Python - Core module +COMMENT= Asynchronous networking framework for Python (Core Module) LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6.0:${PORTSDIR}/devel/py-zope.interface -RUN_DEPENDS:= ${BUILD_DEPENDS} \ - ${PYTHON_PKGNAMEPREFIX}service_identity>0:${PORTSDIR}/security/py-service_identity +RUN_DEPENDS:= ${BUILD_DEPENDS} + +OPTIONS_DEFINE= VERIFY +OPTIONS_DEFAULT= VERIFY + +VERIFY_DESC= Server (SNI) and Service Verification Support (RFC6125+) +VERIFY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}service_identity>0:${PORTSDIR}/security/py-service_identity # - Note that Twisted ships with some graphical examples and clients that # require PyGNOME to run. These are not central to the funcitoning of @@ -27,4 +33,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \ USES= python:2 tar:bzip2 USE_PYTHON= autoplist distutils +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/python/sendmsg.so \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/test/raiser.so + .include