summaryrefslogtreecommitdiff
path: root/dev-ruby/kramdown
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-28 15:50:58 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-03-28 15:50:58 +0100
commitd41bd0acd3d0cd850cdd815b12e69ee2c89c5697 (patch)
tree0ea617df50a6f9fb89fc7e509e3d4ddf0d244b64 /dev-ruby/kramdown
parent115dcc7054f5934a2c8e26fd8a8eed5f3e29e9ce (diff)
gentoo auto-resync : 28:03:2023 - 15:50:57
Diffstat (limited to 'dev-ruby/kramdown')
-rw-r--r--dev-ruby/kramdown/Manifest1
-rw-r--r--dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/kramdown/Manifest b/dev-ruby/kramdown/Manifest
index 2e75af477912..b255543e8aac 100644
--- a/dev-ruby/kramdown/Manifest
+++ b/dev-ruby/kramdown/Manifest
@@ -1,3 +1,4 @@
DIST kramdown-2.4.0.gem 122368 BLAKE2B 86b1232583dc88f8a576fb17e3e2ee756f109700634783815e8ba1f722dd8c872f2f6a978d33e1970814530090665eba3693206e57d3f274bb39655a7ac2d208 SHA512 8e52c5cc53d2f0085e30188aa7bf67f92dfe7f0801297c6a45293cca307e3442baa06443638c1161dad4a4aa332cbc5b4f9b6281ba4c6346122a9fff5a3743c7
+EBUILD kramdown-2.4.0-r1.ebuild 1455 BLAKE2B ecc4f208ee159d177fdc775a3e9c723d733ed8675ff3baa083292577b5c58c436bf8a694ff708334cf0dff426af50dea864e09c867033c6156c3956898aa461b SHA512 774efaf7f8e0fc6c776f784360c61d295a4ba31b6e1a8c94ba1f76eb9a4c51f21d0931f1b891e03cc2fe504688aa4aabc3017764aafc77882b88ac562a705040
EBUILD kramdown-2.4.0.ebuild 1323 BLAKE2B 418dfd66b4013cf738bc614bb8a66b2a5284d6c1fc3893333b8fe772f835e1a2f9636156a1d0258392a30e5cee6ce50add378a5397588542603ee2a860693534 SHA512 7ab113097d2ca8adad61ee5fd029536823e1892380a1a9d09ffc12d6e4bddf052284ce20984226241ed2974a11de7e33b2ae93e35663bf49b9b852b668a52d34
MISC metadata.xml 335 BLAKE2B 10892c2abb34e3a13cdf4f0642202977a1ebd810bac1e25bd1afb202fd062a4da0be7c474afaad7436e2fac2608bd92f199452e70e9710a96435eca10d82545a SHA512 96b15db162c6988f7f62c23c2df2e3059c494d7a8210c69651d6473738d263df8d711ce98df62320a7021ff47ddca51ae1786990a8a778645fc1907aed1d4e06
diff --git a/dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild b/dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild
new file mode 100644
index 000000000000..c10ae258fb49
--- /dev/null
+++ b/dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30 ruby31"
+
+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 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="latex unicode"
+
+LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )"
+RDEPEND+=" ${LATEX_DEPS}"
+DEPEND+=" test? (
+ ${LATEX_DEPS}
+ >=app-text/htmltidy-5.0.0
+)"
+
+ruby_add_rdepend "
+ dev-ruby/rexml
+ >=dev-ruby/rouge-3.26.0:2
+ unicode? ( >=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
+
+ if ! use unicode; then
+ rm -f test/testcases/block/04_header/with_auto_ids.* || die
+ fi
+}
+
+each_ruby_test() {
+ MT_NO_PLUGINS=true ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ doman man/man1/kramdown.1
+}