From 63ebc783cdeaaa7f956cb2921fddb87c9dd9f864 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 15 Oct 2012 11:49:55 +0000 Subject: main/ruby-tzinfo: new aport Ruby library to provide daylight savings aware transformations http://tzinfo.rubyforge.org/ --- main/ruby-tzinfo/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main/ruby-tzinfo/APKBUILD (limited to 'main') 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 +_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" -- cgit v1.2.3