1 # Contributor: fazibear <fazibear@gmail.com>
7 pkgdesc="Ruby Enterprise Edition"
9 url="http://www.rubyenterpriseedition.com/"
11 depends=(zlib openssl gcc)
12 source=("http://rubyforge.org/frs/download.php/41040/ruby-enterprise-${pkgver}-${_pkgver}.tar.gz")
13 md5sums=('bfdcf06f437af825cd9f2d321f9d1896')
15 cd "${startdir}/src/ruby-enterprise-${pkgver}-${_pkgver}/source/vendor/google-perftools-${_preftoolsver}"
16 ./configure --disable-dependency-tracking
17 make libtcmalloc_minimal.la || return 1
18 install -d ${startdir}/pkg/opt/rubyee/lib/
19 cp .libs/libtcmalloc_minimal.so* ${startdir}/pkg/opt/rubyee/lib/
21 cd "${startdir}/src/ruby-enterprise-${pkgver}-${_pkgver}/source/"
22 ./configure --enable-shared --enable-pthread --prefix=/opt/rubyee
23 make EXTLIBS="-Wl,-rpath,${startdir}/pkg/opt/rubyee/lib/ -L${startdir}/pkg/opt/rubyee/lib/ -ltcmalloc_minimal"
24 make DESTDIR="$startdir/pkg" install
26 install -d $startdir/pkg/usr/bin
27 for binary in erb gem irb rake rdoc ri ruby; do
28 ln -sf /opt/rubyee/bin/${binary} ${startdir}/pkg/usr/bin/${binary}ee
31 cd "${startdir}/src/ruby-enterprise-${pkgver}-${_pkgver}/rubygems"
32 ${startdir}/pkg/opt/rubyee/bin/ruby setup.rb --prefix=${startdir}/pkg/opt/rubyee/lib/ruby/1.8 --no-ri --no-rdoc
34 cp -r ${startdir}/pkg/opt/rubyee/lib/ruby/1.8/lib/* ${startdir}/pkg/opt/rubyee/lib/ruby/1.8/
35 rm -rf ${startdir}/pkg/opt/rubyee/lib/ruby/1.8/lib
37 cp -r ${startdir}/pkg/opt/rubyee/lib/ruby/1.8/bin ${startdir}/pkg/opt/rubyee/
38 rm -rf ${startdir}/pkg/opt/rubyee/lib/ruby/1.8/bin
40 # vim:set ts=2 sw=2 et: