Ignore:
Timestamp:
03/05/12 20:10:56 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
1e9152426558384b30ea071b1a8ce35bce624a7f
Message:

New fink info file templates.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • install-scripts/mac/fink/orange-gui-hg-py.info

    r9512 r10439  
    11Info3: << 
    2 Package: orange-gui-svn-py%type_pkg[python] 
     2Package: orange-gui-hg-py%type_pkg[python] 
    33Type: python (2.6 2.7) 
    4 Version: 0.0.__DAILY_REVISION__ 
    5 Revision: 35 
    6 Source: http://orange.biolab.si/fink/dists/10.5/main/source/orange-svn-%v.tgz 
    7 Source-MD5: __DAILY_MD5SUM_ORANGE__ 
    8 Source2: http://orange.biolab.si/fink/dists/10.5/main/source/orange-bundlelite-svn-%v.tgz 
    9 Source2-MD5: __DAILY_MD5SUM_BUNDLELITE__ 
     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 
    1010Maintainer: Mitar <mitar@tnode.com> 
    1111HomePage: http://orange.biolab.si/ 
     
    1313Depends: << 
    1414    python%type_pkg[python], 
    15     orange-svn-py%type_pkg[python] (>= %v), 
     15    orange-hg-py%type_pkg[python] (>= %v), 
    1616    pyqt4-mac-py%type_pkg[python] (>= 4.4), 
    1717    pyqwt-qt4mac-py%type_pkg[python] (>= 5.1), 
    1818    opengl-py%type_pkg[python], 
    1919    sip-py%type_pkg[python], 
    20     graphviz 
     20    graphviz, 
     21    setuptools-py%type_pkg[python] 
    2122<< 
    2223BuildDepends: << 
     
    2728<< 
    2829# Conflicts other versions because of app bundle 
    29 Conflicts: orange, orange-svn 
    30 Replaces: orange-svn 
     30Conflicts: orange-gui-svn-py%type_pkg[python], orange-hg 
     31Replaces: orange-gui-svn-py%type_pkg[python], orange-hg-py%type_pkg[python] 
    3132Description: Data mining framework (GUI) 
    3233DescDetail: << 
     
    3839    This package provides a graphical user interface. 
    3940<< 
    40 AppBundles: ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange-%type_pkg[python].app 
     41AppBundles: ../orange-bundlelite-svn-0.0.12741/Orange-%type_pkg[python].app 
    4142Shlibs: << 
    42     %p/lib/python%type_raw[python]/site-packages/orange/orangeqt.so 0.0.0 %n (>= 0.0.0-1) 
     43    %p/lib/python%type_raw[python]/site-packages/orangeqt.so 0.0.0 %n (>= 0.0.0-1) 
    4344<< 
    4445SplitOff: << 
    45     Package: orange-svn-py%type_pkg[python] 
     46    Package: orange-hg-py%type_pkg[python] 
    4647    Depends: << 
    4748        python%type_pkg[python], 
     
    5051        networkx-py%type_pkg[python] 
    5152    << 
    52     Suggests: orange-gui-svn-py%type_pkg[python] 
    53     Conflicts: orange-py%type_pkg[python] 
     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] 
    5456    Description: Data mining framework (Python module) 
    5557    DescDetail: << 
     
    6264    << 
    6365    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) 
     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) 
    7071    << 
    7172    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/widgetParser.py 
    84         lib/python%type_raw[python]/site-packages/orange.pth 
    85         share/doc/orange-svn-py%type_pkg[python] 
     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 
    8677    << 
    8778<< 
     
    8980    #!/bin/bash -ev 
    9081     
     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     
    9188    # Compile scripts later on assume Python executable is named "python" - so we give them that 
    92     export PATH=%b:$PATH 
    93     ln -s %p/bin/python%type_raw[python] python 
     89    #export PATH=%b:$PATH 
     90    #ln -s %p/bin/python%type_raw[python] python 
    9491     
    95     # For cmake to find the correct python 
    96     export EXTRA_ORANGEQT_CMAKE_ARGS="-DPython_ADDITIONAL_VERSIONS=%type_raw[python] -DCMAKE_LIBRARY_PATH=%p/lib -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib" 
    97     # And cmake to find qmake 
     92    # To build orangeqt module we need to force cmake to look in 
     93    # the proper places. 
     94     
     95    # For cmake to find qmake 
    9896    export PATH=%p/lib/qt4-mac/bin:$PATH 
    9997    # And cmake to find PyQt4 
    10098    export PYTHONPATH=%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages/ 
    10199 
    102     # Compiles 
    103     cd source 
    104     make 
    105     cd crs 
    106     make 
    107     mv _orngCRS.so ../../ 
    108     cd ../../ 
    109      
    110     # Cleans 
    111     rm python 
     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 ../../../ 
    112107     
    113108    # Prepares bundle 
    114     cat <<-'EOF' > ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange.app/Contents/MacOS/Orange 
     109    cat <<-'EOF' > ../orange-bundlelite-svn-0.0.12741/Orange.app/Contents/MacOS/Orange 
    115110        #!/bin/bash 
    116111        . %p/bin/init.sh 
    117         CANVAS_FILE="%p/lib/python%type_raw[python]/site-packages/orange/OrangeCanvas/orngCanvas.pyw" 
     112        CANVAS_FILE="%p/lib/python%type_raw[python]/site-packages/Orange/OrangeCanvas/orngCanvas.pyw" 
    118113        export PYTHONPATH="%p/lib/qt4-mac/lib/python%type_raw[python]/site-packages${PYTHONPATH:+:$PYTHONPATH}" 
    119114        # LaunchServices passes the Carbon process identifier to the application with -psn parameter - we do not want it 
     
    123118        exec -a "$0" %p/bin/python%type_raw[python] "$CANVAS_FILE" "$@" 
    124119    EOF 
    125     chmod +x ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange.app/Contents/MacOS/Orange 
    126     mv ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange.app ../orange-bundlelite-svn-0.0.__DAILY_REVISION__/Orange-%type_pkg[python].app 
     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 
    127122<< 
    128123InstallScript: << 
    129124    #!/bin/bash -ev 
    130125     
    131     # Documentation for orange-gui-svn-py 
    132     mkdir -p %i/share/doc/orange-gui-svn-py%type_pkg[python]/ 
    133     cp COPYING LICENSES %i/share/doc/orange-gui-svn-py%type_pkg[python]/ 
    134     cp doc/style.css %i/share/doc/orange-gui-svn-py%type_pkg[python]/ 
    135     mv doc/widgets/ %i/share/doc/orange-gui-svn-py%type_pkg[python]/ 
     126    %p/bin/python%type_raw[python] setup.py install --root=%d --single-version-externally-managed 
    136127     
    137     # Documentation for orange-svn-py 
    138     mkdir -p %i/share/doc/orange-svn-py%type_pkg[python]/ 
    139     cp COPYING LICENSES %i/share/doc/orange-svn-py%type_pkg[python]/ 
    140     mv doc/* %i/share/doc/orange-svn-py%type_pkg[python]/ 
     128    # Also install orangeqt module 
     129    mv source/orangeqt/build/orangeqt.so  %i/lib/python%type_raw[python]/site-packages/ 
    141130     
    142     # Cleans up 
    143     rm -rf COPYING LICENSES doc/ source/ 
    144     rm -rf c45.dll liborange_include.a updateOrange.py 
     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 
    145133     
    146     # Files for both orange-gui-svn-py and orange-svn-py 
    147     mkdir -p %i/lib/python%type_raw[python]/site-packages/orange/ 
    148     mv * %i/lib/python%type_raw[python]/site-packages/orange/ 
     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]/ 
    149143     
    150     # Installation registration 
    151     echo "orange" > %i/lib/python%type_raw[python]/site-packages/orange.pth 
    152     echo "datasetsPath=\"%p/share/doc/orange-svn-py%type_pkg[python]/datasets/\"" > %i/lib/python%type_raw[python]/site-packages/orange/orngConfiguration.py 
     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 
    153149<< 
    154150<< 
Note: See TracChangeset for help on using the changeset viewer.