Permalink
Browse files

add more libraries

  • Loading branch information...
1 parent 1fb490f commit 697d9a0cdde5f53f0c9a8ada121f26b9c71ee102 @mpapis mpapis committed May 4, 2012
Showing with 16 additions and 9 deletions.
  1. +1 −1 config/defaults
  2. +15 −8 shell/functions
View
@@ -1,4 +1,4 @@
version=1.9.3-p194
package_extension=tar.bz2
base_url=http://ftp.ruby-lang.org/pub/ruby/1.9/
-configure_flags=--enable-load-relative --with-static-linked-ext --disable-shared
+configure_flags=--enable-load-relative --with-static-linked-ext --disable-shared --disable-install-doc
View
@@ -2,23 +2,28 @@
tokaido_install_package()
{
+ package reset
includes $1
- package is installed $1 &&
- log step "$1 already installed" true ||
+ package is installed name $1 &&
+ log step "$1 ~ already installed" true ||
CFLAGS="-fPIC" LDFLAGS="-fPIC" package install name $@ static
- package reset
}
tokaidoapp_install_dependencies()
{
typeset _set _lib
+ typeset -a _libs
- for _set in libraries tools
+ for _set in libraries tools gnu
do
set_install ${_set}
done
- for _lib in pkg-config libyaml zlib
+ _libs=( pkg-config gdbm libyaml zlib ncurses )
+ os is darwin || _libs+=( ncursesw )
+ _libs+=( readline )
+
+ for _lib in ${_libs[@]}
do
tokaido_install_package ${_lib}
done
@@ -67,7 +72,9 @@ tokaidoapp_ext_configure()
tokaidoapp_postconfigure()
{
- tokaidoapp_ext_configure openssl
- tokaidoapp_ext_configure zlib
- tokaidoapp_ext_configure psych
+ typeset option
+ for option in curses openssl zlib psych readline
+ do
+ tokaidoapp_ext_configure ${option}
+ done
}

0 comments on commit 697d9a0

Please sign in to comment.