diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 11:49:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:19 +0000 |
commit | 63ebc783cdeaaa7f956cb2921fddb87c9dd9f864 (patch) | |
tree | b79465ca47e52068cdd58399e7afd1147801e156 | |
parent | 2b97feba3b49bd1fcd189593b6c7123eed48a5c1 (diff) | |
download | aports-63ebc783cdeaaa7f956cb2921fddb87c9dd9f864.tar.bz2 aports-63ebc783cdeaaa7f956cb2921fddb87c9dd9f864.tar.xz |
main/ruby-tzinfo: new aport
Ruby library to provide daylight savings aware transformations
http://tzinfo.rubyforge.org/
-rw-r--r-- | main/ruby-tzinfo/APKBUILD | 35 |
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" |