diff options
Diffstat (limited to 'unmaintained/ruby-nokogiri/APKBUILD')
-rw-r--r-- | unmaintained/ruby-nokogiri/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/unmaintained/ruby-nokogiri/APKBUILD b/unmaintained/ruby-nokogiri/APKBUILD new file mode 100644 index 0000000000..f096ac3220 --- /dev/null +++ b/unmaintained/ruby-nokogiri/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +_gemname=nokogiri +pkgname=ruby-$_gemname +pkgver=1.6.7.2 +pkgrel=1 +pkgdesc="An HTML, XML, SAX, and Reader parser" +url="http://nokogiri.org/" +arch="all" +license="MIT" +depends="ruby ruby-mini_portile2" +depends_dev="" +makedepends="ruby-dev libxml2-dev libxslt-dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +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="3e2169ebd67863a8a992289e2a887366 nokogiri-1.6.7.2.gem" +sha256sums="fb6afc0faec72b82eeccc84b5d11211aa6c4a81898a433b499ca7a60fcad4b87 nokogiri-1.6.7.2.gem" +sha512sums="27f72763f4f572b9a7042b48bd3a7a7516773eda128be603b8316e8ecaef42028f3d3a190947011cc6973fa4a43265a56f4b563bf28a8b2739b470cc19cee6cd nokogiri-1.6.7.2.gem" |