Index: head/audio/py-speechrecognition/Makefile =================================================================== --- head/audio/py-speechrecognition/Makefile (revision 452134) +++ head/audio/py-speechrecognition/Makefile (revision 452135) @@ -1,28 +1,34 @@ # $FreeBSD$ PORTNAME= SpeechRecognition -PORTVERSION= 3.5.0 +PORTVERSION= 3.7.1 CATEGORIES= audio python -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kevlo@FreeBSD.org COMMENT= Python Library for performing speech recognition 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 .if ${PYTHON_REL} < 3000 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}monotonic>=0.3:devel/py-monotonic .endif .include Index: head/audio/py-speechrecognition/distinfo =================================================================== --- head/audio/py-speechrecognition/distinfo (revision 452134) +++ head/audio/py-speechrecognition/distinfo (revision 452135) @@ -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 Index: head/audio/py-speechrecognition/files/patch-setup.py =================================================================== --- head/audio/py-speechrecognition/files/patch-setup.py (nonexistent) +++ head/audio/py-speechrecognition/files/patch-setup.py (revision 452135) @@ -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__, Property changes on: head/audio/py-speechrecognition/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property