aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-net-http-persistent
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-29 08:11:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-29 12:36:41 +0000
commit80acbaee801184140fac0c967cbb8aa051db2b06 (patch)
tree77c8128eadea951dd93cce5ba6632c5ddc120426 /unmaintained/ruby-net-http-persistent
parent5db5ee5c13e577e862e822501b2e4863fbd63195 (diff)
downloadaports-80acbaee801184140fac0c967cbb8aa051db2b06.tar.bz2
aports-80acbaee801184140fac0c967cbb8aa051db2b06.tar.xz
move testing/ruby-* to unmaintained
ruby-mime-types and ruby-nokogiri was there already so remove those
Diffstat (limited to 'unmaintained/ruby-net-http-persistent')
-rw-r--r--unmaintained/ruby-net-http-persistent/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/unmaintained/ruby-net-http-persistent/APKBUILD b/unmaintained/ruby-net-http-persistent/APKBUILD
new file mode 100644
index 0000000000..24783cf60b
--- /dev/null
+++ b/unmaintained/ruby-net-http-persistent/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+
+_gemname=net-http-persistent
+pkgname=ruby-$_gemname
+pkgver=2.9.4
+pkgrel=0
+pkgdesc="Manages persistent connections using Net::HTTP plus a speed fix for Ruby 1.8"
+arch="noarch"
+url="http://docs.seattlerb.org/net-http-persistent"
+license="MIT"
+depends="ruby"
+depends_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 \
+ --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="61cb21cccc85ddca77ee58af25bcf51f net-http-persistent-2.9.4.gem"
+sha256sums="24274d207ffe66222ef70c78a052c7ea6e66b4ff21e2e8a99e3335d095822ef9 net-http-persistent-2.9.4.gem"
+sha512sums="9251e8422c2f43e7ecd8bc287fa9fff682fac84ed95d143425b0e7e7678a06c9be01db56e6a956588d6c33ddccbd1eff45a6f399f43d452de8e3134e6c50b74e net-http-persistent-2.9.4.gem"