diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 11:40:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:18 +0000 |
commit | 6e61ba6042c9a483c6f27951756a8d42c1e6326c (patch) | |
tree | 3a8c16f0cfcdad91d45233a906f7aceeb6083c39 /main | |
parent | b4eb68c372c2b27e0bd3b21cbf369dac35e65bdd (diff) | |
download | aports-6e61ba6042c9a483c6f27951756a8d42c1e6326c.tar.bz2 aports-6e61ba6042c9a483c6f27951756a8d42c1e6326c.tar.xz |
main/ruby-activemodel: new aport
A toolkit for building modeling frameworks
https://rubyforge.org/projects/activesupport/
Diffstat (limited to 'main')
-rw-r--r-- | main/ruby-activemodel/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-activemodel/APKBUILD b/main/ruby-activemodel/APKBUILD new file mode 100644 index 000000000..9404460c0 --- /dev/null +++ b/main/ruby-activemodel/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=ruby-activemodel +_gemname=activemodel +pkgver=3.2.8 +pkgrel=0 +pkgdesc="A toolkit for building modeling frameworks" +url="https://rubyforge.org/projects/activesupport/" +arch="noarch" +license="GPL" +depends="ruby ruby-activesupport ruby-builder" +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="894dd6524e70e3c43a751bf57c097253 activemodel-3.2.8.gem" |