diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 13:29:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:19 +0000 |
commit | 12298dd2d2405a2bc6208222237a7ec2062a26d2 (patch) | |
tree | ac45feb13e70fb1b266dc989ae05772216501216 /main/ruby-actionmailer | |
parent | db7d4225ee98a51604803e704a514c9b9d3831bf (diff) | |
download | aports-12298dd2d2405a2bc6208222237a7ec2062a26d2.tar.bz2 aports-12298dd2d2405a2bc6208222237a7ec2062a26d2.tar.xz |
main/ruby-actionmailer: upgrade to 3.2.8
Diffstat (limited to 'main/ruby-actionmailer')
-rw-r--r-- | main/ruby-actionmailer/APKBUILD | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/main/ruby-actionmailer/APKBUILD b/main/ruby-actionmailer/APKBUILD index b2909f4285..5b42502023 100644 --- a/main/ruby-actionmailer/APKBUILD +++ b/main/ruby-actionmailer/APKBUILD @@ -1,32 +1,36 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ruby-actionmailer -_realname=actionmailer -pkgver=2.3.11 +_gemname=actionmailer +pkgver=3.2.8 pkgrel=0 pkgdesc="Email on Rails" url="http://rubygems.org/gems/actionmailer" -arch="all" +arch="noarch" license="GPL" -depends="ruby" +depends="ruby ruby-actionpack ruby-mail" depends_dev= -makedepends="$depends_dev rubygems" +makedepends="$depends_dev ruby-gems" install="" subpackages="" -source="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" _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/ + return 0 } package() { - mkdir -p "$pkgdir" || return 1 - cp -ra "$_builddir"/* "$pkgdir"/ || return 1 + 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="d379948bca43c5ae4d5be9beb5aaef47 actionmailer-3.2.8.gem" |