1 # Contributor: Jeffrey Gelens <jgelens@gmail.com>
2 pkgname=ruby-enterprise
6 pkgdesc="Ruby Enterprise Edition is a drop-in, transparent solution for improving your Ruby on Rails website's scalability and performance, while decreasing memory usage."
8 url="http://www.rubyenterpriseedition.com"
10 depends=('openssl' 'zlib' 'readline')
13 source=(http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-$pkgver-$_pkgver.tar.gz http://google-perftools.googlecode.com/files/google-perftools-1.8.1.tar.gz)
14 install=$pkgname.install
15 md5sums=('1e5f3059d52a67ab5d91d472b756de08'
16 '6003e5a8f4bfa4409f5dc35ea7d4012d')
19 cd "$srcdir/$pkgname-$pkgver-$_pkgver"
21 ln -sf ../../../google-perftools-1.8.1
22 rm -Rf google-perftools-1.7
24 sed --in-place 's/google-perftools-1.7/google-perftools-1.8.1/g' installer.rb source/distro/installer.rb
26 cat << EOF | patch -p0 --unified --ignore-whitespace --verbose
27 --- source/ext/dl/mkcallback.rb.orig 2011-08-04 00:09:48.000000000 -0400
28 +++ source/ext/dl/mkcallback.rb 2011-08-04 00:10:11.000000000 -0400
30 DLTYPE.keys.sort.each{|t|
31 for n in 0..(MAX_CALLBACK - 1)
32 print(mkfunc(t, n, 15), "\n\n")
38 cat << EOF | patch -p0
39 --- source/ext/dl/mkcbtable.rb.orig 2011-08-04 00:14:53.000000000 -0400
40 +++ source/ext/dl/mkcbtable.rb 2011-08-04 00:15:28.000000000 -0400
42 DLTYPE.keys.sort.each{|t|
43 for n in 0..(MAX_CALLBACK - 1)
44 print(mktable(t, n, 15), "\n")
50 ./installer -a /opt/ruby-enterprise --destdir=$pkgdir --dont-install-useful-gems