source: trunk/dports/graphics/comix/Portfile

Last change on this file was 122193, checked in by petr@…, 3 years ago

graphics/comix @4.0.4_2: switch from py*-pil to path-based dependency, add patch, revision bump due to patch, some reformating, ticket #44284

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 122193 2014-07-17 15:36:29Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                comix
6version             4.0.4
7revision            3
8categories          graphics
9maintainers         perry openmaintainer
10platforms           darwin
11license             GPL-2
12
13description         Comix is a user-friendly, customizable image viewer.
14long_description    ${description} It is specifically designed to handle comic \
15                    books, but also serves as a generic viewer. It reads \
16                    images in ZIP, RAR or tar archives (also gzip or bzip2 \
17                    compressed) as well as plain image files. It is written in \
18                    Python and uses GTK+ through the PyGTK bindings.
19
20homepage            http://comix.sourceforge.net/
21
22master_sites        sourceforge
23
24checksums           rmd160 48e4fba57697feed1d71977c1a0693a1aa6c3caf
25
26livecheck.regex     {Comix (.*) released}
27livecheck.type      regex
28livecheck.url       ${homepage}
29
30set python.version  26
31set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
32set python.pkgd     ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages
33set python.bin      ${prefix}/bin/python${python.branch}
34
35depends_lib         port:py${python.version}-pygtk \
36                    path:${python.pkgd}/PIL:py${python.version}-Pillow \
37                    port:python${python.version} \
38                    port:unrar
39
40patchfiles          patch-pillow-compat.diff
41
42use_configure       no
43
44build               {}
45
46pre-destroot {
47    reinplace "s|^#!/usr/bin/env python\$|#!${python.bin}|" \
48        ${worksrcpath}/src/comix.py
49}
50
51destroot.cmd        \
52        ${python.bin} install.py --dir ${destroot}${prefix} --no-mime
53
54destroot.destdir    {}
Note: See TracBrowser for help on using the repository browser.