# -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# $Id: Portfile 117808 2014-03-13 12:12:43Z g5pw@macports.org $

PortSystem 1.0
PortGroup python 1.0

name            py-mutagen
version         1.22
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       rmd160  7b537e21c4c0681374106cbde2f21e99cfb55253 \
                sha256  ddf2907bcaf4827b044a3d70b2fb3c1b58954497d86133f16715fc6c407d494e

python.versions 24 25 26 27

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