From a11c465a37c53a7fa27de0ed7b6f51935cd5430a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 15 Oct 2012 12:00:57 +0000 Subject: main/ruby-journey: new aport A router for rails http://github.com/rails/journey --- main/ruby-journey/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main/ruby-journey/APKBUILD (limited to 'main/ruby-journey') diff --git a/main/ruby-journey/APKBUILD b/main/ruby-journey/APKBUILD new file mode 100644 index 000000000..1dfc6654b --- /dev/null +++ b/main/ruby-journey/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa +_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" -- cgit v1.2.3