updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / rubyee / PKGBUILD
blob822a24df25633518e9a5530636620a62bac53d56
1 # Contributor: fazibear <fazibear@gmail.com>
2 pkgname=rubyee
3 pkgver=1.8.6
4 _pkgver=20080810
5 _preftoolsver=0.98
6 pkgrel=1
7 pkgdesc="Ruby Enterprise Edition"
8 arch=(i686)
9 url="http://www.rubyenterpriseedition.com/"
10 license=('custom')
11 depends=(zlib openssl gcc)
12 source=("http://rubyforge.org/frs/download.php/41040/ruby-enterprise-${pkgver}-${_pkgver}.tar.gz")
13 md5sums=('bfdcf06f437af825cd9f2d321f9d1896')
14 build() {
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
25   
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
29   done
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
33   
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
36   
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: