diff --git a/devel/Makefile b/devel/Makefile index a86cc247cdd1..4affa2a6d6b0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5851,6 +5851,7 @@ SUBDIR += rubygem-tty-command SUBDIR += rubygem-tty-cursor SUBDIR += rubygem-tty-editor + SUBDIR += rubygem-tty-file SUBDIR += rubygem-tty-font SUBDIR += rubygem-tty-markdown SUBDIR += rubygem-tty-pager diff --git a/devel/rubygem-tty-file/Makefile b/devel/rubygem-tty-file/Makefile new file mode 100644 index 000000000000..8e275d4a08bc --- /dev/null +++ b/devel/rubygem-tty-file/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= tty-file +PORTVERSION= 0.5.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= File and directory manipulation utility methods + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= rubygem-diff-lcs>=1.3.0:textproc/rubygem-diff-lcs \ + rubygem-pastel>=0.7.2:devel/rubygem-pastel \ + rubygem-tty-prompt>=0.14.0:devel/rubygem-tty-prompt + +NO_ARCH= yes +USE_RUBY= yes +USES= gem + +.include diff --git a/devel/rubygem-tty-file/distinfo b/devel/rubygem-tty-file/distinfo new file mode 100644 index 000000000000..bb043fbcf350 --- /dev/null +++ b/devel/rubygem-tty-file/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1520790761 +SHA256 (rubygem/tty-file-0.5.0.gem) = 6d4e816b45b290450c45ef6acf35feb05b419f7d6a7c514a86e4cd911aaf0e07 +SIZE (rubygem/tty-file-0.5.0.gem) = 19968 diff --git a/devel/rubygem-tty-file/files/patch-gemspec b/devel/rubygem-tty-file/files/patch-gemspec new file mode 100644 index 000000000000..edfe8cb645e5 --- /dev/null +++ b/devel/rubygem-tty-file/files/patch-gemspec @@ -0,0 +1,11 @@ +--- tty-file.gemspec.orig 2018-03-11 17:52:45 UTC ++++ tty-file.gemspec +@@ -24,7 +24,7 @@ Gem::Specification.new do |s| + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q.freeze, ["~> 0.7.2"]) +- s.add_runtime_dependency(%q.freeze, ["~> 0.14.0"]) ++ s.add_runtime_dependency(%q.freeze, ["~> 0.14"]) + s.add_runtime_dependency(%q.freeze, ["~> 1.3.0"]) + s.add_development_dependency(%q.freeze, ["~> 1.5"]) + s.add_development_dependency(%q.freeze, ["~> 10.0"]) diff --git a/devel/rubygem-tty-file/pkg-descr b/devel/rubygem-tty-file/pkg-descr new file mode 100644 index 000000000000..ddac140a06de --- /dev/null +++ b/devel/rubygem-tty-file/pkg-descr @@ -0,0 +1,8 @@ +TTY::File supports file and directory manipulation utility methods. + +Though Ruby's File and FileUtils libraries provide very robust apis for dealing +with files, this library aims to provide a level of abstraction that is much +more convenient, with useful logging capabilities. + +WWW: https://piotrmurach.github.io/tty/ +WWW: https://github.com/piotrmurach/tty-file