aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-mechanize/APKBUILD
blob: 1a48982479b9a5ba3d11245f164e3834473a7c34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"