commit:     479fcf72ea37593419b021f183b96c158970812a
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sun Mar  1 18:42:18 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  3 21:44:17 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=479fcf72

dev-ruby/itextomml: mark as C17-only

Uses C polymorphism to interact with ruby bindings, including casting
to void function. Patching must be done with knowledge of ruby
extension API.

Closes: https://bugs.gentoo.org/944196
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/191
Merges: https://codeberg.org/gentoo/gentoo/pulls/191
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/itextomml/itextomml-1.6.1-r1.ebuild | 32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/dev-ruby/itextomml/itextomml-1.6.1-r1.ebuild 
b/dev-ruby/itextomml/itextomml-1.6.1-r1.ebuild
new file mode 100644
index 000000000000..9cb8726710b2
--- /dev/null
+++ b/dev-ruby/itextomml/itextomml-1.6.1-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_EXTRADOC="README"
+RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb)
+
+inherit ruby-fakegem flag-o-matic
+
+DESCRIPTION="Native Ruby bindings to itex2MML, which converts itex equations 
to MathML"
+HOMEPAGE="https://golem.ph.utexas.edu/~distler/blog/itex2MML.html";
+
+LICENSE="|| ( GPL-2+ MPL-1.1 LGPL-2+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+#Tests don't fail here
+RESTRICT="test"
+
+all_ruby_prepare() {
+       append-cflags -std=gnu17 #944196
+
+       default
+}
+
+each_ruby_test() {
+       ${RUBY} test/test_itextomml.rb || die
+}

Reply via email to