summaryrefslogtreecommitdiff
path: root/dev-ruby/prism
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-27 06:30:35 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-27 06:30:35 +0000
commit721e451ec418e1712f6962404e111f0ebd487389 (patch)
treeaab5b35236af464349c2522312c63b664273465c /dev-ruby/prism
parente80134587e8d959a88dba7dd3784895372e205c8 (diff)
gentoo auto-resync : 27:12:2024 - 06:30:34
Diffstat (limited to 'dev-ruby/prism')
-rw-r--r--dev-ruby/prism/Manifest3
-rw-r--r--dev-ruby/prism/metadata.xml12
-rw-r--r--dev-ruby/prism/prism-1.3.0.ebuild32
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/prism/Manifest b/dev-ruby/prism/Manifest
new file mode 100644
index 000000000000..025e37811119
--- /dev/null
+++ b/dev-ruby/prism/Manifest
@@ -0,0 +1,3 @@
+DIST prism-1.3.0.tar.gz 1503686 BLAKE2B 6fa7e474509debc4f7f1f5f6c96fbbfe8c57cb7e8f946e23ab64dabfbecb825164704862dc2b56e61927d5330882f735cf1e10c77287b115686f213164f6019a SHA512 b1aefaa84f03ac74edf9edb09d72a3ea680a6772cd4490692742d6679e690ad47382784e1523febc2f74d360c44cf5e9d387cf4872613503b656154645e880b5
+EBUILD prism-1.3.0.ebuild 956 BLAKE2B 990a690cf4c3e14e9d3f4ef5e464e5f9637ad8cc6cb34e8a1dd33fc20bb79efb323cc0377049d305657a1b983c9ceff9c0bac123ea632f1723561266648c5664 SHA512 4d70a4ba69385f9c0c1585a53dd7bb7f97c613c6aacffe4fe26cb8fe5cd3b6c8af75edc5ae48d830c224caf1508d77f3909a525d23e33cdfa57a449e5fdb3d88
+MISC metadata.xml 386 BLAKE2B b470a8d5f8831123524e941dac413b8358b069149b0cdbba48d93a26053b4d73a90bc3823815e804a4d3957e17c3e02e9e8a43fc25e0e0369d2d58cacae7fa7e SHA512 7e1c089a372b6b4f13a671dd013f5d0258ab14fe1105605298ed10ebc5151246418177b66ed96ebbad953b1c04c1d0b989e70fcce3cd46870474a4215197cf9c
diff --git a/dev-ruby/prism/metadata.xml b/dev-ruby/prism/metadata.xml
new file mode 100644
index 000000000000..eae624ca9612
--- /dev/null
+++ b/dev-ruby/prism/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ruby/prism</remote-id>
+ <remote-id type="rubygems">prism</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/prism/prism-1.3.0.ebuild b/dev-ruby/prism/prism-1.3.0.ebuild
new file mode 100644
index 000000000000..6b7255c8b8aa
--- /dev/null
+++ b/dev-ruby/prism/prism-1.3.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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"
+
+all_ruby_prepare() {
+ # Avoid a dependency on rake-compiler
+ sed -e '/PRISM_FFI_BACKEND/ s/$/ and false/' \
+ -i Rakefile || die
+}
+
+each_ruby_prepare() {
+ ${RUBY} -S rake templates || die
+}