aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-10-05 01:53:33 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-10-05 01:53:33 +0000
commit45e30826a6272168aa09c52aba9e77b13e18e594 (patch)
tree931b534e52690b50bf8caa832fbca73a9a781686
parent83afee21dc8f323a40e2715904e2882253fbb91a (diff)
textproc/rubygem-prism: Add rubygem-prism 0.13.0
This is a parser for the Ruby programming language. It is designed to be portable, error tolerant, and maintainable. It is written in C99 and has no dependencies. It is currently being integrated into CRuby, JRuby, TruffleRuby, Sorbet, and Syntax Tree.
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/rubygem-prism/Makefile18
-rw-r--r--textproc/rubygem-prism/distinfo3
-rw-r--r--textproc/rubygem-prism/files/patch-ext-prism-extconf.rb11
-rw-r--r--textproc/rubygem-prism/pkg-descr4
5 files changed, 37 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 78e95ae3c315..6abe99331807 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1826,6 +1826,7 @@
SUBDIR += rubygem-parslet1
SUBDIR += rubygem-phone
SUBDIR += rubygem-pretty-xml
+ SUBDIR += rubygem-prism
SUBDIR += rubygem-psych
SUBDIR += rubygem-psych3
SUBDIR += rubygem-puppet-strings
diff --git a/textproc/rubygem-prism/Makefile b/textproc/rubygem-prism/Makefile
new file mode 100644
index 000000000000..ab3659d67a6e
--- /dev/null
+++ b/textproc/rubygem-prism/Makefile
@@ -0,0 +1,18 @@
+PORTNAME= prism
+PORTVERSION= 0.13.0
+CATEGORIES= textproc rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Prism Ruby parser
+WWW= https://ruby.github.io/prism/ \
+ https://github.com/ruby/prism
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS= rubygem-rake>=0:devel/rubygem-rake
+
+USES= gem gmake
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-prism/distinfo b/textproc/rubygem-prism/distinfo
new file mode 100644
index 000000000000..d0136788a915
--- /dev/null
+++ b/textproc/rubygem-prism/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696432870
+SHA256 (rubygem/prism-0.13.0.gem) = d8052914c4c4d6136a3b51401eb2c83ab19b0edae1be2aa7bdc2e801b9680c0b
+SIZE (rubygem/prism-0.13.0.gem) = 302592
diff --git a/textproc/rubygem-prism/files/patch-ext-prism-extconf.rb b/textproc/rubygem-prism/files/patch-ext-prism-extconf.rb
new file mode 100644
index 000000000000..65d59ad47df7
--- /dev/null
+++ b/textproc/rubygem-prism/files/patch-ext-prism-extconf.rb
@@ -0,0 +1,11 @@
+--- ext/prism/extconf.rb.orig 2023-10-05 01:08:46 UTC
++++ ext/prism/extconf.rb
+@@ -75,7 +75,7 @@ module Prism
+ # normally we package up the configure and other files in the gem itself
+ system("templates/template.rb", exception: true)
+ end
+- system("make", target, exception: true)
++ system("gmake", target, exception: true)
+ end
+ end
+
diff --git a/textproc/rubygem-prism/pkg-descr b/textproc/rubygem-prism/pkg-descr
new file mode 100644
index 000000000000..42c031250212
--- /dev/null
+++ b/textproc/rubygem-prism/pkg-descr
@@ -0,0 +1,4 @@
+This is a parser for the Ruby programming language. It is designed to be
+portable, error tolerant, and maintainable. It is written in C99 and has no
+dependencies. It is currently being integrated into CRuby, JRuby, TruffleRuby,
+Sorbet, and Syntax Tree.