# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar _gemname = 'require'
setvar pkgname = "ruby-$_gemname"
setvar pkgver = '0.2.7'
setvar pkgrel = '1'
setvar pkgdesc = ""A dependencies manager""
setvar url = ""http://github.com/winton/require""
setvar arch = ""noarch""
setvar license = ""MIT""
setvar depends = ""ruby""
setvar depends_dev = """"
setvar makedepends = ""ruby-dev""
setvar install = """"
setvar subpackages = """"
setvar source = ""http://rubygems.org/downloads/$_gemname-$pkgver.gem""

setvar _builddir = ""$srcdir"/$_gemname-$pkgver"
proc build {
	mkdir -p $_builddir || return 1
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
		--ignore-dependencies \
		--verbose \
		--no-rdoc \
		--no-ri \
		|| return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

proc package {
	mkdir -p $pkgdir || return 1
	cp -ra "$_builddir"/* "$pkgdir"/ || return 1
}

setvar md5sums = ""9a1caf852bf72ebf251bc1ceb6a3dec0  require-0.2.7.gem""
setvar sha256sums = ""353fbb7f73faa1af266956999298e649e6ccd12a6d27397e813a9d6788ac1928  require-0.2.7.gem""
setvar sha512sums = ""f732967d21e2e834809b661bb69f7750e311fc833a4113481788d5410b3041f791161a25167181e89354d841893d57682273d4dfa8bf3b2643d1e141af83a66c  require-0.2.7.gem""