Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 46388a8acd
Fetching contributors…

Cannot retrieve contributors at this time

executable file 73 lines (63 sloc) 1.273 kB
#!/bin/sh
tokaido_install_package()
{
includes $1
package is installed $1 &&
log step "$1 already installed" true ||
LDFLAGS="-fPIC" package install name $@ static
package reset
}
tokaidoapp_install_dependencies()
{
typeset _set _lib
for _set in libraries tools
do
set_install ${_set}
done
for _lib in pkg-config libyaml zlib
do
tokaido_install_package ${_lib}
done
if os is darwin
then
# TODO: why limit openssl on osx ?
tokaido_install_package openssl version 0.9.8t
else
tokaido_install_package openssl
fi
}
tokaidoapp_prefetch()
{
package define \
file "ruby-${package_version}.${archive_format}" \
dir "ruby-${package_version}"
}
tokaidoapp_preconfigure()
{
# only on osx, on linux it causes glibc conflicts
if os is darwin
then
LDFLAGS="-Bstatic $LDFLAGS"
else
LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS"
fi
}
tokaidoapp_ext_configure()
{
if file contains in ext/Setup \
regex "$1"
then
file replace in ext/Setup \
regex "#$1" \
with "$1"
else
file write append to ext/Setup \
content "$1"
fi
}
tokaidoapp_postconfigure()
{
tokaidoapp_ext_configure openssl
tokaidoapp_ext_configure zlib
tokaidoapp_ext_configure psych
}
Jump to Line
Something went wrong with that request. Please try again.