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.
homepage http://comix.sourceforge.net/
checksums rmd160 48e4fba57697feed1d71977c1a0693a1aa6c3caf
livecheck.regex {Comix (.*) released}
livecheck.url ${homepage}
set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
set python.pkgd ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages
set python.bin ${prefix}/bin/python${python.branch}
depends_lib port:py${python.version}-pygtk \
path:${python.pkgd}/PIL:py${python.version}-Pillow \
port:python${python.version} \
patchfiles patch-pillow-compat.diff
reinplace "s|^#!/usr/bin/env python\$|#!${python.bin}|" \
${worksrcpath}/src/comix.py
${python.bin} install.py --dir ${destroot}${prefix} --no-mime