# Contributor: Fabian Affolter # Maintainer: Fabian Affolter _gemname=nokogiri pkgname=ruby-$_gemname pkgver=1.6.6.2 pkgrel=0 pkgdesc="An HTML, XML, SAX, and Reader parser" url="http://nokogiri.org/" arch="all" license="MIT" depends="ruby ruby-mini_portile" depends_dev="" makedepends="ruby-dev libxml2-dev libxslt-dev" install="" subpackages="" source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" _builddir="$srcdir"/$_gemname-$pkgver build() { return 0 } 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 -- --use-system-libraries || \ return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths cd "$pkgdir" for i in usr/lib/ruby/gems/*/bin/*; do if [ -e "$i" ]; then mkdir -p "$pkgdir"/usr/bin ln -s /$i "$pkgdir"/usr/bin/ fi done } md5sums="fc9f91534bf93d57b84f625b55732a7c nokogiri-1.6.6.2.gem" sha256sums="60c060c694a62145b9224413efa346de5a893582c1fbc0326bc74089c5d898c8 nokogiri-1.6.6.2.gem" sha512sums="bb0422878e690648ab154c7d1ab0bd4fd9ec0875b2f0be0292ba9cb5541ea33b770794a7ba411e603a06472af4f9a3337ec8ff5d74debd826fc63f1d3ab1d5f1 nokogiri-1.6.6.2.gem"