1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2021-01-03 20:01:09 +00:00
parent 370d39657e
commit af2269e12a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=560068
4 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,21 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= prettyprint
PORTVERSION= 0.1.0
CATEGORIES= devel rubygems
MASTER_SITES= RG
MAINTAINER= sunpoet@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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1609598789
SHA256 (rubygem/prettyprint-0.1.0.gem) = 74d6e79c01da03d99ae4fd13fcb2b7d4e61fcf1bd5e5f7f745465819af39991b
SIZE (rubygem/prettyprint-0.1.0.gem) = 11776

View File

@ -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