diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-03-20 08:32:49 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-03-20 08:39:04 +0100 |
commit | 9442ea0bf1c9ef374c2f7b0d934187f6dcdb86a1 (patch) | |
tree | ea2868322ad69fee9c1cdd28d8ebdd5640c8c0b1 /dev-ruby/kramdown | |
parent | dev-ruby/blankslate: actually add ruby30 (diff) | |
download | gentoo-9442ea0bf1c9ef374c2f7b0d934187f6dcdb86a1.tar.gz gentoo-9442ea0bf1c9ef374c2f7b0d934187f6dcdb86a1.tar.bz2 gentoo-9442ea0bf1c9ef374c2f7b0d934187f6dcdb86a1.zip |
dev-ruby/kramdown: add 2.3.1
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/kramdown')
-rw-r--r-- | dev-ruby/kramdown/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/kramdown/kramdown-2.3.1.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/kramdown/Manifest b/dev-ruby/kramdown/Manifest index e38ae24a843b..5480f134fb06 100644 --- a/dev-ruby/kramdown/Manifest +++ b/dev-ruby/kramdown/Manifest @@ -1 +1,2 @@ DIST kramdown-2.3.0.gem 121344 BLAKE2B 0494afe84123503cb1e2f31c512c1b8cace1a81a3f32488e9719d47f1614a20fb86aa007187f2802e9b5c041031e8b6258da9909cbb1bbad0aa94d519821fb14 SHA512 a3ed8360de9208d5ce658d198763737826db943d23dda7ca9cfd507a4656c39f2b19ece78af87981b1177fe01690d6647c854092b230cf3a8a7d2823dc83d276 +DIST kramdown-2.3.1.gem 122368 BLAKE2B 731e20904f238f44db594c7b8efac858187c935d9fbf8a421ddceeb1aa486f0980b502953f8eaa7e3100f7b7722d09b1da35091d28977c70cfd1ef24a080c3e1 SHA512 d1955065e3c5d7a60e595b647d5e453cf07a08fe25d40c67cf6f32d30f704a2c653a52959f8c71b3290e6da74836a085fa6bf8201c878303ad572dee8cc64496 diff --git a/dev-ruby/kramdown/kramdown-2.3.1.ebuild b/dev-ruby/kramdown/kramdown-2.3.1.ebuild new file mode 100644 index 000000000000..a16c856eeed5 --- /dev/null +++ b/dev-ruby/kramdown/kramdown-2.3.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS" + +RUBY_FAKEGEM_EXTRAINSTALL="data" + +inherit ruby-fakegem + +DESCRIPTION="Yet-another-markdown-parser but fast, pure Ruby, using strict syntax definition" +HOMEPAGE="https://kramdown.gettalong.org/" + +LICENSE="MIT" + +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64" +IUSE="latex" + +LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )" +RDEPEND+=" ${LATEX_DEPS}" +DEPEND+=" test? ( ${LATEX_DEPS} app-text/tidy-html5 )" + +ruby_add_rdepend " + dev-ruby/rexml + >=dev-ruby/rouge-1.8 + >=dev-ruby/stringex-1.5.1 + !!<dev-ruby/kramdown-1.17.0-r2:0" + +ruby_add_bdepend "doc? ( dev-ruby/rdoc ) + test? ( >=dev-ruby/minitest-5.0 )" + +all_ruby_prepare() { + if ! use latex; then + # Remove latex tests. They will fail gracefully when latex isn't + # present at all, but not when components are missing (most + # notable ucs.sty). + sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die + fi +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die +} + +all_ruby_install() { + all_fakegem_install + + doman man/man1/kramdown.1 +} |