# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 89318 2012-01-25 03:46:59Z rmstonecipher@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-eyed3
version             0.6.18
categories-append   audio
platforms           darwin
maintainers         elelay openmaintainer
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           md5     ad545c55bb8bdd579e8d14c5bdaacee5 \
                    sha1    d8887f7b75306bd293e0b0d46a977e73225ae7b5 \
                    rmd160  da94054d67d124f560d8fad2caaca88b4b71a408
patchfiles          patch-bin-eyeD3.diff

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
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "The current stable version is (\\d+\\.\\d+\\.\\d+)"
