aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-mechanize/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-mechanize/APKBUILD')
-rw-r--r--unmaintained/ruby-mechanize/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/unmaintained/ruby-mechanize/APKBUILD b/unmaintained/ruby-mechanize/APKBUILD
new file mode 100644
index 000000000..1a4898247
--- /dev/null
+++ b/unmaintained/ruby-mechanize/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+_gemname=mechanize
+pkgname=ruby-mechanize
+pkgver=2.7.3
+pkgrel=1
+pkgdesc="The Mechanize library is used for automating interaction with websites"
+url="http://mechanize.rubyforge.org"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-net-http-digest_auth ruby-domain_name ruby-http-cookie
+ ruby-mime-types ruby-nokogiri ruby-ntlm-http ruby-webrobots
+ ruby-net-http-persistent"
+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"