source: orange/install-scripts/mac/fink/orange-gui-svn-py.info @ 8951:dab530afe304

Revision 8951:dab530afe304, 6.0 KB checked in by mitar, 3 years ago (diff)

Improving Fink packages dependencies and separation.

Line 
1Info3: <<
2Package: orange-gui-svn-py%type_pkg[python]
3Type: python (2.6 2.7)
4Version: 0.0.__DAILY_REVISION__
5Revision: 34
6Source: http://orange.biolab.si/fink/dists/10.5/main/source/orange-svn-%v.tgz
7Source-MD5: __DAILY_MD5SUM_ORANGE__
8Source2: http://orange.biolab.si/fink/dists/10.5/main/source/orange-bundlelite-svn-%v.tgz
9Source2-MD5: __DAILY_MD5SUM_BUNDLELITE__
10Maintainer: Mitar <mitar@tnode.com>
11HomePage: http://orange.biolab.si/
12License: GPL
13Depends: <<
14    python%type_pkg[python],
15    orange-svn-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<<
22BuildDepends: <<
23    qt4-base-mac,
24    sip-py%type_pkg[python]-bin,
25    pyqt4-mac-py%type_pkg[python],
26    cmake
27<<
28# Conflicts other versions because of app bundle
29Conflicts: orange, orange-svn
30Replaces: orange-svn
31Description: Data mining framework (GUI)
32DescDetail: <<
33    Orange is a component-based data mining software. It includes a range
34    of data visualization, exploration, preprocessing and modeling
35    techniques. It can be used through a nice and intuitive user interface
36    or, for more advanced users, as a module for Python programming language.
37   
38    This package provides a graphical user interface.
39<<
40AppBundles: ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange-%type_pkg[python].app
41Shlibs: <<
42    %p/lib/python%type_raw[python]/site-packages/orange/orangeqt.so 0.0.0 %n (>= 0.0.0-1)
43<<
44SplitOff: <<
45    Package: orange-svn-py%type_pkg[python]
46    Depends: <<
47        python%type_pkg[python],
48        numpy-py%type_pkg[python],
49        pil-py%type_pkg[python],
50        networkx-py%type_pkg[python]
51    <<
52    Suggests: orange-gui-svn-py%type_pkg[python]
53    Conflicts: orange-py%type_pkg[python]
54    Description: Data mining framework (Python module)
55    DescDetail: <<
56        Orange is a component-based data mining software. It includes a range
57        of data visualization, exploration, preprocessing and modeling
58        techniques. It can be used through a nice and intuitive user interface
59        or, for more advanced users, as a module for Python programming language.
60       
61        This package provides a Python module.
62    <<
63    Shlibs: <<
64        %p/lib/python%type_raw[python]/site-packages/orange/orange.so 0.0.0 %n (>= 0.0.0-1)
65        %p/lib/python%type_raw[python]/site-packages/orange/orangeom.so 0.0.0 %n (>= 0.0.0-1)
66        %p/lib/python%type_raw[python]/site-packages/orange/corn.so 0.0.0 %n (>= 0.0.0-1)
67        %p/lib/python%type_raw[python]/site-packages/orange/statc.so 0.0.0 %n (>= 0.0.0-1)
68        %p/lib/python%type_raw[python]/site-packages/orange/orangene.so 0.0.0 %n (>= 0.0.0-1)
69        %p/lib/python%type_raw[python]/site-packages/orange/_orngCRS.so 0.0.0 %n (>= 0.0.0-1)
70    <<
71    Files: <<
72        lib/python%type_raw[python]/site-packages/orange/fixes/*
73        lib/python%type_raw[python]/site-packages/orange/Orange/*
74        lib/python%type_raw[python]/site-packages/orange/orange.so
75        lib/python%type_raw[python]/site-packages/orange/orangeom.so
76        lib/python%type_raw[python]/site-packages/orange/corn.so
77        lib/python%type_raw[python]/site-packages/orange/statc.so
78        lib/python%type_raw[python]/site-packages/orange/orangene.so
79        lib/python%type_raw[python]/site-packages/orange/_orngCRS.so
80        lib/python%type_raw[python]/site-packages/orange/orng*.py
81        lib/python%type_raw[python]/site-packages/orange/mathutil.py
82        lib/python%type_raw[python]/site-packages/orange/orange2to25.py
83        lib/python%type_raw[python]/site-packages/orange/urllib2_file.py
84        lib/python%type_raw[python]/site-packages/orange/widgetParser.py
85        lib/python%type_raw[python]/site-packages/orange.pth
86        share/doc/orange-svn-py%type_pkg[python]
87    <<
88<<
89CompileScript: <<
90    #!/bin/bash -ev
91   
92    # Compile scripts later on assume Python executable is named "python" - so we give them that
93    export PATH=%b:$PATH
94    ln -s %p/bin/python%type_raw[python] python
95   
96    # For cmake to find the correct python
97    export EXTRA_ORANGEQT_CMAKE_ARGS="-DPython_ADDITIONAL_VERSIONS=%type_raw[python] -DCMAKE_LIBRARY_PATH=%p/lib -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib"
98    # And cmake to find qmake
99    export PATH=%p/lib/qt4-mac/bin:$PATH
100    # And cmake to find PyQt4
101    export PYTHONPATH=%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages/
102
103    # Compiles
104    cd source
105    make
106    cd crs
107    make
108    mv _orngCRS.so ../../
109    cd ../../
110   
111    # Cleans
112    rm python
113   
114    # Prepares bundle
115    cat <<-'EOF' > ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange.app/Contents/MacOS/Orange
116        #!/bin/bash
117        . %p/bin/init.sh
118        CANVAS_FILE="%p/lib/python%type_raw[python]/site-packages/orange/OrangeCanvas/orngCanvas.pyw"
119        export PYTHONPATH="%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages${PYTHONPATH:+:$PYTHONPATH}"
120        # LaunchServices passes the Carbon process identifier to the application with -psn parameter - we do not want it
121        if [[ "\$1" == -psn* ]] ; then
122            shift
123        fi
124        exec -a "$0" %p/bin/python%type_raw[python] "$CANVAS_FILE" "$@"
125    EOF
126    chmod +x ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange.app/Contents/MacOS/Orange
127    mv ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange.app ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange-%type_pkg[python].app
128<<
129InstallScript: <<
130    #!/bin/bash -ev
131   
132    # Documentation for orange-gui-svn-py
133    mkdir -p %i/share/doc/orange-gui-svn-py%type_pkg[python]/
134    cp COPYING LICENSES %i/share/doc/orange-gui-svn-py%type_pkg[python]/
135    cp doc/style.css %i/share/doc/orange-gui-svn-py%type_pkg[python]/
136    mv doc/widgets/ %i/share/doc/orange-gui-svn-py%type_pkg[python]/
137   
138    # Documentation for orange-svn-py
139    mkdir -p %i/share/doc/orange-svn-py%type_pkg[python]/
140    cp COPYING LICENSES %i/share/doc/orange-svn-py%type_pkg[python]/
141    mv doc/* %i/share/doc/orange-svn-py%type_pkg[python]/
142   
143    # Cleans up
144    rm -rf COPYING LICENSES doc/ source/
145    rm -rf c45.dll liborange_include.a updateOrange.py
146   
147    # Files for both orange-gui-svn-py and orange-svn-py
148    mkdir -p %i/lib/python%type_raw[python]/site-packages/orange/
149    mv * %i/lib/python%type_raw[python]/site-packages/orange/
150   
151    # Installation registration
152    echo "orange" > %i/lib/python%type_raw[python]/site-packages/orange.pth
153    echo "datasetsPath=\"%p/share/doc/orange-svn-py%type_pkg[python]/datasets/\"" > %i/lib/python%type_raw[python]/site-packages/orange/orngConfiguration.py
154<<
155<<
Note: See TracBrowser for help on using the repository browser.