Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2023 02:01:06 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 45e30826a627 - main - textproc/rubygem-prism: Add rubygem-prism 0.13.0
Message-ID:  <202310050201.395216YN053968@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45e30826a6272168aa09c52aba9e77b13e18e594

commit 45e30826a6272168aa09c52aba9e77b13e18e594
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-10-05 01:53:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-10-05 01:53:33 +0000

    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.
---
 textproc/Makefile                                      |  1 +
 textproc/rubygem-prism/Makefile                        | 18 ++++++++++++++++++
 textproc/rubygem-prism/distinfo                        |  3 +++
 .../rubygem-prism/files/patch-ext-prism-extconf.rb     | 11 +++++++++++
 textproc/rubygem-prism/pkg-descr                       |  4 ++++
 5 files changed, 37 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310050201.395216YN053968>