diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-29 09:00:17 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-29 09:01:18 +0000 |
commit | fb55668ccb72e096e86d4be9139d99f7a0509119 (patch) | |
tree | 2045080fa096ae160ebd972179c076c08184d6d8 /testing | |
parent | 0444092fbabf4ea64b9aefe3dd66a9dae68024c4 (diff) | |
download | aports-fb55668ccb72e096e86d4be9139d99f7a0509119.tar.bz2 aports-fb55668ccb72e096e86d4be9139d99f7a0509119.tar.xz |
testing/ruby-nokogiri: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-nokogiri/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-nokogiri/APKBUILD b/testing/ruby-nokogiri/APKBUILD new file mode 100644 index 0000000000..f75d3dbf73 --- /dev/null +++ b/testing/ruby-nokogiri/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> + +_gemname=nokogiri +pkgname=ruby-$_gemname +pkgver=1.6.6.2 +pkgrel=0 +pkgdesc="Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser" +arch="all" +url="http://nokogiri.org" +license="MIT" +depends="ruby" +depends_dev="ruby-dev libxml2-dev libxslt-dev" +makedepends="$depends_dev" +source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" +_builddir="$srcdir"/$_gemname-$pkgver +build() { + mkdir -p "$_builddir" || return 1 + export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir -- \ + --use-system-libraries \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} + +md5sums="fc9f91534bf93d57b84f625b55732a7c nokogiri-1.6.6.2.gem" +sha256sums="60c060c694a62145b9224413efa346de5a893582c1fbc0326bc74089c5d898c8 nokogiri-1.6.6.2.gem" +sha512sums="bb0422878e690648ab154c7d1ab0bd4fd9ec0875b2f0be0292ba9cb5541ea33b770794a7ba411e603a06472af4f9a3337ec8ff5d74debd826fc63f1d3ab1d5f1 nokogiri-1.6.6.2.gem" |