File: install-dependencies

package info (click to toggle)
qtwebkit-opensource-src 5.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 291,692 kB
  • ctags: 268,122
  • sloc: cpp: 1,360,420; python: 70,286; ansic: 42,986; perl: 35,476; ruby: 12,236; objc: 9,465; xml: 8,396; asm: 3,873; yacc: 2,397; sh: 1,647; makefile: 650; lex: 644; java: 110
file content (75 lines) | stat: -rwxr-xr-x 1,602 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash

# This script needs to be run with root rights.
if [ $UID -ne 0 ]; then
    sudo $0
    exit 0
fi

function printNotSupportedMessageAndExit() {
    echo
    echo "Currently this script only works for distributions supporting apt-get."
    echo "Please add support for your distribution."
    echo
    exit 1
}

function checkInstaller {
    # apt-get - Debian based distributions
    apt-get --version &> /dev/null
    if [ $? -eq 0 ]; then
        installDependenciesWithApt
        exit 0
    fi

    printNotSupportedMessageAndExit
}

function installDependenciesWithApt {
    # These are dependencies necessary for building WebKitEFL.
    apt-get install \
        bison \
        cmake \
        flex \
        g++ \
        gperf \
        gtk-doc-tools \
        subversion \
        ruby \
        libicu-dev \
        libxslt1-dev \
        libsqlite3-dev \
        libjpeg-dev \
        libpng-dev \
        libxt-dev \
        libgl1-mesa-dev \
        libgnutls-dev \
        libdbus-1-dev \
        libudev-dev \
        liblua5.1-0-dev \
        ragel \
        libfreetype6-dev \
        libffi-dev \
        libtiff4-dev \
        libenchant-dev \
        libxcomposite-dev \
        libatk1.0-dev \
        libtheora-dev \
        libvorbis-dev \
        libfaad-dev \
        libpulse-dev \
        libxrender-dev \
        libp11-kit-dev \
        libgpg-error-dev \
        libgcrypt11-dev

    # These are dependencies necessary for running tests.
    apt-get install \
        apache2 \
        libapache2-mod-php5 \
        libruby \
        xvfb
}

checkInstaller