diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-28 15:03:34 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-28 15:03:40 +0000 |
commit | 7cd392c2540284f8e56d85aab09889c67f634d42 (patch) | |
tree | ecae2e6e6aaead03ca91a895e0e52b625162ce8f /testing | |
parent | ecd6d7d10fc37382bbdd89138199f88429797c7f (diff) | |
download | aports-7cd392c2540284f8e56d85aab09889c67f634d42.tar.bz2 aports-7cd392c2540284f8e56d85aab09889c67f634d42.tar.xz |
testing/ruby-mechanize: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-mechanize/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/ruby-mechanize/APKBUILD b/testing/ruby-mechanize/APKBUILD new file mode 100644 index 0000000000..ed55a7d18d --- /dev/null +++ b/testing/ruby-mechanize/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +_gemname=mechanize +pkgname=ruby-mechanize +pkgver=2.7.3 +pkgrel=0 +pkgdesc="The Mechanize library is used for automating interaction with websites" +url="http://mechanize.rubyforge.org" +arch="noarch" +license="MIT" +depends="ruby " +depends_dev="ruby-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="https://rubygems.org/downloads/$_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 || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="55efbdf26bf87bd6aebb360eb30649c2 mechanize-2.7.3.gem" +sha256sums="3de7f3c2799be07b2788c8226e73cf9120a04ae79602c5bab2de6287e4575302 mechanize-2.7.3.gem" +sha512sums="5a06f1e7a1c97f985f3011358061c631bcc69e3092082959f738670c9491f734bc6dbbca321018fa484ee493f2f251b8af0cf17602fe381d491ff3e18663f2eb mechanize-2.7.3.gem" |