summaryrefslogtreecommitdiff
path: root/extra/subversion/PKGBUILD
blob: 42f7e8e251bc8924573b3a74d240307f5a256932 (plain)
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
# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no Apache server integration
  makedepends=(${makedepends[@]//apache/})
  eval "$(
    declare -f build | \
      sed '
        s@--with-apxs@@
        s@--with-apache-libexecdir=/usr/lib/httpd/modules@@
      '
  )"

  # no Java bindings
  makedepends=(${makedepends[@]//java-environment<10/})
  eval "$(
    declare -f build | \
      sed '
        s@--enable-javahl@--disable-javahl@
        s@--with-jdk=/usr/lib/jvm/default@@
        /make/s/javahl//
      '
  )"
  eval "$(
    declare -f package | \
      sed '
        /make/s/install-javahl//
      '
  )"

  # no Ruby bindings
  makedepends=(${makedepends[@]//ruby/})
  eval "$(
    declare -f build | \
      sed '
        s@--with-ruby-sitedir=/usr/lib/ruby/vendor_ruby@@
        /make/s/swig-rb//
      '
  )"
  eval "$(
    declare -f check | \
      sed '
        /make/s/check-swig-rb//
      '
  )"
  eval "$(
    declare -f package | \
      sed '
        /make/s/install-swig-rb//
      '
  )"

  # no KDE gui
  makedepends=(${makedepends[@]//kdelibs4support/})
  makedepends=(${makedepends[@]//kwallet/})
  eval "$(
    declare -f build | \
      sed '
        s@--with-kwallet@@
      '
  )"

  # no Gnome gui
  makedepends=(${makedepends[@]//libgnome-keyring/})
  eval "$(
    declare -f build | \
      sed '
        s@--with-gnome-keyring@@
        s@--with-jdk=/usr/lib/jvm/default@@
      '
  )"


fi