diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-29 08:06:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-29 12:36:41 +0000 |
commit | f58e361776f7398d806321ea9d63f59f5fc38b5d (patch) | |
tree | eea648afb288a35c5b1e2bffb3d3b4442578b08b /unmaintained/ruby-actionpack-xml_parser4.2 | |
parent | b951abfe754edd478b0a17f12cad5fb56e42eee1 (diff) | |
download | aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.bz2 aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.xz |
move community/ruby-* to unmaintained
Diffstat (limited to 'unmaintained/ruby-actionpack-xml_parser4.2')
-rw-r--r-- | unmaintained/ruby-actionpack-xml_parser4.2/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/unmaintained/ruby-actionpack-xml_parser4.2/APKBUILD b/unmaintained/ruby-actionpack-xml_parser4.2/APKBUILD new file mode 100644 index 0000000000..6637160f77 --- /dev/null +++ b/unmaintained/ruby-actionpack-xml_parser4.2/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=actionpack-xml_parser +pkgname=ruby-${_gemname}4.2 +pkgver=1.0.2 +pkgrel=0 +pkgdesc="XML parameters parser for Action Pack" +url="http://www.rubyonrails.org/" +arch="noarch" +license="MIT" +depends="ruby ruby-actionpack4.2" +depends_dev= +makedepends="$depends_dev" +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 + + cd "$pkgdir" + for i in usr/lib/ruby/gems/*/bin/*; do + if [ -e "$i" ]; then + mkdir -p "$pkgdir"/usr/bin + ln -s /$i "$pkgdir"/usr/bin/ + fi + done +} + +md5sums="2c3f9c8644f8fcf70d9b9ef3fa8beb6e actionpack-xml_parser-1.0.2.gem" +sha256sums="6a3e2441711e3885d2fb6f6530049bb4672cf6ffb98c88dce9e8997e9a25559d actionpack-xml_parser-1.0.2.gem" +sha512sums="38539e43a414a2fdb9786f7830b47ee22786f13688ba11fcbd585f41ed472f1bbcc521c35bf87c7c59ad8a5ba3663ebbaa21bf7c0a2a94a1ac77e6b3fc1c0f3f actionpack-xml_parser-1.0.2.gem" |