aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-sqlite
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 09:48:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:18 +0000
commitdb986093c2c5418de0270e51e9a3410662c2fe78 (patch)
tree7bdd67a32ea97f84bdbe1960d4e9eb3686b18f23 /main/ruby-sqlite
parentfafd723e3cc8dbd9491201309406959577e7fd8a (diff)
downloadaports-db986093c2c5418de0270e51e9a3410662c2fe78.tar.bz2
aports-db986093c2c5418de0270e51e9a3410662c2fe78.tar.xz
main/ruby-sqlite: upgrade to 1.3.6
Diffstat (limited to 'main/ruby-sqlite')
-rw-r--r--main/ruby-sqlite/APKBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/main/ruby-sqlite/APKBUILD b/main/ruby-sqlite/APKBUILD
index 5e15638da8..d6b94707ca 100644
--- a/main/ruby-sqlite/APKBUILD
+++ b/main/ruby-sqlite/APKBUILD
@@ -1,32 +1,36 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-sqlite
-_realname=sqlite3
-pkgver=1.3.3
-pkgrel=1
+_gemname=sqlite3
+pkgver=1.3.6
+pkgrel=0
pkgdesc="SQLite API module for Ruby"
url="http://rubygems.org/gems/sqlite3"
arch="all"
license="GPL"
depends="ruby"
depends_dev="sqlite-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="a54f7d9d7e60450f281ded5fa0f846bb sqlite3-1.3.6.gem"