# $Id: Portfile 38289 2008-07-15 04:06:14Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-vorbis
version			1.4
revision		1
categories		python audio
platforms		darwin
maintainers		nomaintainer
description		Python module for Ogg Vorbis audio encoding and decoding
long_description	${description}

homepage		http://ekyo.nerim.net/software/pyogg/
master_sites	${homepage}
distname		pyvorbis-${version}
checksums		md5 b4921e792c0a74f75b9d3057df10ee7c
patchfiles		patch-pyvorbiscodec.c.diff \
				patch-pyvorbisfile.c.diff \
				patch-pyvorbisinfo.c.diff \
				patch-vorbismodule.c.diff \
				patch-vorbismodule.h.diff \
				patch-config_unix.py

depends_lib-append	lib:libvorbis:libvorbis \
				port:py-ogg

use_configure	yes
pre-configure	{
	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config_unix.py
}
configure.cmd	${python.bin} config_unix.py
configure.pre_args

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
		NEWS ${destroot}${prefix}/share/doc/${name}
}
