summaryrefslogtreecommitdiffstats
path: root/testing/ruby-daemon-controller/APKBUILD
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2011-04-14 01:37:31 -0500
committerMatt Smith <mcs@darkregion.net>2011-04-14 01:43:21 -0500
commit08f58bc9d9b302ccd501995f40d3a2917fc1dcaa (patch)
treecf17662a1844f216eddaba325a531abf2b723140 /testing/ruby-daemon-controller/APKBUILD
parent883d2e3f7b551f933a05c2bbea94ae86eae577e5 (diff)
downloadaports-08f58bc9d9b302ccd501995f40d3a2917fc1dcaa.tar.bz2
aports-08f58bc9d9b302ccd501995f40d3a2917fc1dcaa.tar.xz
testing/ruby-daemon-controller: new aport
A library for robust daemon management. http://rubygems.org/gems/daemon_controller
Diffstat (limited to 'testing/ruby-daemon-controller/APKBUILD')
-rw-r--r--testing/ruby-daemon-controller/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/ruby-daemon-controller/APKBUILD b/testing/ruby-daemon-controller/APKBUILD
new file mode 100644
index 000000000..9b1f8d6b7
--- /dev/null
+++ b/testing/ruby-daemon-controller/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=ruby-daemon-controller
+_realname=daemon_controller
+pkgver=0.2.6
+pkgrel=0
+pkgdesc="A library for robust daemon management."
+url="http://rubygems.org/gems/daemon_controller"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=
+makedepends="$depends_dev ruby-dev ruby 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 || return 1
+ rm -rf "$_builddir"$_gemdir/cache/
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}