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.

RevLine 
[6717]1Info3: <<
[10622]2Package: orange-gui-dev-py%type_pkg[python]
[8108]3Type: python (2.6 2.7)
[10441]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
[6717]10Maintainer: Mitar <mitar@tnode.com>
[7662]11HomePage: http://orange.biolab.si/
[6717]12License: GPL
13Depends: <<
14    python%type_pkg[python],
[10622]15    orange-dev-py%type_pkg[python] (>= %v),
[6717]16    pyqt4-mac-py%type_pkg[python] (>= 4.4),
17    pyqwt-qt4mac-py%type_pkg[python] (>= 5.1),
[8878]18    opengl-py%type_pkg[python],
[8951]19    sip-py%type_pkg[python],
[10441]20    graphviz,
[10602]21    distribute-py%type_pkg[python]
[6717]22<<
[8784]23BuildDepends: <<
[8850]24    qt4-base-mac,
[8784]25    sip-py%type_pkg[python]-bin,
[8885]26    pyqt4-mac-py%type_pkg[python],
[8784]27    cmake
28<<
[6717]29# Conflicts other versions because of app bundle
[10622]30Conflicts: orange-gui-svn-py%type_pkg[python], orange-dev
31Replaces: orange-gui-svn-py%type_pkg[python], orange-dev-py%type_pkg[python]
[6717]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<<
[10441]41AppBundles: ../orange-bundlelite-svn-0.0.12741/Orange-%type_pkg[python].app
[8784]42Shlibs: <<
[10441]43    %p/lib/python%type_raw[python]/site-packages/orangeqt.so 0.0.0 %n (>= 0.0.0-1)
[8784]44<<
[6717]45SplitOff: <<
[10622]46    Package: orange-dev-py%type_pkg[python]
[6717]47    Depends: <<
48        python%type_pkg[python],
49        numpy-py%type_pkg[python],
[8108]50        pil-py%type_pkg[python],
51        networkx-py%type_pkg[python]
[6717]52    <<
[10622]53    Suggests: orange-gui-dev-py%type_pkg[python]
[10441]54    Conflicts: orange-svn-py%type_pkg[python]
55    Replaces: orange-svn-py%type_pkg[python]
[6717]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: <<
[10441]66        lib/python%type_raw[python]/site-packages/Orange/*
67        lib/python%type_raw[python]/site-packages/Orange-orng-modules.pth
[10936]68        lib/python%type_raw[python]/site-packages/Orange-*-py%type_raw[python].egg-info
[10622]69        share/doc/orange-dev-py%type_pkg[python]
[10454]70        bin/orange-canvas%type_raw[python]
[6717]71    <<
72<<
73CompileScript: <<
74    #!/bin/bash -ev
75   
[10441]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
[8878]86    export PATH=%p/lib/qt4-mac/bin:$PATH
[8892]87    # And cmake to find PyQt4
88    export PYTHONPATH=%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages/
[10452]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]
[8878]94
[10441]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 ../../../
[6717]102   
[10452]103    # Clean up the python sym links
104    rm python
105    rm python%type_raw[python]
106   
[6717]107    # Prepares bundle
[10441]108    cat <<-'EOF' > ../orange-bundlelite-svn-0.0.12741/Orange.app/Contents/MacOS/Orange
[6717]109        #!/bin/bash
110        . %p/bin/init.sh
[10441]111        CANVAS_FILE="%p/lib/python%type_raw[python]/site-packages/Orange/OrangeCanvas/orngCanvas.pyw"
[7726]112        export PYTHONPATH="%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages${PYTHONPATH:+:$PYTHONPATH}"
[6717]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
[10441]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
[6717]121<<
122InstallScript: <<
123    #!/bin/bash -ev
124   
[10441]125    %p/bin/python%type_raw[python] setup.py install --root=%d --single-version-externally-managed
[6717]126   
[10441]127    # Also install orangeqt module
128    mv source/orangeqt/build/orangeqt.so  %i/lib/python%type_raw[python]/site-packages/
[6717]129   
[10441]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
[6717]132   
[10441]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
[10622]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]/
[6717]142   
[10622]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]/
[10441]147
[10452]148    # Add python version to bin/orange-canvas script
[10454]149    mv %i/bin/orange-canvas %i/bin/orange-canvas%type_raw[python]
[6717]150<<
151<<
Note: See TracBrowser for help on using the repository browser.