# $Id: Portfile 89318 2012-01-25 03:46:59Z rmstonecipher@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-eyed3
version			0.6.18
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    d8887f7b75306bd293e0b0d46a977e73225ae7b5
patchfiles          patch-bin-eyeD3.diff

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

