# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-rouge _gemname=rouge pkgver=4.1.3 pkgrel=0 pkgdesc="A pure Ruby code highlighter that is compatible with Pygments" url="https://github.com/rouge-ruby/rouge" arch="noarch" license="MIT AND BSD-2-Clause" depends="ruby" checkdepends="ruby-minitest ruby-rake" source="https://github.com/rouge-ruby/rouge/archive/v$pkgver/ruby-rouge-$pkgver.tar.gz" builddir="$srcdir/$_gemname-$pkgver" options="!check" # FIXME: run tests build() { gem build $_gemname.gemspec } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" local geminstdir="$gemdir/gems/$_gemname-$pkgver" gem install \ --local \ --install-dir "$gemdir" \ --bindir "$pkgdir/usr/bin" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Remove unnecessary files and rubbish... cd "$gemdir" rm -r cache build_info doc extensions rm "$geminstdir"/Gemfile } sha512sums=" 4fa62b46477055e19070c86a5ca0164f84ec8d2d4a3a5bc5b3c84fd514353153d4caf3b3968da6dc357475f3048c684059b9ce419aa3f9986e1c9838a00d8564 ruby-rouge-4.1.3.tar.gz "