# Contributor: Carlo Landmeter # Maintainer: Natanael Copa setvar _gemname = 'yard' setvar pkgname = 'ruby-yard' setvar pkgver = '0.8.7.6' setvar pkgrel = '0' setvar pkgdesc = ""A documentation generation tool for Ruby"" setvar url = ""http://yardoc.org"" 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 cd $pkgdir for i in usr/lib/ruby/gems/*/bin/* { if test -e $i { mkdir -p "$pkgdir"/usr/bin ln -s /$i "$pkgdir"/usr/bin/ } } } proc package { mkdir -p $pkgdir || return 1 cp -ra "$_builddir"/* "$pkgdir"/ || return 1 } setvar md5sums = ""55559a424c6bc58cba9a8affdbc86dc9 yard-0.8.7.6.gem"" setvar sha256sums = ""3da10884b94fa25b7476f619b1d2cfb61290e10673965c545975630cd88a46b6 yard-0.8.7.6.gem"" setvar sha512sums = ""678d0831bfcb08de413b8c776e6916d4314fd6f487e3b8bb2683f328eacc99d4251e6ca204ff6044cb542dee909e321cc552257b044eb8035102a28d83512080 yard-0.8.7.6.gem""