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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | #PortGroup cmake 1.0 |
---|
8 | |
---|
9 | name picviz-gui |
---|
10 | version 0.6.1 |
---|
11 | categories graphics net |
---|
12 | platforms darwin |
---|
13 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
14 | description (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. |
---|
18 | long_description ${description} |
---|
19 | license GPL-3+ + Specific Picviz license terms |
---|
20 | homepage http://www.picviz.com/en/community/picviz/picviz.html |
---|
21 | master_sites http://www.picviz.com/downloads/ |
---|
22 | distname picviz-latest |
---|
23 | extract.suffix .tar.bz2 |
---|
24 | worksrcdir ${distname}/picviz-gui |
---|
25 | |
---|
26 | checksums rmd160 232491961385208b9d19015de1db7171949e973a \ |
---|
27 | sha256 3fdc4f60c821f377514ccd5ceacf83b197e747ea928e6f80e020c25395a43b00 |
---|
28 | |
---|
29 | python.versions 26 27 |
---|
30 | python.default_version 27 |
---|
31 | |
---|
32 | depends_build port:cmake |
---|
33 | depends_lib port:libpicviz port:qt4-mac port:py${python.version}-pyqt4 |
---|
34 | depends_run port:py-picviz |
---|
35 | |
---|
36 | use_configure no |
---|
37 | |
---|
38 | build.env PYTHONPATH=${python.pkgd} |
---|
39 | pre-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 | |
---|
51 | post-build { |
---|
52 | reinplace "s|import sys|import sys\\\nsys.path.append('${python.pkgd}')|" \ |
---|
53 | ${worksrcpath}/build/scripts-${python.branch}/picviz-gui |
---|
54 | } |
---|
55 | |
---|
56 | post-destroot { |
---|
57 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
---|
58 | copy ${worksrcpath}/samples ${destroot}${prefix}/share/examples/${name}/ |
---|
59 | } |
---|
60 | |
---|
61 | variant 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 | |
---|
71 | livecheck.type none |
---|