diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 12:00:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:19 +0000 |
commit | a11c465a37c53a7fa27de0ed7b6f51935cd5430a (patch) | |
tree | 35c935107b5418dc5d928790e144dd7cb60e4ad6 | |
parent | d9c2ed7c25132fecba209d48c365b017a034519a (diff) | |
download | aports-a11c465a37c53a7fa27de0ed7b6f51935cd5430a.tar.bz2 aports-a11c465a37c53a7fa27de0ed7b6f51935cd5430a.tar.xz |
main/ruby-journey: new aport
A router for rails
http://github.com/rails/journey
-rw-r--r-- | main/ruby-journey/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-journey/APKBUILD b/main/ruby-journey/APKBUILD new file mode 100644 index 0000000000..1dfc6654b2 --- /dev/null +++ b/main/ruby-journey/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=journey +pkgname=ruby-$_gemname +pkgver=1.0.4 +pkgrel=0 +pkgdesc="A router for rails" +url="http://github.com/rails/journey" +arch="noarch" +license="MIT" +depends="ruby" +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="9af37d196636bf00f19bfafcea843da8 journey-1.0.4.gem" |