diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:27:08 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:27:08 +0000 |
commit | 81370338320d126b7fed9422b2a623f887ecbb17 (patch) | |
tree | c4d6810e2183e2569b6fcb1f835308df97848780 /testing/ruby-xml-simple | |
parent | 4bdbddc85d7fc38032dd69ed37b09eaf12e09494 (diff) | |
download | aports-81370338320d126b7fed9422b2a623f887ecbb17.tar.bz2 aports-81370338320d126b7fed9422b2a623f887ecbb17.tar.xz |
testing/ruby-xml-simple: new aport
Diffstat (limited to 'testing/ruby-xml-simple')
-rw-r--r-- | testing/ruby-xml-simple/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-xml-simple/APKBUILD b/testing/ruby-xml-simple/APKBUILD new file mode 100644 index 0000000000..8057fa4741 --- /dev/null +++ b/testing/ruby-xml-simple/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=xml-simple +pkgname=ruby-$_gemname +pkgver=1.1.2 +pkgrel=0 +pkgdesc="A simple API for XML processing." +url="https://rubygems.org/gems/$_gemname" +arch="noarch" +license="GPL" +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="22a848ab8b47727997d0ef3b118f2c58 xml-simple-1.1.2.gem" +sha256sums="ab35af3264c9c7e4090dc8302914eec4f7eac3fd526847d82d53d023e762285a xml-simple-1.1.2.gem" +sha512sums="ad2bb25c8ca938d59529b0f510a68093e358f2b6e6871e0ed4452ef3e20c33656044ad9859b19fe403622f5f1ac0ac5a3ff4e6f2361273f907d69e5c64fb3cdd xml-simple-1.1.2.gem" |