aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-tzinfo
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 11:49:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commit63ebc783cdeaaa7f956cb2921fddb87c9dd9f864 (patch)
treeb79465ca47e52068cdd58399e7afd1147801e156 /main/ruby-tzinfo
parent2b97feba3b49bd1fcd189593b6c7123eed48a5c1 (diff)
downloadaports-63ebc783cdeaaa7f956cb2921fddb87c9dd9f864.tar.bz2
aports-63ebc783cdeaaa7f956cb2921fddb87c9dd9f864.tar.xz
main/ruby-tzinfo: new aport
Ruby library to provide daylight savings aware transformations http://tzinfo.rubyforge.org/
Diffstat (limited to 'main/ruby-tzinfo')
-rw-r--r--main/ruby-tzinfo/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-tzinfo/APKBUILD b/main/ruby-tzinfo/APKBUILD
new file mode 100644
index 0000000000..08d36d537f
--- /dev/null
+++ b/main/ruby-tzinfo/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=tzinfo
+pkgname=ruby-$_gemname
+pkgver=0.3.33
+pkgrel=0
+pkgdesc="Ruby library to provide daylight savings aware transformations"
+url="http://tzinfo.rubyforge.org/"
+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="789d147e5826abdfe7eeafbd6c7dcdb1 tzinfo-0.3.33.gem"