diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-03-04 14:30:31 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-03-11 14:07:23 +0000 |
commit | 4d37c36bb8dc7080d1b5ae597e28430ac98f1fde (patch) | |
tree | 12dbac81b15b107757c362648e7ee773866ac448 /testing | |
parent | bca05a06ff5a32d657377b3804374c7f67e7cc69 (diff) | |
download | aports-4d37c36bb8dc7080d1b5ae597e28430ac98f1fde.tar.bz2 aports-4d37c36bb8dc7080d1b5ae597e28430ac98f1fde.tar.xz |
testing/ruby-require: new aport
A dependencies manager for ruby
website: http://github.com/winton/require
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-require/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-require/APKBUILD b/testing/ruby-require/APKBUILD new file mode 100644 index 0000000000..8998b32406 --- /dev/null +++ b/testing/ruby-require/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +_gemname=require +pkgname=ruby-$_gemname +pkgver=0.2.7 +pkgrel=0 +pkgdesc="A dependencies manager" +url="http://github.com/winton/require" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="ruby-dev ruby-gems" +install="" +subpackages="" +source="http://rubygems.org/downloads/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_gemname-$pkgver +build() { + mkdir -p "$_builddir" || return 1 + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} + +md5sums="9a1caf852bf72ebf251bc1ceb6a3dec0 require-0.2.7.gem" +sha256sums="353fbb7f73faa1af266956999298e649e6ccd12a6d27397e813a9d6788ac1928 require-0.2.7.gem" +sha512sums="f732967d21e2e834809b661bb69f7750e311fc833a4113481788d5410b3041f791161a25167181e89354d841893d57682273d4dfa8bf3b2643d1e141af83a66c require-0.2.7.gem" |