gentoo-ebuilds/dev-ruby/html-pipeline/html-pipeline-2.14.3.ebuild
Hans de Graaff cc4006bde4
dev-ruby/html-pipeline: enable ruby34
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2025-04-15 06:56:39 +02:00

42 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="html-pipeline.gemspec"
inherit ruby-fakegem
DESCRIPTION="GitHub HTML processing filters and utilities"
HOMEPAGE="https://github.com/gjtorikian/html-pipeline"
SRC_URI="https://github.com/gjtorikian/html-pipeline/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
IUSE="test"
ruby_add_rdepend "
>=dev-ruby/activesupport-2:*
>=dev-ruby/nokogiri-1.4
"
ruby_add_bdepend "test? (
=dev-ruby/commonmarker-0*
dev-ruby/rinku
dev-ruby/redcloth
dev-ruby/rouge
dev-ruby/sanitize
)"
all_ruby_prepare() {
sed -i -e '/\(bundler\|focus\)/ s:^:#:' Rakefile test/test_helper.rb || die
sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
# Avoid running tests for unpackaged optional dependencies
# escape_utils, email_reply_parser, gemoji
rm -f test/html/pipeline/{email_reply,emoji,plain_text_input,syntax_highlight,toc}_filter_test.rb || die
}