Portfile

# $Id: Portfile 22721 2007-03-12 23:44:39Z mww@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name py-eyed3
version 0.6.12
categories python audio
platforms darwin
maintainers nomaintainer@macports.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 c66a52b06670ff2e486a04a3076b0e654f3f0095

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}
}