Date: Sun, 15 Oct 2017 11:04:59 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> 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 Message-ID: <201710151104.v9FB4xNE065165@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk> 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__,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710151104.v9FB4xNE065165>