From owner-svn-ports-all@FreeBSD.ORG Sat Dec 22 10:11:44 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 27190C95; Sat, 22 Dec 2012 10:11:44 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id F03508FC13; Sat, 22 Dec 2012 10:11:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBMABhGt056045; Sat, 22 Dec 2012 10:11:43 GMT (envelope-from mva@svn.freebsd.org) Received: (from mva@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBMABgQX056039; Sat, 22 Dec 2012 10:11:42 GMT (envelope-from mva@svn.freebsd.org) Message-Id: <201212221011.qBMABgQX056039@svn.freebsd.org> From: Marcus von Appen Date: Sat, 22 Dec 2012 10:11:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309383 - in head/audio: . py-pyaudio py-pyaudio/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2012 10:11:44 -0000 Author: mva Date: Sat Dec 22 10:11:42 2012 New Revision: 309383 URL: http://svnweb.freebsd.org/changeset/ports/309383 Log: PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio on a variety of platforms. WWW: http://people.csail.mit.edu/hubert/pyaudio/ PR: ports/173708 Submitted by: Jaap Akkerhuis Added: head/audio/py-pyaudio/ head/audio/py-pyaudio/Makefile (contents, props changed) head/audio/py-pyaudio/distinfo (contents, props changed) head/audio/py-pyaudio/files/ head/audio/py-pyaudio/files/patch-setup.py (contents, props changed) head/audio/py-pyaudio/pkg-descr (contents, props changed) head/audio/py-pyaudio/pkg-plist (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Sat Dec 22 07:02:30 2012 (r309382) +++ head/audio/Makefile Sat Dec 22 10:11:42 2012 (r309383) @@ -602,6 +602,7 @@ SUBDIR += pure-audio SUBDIR += py-ao SUBDIR += py-apetag + SUBDIR += py-pyaudio SUBDIR += py-cddb SUBDIR += py-eyed3 SUBDIR += py-fastaudio Added: head/audio/py-pyaudio/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-pyaudio/Makefile Sat Dec 22 10:11:42 2012 (r309383) @@ -0,0 +1,38 @@ +# Created by: Jaap Akkerhuis +# $FreeBSD$ + +PORTNAME= pyaudio +PORTVERSION= 0.2.7 +CATEGORIES= audio python +MASTER_SITES= http://people.csail.mit.edu/hubert/pyaudio/packages/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= jaap@NLnetLabs.nl +COMMENT= Portaudio toolkit bindings for Python + +LIB_DEPENDS= portaudio.2:${PORTSDIR}/audio/portaudio2 + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_PKGNAME= PyAudio + +WRKSRC= ${WRKDIR}/PyAudio-${PORTVERSION} + +OPTIONS_DEFINE= DOCS + +.include + +post-patch: + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/setup.py + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/*.js ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/*.inv ${DOCSDIR} + @cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _static ${DOCSDIR}/ + @cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _sources ${DOCSDIR}/ +.endif + +.include Added: head/audio/py-pyaudio/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-pyaudio/distinfo Sat Dec 22 10:11:42 2012 (r309383) @@ -0,0 +1,2 @@ +SHA256 (pyaudio-0.2.7.tar.gz) = 7807cf937df3652f64b014b9f579c308cf87057d32ed4250a6b28844e2b56287 +SIZE (pyaudio-0.2.7.tar.gz) = 182396 Added: head/audio/py-pyaudio/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-pyaudio/files/patch-setup.py Sat Dec 22 10:11:42 2012 (r309383) @@ -0,0 +1,29 @@ +--- ./setup.py.orig 2012-11-07 00:17:06.624869638 +0100 ++++ ./setup.py 2012-11-07 00:37:17.129040078 +0100 +@@ -57,7 +57,7 @@ + + pyaudio_module_sources = ['src/_portaudiomodule.c'] + +-include_dirs = [] ++include_dirs = ['%%PREFIX%%/include/portaudio2'] + external_libraries = [] + extra_compile_args = ['-fno-strict-aliasing'] + extra_link_args = [] +@@ -74,6 +74,9 @@ + external_libraries = ['portaudio'] + extra_link_args = [] + ++if sys.platform.startswith('freebsd'): ++ extra_link_args = ['-L%%PREFIX%%/lib/portaudio2'] ++ + if sys.platform == 'darwin': + defines += [('MACOSX', '1')] + +@@ -83,7 +86,6 @@ + + if STATIC_LINKING: + +- # platform specific configuration + if sys.platform == 'darwin': + extra_link_args += ['-framework', 'CoreAudio', + '-framework', 'AudioToolbox', Added: head/audio/py-pyaudio/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-pyaudio/pkg-descr Sat Dec 22 10:11:42 2012 (r309383) @@ -0,0 +1,5 @@ +PyAudio provides Python bindings for PortAudio, the cross-platform +audio I/O library. With PyAudio, you can easily use Python to play +and record audio on a variety of platforms. + +WWW: http://people.csail.mit.edu/hubert/pyaudio/ Added: head/audio/py-pyaudio/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-pyaudio/pkg-plist Sat Dec 22 10:11:42 2012 (r309383) @@ -0,0 +1,35 @@ +%%PYTHON_SITELIBDIR%%/pyaudio.py +%%PYTHON_SITELIBDIR%%/pyaudio.pyc +%%PYTHON_SITELIBDIR%%/pyaudio.pyo +%%PYTHON_SITELIBDIR%%/_portaudio.so +%%PORTDOCS%%%%DOCSDIR%%/_sources/examples.txt +%%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt +%%PORTDOCS%%%%DOCSDIR%%/_static/ajax-loader.gif +%%PORTDOCS%%%%DOCSDIR%%/_static/basic.css +%%PORTDOCS%%%%DOCSDIR%%/_static/comment-bright.png +%%PORTDOCS%%%%DOCSDIR%%/_static/comment-close.png +%%PORTDOCS%%%%DOCSDIR%%/_static/comment.png +%%PORTDOCS%%%%DOCSDIR%%/_static/doctools.js +%%PORTDOCS%%%%DOCSDIR%%/_static/down-pressed.png +%%PORTDOCS%%%%DOCSDIR%%/_static/down.png +%%PORTDOCS%%%%DOCSDIR%%/_static/file.png +%%PORTDOCS%%%%DOCSDIR%%/_static/jquery.js +%%PORTDOCS%%%%DOCSDIR%%/_static/minus.png +%%PORTDOCS%%%%DOCSDIR%%/_static/nature.css +%%PORTDOCS%%%%DOCSDIR%%/_static/plus.png +%%PORTDOCS%%%%DOCSDIR%%/_static/pygments.css +%%PORTDOCS%%%%DOCSDIR%%/_static/searchtools.js +%%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js +%%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png +%%PORTDOCS%%%%DOCSDIR%%/_static/up.png +%%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js +%%PORTDOCS%%%%DOCSDIR%%/examples.html +%%PORTDOCS%%%%DOCSDIR%%/genindex.html +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/objects.inv +%%PORTDOCS%%%%DOCSDIR%%/py-modindex.html +%%PORTDOCS%%%%DOCSDIR%%/search.html +%%PORTDOCS%%%%DOCSDIR%%/searchindex.js +%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources +%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static +%%PORTDOCS%%@dirrm %%DOCSDIR%%