From owner-svn-ports-head@freebsd.org Fri Aug 5 07:40:38 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AEEDBAF150; Fri, 5 Aug 2016 07:40:38 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 67EF91BBD; Fri, 5 Aug 2016 07:40:38 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u757ebD0045778; Fri, 5 Aug 2016 07:40:37 GMT (envelope-from kevlo@FreeBSD.org) Received: (from kevlo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u757ebnY045776; Fri, 5 Aug 2016 07:40:37 GMT (envelope-from kevlo@FreeBSD.org) Message-Id: <201608050740.u757ebnY045776@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevlo set sender to kevlo@FreeBSD.org using -f From: Kevin Lo Date: Fri, 5 Aug 2016 07:40:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r419669 - head/audio/py-speechrecognition 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.22 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: Fri, 05 Aug 2016 07:40:38 -0000 Author: kevlo Date: Fri Aug 5 07:40:36 2016 New Revision: 419669 URL: https://svnweb.freebsd.org/changeset/ports/419669 Log: Add a conditional depends on devel/py-monotonic for faster operations in some functions on Python 2. See: https://github.com/Uberi/speech_recognition/#monotonic-for-python-2-for-faster-operations-in-some-functions-on-python-2 Spotted by: koobs Modified: head/audio/py-speechrecognition/Makefile Modified: head/audio/py-speechrecognition/Makefile ============================================================================== --- head/audio/py-speechrecognition/Makefile Fri Aug 5 06:39:13 2016 (r419668) +++ head/audio/py-speechrecognition/Makefile Fri Aug 5 07:40:36 2016 (r419669) @@ -16,9 +16,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt RUN_DEPENDS= flac:audio/flac \ ${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio +NO_ARCH= yes USES= python USE_PYTHON= distutils autoplist -NO_ARCH= yes +.include + +.if ${PYTHON_REL} < 3000 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}monotonic>=0.3:devel/py-monotonic +.endif -.include +.include