source: trunk/dports/graphics/MyPaint/Portfile @ 107821

Last change on this file since 107821 was 107821, checked in by ryandesign@…, 6 years ago

mongodb, oracle-instantclient, curl, VillainousStyle, pure-gen, MyPaint, keybinder, fontconfig, graphviz-oldgui, openni, ttf2eot: use eq and ne for string comparisons

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 107821 2013-07-06 08:26:24Z ryandesign@macports.org $
3
4PortSystem                  1.0
5PortGroup                   app 1.0
6
7name                        MyPaint
8set my_name                 mypaint
9version                     1.1.0
10revision                    1
11homepage                    http://mypaint.info/
12categories                  graphics
13maintainers                 ryandesign
14license                     GPL-2 LGPL
15use_xz                      yes
16platforms                   darwin
17use_parallel_build          yes
18distname                    ${my_name}-${version}
19
20description                 a fast and easy graphics application for digital painters
21
22long_description            ${name} is ${description}. It lets you focus on the art \
23                            instead of the program. You work on your canvas with \
24                            minimum distractions, bringing up the interface only \
25                            when you need it.
26
27master_sites                http://download.gna.org/mypaint/
28
29checksums                   rmd160  a102688793e2392f70bd625d65cd5b4ea763adec \
30                            sha256  58fd90b08fa3142b6dddc2a656c0e406fc3ebcf9086b84e83815780ab7698036
31
32depends_build               port:pkgconfig \
33                            port:scons \
34                            port:swig-python
35
36depends_lib                 port:json-c \
37                            port:lcms2 \
38                            port:libpng \
39                            port:py27-pygtk \
40                            port:py27-numpy \
41                            port:py27-protobuf
42
43depends_run                 port:hicolor-icon-theme
44
45patchfiles                  patch-SConstruct.diff
46patchfiles-append           patch-malloc.diff
47
48use_configure               no
49
50variant universal {}
51
52build.cmd                   ${prefix}/bin/scons
53build.target
54build.args                  python_binary=${prefix}/bin/python2.7 \
55                            python_config=${prefix}/bin/python2.7-config
56build.env                   CC="${configure.cc} [get_canonical_archflags cc]" \
57                            CXX="${configure.cxx} [get_canonical_archflags cxx]" \
58                            PKG_CONFIG_PATH="${frameworks_dir}/Python.framework/Versions/2.7/lib/pkgconfig"
59
60eval destroot.args          ${build.args} \
61                            prefix=${prefix}
62eval destroot.env           ${build.env}
63# Setting --install-sandbox to an absolute path to a subdirectory of ${worksrcpath}
64# is supposed to work, but doesn't; see https://gna.org/bugs/?20399
65#destroot.destdir            --install-sandbox=${worksrcpath}/destroot
66destroot.destdir            --install-sandbox=pre-destroot
67
68# prefix must apparently be a nonexistent directory that MacPorts nevertheless has
69# permission to create during the build phase; see https://gna.org/bugs/?20399
70build.args-append           prefix=${workpath}/nonexistent
71
72post-destroot {
73    # Because we must set --install-sandbox to a relative path for now, multiple pre-destroot
74    # directories get created, which must now be combined; see https://gna.org/bugs/?20399
75    fs-traverse d ${worksrcpath} {
76        if {[file tail ${d}] eq "pre-destroot"} {
77            ui_debug "merging ${d} with destroot"
78            system -W ${destroot} "tar -C ${d} -c -f - .${prefix} | tar -x -p -v -f -"
79        }
80    }
81    set docdir ${destroot}${prefix}/share/doc/${name}
82    xinstall -d ${docdir}
83    xinstall -m 644 -W ${worksrcpath} \
84        COPYING \
85        LICENSE \
86        README \
87        ${docdir}
88}
89
90post-activate {
91    system "${prefix}/bin/gtk-update-icon-cache -tf ${prefix}/share/icons/hicolor"
92}
93
94app.executable              ${workpath}/${name}
95app.icon                    pixmaps/mypaint_logo.png
96
97platform macosx {
98    post-extract {
99        xinstall -m 755 ${filespath}/${name}.in ${workpath}/${name}
100    }
101    post-patch {
102        reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name}
103    }
104}
105
106livecheck.type              regex
107livecheck.url               [lindex ${master_sites} 0]
108livecheck.regex             ${my_name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.