aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-stringex
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-27 14:17:05 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-27 16:28:24 +0200
commitd3b914236b64f987c10cce1ed21bcae9ff7115b3 (patch)
tree09e50620f4e93d9831323abe2546e7dc9c6db518 /testing/ruby-stringex
parent232d35d083f353179e0d58f0759e971412998663 (diff)
downloadaports-d3b914236b64f987c10cce1ed21bcae9ff7115b3.tar.bz2
aports-d3b914236b64f987c10cce1ed21bcae9ff7115b3.tar.xz
testing/ruby-stringex: new aport
Some useful extensions to Ruby's String class http://rubygems.org/gems/stringex
Diffstat (limited to 'testing/ruby-stringex')
-rw-r--r--testing/ruby-stringex/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-stringex/APKBUILD b/testing/ruby-stringex/APKBUILD
new file mode 100644
index 0000000000..07cc1ac4f6
--- /dev/null
+++ b/testing/ruby-stringex/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Seung Soo Mun <hamletmun@gmail.com>
+# Maintainer:
+_gemname=stringex
+pkgname=ruby-$_gemname
+pkgver=2.5.2
+pkgrel=0
+pkgdesc="Some useful extensions to Ruby's String class"
+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="4ae12860b6e52396581546408f032778 stringex-2.5.2.gem"
+sha256sums="27a8ee92a808a83284438e51ed391f3539ae6b39731b95cb4ad940974f6d0a94 stringex-2.5.2.gem"
+sha512sums="06905b5d59b40f59c0901bbaacbf303cd906be110cd69a4b8cc29cecd69b6aa73d80cee0c9c0e2014f662b9fca1611c0fe334fcba3c4fa686224dac94f4e0d41 stringex-2.5.2.gem"