updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-enterprise / PKGBUILD
blob15da01f33a3617e0a6d5c0bd62fe69f24a6edf56
1 # Contributor: Jeffrey Gelens <jgelens@gmail.com>
2 pkgname=ruby-enterprise
3 pkgver=1.8.7
4 _pkgver=2011.12
5 pkgrel=11
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."
7 arch=('i686' 'x86_64')
8 url="http://www.rubyenterpriseedition.com"
9 license=('GPL2')
10 depends=('openssl' 'zlib' 'readline')
11 provides=('ruby')
12 backup=()
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')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver-$_pkgver"
20   pushd source/distro
21   ln -sf ../../../google-perftools-1.8.1
22   rm -Rf google-perftools-1.7
23   popd
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
29 @@ -52,5 +52,6 @@
30  DLTYPE.keys.sort.each{|t|
31    for n in 0..(MAX_CALLBACK - 1)
32      print(mkfunc(t, n, 15), "\n\n")
33 +    STDOUT.flush
34    end
35  }
36 EOF
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
41 @@ -14,5 +14,6 @@
42  DLTYPE.keys.sort.each{|t|
43    for n in 0..(MAX_CALLBACK - 1)
44      print(mktable(t, n, 15), "\n")
45 +    STDOUT.flush
46    end
47  }
48 EOF
49 #EOF
50   ./installer -a /opt/ruby-enterprise --destdir=$pkgdir --dont-install-useful-gems
52 # vim:ts=2:sw=2:et