From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 707F1158074 for ; Thu, 19 Jun 2025 13:34:36 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 5C717340CD8 for ; Thu, 19 Jun 2025 13:34:36 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 51CF61104D9; Thu, 19 Jun 2025 13:34:35 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 492E31104D9 for ; Thu, 19 Jun 2025 13:34:35 +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 EB90F340EC7 for ; Thu, 19 Jun 2025 13:34:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5EAA92A03 for ; Thu, 19 Jun 2025 13:34:33 +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: <1750339738.49b3c27b082783dacda247cf01c69ad8e49fbed7.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/asciidoctor-diagram/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/asciidoctor-diagram/Manifest dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.3.2.ebuild X-VCS-Directories: dev-ruby/asciidoctor-diagram/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 49b3c27b082783dacda247cf01c69ad8e49fbed7 X-VCS-Branch: master Date: Thu, 19 Jun 2025 13:34:33 +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: bd9971b6-50ab-4534-8d5c-372d5410650b X-Archives-Hash: c7985d63aa38a3f62590f723e590c597 commit: 49b3c27b082783dacda247cf01c69ad8e49fbed7 Author: Hans de Graaff gentoo org> AuthorDate: Thu Jun 19 13:28:58 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu Jun 19 13:28:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49b3c27b dev-ruby/asciidoctor-diagram: add 2.3.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/asciidoctor-diagram/Manifest | 1 + .../asciidoctor-diagram-2.3.2.ebuild | 121 +++++++++++++++++++++ 2 files changed, 122 insertions(+) diff --git a/dev-ruby/asciidoctor-diagram/Manifest b/dev-ruby/asciidoctor-diagram/Manifest index 89506e10a8a2..fa5813765829 100644 --- a/dev-ruby/asciidoctor-diagram/Manifest +++ b/dev-ruby/asciidoctor-diagram/Manifest @@ -1 +1,2 @@ DIST asciidoctor-diagram-2.2.14.tar.gz 14085153 BLAKE2B b62fbbc0ba5a5c53a92b1c9cd7d20047a0e6f4ec71ff7daeab379c3be2546b105b900e7fa6c49f00f6320de2087115d5944b9df9be443ad60cc0d330d5b12234 SHA512 8e343726788e61fa6846d756911f3df9ef276f706ec2668e7d74fc7b5b2cf3c8984f1d5031af5d8d2c55260f3bebf981d0bcd5dd1c032e504b32bee167cb626e +DIST asciidoctor-diagram-2.3.2.tar.gz 24298535 BLAKE2B 3651fc0d79ff97d4cb33c09ce0968d5a95f2963bd1b8f3264892fc253f3468c52394cc65e93512271514fc2437daff560d294ba6a16cb4a9ba2d2cbf3e1a8a76 SHA512 135032af75e27a76a293230354ff99405f2fa4b5e8d1418c51d924028fffd54ea5b7d6dcd919097d7964cd82bafef155c2afcea53429f76b0c9fa5e5999ca586 diff --git a/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.3.2.ebuild b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.3.2.ebuild new file mode 100644 index 000000000000..ea4884f3fbb3 --- /dev/null +++ b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.3.2.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc LICENSE.txt README.adoc" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A set of Asciidoctor extensions that enable you to add diagrams" +HOMEPAGE="https://github.com/asciidoctor/asciidoctor-diagram" +SRC_URI="https://github.com/asciidoctor/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +# Supported backends dictionary: +# backend-name: The name of the USE flag, a gem spec file in ./spec, a +# directory in ./lib/asciidoctor-diagram/, and a require directive in +# ./lib/asciidoctor.rb which will be removed if the former is unset. +# dependencies: Dependencies for RDEPEND if the USE flag is set, and for +# DEPEND if the "test" USE flag is set. +# removal-function: Additional commands to evaluate, if the USE flag is unset. +# +# NB: Do not implicitly use functions following a naming scheme instead +# of an explicit to prevent accidental or malicious +# injection from functions exported in the parent environment. +backend_dict_stride=3 +backends=( + "barcode" "dev-ruby/rqrcode dev-ruby/barby[qrcode]" "" + "ditaa" "media-gfx/ditaa" "remove_ditaa" + "gnuplot" "sci-visualization/gnuplot" "" + "graphviz" "media-gfx/graphviz" "" + "lilypond" "media-sound/lilypond" "" + "meme" "media-gfx/imagemagick[png]" "" + "mscgen" "media-gfx/mscgen[png]" "" + "plantuml" "media-gfx/plantuml" "remove_plantuml" + "tikz" "dev-tex/pgf media-gfx/pdf2svg" "" +) + +remove_plantuml() { + rm -f "spec/salt.rb" + sed -i "/\\/salt'/d" "lib/asciidoctor-diagram.rb" + sed -i "/plantuml/d" "asciidoctor-diagram.gemspec" +} + +remove_ditaa() { + sed -i "/ditaa/d" "asciidoctor-diagram.gemspec" +} + +IUSE="" +DEPEND+="test? (" + +i=0 +while (( i < ${#backends[@]} )) +do + backend="${backends[i]}" + deps="${backends[i+1]}" + + IUSE+=" $backend" + RDEPEND+=" $backend? ( $deps )" + DEPEND+=" $deps" + + ((i+=backend_dict_stride)) +done + +DEPEND+=" )" + +ruby_add_rdepend ">=dev-ruby/asciidoctor-1.5.7