summaryrefslogtreecommitdiff
path: root/extra/subversion/PKGBUILD
blob: f3cc407f27618ff18f6837e9914c87610b453f2f (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# no Java bindings on i486
makedepends=(${makedepends[@]//java-environment>=8/})
makedepends_i686+=('java-environment>=8')

# no Ruby bindings on i486
makedepends=(${makedepends[@]//ruby/})
checkdepends=(${checkdepends[@]//ruby-test-unit/})
makedepends_i686+=(ruby)
checkdepends_i686+=(ruby-test-unit)

# no KDE gui on i486
makedepends=(${makedepends[@]//kdelibs4support/})
makedepends=(${makedepends[@]//kwallet/})
makedepends_i686+=(kdelibs4support kwallet)

# no Gnome gui on i486
makedepends=(${makedepends[@]//libgnome-keyring/})
makedepends_i686+=(libgnome-keyring)

checkdepends_pentium4=("${checkdepends_i686[@]}")
makedepends_pentium4=("${makedepends_i686[@]}")

# make failing check() non-fatal
eval "$(
  declare -f check \
  | sed '
    /make check/s/;\?$/ || true/
  '
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no Java bindings
  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
  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
  eval "$(
    declare -f build | \
      sed '
        s@--with-kwallet@@
      '
  )"

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

fi