From owner-svn-ports-head@FreeBSD.ORG Thu Jan 1 19:56:46 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 193097E; Thu, 1 Jan 2015 19:56:46 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 04C18662BE; Thu, 1 Jan 2015 19:56:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t01Jujse020667; Thu, 1 Jan 2015 19:56:45 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t01JujFV020664; Thu, 1 Jan 2015 19:56:45 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201501011956.t01JujFV020664@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Thu, 1 Jan 2015 19:56:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376027 - in head/audio/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-head@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 01 Jan 2015 19:56:46 -0000 Author: pawel Date: Thu Jan 1 19:56:44 2015 New Revision: 376027 URL: https://svnweb.freebsd.org/changeset/ports/376027 QAT: https://qat.redports.org/buildarchive/r376027/ Log: - Update to version 0.2.8, add LICENSE [1] - Fix build on DragonFly and when LOCALBASE != PREFIX [2] - Make sure to link with audio/portaudio2 [2] PR: 196054 Submitted by: maintainer [1], Jan Beich [2] Modified: head/audio/py-pyaudio/Makefile head/audio/py-pyaudio/distinfo head/audio/py-pyaudio/files/patch-setup.py Modified: head/audio/py-pyaudio/Makefile ============================================================================== --- head/audio/py-pyaudio/Makefile Thu Jan 1 19:29:33 2015 (r376026) +++ head/audio/py-pyaudio/Makefile Thu Jan 1 19:56:44 2015 (r376027) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pyaudio -PORTVERSION= 0.2.7 +PORTVERSION= 0.2.8 CATEGORIES= audio python MASTER_SITES= http://people.csail.mit.edu/hubert/pyaudio/packages/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,7 +10,9 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jaap@NLnetLabs.nl COMMENT= Portaudio toolkit bindings for Python -LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio2 +LICENSE= MIT + +LIB_DEPENDS= libportaudio.so.2:${PORTSDIR}/audio/portaudio2 USES= python USE_PYTHON= distutils autoplist @@ -21,7 +23,8 @@ OPTIONS_DEFINE= DOCS PORTDOCS= * post-patch: - @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/setup.py + @${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${WRKSRC}/setup.py post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} Modified: head/audio/py-pyaudio/distinfo ============================================================================== --- head/audio/py-pyaudio/distinfo Thu Jan 1 19:29:33 2015 (r376026) +++ head/audio/py-pyaudio/distinfo Thu Jan 1 19:56:44 2015 (r376027) @@ -1,2 +1,2 @@ -SHA256 (pyaudio-0.2.7.tar.gz) = 7807cf937df3652f64b014b9f579c308cf87057d32ed4250a6b28844e2b56287 -SIZE (pyaudio-0.2.7.tar.gz) = 182396 +SHA256 (pyaudio-0.2.8.tar.gz) = 4f85367cf79657616684487037957ac38582ecc5389b89420fe61d901b719551 +SIZE (pyaudio-0.2.8.tar.gz) = 235900 Modified: head/audio/py-pyaudio/files/patch-setup.py ============================================================================== --- head/audio/py-pyaudio/files/patch-setup.py Thu Jan 1 19:29:33 2015 (r376026) +++ head/audio/py-pyaudio/files/patch-setup.py Thu Jan 1 19:56:44 2015 (r376027) @@ -1,29 +1,15 @@ --- ./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 @@ +@@ -74,6 +74,12 @@ else: external_libraries = ['portaudio'] extra_link_args = [] -+if sys.platform.startswith('freebsd'): -+ extra_link_args = ['-L%%PREFIX%%/lib/portaudio2'] ++if sys.platform.startswith('dragonfly') or \ ++ sys.platform.startswith('freebsd'): ++ include_dirs = ['%%LOCALBASE%%/include/portaudio2'] ++ external_libraries = [] ++ extra_link_args = ['%%LOCALBASE%%/lib/portaudio2/libportaudio.so'] + 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',