# $Id$

PortSystem 1.0
PortGroup python26 1.0

name            mimms
version         3.2.1
revision        1
categories      multimedia
maintainers     gmail.com:cedric.luthi openmaintainer
description     MiMMS isn't an MMS Message Sender, it's an MMS \
                (e.g. mms://) stream downloader.
long_description \
    MiMMS is a program designed to allow you to download streams using the MMS \
    protocol and save them to your computer, as opposed to watching them live. \
    Similar functionality is available in full media player suites such as \
    Xine and MPlayer, but MiMMS is quick and easy to use, and for the time \
    being, remains a useful program.
homepage        http://savannah.nongnu.org/projects/mimms/
platforms       darwin
master_sites    http://download.savannah.gnu.org/releases/mimms/
checksums       md5     ec629d8899551b4789ba15c17402c36f \
                sha1    279eee76dd4032cd2c1dddf1d49292a952c57b80 \
                rmd160  669d5d80ae9bd318bf98c032197fa6980622182e
use_bzip2       yes
depends_lib-append    port:libmms

configure {
    reinplace "s|libmms.so.0|${prefix}/lib/libmms.0.dylib|g" ${worksrcpath}/libmimms/libmms.py
}

post-destroot {
    foreach binfile [glob -tails -directory ${destroot}${python.prefix}/bin *] {
        ln -s ${python.prefix}/bin/${binfile} \
            ${destroot}${prefix}/bin/${binfile}
    }
    foreach manfile [glob -tails -directory ${destroot}${python.prefix}/share/man/man1 *] {
        ln -s ${python.prefix}/share/man/man1/${manfile} \
            ${destroot}${prefix}/share/man/man1/${manfile}
    }
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex mimms (\\d+(\\.\\d+)*) released