From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 30 12:40:04 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8836216A404 for ; Fri, 30 Mar 2007 12:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6953513C465 for ; Fri, 30 Mar 2007 12:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2UCe4Ft002081 for ; Fri, 30 Mar 2007 12:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2UCe4OQ002080; Fri, 30 Mar 2007 12:40:04 GMT (envelope-from gnats) Resent-Date: Fri, 30 Mar 2007 12:40:04 GMT Resent-Message-Id: <200703301240.l2UCe4OQ002080@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Carl Johan Gustavsson Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B1BBF16A400 for ; Fri, 30 Mar 2007 12:31:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id A23A613C480 for ; Fri, 30 Mar 2007 12:31:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2UCV8UH071321 for ; Fri, 30 Mar 2007 12:31:08 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l2UCQ6cE069879; Fri, 30 Mar 2007 12:26:06 GMT (envelope-from nobody) Message-Id: <200703301226.l2UCQ6cE069879@www.freebsd.org> Date: Fri, 30 Mar 2007 12:26:06 GMT From: Carl Johan Gustavsson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/111032: New port: audio/py-speex Python bindings for the Speex encoding/decoding codec X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2007 12:40:04 -0000 >Number: 111032 >Category: ports >Synopsis: New port: audio/py-speex Python bindings for the Speex encoding/decoding codec >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 30 12:40:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Carl Johan Gustavsson >Release: FreeBSD 6.2-STABLE (i386) >Organization: - >Environment: - >Description: This is a port which provides Python bindings for the Speex codec. http://www.freenet.org.nz/python/pySpeex/ >How-To-Repeat: - >Fix: Shell archive attached. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-speex # py-speex/Makefile # py-speex/pkg-descr # py-speex/distinfo # py-speex/files # py-speex/files/patch-setup.py # py-speex/files/patch-speex.pyx # echo c - py-speex mkdir -p py-speex > /dev/null 2>&1 echo x - py-speex/Makefile sed 's/^X//' >py-speex/Makefile << 'END-of-py-speex/Makefile' X# New ports collection makefile for: py-speex X# Date created: 3 March 2007 X# Whom: Carl Johan Gustavsson X# X# $FreeBSD$ X# X XPORTNAME= speex XPORTVERSION= 0.2 XCATEGORIES= audio python XMASTER_SITES= http://www.freenet.org.nz/python/pySpeex/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= pySpeex-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XDIST_SUBDIR= python X XMAINTAINER= cjg@bsdmail.org XCOMMENT= Python bindings for the Speex compressor/decompressor audio codec X XBUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex XLIB_DEPENDS= speex.1:${PORTSDIR}/audio/speex X XPLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/speex.so XUSE_PYTHON= yes XUSE_PYDISTUTILS=yes X Xpost-patch: X @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ X ${WRKSRC}/setup.py X X.include END-of-py-speex/Makefile echo x - py-speex/pkg-descr sed 's/^X//' >py-speex/pkg-descr << 'END-of-py-speex/pkg-descr' Xpy-speex is a Python module that provides bindings for the Speex audio Xcompressor/decompressor codec. X XWWW: http://www.freenet.org.nz/python/pySpeex/ END-of-py-speex/pkg-descr echo x - py-speex/distinfo sed 's/^X//' >py-speex/distinfo << 'END-of-py-speex/distinfo' XMD5 (python/pySpeex-0.2.tar.gz) = 5f6837cd74568fb58bb15d43fe2406ea XSHA256 (python/pySpeex-0.2.tar.gz) = aca41ca9650765b58de0e1c0a6676658564a8009dd544aeec08087f6c3dc6bd6 XSIZE (python/pySpeex-0.2.tar.gz) = 17665 END-of-py-speex/distinfo echo c - py-speex/files mkdir -p py-speex/files > /dev/null 2>&1 echo x - py-speex/files/patch-setup.py sed 's/^X//' >py-speex/files/patch-setup.py << 'END-of-py-speex/files/patch-setup.py' X--- setup.py.orig Sun Oct 30 13:10:14 2005 X+++ setup.py Sat Mar 3 00:40:44 2007 X@@ -5,9 +5,9 @@ X from distutils.core import setup, Extension X from Pyrex.Distutils import build_ext X X-incDirs = ['../libspeex', '/usr/include/speex', '/usr/local/include/speex'] X+incDirs = ['%%LOCALBASE%%/include', '%%LOCALBASE%%/include/speex'] X libs = [] X-libDirs = [] X+libDirs = ['%%LOCALBASE%%/lib'] X runtimeLibDirs = [] X cMacros = [] X #extraLinkArgs = ['-g', '/usr/lib/libspeex.a'] # static END-of-py-speex/files/patch-setup.py echo x - py-speex/files/patch-speex.pyx sed 's/^X//' >py-speex/files/patch-speex.pyx << 'END-of-py-speex/files/patch-speex.pyx' X--- speex.pyx.orig Sat Mar 3 00:32:39 2007 X+++ speex.pyx Sat Mar 3 00:33:01 2007 X@@ -365,7 +365,7 @@ X bufOut[bufOutSiz] = nBytes % 256 X bufOut[bufOutSiz+1] = nBytes / 256 X bufOutSiz = bufOutSiz + 2 X- memcpy(bufOut+bufOutSiz, cbits, nBytes) X+ memcpy(bufOut+bufOutSiz, cbits, nBytes) X # printf("ok5\n") X bufOutSiz = bufOutSiz + nBytes X # printf("ok6\n") X@@ -522,7 +522,7 @@ X X # Copy from float to short (16 bits) for output X for i from 0 <= i < self.encFramesPerBlock: X- decShorts1[i] = decFloats1[i] X+ decShorts1[i] = decFloats1[i] X X self.decPhase = 0 # back to awaiting LSB of count header X self.decNumBytes = 0 END-of-py-speex/files/patch-speex.pyx exit >Release-Note: >Audit-Trail: >Unformatted: