# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar _gemname = 'eventmachine'
setvar pkgname = "ruby-$_gemname"
setvar pkgver = '1.0.3'
setvar pkgrel = '1'
setvar pkgdesc = ""Fast single-threaded engine for arbitrary network communications""
setvar url = ""https://rubygems.org/gems/$_gemname""
setvar arch = ""all""
setvar license = ""GPL""
setvar depends = ""ruby""
setvar depends_dev = ""ruby-dev openssl-dev""
setvar makedepends = "$depends_dev"
setvar install = """"
setvar subpackages = """"
setvar source = ""http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem""

setvar _builddir = ""$srcdir"/$_realname-$pkgver"

proc build {
	return 0
}

proc package {
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
	mkdir -p $pkgdir || return 1

	gem install --local --install-dir "$pkgdir"/$_gemdir \
		--ignore-dependencies --verbose --no-rdoc --no-ri \
		"$srcdir"/$_gemname-$pkgver.gem || return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

setvar md5sums = ""579e4829c279995da1af5ac87713e1d0  eventmachine-1.0.3.gem""
setvar sha256sums = ""34424c87fc517f70ba137fe2281d16b53ce9c13f5cbfc2dda3ada56e96a65827  eventmachine-1.0.3.gem""
setvar sha512sums = ""ea4f0b1a2580d14e564641c49f0e3ac2a9c86d916dd2c5e938df22d1d105c00811154d8bfa7a0f9a8ce32783f5398524c70458c161eab2f0591c690e1e6a5573  eventmachine-1.0.3.gem""