summaryrefslogtreecommitdiff
path: root/dev-ruby
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-03 15:52:15 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-03 15:52:15 +0000
commit782ce86e028f083bc3ad28d3a1fd28a344f0413b (patch)
tree45f75dfdd23c43c519ce017b8cef69fa6a5d358b /dev-ruby
parenta45825edc1b8bca4fffbc0435da0a8c898f44f36 (diff)
gentoo auto-resync : 03:11:2023 - 15:52:15
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/Manifest.gzbin108628 -> 108633 bytes
-rw-r--r--dev-ruby/asciidoctor-diagram/Manifest4
-rw-r--r--dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.2.14.ebuild121
-rw-r--r--dev-ruby/asciidoctor-diagram/metadata.xml9
4 files changed, 133 insertions, 1 deletions
diff --git a/dev-ruby/Manifest.gz b/dev-ruby/Manifest.gz
index f595d3c67fc3..0132d30b6784 100644
--- a/dev-ruby/Manifest.gz
+++ b/dev-ruby/Manifest.gz
Binary files differ
diff --git a/dev-ruby/asciidoctor-diagram/Manifest b/dev-ruby/asciidoctor-diagram/Manifest
index 03d326f41677..55a11e9aed9c 100644
--- a/dev-ruby/asciidoctor-diagram/Manifest
+++ b/dev-ruby/asciidoctor-diagram/Manifest
@@ -1,7 +1,9 @@
DIST asciidoctor-diagram-2.0.5.tar.gz 12482984 BLAKE2B b0ef8596d2f2dfcf11fcbba876141aee38e8615195159f76e07b45c00b46bd85824dd6e8e9f571b396bbd9d082c5d60d4e05cdeac27719bfca53216c0d1b1816 SHA512 7e3bfbfb08d7389a039b1727bc173fca82e05134bebd89f3ca65d5e7860555034ff5e785c32e55ea2cc9826343456c6ecdfa15fc76f4d94858461356ab3ced71
DIST asciidoctor-diagram-2.2.11.tar.gz 15488606 BLAKE2B e0080ecafafcaef72ae1ca449d4ea2d4b69b1550d62cacb514350da047952adbddc0c9f48081fe7acae7f174c6b910c297357ef57df09c0c5a379a3332eb38e8 SHA512 233d2940516fa28863e53b7e4f43851256fdcc83e92fc5d4eafdc2e820a8040473c89f7f01397bdb26b6c4fbd9e6fcb576156c4abd949660ade37d152c8e5e40
DIST asciidoctor-diagram-2.2.12.tar.gz 14093006 BLAKE2B 2f2349c6694c35ea74bfc74e145eb2f34a422354e1ad4bc87b23bda66443ced7b14ccbce3b015d545fd84d89a6aee44c0c98743b9410c0a460571c83ca1c03ca SHA512 0a960a0f48bd1c129b218f0b70686f7d2f5745f84e484e3152e2532c51bf2987bbefec4cef06d579de1c881545ecdc34a607a00ad1af09ed748c7c66571570ac
+DIST asciidoctor-diagram-2.2.14.tar.gz 14085153 BLAKE2B b62fbbc0ba5a5c53a92b1c9cd7d20047a0e6f4ec71ff7daeab379c3be2546b105b900e7fa6c49f00f6320de2087115d5944b9df9be443ad60cc0d330d5b12234 SHA512 8e343726788e61fa6846d756911f3df9ef276f706ec2668e7d74fc7b5b2cf3c8984f1d5031af5d8d2c55260f3bebf981d0bcd5dd1c032e504b32bee167cb626e
EBUILD asciidoctor-diagram-2.0.5-r1.ebuild 1219 BLAKE2B 61342fe4386b43966a3086a568023278129be9270502cacb70bb7a4ca77dd57c623f8fc6a6f96a9ed5788d66ff53e6249c7b299d6df1a0c6744174ea6251441e SHA512 57bde827d63c7f7b9cf29e914491f81d75fb3af96740faff7f94f5d275893259fdb6a4705ea79e3fb43b202732e7f45c826d4cb2702d8b0f3022896bbcc459eb
EBUILD asciidoctor-diagram-2.2.11.ebuild 1546 BLAKE2B fc915ee30e0656461d799faf558761fa1002417285c26848126da24c675d9e640e6b6b2363893dcfcca4b39c413bc3019ccddeafd0028158eae1e5b5112d2bdd SHA512 a781fad331baa1808eddeedda56ada4bfb5a0b473720383d1bbfcd24bdccf0c4fea08a03d3bab733e7dcb66c3a507e6101e4d21511faee40a4f0254fb9f2616b
EBUILD asciidoctor-diagram-2.2.12.ebuild 1546 BLAKE2B fc915ee30e0656461d799faf558761fa1002417285c26848126da24c675d9e640e6b6b2363893dcfcca4b39c413bc3019ccddeafd0028158eae1e5b5112d2bdd SHA512 a781fad331baa1808eddeedda56ada4bfb5a0b473720383d1bbfcd24bdccf0c4fea08a03d3bab733e7dcb66c3a507e6101e4d21511faee40a4f0254fb9f2616b
-MISC metadata.xml 358 BLAKE2B 0a7ccfa951823c5c42d8ce280483f15e73abaf453c24b79b68bce29717bb3ae4e4656f40d7bc320479e65d8942bf43cb4abca9b9d916d2c27275880ef2034367 SHA512 4cb3cea3081700e1eb920452d2408fbf7ef730232e2979edc057c10b1ff879d14d97914765c644fc8d055c5705b8bb16b2a9651001733b102b8a05a1e72e1cdb
+EBUILD asciidoctor-diagram-2.2.14.ebuild 3134 BLAKE2B aedc9ec075a993adf418b70d507e380353fa8dde2ae0df1fe28dc1717e0a759705da676c1e94b5cc7257ee5c8aec804d6d4d88564fca3485022dfff7f8ffed89 SHA512 9c0bf5938cf43839781f3f13bab0b8fb9c6d910634c1a7e4c3580fa109f556dbda552288de68d0bd85342454524d84a6409ffde7af9396988b170d3c32726cc8
+MISC metadata.xml 970 BLAKE2B 086ea5c56ce1b3bbb4b1b660b68e1be8ee61c6f0f880c4e3eb66b2a302c0a7eee506aa23e2b09b383ff8a17a740c52e88878284e26dc94d4965dd6a565eaff50 SHA512 a59329cfadb8b449c19a1831fdda89bd6bb8ae87c2087262d5f613a8e7c940d4516bbece3feccfc76e18a4cca8d2e0df2e9ab93dc8d203f79c3cf0a81561ad32
diff --git a/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.2.14.ebuild b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.2.14.ebuild
new file mode 100644
index 000000000000..6307b5c5169a
--- /dev/null
+++ b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.2.14.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+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> <dependencies> <removal-function>
+# 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 <removal-function> 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" ""
+ "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" ""
+)
+
+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 <dev-ruby/asciidoctor-3 dev-ruby/rexml"
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -e '/c.formatter/ s:^:#:' \
+ -e '/logger.*DEBUG/ s:^:#:' \
+ -i spec/test_helper_methods.rb || die
+
+ # Delete everything related to unsupported backends. Obtain list of backends from spec/
+ for spec in spec/*_spec.rb
+ do
+ backend="${spec##spec/}"
+ backend="${backend%%_spec.rb}"
+
+ backend_index=0
+
+ get_backend_index() {
+ local i=0
+ while (( i < ${#backends[@]} ))
+ do
+ if [[ "${backends[i]}" == "$backend" ]]
+ then
+ echo "$i"
+ return 1
+ fi
+ ((i+=backend_dict_stride))
+ done
+ }
+
+ if backend_index="$(get_backend_index)" || ! use "$backend"
+ then
+ rm -f "spec/${backend}_spec.rb"
+ rm -Rf "lib/asciidoctor-diagram/"{"$backend.rb","$backend"}
+ sed -i "/\\/$backend'/d" "lib/asciidoctor-diagram.rb"
+ removal="${backends[backend_index+2]}"
+ if [[ "$removal" ]]
+ then
+ "$removal"
+ fi
+ fi
+ done
+}
+
+all_ruby_install() {
+ all_fakegem_install
+}
diff --git a/dev-ruby/asciidoctor-diagram/metadata.xml b/dev-ruby/asciidoctor-diagram/metadata.xml
index 86e0cfdef59c..da8316aae3c5 100644
--- a/dev-ruby/asciidoctor-diagram/metadata.xml
+++ b/dev-ruby/asciidoctor-diagram/metadata.xml
@@ -8,4 +8,13 @@
<upstream>
<remote-id type="github">asciidoctor/asciidoctor-diagram</remote-id>
</upstream>
+ <use>
+ <flag name="barcode">Enable diagrams with <pkg>dev-ruby/rqrcode</pkg> and <pkg>dev-ruby/barby</pkg></flag>
+ <flag name="ditaa">Enable diagrams with <pkg>media-gfx/ditaa</pkg></flag>
+ <flag name="lilypond">Enable diagrams with <pkg>media-sound/lilypond</pkg></flag>
+ <flag name="meme">Enable diagrams with <pkg>media-gfx/imagemagick</pkg></flag>
+ <flag name="mscgen">Enable diagrams with <pkg>media-gfx/mscgen</pkg></flag>
+ <flag name="plantuml">Enable diagrams with <pkg>media-gfx/plantuml</pkg></flag>
+ <flag name="tikz">Enable diagrams with <pkg>dev-tex/pgf</pkg></flag>
+ </use>
</pkgmetadata>