# Maintainer: Markus M. May <triplem@tu.archserver.org>
# Contributor: Jeffrey Gelens <jgelens@gmail.com>
pkgname=ruby-enterprise
pkgver=1.8.7
_pkgver=2010.02
pkgrel=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."
arch=('i686' 'x86_64')
url="http://www.rubyenterpriseedition.com"
license=('GPL2')
depends=('openssl' 'zlib' 'readline')
# The installer does install a lot of "additional" packages, these are installed through gem, therefor
# the versions are not managed through us
provides=('ruby=1.8.7', 'rubygems=1.8.7', 'ruby1.8', 'ruby-fastthread=1.0.7', 'ruby-rack=1.2.1', 'ruby-passenger=3.0.0',
          'ruby-rake=0.8.7', 'ruby-sqlite3=1.3.2', 'ruby-mysql=2.8.1', 'ruby-pg=0.9.0', 'ruby-rails=3.0.3')
source=(http://rubyforge.org/frs/download.php/71096/${pkgname}-${pkgver}-${_pkgver}.tar.gz
			  ruby-enterprise.profile)
install=$pkgname.install
md5sums=('4df7b09c01adfd711b0ab76837611542'
				 '3f5ffee8ac07401b7d992d4dd1cb10cb')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}-${_pkgver}
  ./installer -a /opt/ruby-enterprise --destdir=$pkgdir
}

package() {
	cd ${srcdir}
	
	mkdir -p ${pkgdir}/etc/profile.d
	cp -p ruby-enterprise.profile ${pkgdir}/etc/profile.d/ruby-enterprise.sh
}


# vim:ts=2:sw=2:et
