source: orange/install-scripts/mac/fink/orange-gui-dev-py.info @ 10936:faf18f091324

Revision 10936:faf18f091324, 5.4 KB checked in by Ales Erjavec <ales.erjavec@…>, 22 months ago (diff)

Updated fink .info files.

Line 
1Info3: <<
2Package: orange-gui-dev-py%type_pkg[python]
3Type: python (2.6 2.7)
4Version: __VERSION__
5Revision: 1
6Source: __SOURCE__
7Source-MD5: __MD5SUM__
8Source2: http://orange.biolab.si/fink/dists/10.6/main/source/orange-bundlelite-svn-0.0.12741.tgz
9Source2-MD5: b333b6b54a50685dddb75ba21df73617
10Maintainer: Mitar <mitar@tnode.com>
11HomePage: http://orange.biolab.si/
12License: GPL
13Depends: <<
14    python%type_pkg[python],
15    orange-dev-py%type_pkg[python] (>= %v),
16    pyqt4-mac-py%type_pkg[python] (>= 4.4),
17    pyqwt-qt4mac-py%type_pkg[python] (>= 5.1),
18    opengl-py%type_pkg[python],
19    sip-py%type_pkg[python],
20    graphviz,
21    distribute-py%type_pkg[python]
22<<
23BuildDepends: <<
24    qt4-base-mac,
25    sip-py%type_pkg[python]-bin,
26    pyqt4-mac-py%type_pkg[python],
27    cmake
28<<
29# Conflicts other versions because of app bundle
30Conflicts: orange-gui-svn-py%type_pkg[python], orange-dev
31Replaces: orange-gui-svn-py%type_pkg[python], orange-dev-py%type_pkg[python]
32Description: Data mining framework (GUI)
33DescDetail: <<
34    Orange is a component-based data mining software. It includes a range
35    of data visualization, exploration, preprocessing and modeling
36    techniques. It can be used through a nice and intuitive user interface
37    or, for more advanced users, as a module for Python programming language.
38   
39    This package provides a graphical user interface.
40<<
41AppBundles: ../orange-bundlelite-svn-0.0.12741/Orange-%type_pkg[python].app
42Shlibs: <<
43    %p/lib/python%type_raw[python]/site-packages/orangeqt.so 0.0.0 %n (>= 0.0.0-1)
44<<
45SplitOff: <<
46    Package: orange-dev-py%type_pkg[python]
47    Depends: <<
48        python%type_pkg[python],
49        numpy-py%type_pkg[python],
50        pil-py%type_pkg[python],
51        networkx-py%type_pkg[python]
52    <<
53    Suggests: orange-gui-dev-py%type_pkg[python]
54    Conflicts: orange-svn-py%type_pkg[python]
55    Replaces: orange-svn-py%type_pkg[python]
56    Description: Data mining framework (Python module)
57    DescDetail: <<
58        Orange is a component-based data mining software. It includes a range
59        of data visualization, exploration, preprocessing and modeling
60        techniques. It can be used through a nice and intuitive user interface
61        or, for more advanced users, as a module for Python programming language.
62       
63        This package provides a Python module.
64    <<
65    Files: <<
66        lib/python%type_raw[python]/site-packages/Orange/*
67        lib/python%type_raw[python]/site-packages/Orange-orng-modules.pth
68        lib/python%type_raw[python]/site-packages/Orange-*-py%type_raw[python].egg-info
69        share/doc/orange-dev-py%type_pkg[python]
70        bin/orange-canvas%type_raw[python]
71    <<
72<<
73CompileScript: <<
74    #!/bin/bash -ev
75   
76    export CPPFLAGS="-O0 -g0"
77    export LDFLAGS="-O0 -g0"
78
79    # Build orange
80    %p/bin/python%type_raw[python] setup.py build
81   
82    # To build orangeqt module we need to force cmake to look in
83    # the proper places.
84   
85    # For cmake to find qmake
86    export PATH=%p/lib/qt4-mac/bin:$PATH
87    # And cmake to find PyQt4
88    export PYTHONPATH=%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages/
89   
90    # Try every thing possible to convince cmake to use our python
91    export PATH=%b:$PATH
92    ln -s %p/bin/python%type_raw[python] python
93    ln -s %p/bin/python%type_raw[python] python%type_raw[python]
94
95    # Finally compile orangeqt
96    cd source/orangeqt
97    mkdir build
98    cd build
99    cmake -DCMAKE_BUILD_TYPE=Release -DPython_ADDITIONAL_VERSIONS=%type_raw[python] -DCMAKE_LIBRARY_PATH=%p/lib -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib ../
100    make VERBOSE=1
101    cd ../../../
102   
103    # Clean up the python sym links
104    rm python
105    rm python%type_raw[python]
106   
107    # Prepares bundle
108    cat <<-'EOF' > ../orange-bundlelite-svn-0.0.12741/Orange.app/Contents/MacOS/Orange
109        #!/bin/bash
110        . %p/bin/init.sh
111        CANVAS_FILE="%p/lib/python%type_raw[python]/site-packages/Orange/OrangeCanvas/orngCanvas.pyw"
112        export PYTHONPATH="%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages${PYTHONPATH:+:$PYTHONPATH}"
113        # LaunchServices passes the Carbon process identifier to the application with -psn parameter - we do not want it
114        if [[ "\$1" == -psn* ]] ; then
115            shift
116        fi
117        exec -a "$0" %p/bin/python%type_raw[python] "$CANVAS_FILE" "$@"
118    EOF
119    chmod +x ../orange-bundlelite-svn-0.0.12741/Orange.app/Contents/MacOS/Orange
120    mv ../orange-bundlelite-svn-0.0.12741/Orange.app ../orange-bundlelite-svn-0.0.12741/Orange-%type_pkg[python].app
121<<
122InstallScript: <<
123    #!/bin/bash -ev
124   
125    %p/bin/python%type_raw[python] setup.py install --root=%d --single-version-externally-managed
126   
127    # Also install orangeqt module
128    mv source/orangeqt/build/orangeqt.so  %i/lib/python%type_raw[python]/site-packages/
129   
130    # Fix install name id
131    install_name_tool -id %p/lib/python%type_raw[python]/site-packages/orangeqt.so %i/lib/python%type_raw[python]/site-packages/orangeqt.so
132   
133    # Register dataset path
134    # TODO: this should be done by setup.py install and using global orangerc.cfg file
135    echo "datasetsPath=\"%p/share/doc/orange-svn-py%type_pkg[python]/datasets/\"" > %i/lib/python%type_raw[python]/site-packages/Orange/orng/orngConfiguration.py   
136
137    # Documentation for orange-gui-dev-py
138    mkdir -p %i/share/doc/orange-gui-dev-py%type_pkg[python]/
139    cp COPYING LICENSES %i/share/doc/orange-gui-dev-py%type_pkg[python]/
140    cp Orange/doc/style.css %i/share/doc/orange-gui-dev-py%type_pkg[python]/
141    mv Orange/doc/widgets/ %i/share/doc/orange-gui-dev-py%type_pkg[python]/
142   
143    # Documentation for orange-dev-py
144    mkdir -p %i/share/doc/orange-dev-py%type_pkg[python]/
145    cp COPYING LICENSES %i/share/doc/orange-dev-py%type_pkg[python]/
146    mv Orange/doc/* %i/share/doc/orange-dev-py%type_pkg[python]/
147
148    # Add python version to bin/orange-canvas script
149    mv %i/bin/orange-canvas %i/bin/orange-canvas%type_raw[python]
150<<
151<<
Note: See TracBrowser for help on using the repository browser.