# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-id3lib
version             0.5.1
categories-append   audio
license             LGPL-2.1
platforms           darwin
maintainers         liqui.org:rjkroege maubi.net:waterson openmaintainer
description         Python module for reading and writing id3v2 tags
long_description    ${description}

homepage            http://pyid3lib.sourceforge.net/
master_sites        sourceforge:pyid3lib
distname            pyid3lib-${version}
checksums           md5 5fd37a7dda7c540f665ca5d428a28f5e

python.versions     27

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:id3lib port:zlib

    patchfiles      patch-setup.py.diff \
                    patch-pyid3lib.py.diff

    post-patch {
        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
    }
}
