source: orange/install-scripts/mac/fink/orange-gui-hg-py.info @ 10439:60321896f568

Revision 10439:60321896f568, 5.5 KB checked in by Ales Erjavec <ales.erjavec@…>, 2 years ago (diff)

New fink info file templates.

Line 
1Info3: <<
2Package: orange-gui-hg-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-hg-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    setuptools-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-hg
31Replaces: orange-gui-svn-py%type_pkg[python], orange-hg-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-hg-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-hg-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    Shlibs: <<
66        %p/lib/python%type_raw[python]/site-packages/Orange/orange.so 0.0.0 %n (>= 0.0.0-1)
67        %p/lib/python%type_raw[python]/site-packages/Orange/orangeom.so 0.0.0 %n (>= 0.0.0-1)
68        %p/lib/python%type_raw[python]/site-packages/Orange/corn.so 0.0.0 %n (>= 0.0.0-1)
69        %p/lib/python%type_raw[python]/site-packages/Orange/statc.so 0.0.0 %n (>= 0.0.0-1)
70        %p/lib/python%type_raw[python]/site-packages/Orange/orangene.so 0.0.0 %n (>= 0.0.0-1)
71    <<
72    Files: <<
73        lib/python%type_raw[python]/site-packages/Orange/*
74        lib/python%type_raw[python]/site-packages/Orange-orng-modules.pth
75        share/doc/orange-hg-py%type_pkg[python]
76        bin/orange-canvas
77    <<
78<<
79CompileScript: <<
80    #!/bin/bash -ev
81   
82    export CPPFLAGS="-O0 -g0"
83    export LDFLAGS="-O0 -g0"
84
85    # Build orange
86    %p/bin/python%type_raw[python] setup.py build
87   
88    # Compile scripts later on assume Python executable is named "python" - so we give them that
89    #export PATH=%b:$PATH
90    #ln -s %p/bin/python%type_raw[python] python
91   
92    # To build orangeqt module we need to force cmake to look in
93    # the proper places.
94   
95    # For cmake to find qmake
96    export PATH=%p/lib/qt4-mac/bin:$PATH
97    # And cmake to find PyQt4
98    export PYTHONPATH=%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages/
99
100    # Finally compile orangeqt
101    cd source/orangeqt
102    mkdir build
103    cd build
104    cmake -DCMAKE_BUILD_TYPE=Release -DPython_ADDITIONAL_VERSIONS=%type_raw[python] -DCMAKE_LIBRARY_PATH=%p/lib -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib ../
105    make VERBOSE=1
106    cd ../../../
107   
108    # Prepares bundle
109    cat <<-'EOF' > ../orange-bundlelite-svn-0.0.12741/Orange.app/Contents/MacOS/Orange
110        #!/bin/bash
111        . %p/bin/init.sh
112        CANVAS_FILE="%p/lib/python%type_raw[python]/site-packages/Orange/OrangeCanvas/orngCanvas.pyw"
113        export PYTHONPATH="%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages${PYTHONPATH:+:$PYTHONPATH}"
114        # LaunchServices passes the Carbon process identifier to the application with -psn parameter - we do not want it
115        if [[ "\$1" == -psn* ]] ; then
116            shift
117        fi
118        exec -a "$0" %p/bin/python%type_raw[python] "$CANVAS_FILE" "$@"
119    EOF
120    chmod +x ../orange-bundlelite-svn-0.0.12741/Orange.app/Contents/MacOS/Orange
121    mv ../orange-bundlelite-svn-0.0.12741/Orange.app ../orange-bundlelite-svn-0.0.12741/Orange-%type_pkg[python].app
122<<
123InstallScript: <<
124    #!/bin/bash -ev
125   
126    %p/bin/python%type_raw[python] setup.py install --root=%d --single-version-externally-managed
127   
128    # Also install orangeqt module
129    mv source/orangeqt/build/orangeqt.so  %i/lib/python%type_raw[python]/site-packages/
130   
131    # Fix install name id
132    install_name_tool -id %i/lib/python%type_raw[python]/site-packages/orangeqt.so %i/lib/python%type_raw[python]/site-packages/orangeqt.so
133   
134    # Register dataset path
135    # TODO: this should be done by setup.py install and using global orangerc.cfg file
136    echo "datasetsPath=\"%p/share/doc/orange-svn-py%type_pkg[python]/datasets/\"" > %i/lib/python%type_raw[python]/site-packages/Orange/orng/orngConfiguration.py   
137
138    # Documentation for orange-gui-hg-py
139    mkdir -p %i/share/doc/orange-gui-hg-py%type_pkg[python]/
140    cp COPYING LICENSES %i/share/doc/orange-gui-hg-py%type_pkg[python]/
141    cp Orange/doc/style.css %i/share/doc/orange-gui-hg-py%type_pkg[python]/
142    mv Orange/doc/widgets/ %i/share/doc/orange-gui-hg-py%type_pkg[python]/
143   
144    # Documentation for orange-hg-py
145    mkdir -p %i/share/doc/orange-hg-py%type_pkg[python]/
146    cp COPYING LICENSES %i/share/doc/orange-hg-py%type_pkg[python]/
147    mv Orange/doc/* %i/share/doc/orange-hg-py%type_pkg[python]/
148
149<<
150<<
Note: See TracBrowser for help on using the repository browser.