commit:     f4a5f5ad6b6a1d9b833789e762cb629f7349c61e
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 19 07:37:57 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Mar 19 07:37:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4a5f5ad

dev-ruby/prism: add 1.4.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/prism/Manifest           |  1 +
 dev-ruby/prism/prism-1.4.0.ebuild | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/dev-ruby/prism/Manifest b/dev-ruby/prism/Manifest
index 71f0e7f89e07..7bd12d3f5aea 100644
--- a/dev-ruby/prism/Manifest
+++ b/dev-ruby/prism/Manifest
@@ -1 +1,2 @@
 DIST prism-1.3.0.tar.gz 1503686 BLAKE2B 
6fa7e474509debc4f7f1f5f6c96fbbfe8c57cb7e8f946e23ab64dabfbecb825164704862dc2b56e61927d5330882f735cf1e10c77287b115686f213164f6019a
 SHA512 
b1aefaa84f03ac74edf9edb09d72a3ea680a6772cd4490692742d6679e690ad47382784e1523febc2f74d360c44cf5e9d387cf4872613503b656154645e880b5
+DIST prism-1.4.0.tar.gz 1553218 BLAKE2B 
d936e2a44026bfb23000061e3eb9e2d6f885a93b56e776f5a78e995e3857d413718603799352d6666da98c27f8ee94cf69b6db8c4cb2cdb8e027ea12d52a973c
 SHA512 
46288329239c7b5f42e4fed3e096c54a15403f1d5520449300250c88718b29678de2b992f9cda5cbc81c9d4499264be1fd37e9e37c95cda1294e845bca0ca256

diff --git a/dev-ruby/prism/prism-1.4.0.ebuild 
b/dev-ruby/prism/prism-1.4.0.ebuild
new file mode 100644
index 000000000000..33ff67921cec
--- /dev/null
+++ b/dev-ruby/prism/prism-1.4.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTENSIONS=( ext/prism/extconf.rb )
+RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/prism"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md docs/*"
+RUBY_FAKEGEM_GEMSPEC="prism.gemspec"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Prism Ruby parser"
+HOMEPAGE="https://github.com/ruby/prism";
+SRC_URI="https://github.com/ruby/prism/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos 
~x64-solaris"
+
+ruby_add_bdepend "dev-ruby/bundler"
+
+all_ruby_prepare() {
+       # Avoid a dependency on rake-compiler
+       sed -e '/PRISM_FFI_BACKEND/ s/$/ and false/' \
+               -i Rakefile || die
+}
+
+each_ruby_prepare() {
+       # rake imports all rakelib/* (bug #947054)
+       rm rakelib/rdoc.rake || die
+       ${RUBY} -S rake templates || die
+}

Reply via email to