# $Id: Portfile 49926 2009-04-20 08:06:02Z perry@macports.org $

PortSystem          1.0

name                comix
version             4.0.4
revision            1
categories          graphics
maintainers         perry
platforms           darwin

description         Comix is an user-friendly, customizable image viewer. It \
                    is specifically designed to handle comic books, but also \
                    serves as a generic viewer.
long_description    ${description} It reads images in ZIP, RAR or tar \
                    archives (also gzip or bzip2 compressed) as well as \
                    plain image files.
homepage            http://comix.sourceforge.net/

livecheck.check     regex
livecheck.regex     {Comix (.*) released}
livecheck.url       ${homepage}

depends_lib         port:py26-gtk port:py26-pil port:unrar

master_sites        sourceforge

checksums           rmd160 48e4fba57697feed1d71977c1a0693a1aa6c3caf

use_configure       no

build               {}

set python.bin      ${prefix}/bin/python2.6

pre-destroot {
    reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/src/comix.py
}

destroot.cmd        ${python.bin} install.py --dir ${destroot}${prefix} --no-mime
destroot.destdir    {}
