mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
33 lines
804 B
Bash
33 lines
804 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
USE_RUBY="ruby32 ruby33 ruby34"
|
|
RUBY_FAKEGEM_RECIPE_DOC="yard"
|
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="Provides support for SVG in Prawn"
|
|
HOMEPAGE="https://github.com/mogest/prawn-svg"
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
|
|
ruby_add_rdepend "
|
|
>=dev-ruby/css_parser-1.6.0
|
|
>=dev-ruby/matrix-0.4.2
|
|
>=dev-ruby/prawn-0.11.1
|
|
>=dev-ruby/rexml-3.4.2
|
|
"
|
|
|
|
all_ruby_prepare() {
|
|
# avoid useless dependencies
|
|
sed -i '/rubocop/d' Gemfile || die
|
|
rm -f Gemfile.lock || die
|
|
# replace Bundler usage with direct requires for Gentoo environment
|
|
sed -i -e '/[Bb]undler/d' spec/spec_helper.rb || die
|
|
sed -i '1i require "prawn-svg"' spec/spec_helper.rb || die
|
|
}
|