Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 73 lines (63 sloc) 1.273 kb
32fd08d @mpapis fixing dependencies and install
mpapis authored
1 #!/bin/sh
5a29574 @mpapis transform code to sm extension
mpapis authored
2
432cbd4 @mpapis improved installer, added proper versions of dependencies
mpapis authored
3 tokaido_install_package()
4 {
63d48c2 @mpapis use all the params of install_package
mpapis authored
5 includes $1
6 package is installed $1 &&
7 log step "$1 already installed" true ||
46388a8 @mpapis working on linux version
mpapis authored
8 LDFLAGS="-fPIC" package install name $@ static
432cbd4 @mpapis improved installer, added proper versions of dependencies
mpapis authored
9 package reset
10 }
11
12 tokaidoapp_install_dependencies()
5a29574 @mpapis transform code to sm extension
mpapis authored
13 {
14 typeset _set _lib
15
4640006 @mpapis add pkg-config to dependencies to solve openssl linking issue
mpapis authored
16 for _set in libraries tools
5a29574 @mpapis transform code to sm extension
mpapis authored
17 do
18 set_install ${_set}
19 done
20
4640006 @mpapis add pkg-config to dependencies to solve openssl linking issue
mpapis authored
21 for _lib in pkg-config libyaml zlib
22 do
23 tokaido_install_package ${_lib}
24 done
25
60997e1 @mpapis improve the installation process
mpapis authored
26 if os is darwin
27 then
28 # TODO: why limit openssl on osx ?
29 tokaido_install_package openssl version 0.9.8t
30 else
31 tokaido_install_package openssl
32 fi
5a29574 @mpapis transform code to sm extension
mpapis authored
33 }
34
32fd08d @mpapis fixing dependencies and install
mpapis authored
35 tokaidoapp_prefetch()
36 {
37 package define \
38 file "ruby-${package_version}.${archive_format}" \
39 dir "ruby-${package_version}"
40 }
60997e1 @mpapis improve the installation process
mpapis authored
41
42 tokaidoapp_preconfigure()
43 {
44 # only on osx, on linux it causes glibc conflicts
45 if os is darwin
46 then
47 LDFLAGS="-Bstatic $LDFLAGS"
48 else
46388a8 @mpapis working on linux version
mpapis authored
49 LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS"
60997e1 @mpapis improve the installation process
mpapis authored
50 fi
51 }
46388a8 @mpapis working on linux version
mpapis authored
52
53 tokaidoapp_ext_configure()
54 {
55 if file contains in ext/Setup \
56 regex "$1"
57 then
58 file replace in ext/Setup \
59 regex "#$1" \
60 with "$1"
61 else
62 file write append to ext/Setup \
63 content "$1"
64 fi
65 }
66
67 tokaidoapp_postconfigure()
68 {
69 tokaidoapp_ext_configure openssl
70 tokaidoapp_ext_configure zlib
71 tokaidoapp_ext_configure psych
72 }
Something went wrong with that request. Please try again.