aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-useragent/APKBUILD
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-useragent/APKBUILD
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-useragent/APKBUILD')
-rw-r--r--unmaintained/ruby-useragent/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-useragent/APKBUILD b/unmaintained/ruby-useragent/APKBUILD
new file mode 100644
index 0000000000..048f77a1af
--- /dev/null
+++ b/unmaintained/ruby-useragent/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Seung Soo Mun <hamletmun@gmail.com>
+# Maintainer:
+_gemname=useragent
+pkgname=ruby-$_gemname
+pkgver=0.10.0
+pkgrel=0
+pkgdesc="HTTP User Agent parser"
+url="http://rubygems.org/gems/$_gemname"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+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="9a8ea3908e264411d2627f9886a30b18 useragent-0.10.0.gem"
+sha256sums="f6e974ce08e777b9e2e81f48cc7e22762723335bfee15673a90c6589110b381a useragent-0.10.0.gem"
+sha512sums="552d4ea3ffdff2f3c6cdd6e874928052884f42ad31c785630c28ff6f577079661a930e353ecc8ce2c6fbe56cf68335856e466756444ee539a877bba3963a7c04 useragent-0.10.0.gem"