From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4B3021581EC for ; Fri, 22 Nov 2024 07:47:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7C75E07F0; Fri, 22 Nov 2024 07:47:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3E2FE07F0 for ; Fri, 22 Nov 2024 07:47:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D313342FE2 for ; Fri, 22 Nov 2024 07:47:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 130C31DF4 for ; Fri, 22 Nov 2024 07:47:12 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1732261615.b3a374bab50c3da83e97b66e7eb48cfea28be7f3.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/kramdown/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/kramdown/Manifest dev-ruby/kramdown/kramdown-2.5.1.ebuild X-VCS-Directories: dev-ruby/kramdown/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: b3a374bab50c3da83e97b66e7eb48cfea28be7f3 X-VCS-Branch: master Date: Fri, 22 Nov 2024 07:47:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ad976271-ddfd-4534-bed2-712175abb316 X-Archives-Hash: 3bee9da9aed1c221787cf451ba37a64b commit: b3a374bab50c3da83e97b66e7eb48cfea28be7f3 Author: Hans de Graaff gentoo org> AuthorDate: Thu Nov 21 09:01:28 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Nov 22 07:46:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3a374ba dev-ruby/kramdown: add 2.5.1 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/kramdown/Manifest | 1 + dev-ruby/kramdown/kramdown-2.5.1.ebuild | 59 +++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/dev-ruby/kramdown/Manifest b/dev-ruby/kramdown/Manifest index 6d06c2bd7b17..1e9cbcba2c6c 100644 --- a/dev-ruby/kramdown/Manifest +++ b/dev-ruby/kramdown/Manifest @@ -1 +1,2 @@ DIST kramdown-2.4.0.gem 122368 BLAKE2B 86b1232583dc88f8a576fb17e3e2ee756f109700634783815e8ba1f722dd8c872f2f6a978d33e1970814530090665eba3693206e57d3f274bb39655a7ac2d208 SHA512 8e52c5cc53d2f0085e30188aa7bf67f92dfe7f0801297c6a45293cca307e3442baa06443638c1161dad4a4aa332cbc5b4f9b6281ba4c6346122a9fff5a3743c7 +DIST kramdown-2.5.1.gem 128512 BLAKE2B 6965ec9da5f445644b624b035678003782177ed899e4f8db33ed6548a1e15baa3fec2dce151f458da093e852277b588f598bdfb8b352c340e9a7d2e620b1c58c SHA512 751678bf0ce30c5c89a6d21ff0b3a7b9e2ffd5c95dcaefc348d16663cc76602de827efe657b86b9456a6b8dfec04f9f3768c99678fddaac0ffad8f6051738f20 diff --git a/dev-ruby/kramdown/kramdown-2.5.1.ebuild b/dev-ruby/kramdown/kramdown-2.5.1.ebuild new file mode 100644 index 000000000000..f8dc0ef058fd --- /dev/null +++ b/dev-ruby/kramdown/kramdown-2.5.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +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 ~arm64-macos" +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-3.3.9 + >=dev-ruby/rouge-3.26.0:2 + unicode? ( >=dev-ruby/stringex-1.5.1 ) +" + +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 +}