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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BAF0315802F for ; Tue, 28 Mar 2023 09:41:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C305BE05C1; Tue, 28 Mar 2023 09:41:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 AD912E05C1 for ; Tue, 28 Mar 2023 09:41:40 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3B40340EA8 for ; Tue, 28 Mar 2023 09:41:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 15FAB8E4 for ; Tue, 28 Mar 2023 09:41:38 +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: <1679996494.beb6141e37787d3d13bcb10a25c8e438fad24e2f.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/kramdown/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild X-VCS-Directories: dev-ruby/kramdown/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: beb6141e37787d3d13bcb10a25c8e438fad24e2f X-VCS-Branch: master Date: Tue, 28 Mar 2023 09:41:38 +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: d8aa770b-0991-4177-b56f-d2566614d63f X-Archives-Hash: 4465ee072da39d4665d7640782fcd617 commit: beb6141e37787d3d13bcb10a25c8e438fad24e2f Author: Hans de Graaff gentoo org> AuthorDate: Tue Mar 28 09:35:53 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Mar 28 09:41:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beb6141e dev-ruby/kramdown: add USE=unicode This makes dev-ruby/stringex an optional dependency and allows us to avoids its large dependency tree for most arches. Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) 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/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 +}