aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-08-21 16:52:05 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-08-21 17:01:59 +0000
commit34a7eb1c4c29a33c8748ceab001aba2eb6724673 (patch)
tree3e32f15f6dac7ca10d2724d4f93bccd00b09b255
parent72a397dc01108bdad6c0e824a094b9353c2951c8 (diff)
downloadports-34a7eb1c4c29a33c8748ceab001aba2eb6724673.tar.gz
ports-34a7eb1c4c29a33c8748ceab001aba2eb6724673.zip
devel/rubygem-syntax_tree: Add rubygem-syntax_tree 6.1.1
Syntax Tree is a suite of tools built on top of the internal CRuby parser. It provides the ability to generate a syntax tree from source, as well as the tools necessary to inspect and manipulate that syntax tree. It can be used to build formatters, linters, language servers, and more. It is built with only standard library dependencies. It additionally ships with a plugin system so that you can build your own syntax trees from other languages and incorporate these tools.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-syntax_tree/Makefile23
-rw-r--r--devel/rubygem-syntax_tree/distinfo3
-rw-r--r--devel/rubygem-syntax_tree/pkg-descr8
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 115b190a14f8..0ea94394c918 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7401,6 +7401,7 @@
SUBDIR += rubygem-swagger-blocks
SUBDIR += rubygem-sync
SUBDIR += rubygem-syntax_suggest
+ SUBDIR += rubygem-syntax_tree
SUBDIR += rubygem-sysinfo
SUBDIR += rubygem-syslog
SUBDIR += rubygem-systemu
diff --git a/devel/rubygem-syntax_tree/Makefile b/devel/rubygem-syntax_tree/Makefile
new file mode 100644
index 000000000000..c860e73ebe98
--- /dev/null
+++ b/devel/rubygem-syntax_tree/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= syntax_tree
+PORTVERSION= 6.1.1
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Parser based on ripper
+WWW= https://ruby-syntax-tree.github.io/syntax_tree/ \
+ https://github.com/ruby-syntax-tree/syntax_tree
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= rubygem-prettier_print>=1.2.0:devel/rubygem-prettier_print
+
+USES= gem
+
+NO_ARCH= yes
+
+PLIST_FILES= bin/stree \
+ bin/yarv
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-syntax_tree/distinfo b/devel/rubygem-syntax_tree/distinfo
new file mode 100644
index 000000000000..ad86e6dd2778
--- /dev/null
+++ b/devel/rubygem-syntax_tree/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1692211629
+SHA256 (rubygem/syntax_tree-6.1.1.gem) = eb03ff60f51ac29af5cf4fe39bc06e6714cd5b8b3f91cbec2a61e0b8602f5598
+SIZE (rubygem/syntax_tree-6.1.1.gem) = 218112
diff --git a/devel/rubygem-syntax_tree/pkg-descr b/devel/rubygem-syntax_tree/pkg-descr
new file mode 100644
index 000000000000..c3730568c0af
--- /dev/null
+++ b/devel/rubygem-syntax_tree/pkg-descr
@@ -0,0 +1,8 @@
+Syntax Tree is a suite of tools built on top of the internal CRuby parser. It
+provides the ability to generate a syntax tree from source, as well as the tools
+necessary to inspect and manipulate that syntax tree. It can be used to build
+formatters, linters, language servers, and more.
+
+It is built with only standard library dependencies. It additionally ships with
+a plugin system so that you can build your own syntax trees from other languages
+and incorporate these tools.