1 # Based on a script originally by Aaron Cook <cookacounty@gmail.com>
3 # This script will build git-cola on an older Linux distribution, e.g. RHEL 5.
4 # Replace COLA_PREFIX with your path to install somewhere else.
5 # Set NUM_JOBS to control the number of cores used to build.
6 # This script defaults to 2.
8 # To run git cola, use it directly through $COLA_PREFIX/bin/git-cola.
9 # There is also a softlink at $COLA_PREFIX/bin/cola.
10 # You can add the $COLA_PREFIX/bin to your PATH or softlink git-cola (or cola)
11 # from a directory that is already in your PATH.
19 - PATH="$PWD/local/git-cola/bin":"$PATH" COLA_PREFIX="$PWD/local/git-cola" NUM_JOBS=4
22 - mkdir -p local/git-cola
23 - mkdir -p local/sandbox
27 - wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
28 - tar xzf Python-2.7.11.tgz
30 - ./configure --prefix=$COLA_PREFIX --enable-unicode=ucs4
36 - wget https://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
37 - tar xzf qt-everywhere-opensource-src-4.8.6.tar.gz
38 - cd qt-everywhere-opensource-src-4.8.6
39 - echo yes | ./configure -prefix "$COLA_PREFIX" -opensource -no-qt3support -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg
45 - wget "http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz"
46 - tar xzf sip-4.16.5.tar.gz
48 - python ./configure.py
54 - wget "http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz"
55 - tar xzf PyQt-x11-gpl-4.11.3.tar.gz
56 - cd PyQt-x11-gpl-4.11.3
57 - python ./configure.py -q "$COLA_PREFIX/bin/qmake" --confirm-license --no-designer-plugin --no-qsci-api --no-timestamp
66 - make prefix="$COLA_PREFIX" install install-doc