# $Id: Portfile,v 1.10 2006/03/20 15:37:00 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-eyed3
version			0.6.10
categories		python audio
platforms		darwin
maintainers		mww@opendarwin.org
description		python module and program for processing ID3 tags
long_description	eyeD3 is a Python program/module for processing \
				(reading and writing) ID3 tags. Information about mp3 \
				files (i.e bit rate, sample frequency, play time, \
				etc.) is also available. The formats supported are ID3 \
				v1.0/v1.1 and v2.3/v2.4.

homepage		http://eyed3.nicfit.net/
master_sites	${homepage}/releases/
distname		eyeD3-${version}
checksums		sha1 9c2c67ead8fc6005ba5d58ebd072273c54bdd818

depends_lib-append	port:py-optik

use_configure	yes
post-configure	{
	reinplace "s|/usr/bin/env python|${python.bin}|g" ${worksrcpath}/bin/eyeD3
}

post-destroot	{
	xinstall -m 755 ${worksrcpath}/bin/eyeD3 ${destroot}${prefix}/bin
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
		README README.html THANKS TODO \
		${destroot}${prefix}/share/doc/${name}
}

