aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-08-21 16:52:07 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-08-21 17:02:00 +0000
commitcc99dafa5d90e9b383840ca799d13e44845f797b (patch)
treeaffa21e9e0a21094bf4d80292adb5397809e99d2
parent34a7eb1c4c29a33c8748ceab001aba2eb6724673 (diff)
textproc/rubygem-yarp: Add rubygem-yarp 0.6.0
Yet Another Ruby Parser 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-yarp/Makefile18
-rw-r--r--textproc/rubygem-yarp/distinfo3
-rw-r--r--textproc/rubygem-yarp/files/patch-ext-yarp-extconf.rb11
-rw-r--r--textproc/rubygem-yarp/pkg-descr4
5 files changed, 37 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index edfee41d6241..41373a453e87 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1901,6 +1901,7 @@
SUBDIR += rubygem-ya2yaml
SUBDIR += rubygem-yard
SUBDIR += rubygem-yard-chef
+ SUBDIR += rubygem-yarp
SUBDIR += rubygem-zmq
SUBDIR += rw-aspell
SUBDIR += rxp
diff --git a/textproc/rubygem-yarp/Makefile b/textproc/rubygem-yarp/Makefile
new file mode 100644
index 000000000000..088b5eb9ab25
--- /dev/null
+++ b/textproc/rubygem-yarp/Makefile
@@ -0,0 +1,18 @@
+PORTNAME= yarp
+PORTVERSION= 0.6.0
+CATEGORIES= textproc rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Yet Another Ruby Parser
+WWW= https://ruby.github.io/yarp/ \
+ https://github.com/ruby/yarp
+
+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-yarp/distinfo b/textproc/rubygem-yarp/distinfo
new file mode 100644
index 000000000000..064b896c25bb
--- /dev/null
+++ b/textproc/rubygem-yarp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1692211631
+SHA256 (rubygem/yarp-0.6.0.gem) = a073d14542a7a45504044fa719de35708cd99e451741703b0b2bd6c781f615ac
+SIZE (rubygem/yarp-0.6.0.gem) = 265216
diff --git a/textproc/rubygem-yarp/files/patch-ext-yarp-extconf.rb b/textproc/rubygem-yarp/files/patch-ext-yarp-extconf.rb
new file mode 100644
index 000000000000..c29e7fac3beb
--- /dev/null
+++ b/textproc/rubygem-yarp/files/patch-ext-yarp-extconf.rb
@@ -0,0 +1,11 @@
+--- ext/yarp/extconf.rb.orig 2023-08-18 17:14:49 UTC
++++ ext/yarp/extconf.rb
+@@ -70,7 +70,7 @@ module Yarp
+ Rake.sh("templates/template.rb")
+ end
+ Rake.sh("sh", "configure") # explicit "sh" for Windows where shebangs are not supported
+- Rake.sh("make", target)
++ Rake.sh("gmake", target)
+ end
+ end
+
diff --git a/textproc/rubygem-yarp/pkg-descr b/textproc/rubygem-yarp/pkg-descr
new file mode 100644
index 000000000000..3078f924903e
--- /dev/null
+++ b/textproc/rubygem-yarp/pkg-descr
@@ -0,0 +1,4 @@
+Yet Another Ruby Parser 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.