Skip to content
This repository
Newer
Older
100755 72 lines (63 sloc) 1.273 kb
32fd08d0 » mpapis
2012-04-16 fixing dependencies and install
1 #!/bin/sh
5a29574e » mpapis
2012-04-16 transform code to sm extension
2
432cbd48 » mpapis
2012-04-17 improved installer, added proper versions of dependencies
3 tokaido_install_package()
4 {
63d48c2c » mpapis
2012-04-19 use all the params of install_package
5 includes $1
6 package is installed $1 &&
7 log step "$1 already installed" true ||
46388a8a » mpapis
2012-05-03 working on linux version
8 LDFLAGS="-fPIC" package install name $@ static
432cbd48 » mpapis
2012-04-17 improved installer, added proper versions of dependencies
9 package reset
10 }
11
12 tokaidoapp_install_dependencies()
5a29574e » mpapis
2012-04-16 transform code to sm extension
13 {
14 typeset _set _lib
15
46400066 » mpapis
2012-04-30 add pkg-config to dependencies to solve openssl linking issue
16 for _set in libraries tools
5a29574e » mpapis
2012-04-16 transform code to sm extension
17 do
18 set_install ${_set}
19 done
20
46400066 » mpapis
2012-04-30 add pkg-config to dependencies to solve openssl linking issue
21 for _lib in pkg-config libyaml zlib
22 do
23 tokaido_install_package ${_lib}
24 done
25
60997e14 » mpapis
2012-04-30 improve the installation process
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
5a29574e » mpapis
2012-04-16 transform code to sm extension
33 }
34
32fd08d0 » mpapis
2012-04-16 fixing dependencies and install
35 tokaidoapp_prefetch()
36 {
37 package define \
38 file "ruby-${package_version}.${archive_format}" \
39 dir "ruby-${package_version}"
40 }
60997e14 » mpapis
2012-04-30 improve the installation process
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
46388a8a » mpapis
2012-05-03 working on linux version
49 LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS"
60997e14 » mpapis
2012-04-30 improve the installation process
50 fi
51 }
46388a8a » mpapis
2012-05-03 working on linux version
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.