diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 09:53:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:18 +0000 |
commit | 8175dc49ef03e90082d30b113c4459baa4123450 (patch) | |
tree | c5b648ca06954a604bc5b7c8bf8be1970e619960 | |
parent | 71de70be66310afdbe7c3b40896ed7583f8bda62 (diff) | |
download | aports-8175dc49ef03e90082d30b113c4459baa4123450.tar.bz2 aports-8175dc49ef03e90082d30b113c4459baa4123450.tar.xz |
main/ruby-mysql: rebuild against ruby 1.9
-rw-r--r-- | main/ruby-mysql/APKBUILD | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/main/ruby-mysql/APKBUILD b/main/ruby-mysql/APKBUILD index ca2b184800..d2679f3115 100644 --- a/main/ruby-mysql/APKBUILD +++ b/main/ruby-mysql/APKBUILD @@ -1,32 +1,36 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ruby-mysql -_realname=mysql +_gemname=mysql pkgver=2.8.1 -pkgrel=0 +pkgrel=1 pkgdesc="MySQL API module for Ruby" url="http://rubygems.org/gems/mysql" arch="all" license="GPL" depends="ruby" depends_dev="mysql-dev ruby-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="81f2b50b1135e53a526e07bb21e16a4e mysql-2.8.1.gem" |