commit: 119a32466cad4a4396d34f2baf6ff38f0709b86d Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Tue Oct 14 09:25:38 2025 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Tue Oct 14 09:25:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119a3246
dev-ruby/asciidoctor: add 2.0.24 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/asciidoctor/Manifest | 1 + dev-ruby/asciidoctor/asciidoctor-2.0.24.ebuild | 62 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-ruby/asciidoctor/Manifest b/dev-ruby/asciidoctor/Manifest index bcc66dd7e36b..4c855394df1f 100644 --- a/dev-ruby/asciidoctor/Manifest +++ b/dev-ruby/asciidoctor/Manifest @@ -1 +1,2 @@ DIST asciidoctor-2.0.23.tar.gz 1708942 BLAKE2B 870b0ea5be05ae4b2d91d7cfcf4d81b36f443740b591b8fd4f9bb547647cb777c5d9b03eb7982f84e6ac84ce5af3c9161a21e4d82ae56c70afd6ce138629675b SHA512 eeb6ef3268f8df2881fafccdb88480f203365d423f53ec9a42c3e9a91a6ec2d20048150019366a71ba0b2a9a0a90a6752fa7342ce558609ff8c242418e2f29c0 +DIST asciidoctor-2.0.24.tar.gz 1712755 BLAKE2B d47b77efd671493d8cfea5478077091b834e9e121f371df80c3b0ad4655a4b4c38487a1e3b9ea011998c3ee3d24e866b77ea04fc1a1fac8510d4fa705fce926c SHA512 8ffffb59a3931cc54652e8a75352cab552ec1cd43bbaf5f01bfa51b37c4fca32aefa6f7a3e5e4ff0ef1b345a2c49075adbc867cb78a49c783d803cc629adbdaf diff --git a/dev-ruby/asciidoctor/asciidoctor-2.0.24.ebuild b/dev-ruby/asciidoctor/asciidoctor-2.0.24.ebuild new file mode 100644 index 000000000000..2ea631c5a4ec --- /dev/null +++ b/dev-ruby/asciidoctor/asciidoctor-2.0.24.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34" + +RUBY_FAKEGEM_TASK_TEST="CUCUMBER_PUBLISH_QUIET=true test features" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc README.adoc" + +RUBY_FAKEGEM_EXTRAINSTALL="data" + +RUBY_FAKEGEM_GEMSPEC="asciidoctor.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Processor for converting AsciiDoc into HTML 5, DocBook 4.5 and other formats" +HOMEPAGE="https://github.com/asciidoctor/asciidoctor" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" + +ruby_add_bdepend "test? ( + dev-util/cucumber + dev-ruby/rspec-expectations:* + dev-ruby/asciimath + dev-ruby/coderay + dev-ruby/concurrent-ruby + dev-ruby/erubi + dev-ruby/haml:6 + dev-ruby/nokogiri + dev-ruby/rouge + dev-ruby/slim + dev-ruby/tilt )" + +all_ruby_prepare() { + rm Gemfile || die + + sed -e "s:_relative ': './:" \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid broken blocks_test.rb (already appears to be fixed upstream) + rm -f test/blocks_test.rb || die + + # Avoid test depending on haml 6 binary which we currently don't install. + sed -e '/should \(load\|locate\) custom templates/askip "wrong haml binary"' \ + -i test/invoker_test.rb || die + + # Add missing require for URI + sed -e "/nokogiri/arequire 'uri'" \ + -i test/test_helper.rb || die +} + +all_ruby_install() { + all_fakegem_install + + doman man/asciidoctor.1 +}
