From owner-svn-ports-head@freebsd.org Sun Oct 15 11:05:00 2017 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 94F7CE4048F; Sun, 15 Oct 2017 11:05:00 +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 6924E72CD0; Sun, 15 Oct 2017 11:05:00 +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 v9FB4xjS065168; Sun, 15 Oct 2017 11:04:59 GMT (envelope-from kevlo@FreeBSD.org) Received: (from kevlo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9FB4xNE065165; Sun, 15 Oct 2017 11:04:59 GMT (envelope-from kevlo@FreeBSD.org) Message-Id: <201710151104.v9FB4xNE065165@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevlo set sender to kevlo@FreeBSD.org using -f From: Kevin Lo Date: Sun, 15 Oct 2017 11:04:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r452135 - in head/audio/py-speechrecognition: . files X-SVN-Group: ports-head X-SVN-Commit-Author: kevlo X-SVN-Commit-Paths: in head/audio/py-speechrecognition: . files X-SVN-Commit-Revision: 452135 X-SVN-Commit-Repository: ports 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.23 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: Sun, 15 Oct 2017 11:05:00 -0000 Author: kevlo Date: Sun Oct 15 11:04:59 2017 New Revision: 452135 URL: https://svnweb.freebsd.org/changeset/ports/452135 Log: Update to 3.7.1 Added: head/audio/py-speechrecognition/files/ head/audio/py-speechrecognition/files/patch-setup.py (contents, props changed) Modified: head/audio/py-speechrecognition/Makefile head/audio/py-speechrecognition/distinfo Modified: head/audio/py-speechrecognition/Makefile ============================================================================== --- head/audio/py-speechrecognition/Makefile Sun Oct 15 10:56:01 2017 (r452134) +++ head/audio/py-speechrecognition/Makefile Sun Oct 15 11:04:59 2017 (r452135) @@ -1,9 +1,8 @@ # $FreeBSD$ PORTNAME= SpeechRecognition -PORTVERSION= 3.5.0 +PORTVERSION= 3.7.1 CATEGORIES= audio python -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kevlo@FreeBSD.org @@ -12,12 +11,19 @@ COMMENT= Python Library for performing speech recognit LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt +USE_GITHUB= yes +GH_ACCOUNT= Uberi +GH_PROJECT= speech_recognition + RUN_DEPENDS= flac:audio/flac \ ${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio NO_ARCH= yes USES= python USE_PYTHON= distutils autoplist + +post-extract: + @cd ${WRKSRC}/speech_recognition && ${RM} flac-* .include Modified: head/audio/py-speechrecognition/distinfo ============================================================================== --- head/audio/py-speechrecognition/distinfo Sun Oct 15 10:56:01 2017 (r452134) +++ head/audio/py-speechrecognition/distinfo Sun Oct 15 11:04:59 2017 (r452135) @@ -1,3 +1,3 @@ -TIMESTAMP = 1480340475 -SHA256 (SpeechRecognition-3.5.0.tar.gz) = deadec60cc95fd1aeb973a19379c14780200e069ff87f5d835bc0557667f1a9f -SIZE (SpeechRecognition-3.5.0.tar.gz) = 31523266 +TIMESTAMP = 1507992258 +SHA256 (Uberi-speech_recognition-3.7.1_GH0.tar.gz) = 2caafe07a1557a77f9e0bb38e1a05f6cd48a52486b91d51c720fcead9202e33f +SIZE (Uberi-speech_recognition-3.7.1_GH0.tar.gz) = 125418691 Added: head/audio/py-speechrecognition/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-speechrecognition/files/patch-setup.py Sun Oct 15 11:04:59 2017 (r452135) @@ -0,0 +1,37 @@ +--- setup.py.orig 2017-10-14 15:52:28 UTC ++++ setup.py +@@ -14,34 +14,11 @@ if sys.version_info < (2, 6): + print("THIS MODULE REQUIRES PYTHON 2.6, 2.7, OR 3.3+. YOU ARE CURRENTLY USING PYTHON {0}".format(sys.version)) + sys.exit(1) + +- +-FILES_TO_MARK_EXECUTABLE = ["flac-linux-x86", "flac-linux-x86_64", "flac-mac", "flac-win32.exe"] +- +- +-class InstallWithExtraSteps(install): +- def run(self): +- install.run(self) # do the original install steps +- +- # mark the FLAC executables as executable by all users (this fixes occasional issues when file permissions get messed up) +- for output_path in self.get_outputs(): +- if os.path.basename(output_path) in FILES_TO_MARK_EXECUTABLE: +- log.info("setting executable permissions on {}".format(output_path)) +- stat_info = os.stat(output_path) +- os.chmod( +- output_path, +- stat_info.st_mode | +- stat.S_IRUSR | stat.S_IXUSR | # owner can read/execute +- stat.S_IRGRP | stat.S_IXGRP | # group can read/execute +- stat.S_IROTH | stat.S_IXOTH # everyone else can read/execute +- ) +- +- + setup( + name="SpeechRecognition", + version=speech_recognition.__version__, + packages=["speech_recognition"], + include_package_data=True, +- cmdclass={"install": InstallWithExtraSteps}, + + # PyPI metadata + author=speech_recognition.__author__,