# Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz> setvar pkgname = 'ruby-pygments' setvar _gemname = 'pygments.rb' setvar pkgver = '1.2.0' setvar pkgrel = '0' setvar pkgdesc = ""Pygments syntax highlighting in Ruby"" setvar url = ""https://github.com/tmm1/pygments.rb"" setvar arch = ""noarch"" setvar license = ""MIT"" setvar depends = ""python2 py2-pygments ruby ruby-json ruby-multi_json"" setvar checkdepends = ""ruby-bundler ruby-rake ruby-test-unit"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/tmm1/$_gemname/archive/v$pkgver.tar.gz use-system-pygments-only.patch"" setvar builddir = ""$srcdir/$_gemname-$pkgver"" proc prepare { default_prepare cd $builddir # Specify files to be installed. sed -i 's|`git ls-files.*|Dir["lib/**/*", "lexers"]|' $_gemname.gemspec # Remove bundled dependencies. rm -r vendor } proc build { cd $builddir gem build $_gemname.gemspec } proc check { cd $builddir rake test } proc package { local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" cd $builddir gem install --local \ --install-dir $gemdir \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname-$pkgver.gem } setvar sha512sums = ""399bca95362eb5a6d00f8856af2ef30905aa5529a60f2633e2b45e3bda8fcf3756b18c48bbd80f012486f42feebca0ab09d31dcab1da5ecde54572be2e7c7d25 ruby-pygments-1.2.0.tar.gz a8e5d64d8209dacb5090378e8507095359b38ef55ac6896f5bd95fa9676691beb278d6d19eb47cbc51fac843b326b8e21fbf1dd9ed39e123ed0943293b0a82ca use-system-pygments-only.patch""