aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-hike
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 12:52:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commitc7f6b2e5d66b8a8f38131c605b5c4cd0fc65bc07 (patch)
tree229dcc8e9c3f2a65bfb00bd2e2200cca44a51f10 /main/ruby-hike
parent7a118ca07871cb8d5dae83bd1c5c12ddc54211c6 (diff)
downloadaports-c7f6b2e5d66b8a8f38131c605b5c4cd0fc65bc07.tar.bz2
aports-c7f6b2e5d66b8a8f38131c605b5c4cd0fc65bc07.tar.xz
main/ruby-hike: new aport
A Ruby library for finding files in a set of paths http://github.com/sstephenson/hike
Diffstat (limited to 'main/ruby-hike')
-rw-r--r--main/ruby-hike/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-hike/APKBUILD b/main/ruby-hike/APKBUILD
new file mode 100644
index 0000000000..27e90be04d
--- /dev/null
+++ b/main/ruby-hike/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=hike
+pkgname=ruby-$_gemname
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="A Ruby library for finding files in a set of paths"
+url="http://github.com/sstephenson/hike"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=
+makedepends="$depends_dev ruby-gems"
+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="fc7d49a1d99eb4e7812e134d3e609346 hike-1.2.1.gem"