Ticket #25905: Portfile.3

File Portfile.3, 2.8 KB (added by jul_bsd@…, 10 years ago)

picviz-gui

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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7#PortGroup           cmake 1.0
8
9name                picviz-gui
10version             0.6.1
11categories          graphics net
12platforms           darwin
13maintainers         yahoo.fr:jul_bsd openmaintainer
14description         (gui) Picviz can help you to understand what is \
15                    happening on your network and machines by \
16                    visualizing events in multi-dimensions with the \
17                    help of parallel coordinates plot.
18long_description    ${description}
19license             GPL-3+ + Specific Picviz license terms
20homepage            http://www.picviz.com/en/community/picviz/picviz.html
21master_sites        http://www.picviz.com/downloads/
22distname            picviz-latest
23extract.suffix      .tar.bz2
24worksrcdir          ${distname}/picviz-gui
25
26checksums           rmd160  232491961385208b9d19015de1db7171949e973a \
27                    sha256  3fdc4f60c821f377514ccd5ceacf83b197e747ea928e6f80e020c25395a43b00
28
29python.versions    26 27
30python.default_version 27
31
32depends_build       port:cmake
33depends_lib         port:libpicviz port:qt4-mac port:py${python.version}-pyqt4
34depends_run         port:py-picviz
35
36use_configure       no
37
38build.env                 PYTHONPATH=${python.pkgd}
39pre-build {
40    ## Note: else, got a "ImportError: No module named PyQt4" from pyuic4-2.7
41    ##  => launch make before to create UiPicviz.py
42    reinplace "s|pyuic4|pyuic4-${python.branch}|;s|pyrcc4|pyrcc4-${python.branch}|;s|sed -i|#sed -i|" \
43        ${worksrcpath}/Makefile
44    reinplace "s|../../../../../../../usr|${prefix}|g" \
45        ${worksrcpath}/picviz.ui
46    reinplace "s|data_files.append(('/usr/share/picviz-gui/icons', files))|data_files.append(('${prefix}/share/picviz-gui/icons', files))|" \
47        ${worksrcpath}/setup.py
48    system "cd ${worksrcpath} && make"
49}
50
51post-build {
52    reinplace "s|import sys|import sys\\\nsys.path.append('${python.pkgd}')|" \
53        ${worksrcpath}/build/scripts-${python.branch}/picviz-gui
54}
55
56post-destroot {
57    xinstall -d ${destroot}${prefix}/share/examples/${name}
58    copy ${worksrcpath}/samples ${destroot}${prefix}/share/examples/${name}/
59}
60
61variant python26 description { use Python 2.6 bindings } {
62    ## Note: in tree py-psyco only 24, 25, 26 and dead project
63    depends_lib-append        port:py26-psyco
64    python.default_version    26
65}
66
67## FIXME! at run
68## "objc[57029]: Class QNSMenu is implemented in both /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui and /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui_debug. One of the two will be used. Which one is undefined."
69## seems some text/icons are missing: not usable ...
70
71livecheck.type     none