# -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name            py-mutagen
version         1.20
description     A Python module to handle audio metadata
platforms       darwin
supported_archs noarch
categories-append     audio devel
license         GPL-2
maintainers     sfiera elelay openmaintainer
long_description \
    Supports ASF, FLAC, M4A, Monkey's Audio, MP3, Musepack, Ogg FLAC, Ogg \
    Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio \
    files. All versions of ID3v2 are supported, and all standard ID3v2.4 \
    frames are parsed. It can read Xing headers to accurately calculate the \
    bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of \
    audio format. It can also manipulate Ogg streams on an individual \
    packet/page level.

distname        mutagen-${version}
homepage        http://code.google.com/p/mutagen/
master_sites    googlecode:mutagen
checksums       md5 adb16d9f6056bc864a5c86c6f885af79 \
                sha1 7a8c1918160e6b5d24acd146f57c08ed942a2fa8 \
                rmd160 e8edceba11d670cdd3021429debcf454e11d4d96

python.versions 24 25 26 27

if {$subport == $name} {
    livecheck.type		regex
    livecheck.url		http://code.google.com/p/mutagen/downloads/list
    livecheck.regex "mutagen-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
