dev-ruby/html-pipeline: new package, add 2.14.2

Closes: https://bugs.gentoo.org/858413
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2022-07-17 10:13:18 +02:00
parent 7e8dbdf53e
commit 75c9b32e6a
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST html-pipeline-2.14.2.tar.gz 39691 BLAKE2B 156b73b1ff2efe9495556b24a5e0b607386ba944e239f3748e9224024d8bcce6f51f54d50db36499a2fbebb083b064f84f62af335576dfafab0554e8e4259204 SHA512 6782295364f9dae304e1044827bd594c742257903f48f78fbcac4359c6596c506bf3028c9d3c33116f1971a568c4aa2de72689c576ab0576ffdda438c6497de6

View File

@@ -0,0 +1,42 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby27 ruby30 ruby31"
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=""
ruby_add_rdepend "
>=dev-ruby/activesupport-2:*
>=dev-ruby/nokogiri-1.4
"
ruby_add_bdepend "test? (
dev-ruby/commonmarker
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
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ruby@gentoo.org</email>
<name>Gentoo Ruby Project</name>
</maintainer>
<upstream>
<remote-id type="github">gjtorikian/html-pipeline</remote-id>
</upstream>
</pkgmetadata>