--Apple-Mail-1-245096190
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset -ASCII;
delspサ
竟
マ チ アャ イーーカャ キコエク チヘャ ヘ ヒ コ
セ
セ ソ
ユャ ョ ノ ノ ョ モ
ョ
ュュモ
ュュチュヘュアュイエオーケカアケー
テュヤュナコ キ
テュヤコ ッュサ
ュュオオサ
ョ「
テュトコ サ
ョ
」。ッッ
ニナヤテネetch -ar"
#FETCH get"
#FETCH
url -O"
WORKDIR wd`/work
BOOTSTRAPDIR wd`/bootstrap
BUNDIR wd`/bundle
rm -rf build $BUNDIR $WORKDIR $BOOTSTRAPDIR
mkdir -p build
mkdir -p pkg
mkdir -p $BUNDIR
mkdir -p $WORKDIR
mkdir -p $BOOTSTRAPDIR
export LDFLAGS L$WORKDIR/lib"
export CPPFLAGS I$WORKDIR/include"
ORIGINAL_PATH PATH"
export PATH WORKDIR/bin:$PATH"
hash -r
#################
## Downloads ##
#################
# can we auto download *latest* packages???
cd pkg
$FETCH ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
$FETCH http://www.zlib.net/zlib-1.2.3.tar.gz
$FETCH http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.1.tar.gz
$FETCH http://www.openssl.org/source/openssl-0.9.8a.tar.gz
$FETCH ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.4.tar.gz
$FETCH ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.8.3.tar.gz
$FETCH http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.5.tar.gz
$FETCH http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
cd ..
cd build
###############
## ncurses ##
###############
tar zxvf ../pkg/ncurses-5.5.tar.gz
cd ncurses-5.5
# build once so we can get the database and infocmp
./configure \
--prefixOOTSTRAPDIR \
--with-static \
--with-shared \
--without-debug \
--without-profile \
--without-ada && \
make && \
make install || exit 1
OLD_PATH PATH"
export PATH BOOTSTRAPDIR/bin:$PATH"
hash -r
# build a second time, except embed a few termcaps (needed db & infocmp 1st)
FALLBACKS
nsi,linux,screen,screen-w,vt52,vt100,vt102,vt220,xterm,xterm-color,xterm-mono"
./configure \
--prefix ORKDIR \
--with-static \
--without-shared \
--without-rpath \
--without-debug \
--without-profile \
--without-ada \
--without-progs \
--disable-database \
--with-fallbacksALLBACKS && \
make && \
make install || exit 1
export PATH OLD_PATH"
hash -r
cd ..
################
## readline ##
################
tar zxvf ../pkg/readline-5.1.tar.gz
cd readline-5.1
./configure \
--prefix ORKDIR \
--enable-static \
--disable-shared && \
make && \
make install || exit 1
cd ..
############
## zlib ##
############
tar zxvf ../pkg/zlib-1.2.3.tar.gz
cd zlib-1.2.3/
./configure \
--prefix ORKDIR && \
make && \
make install || exit 1
cd ..
#############
## iconv ##
#############
tar zxvf ../pkg/libiconv-1.9.1.tar.gz
cd libiconv-1.9.1/
./configure \
--prefix ORKDIR \
--enable-static \
--disable-shared \
--disable-rpath && \
make && \
make install || exit 1
cd ..
###############
## OpenSSL ##
###############
# cannot link statically with openssl
# conflicts with digest extension!!!
#tar zxvf ../pkg/openssl-0.9.8a.tar.gz
#cd openssl-0.9.8a/
## cannot build with zlib b/c ruby's ext mkmf fails to add -lz
#./config \
# --prefix ORKDIR \
# --openssldir ORKDIR \
# -L$WORKDIR/lib \
# -I$WORKDIR/include \
# no-shared \
# no-asm && \
#make && \
#make install || exit 1
#cd ..
############
## gdbm ##
############
tar zxvf ../pkg/gdbm-1.8.3.tar.gz
cd gdbm-1.8.3/
./configure \
--prefix ORKDIR \
--enable-static \
--disable-shared && \
make && \
make install BINOWN SER BINGRP ROUP && \
make install-compat BINOWN SER BINGRP ROUP || exit 1
cd ..
############
## Ruby ##
############
tar zxvf ../pkg/ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure \
--prefixUNDIR \
--enable-static \
--disable-shared \
--disable-rpath \
--with-static-linked-ext \
--enable-install-doc \
--with-curses-dir ORKDIR \
--with-dbm-dir ORKDIR \
--with-gdbm-dir ORKDIR \
--with-iconv-dir ORKDIR \
--with-openssl-dir ORKDIR \
--with-readline-dir ORKDIR \
--with-zlib-dir ORKDIR && \
make && \
make install || exit 1
cd ..
##############################
## Setup Ruby Environment ##
##############################
export PATH BUNDIR/bin:$ORIGINAL_PATH"
hash -r
########################
## Install RubyGems ##
########################
tar xzvf ../pkg/rubygems-0.8.11.tgz
cd rubygems-0.8.11
ruby setup.rb
cd ..
############
## Gems ##
############
tar xzvf ../pkg/rubygems-0.8.11.tgz
gem update --system -y
gem install rails -y
gem install capistrano -y
cd ..
echo "Bundle complete!"
--Apple-Mail-1-245096190--