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

PortSystem 1.0
PortGroup python24 1.0

name			py-eyed3
version			0.6.14
categories		python audio
platforms		darwin
maintainers		nomaintainer
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 69b0e790a48be57b31efe9fe94d768ac40435eb6

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}
	xinstall -m 644 ${worksrcpath}/doc/eyeD3.1 ${destroot}${prefix}/share/man/man1
}

