# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem          1.0

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

description         Comix is a user-friendly, customizable image viewer.
long_description    ${description} It is specifically designed to handle comic \
                    books, but also serves as a generic viewer. It reads \
                    images in ZIP, RAR or tar archives (also gzip or bzip2 \
                    compressed) as well as plain image files. It is written in \
                    Python and uses GTK+ through the PyGTK bindings.
license             GPL-2
homepage            http://comix.sourceforge.net/

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

depends_lib         port:py26-gtk port:py26-pil port:python26 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    {}
