svn commit: r560068 - in head/devel: . rubygem-prettyprint
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Jan 3 20:01:14 UTC 2021
Author: sunpoet
Date: Sun Jan 3 20:01:09 2021
New Revision: 560068
URL: https://svnweb.freebsd.org/changeset/ports/560068
Log:
Add rubygem-prettyprint 0.1.0
PrettyPrint implements a pretty printing algorithm. It finds line breaks and
nice indentations for grouped structure.
By default, the class assumes that primitive elements are strings and each byte
in the strings have single column in width. But it can be used for other
situations by giving suitable arguments for some methods:
- newline object and space generation block for PrettyPrint.new
- optional width argument for PrettyPrint#text
- PrettyPrint#breakable
There are several candidate uses:
- text formatting using proportional fonts
- multibyte characters which has columns different to number of bytes
WWW: https://github.com/ruby/prettyprint
Added:
head/devel/rubygem-prettyprint/
head/devel/rubygem-prettyprint/Makefile (contents, props changed)
head/devel/rubygem-prettyprint/distinfo (contents, props changed)
head/devel/rubygem-prettyprint/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sun Jan 3 20:01:03 2021 (r560067)
+++ head/devel/Makefile Sun Jan 3 20:01:09 2021 (r560068)
@@ -6344,6 +6344,7 @@
SUBDIR += rubygem-powerbar
SUBDIR += rubygem-powerpack
SUBDIR += rubygem-pqueue
+ SUBDIR += rubygem-prettyprint
SUBDIR += rubygem-progressbar
SUBDIR += rubygem-prometheus-client-mmap
SUBDIR += rubygem-protected_attributes
Added: head/devel/rubygem-prettyprint/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-prettyprint/Makefile Sun Jan 3 20:01:09 2021 (r560068)
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= prettyprint
+PORTVERSION= 0.1.0
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Pretty printing algorithm for readable structure
+
+LICENSE= BSD2CLAUSE RUBY
+LICENSE_COMB= dual
+LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.txt
+
+USES= gem
+USE_RUBY= yes
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/devel/rubygem-prettyprint/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-prettyprint/distinfo Sun Jan 3 20:01:09 2021 (r560068)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1609598789
+SHA256 (rubygem/prettyprint-0.1.0.gem) = 74d6e79c01da03d99ae4fd13fcb2b7d4e61fcf1bd5e5f7f745465819af39991b
+SIZE (rubygem/prettyprint-0.1.0.gem) = 11776
Added: head/devel/rubygem-prettyprint/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-prettyprint/pkg-descr Sun Jan 3 20:01:09 2021 (r560068)
@@ -0,0 +1,15 @@
+PrettyPrint implements a pretty printing algorithm. It finds line breaks and
+nice indentations for grouped structure.
+
+By default, the class assumes that primitive elements are strings and each byte
+in the strings have single column in width. But it can be used for other
+situations by giving suitable arguments for some methods:
+- newline object and space generation block for PrettyPrint.new
+- optional width argument for PrettyPrint#text
+- PrettyPrint#breakable
+
+There are several candidate uses:
+- text formatting using proportional fonts
+- multibyte characters which has columns different to number of bytes
+
+WWW: https://github.com/ruby/prettyprint
More information about the svn-ports-head
mailing list