Date: Saturday, January 25, 2014 @ 19:39:23 Author: alucryd Revision: 104761
archrelease: copy trunk to community-testing-any Added: ruby-treetop/repos/community-testing-any/PKGBUILD (from rev 104760, ruby-treetop/trunk/PKGBUILD) Deleted: ruby-treetop/repos/community-testing-any/PKGBUILD ----------+ PKGBUILD | 68 ++++++++++++++++++++++++++----------------------------------- 1 file changed, 29 insertions(+), 39 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-01-25 18:39:11 UTC (rev 104760) +++ PKGBUILD 2014-01-25 18:39:23 UTC (rev 104761) @@ -1,39 +0,0 @@ -# $Id$ -# Maintainer: Maxime Gauduin <alucryd@gmail@com> -# Contributor: Emiliano Vavassori <syntaxerror...@gmail.com> -# Contributor: Guilherme Nogueira <guilhe...@nirev.org> - -pkgname=ruby-treetop -pkgver=1.4.15 -pkgrel=4 -pkgdesc='A Ruby-based text parsing and interpretation DSL' -arch=('any') -url='http://treetop.rubyforge.org/' -license=('MIT') -depends=('ruby-polyglot') -source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem") -noextract=("${pkgname#*-}-$pkgver.gem") -sha256sums=('ffa68f201c0f62c26b0a1d13233d73194400596964696843f87ebb5d812f12ff') - -prepare() { - gem install --no-{document,user-install} --ignore-dependencies -i . ${pkgname#*-}-${pkgver}.gem -} - -package() { - cd gems/${pkgname#*-}-${pkgver} - - local _rubyver="$(ruby --version | sed 's/.* \(.*\..*\..*\)p.*/\1/')" - - install -dm 755 "${pkgdir}"/usr/lib/ruby/{gems/${_rubyver},vendor_ruby} - mv bin "${pkgdir}"/usr/ - mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver} - -# Gem compatibility - mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/ - -# License - install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname} - install -m 644 {,"${pkgdir}"/usr/share/licenses/${pkgname}/}LICENSE -} - -# vim: ts=2 sw=2 et: Copied: ruby-treetop/repos/community-testing-any/PKGBUILD (from rev 104760, ruby-treetop/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-01-25 18:39:23 UTC (rev 104761) @@ -0,0 +1,29 @@ +# $Id$ +# Maintainer: Maxime Gauduin <alucryd@gmail@com> +# Contributor: Emiliano Vavassori <syntaxerror...@gmail.com> +# Contributor: Guilherme Nogueira <guilhe...@nirev.org> + +pkgname=ruby-treetop +pkgver=1.4.15 +pkgrel=5 +pkgdesc='A Ruby-based text parsing and interpretation DSL' +arch=('any') +url='http://treetop.rubyforge.org/' +license=('MIT') +depends=('ruby-polyglot') +options=('!emptydirs') +source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem") +noextract=("${pkgname#*-}-$pkgver.gem") +sha256sums=('ffa68f201c0f62c26b0a1d13233d73194400596964696843f87ebb5d812f12ff') + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + + gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} -n "${pkgdir}"/usr/bin ${pkgname#*-}-${pkgver}.gem + find "${pkgdir}" -type f -name *.gem -delete + + install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname} + ln -s "${pkgdir}"/${_gemdir}/gems/${pkgname#*-}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/ +} + +# vim: ts=2 sw=2 et: