diff options
Diffstat (limited to 'testing/ruby-nokogiri/APKBUILD')
-rw-r--r-- | testing/ruby-nokogiri/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/ruby-nokogiri/APKBUILD b/testing/ruby-nokogiri/APKBUILD new file mode 100644 index 0000000000..9a3f8f7df7 --- /dev/null +++ b/testing/ruby-nokogiri/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +_gemname=nokogiri +pkgname=ruby-$_gemname +pkgver=1.5.6 +pkgrel=0 +pkgdesc="An HTML, XML, SAX, and Reader parser" +url="http://nokogiri.org/" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="ruby-gems ruby-dev libxml2-dev libxslt-dev libiconv-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 || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="5ccf492f60fd9edc4f86aef3bb97145c nokogiri-1.5.6.gem" +sha256sums="28ab99eeba2270b336f8f9612e5b4aefdc673a7319ad874bf4c6092226826588 nokogiri-1.5.6.gem" +sha512sums="14f4f23732d2f759379fb4cef9afaad790d9553ca7d171d405a3cbba86c458e9853ae20ba622e00327a6d89c0976e17d60f6406c34cf2c15a1effeac66a201d6 nokogiri-1.5.6.gem" |