aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-06-14 11:01:44 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-06-14 11:01:44 +0000
commitcc540c0f25b474c31dc264307e6a1b98f6ae7390 (patch)
tree16cdaa6df47a8e35cb1d106799038d21f426d606 /testing
parentc989e3380a137b5721841397f12960258ade64a7 (diff)
downloadaports-cc540c0f25b474c31dc264307e6a1b98f6ae7390.tar.bz2
aports-cc540c0f25b474c31dc264307e6a1b98f6ae7390.tar.xz
testing/ruby-i18n: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ruby-i18n/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/ruby-i18n/APKBUILD b/testing/ruby-i18n/APKBUILD
new file mode 100644
index 0000000000..a13e453a97
--- /dev/null
+++ b/testing/ruby-i18n/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ruby-i18n
+_realname=i18n
+pkgver=0.4.2
+pkgrel=0
+pkgdesc="Internationalization support for Ruby"
+url="http://rubygems.org/gems/i18n"
+arch="all"
+license="GPL"
+depends="ruby"
+depends_dev=
+makedepends="$depends_dev rubygems"
+install=""
+subpackages=""
+source=""
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ mkdir -p "$_builddir" || return 1
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install $_realname -v $pkgver -i "$_builddir"$_gemdir \
+ --ignore-dependencies --verbose \
+ --no-rdoc --no-ri || return 1
+ rm -rf "$_builddir"$_gemdir/cache/
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}