BSD Ports

devel/rubygem-prettyprint 0.2.0 MidnightBSD

Pretty printing algorithm for readable structure

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2, ruby
Categories
devel, rubygems

Description

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

In the other systems

SystemPortVersion
MidnightBSDdevel/rubygem-prettyprint0.2.0
FreeBSDdevel/rubygem-prettyprint0.2.0
DragonFlydevel/rubygem-prettyprint0.2.0
HardenedBSDdevel/rubygem-prettyprint0.2.0
GhostBSDdevel/rubygem-prettyprint0.2.0

Install

Binary package:

mport install prettyprint

From mports:

cd /usr/mports/devel/rubygem-prettyprint && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	prettyprint>0:devel/rubygem-prettyprint

Dependencies

Required by 1

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/prettyprint-0.2.0.gem122882bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
Master sites 1
  • RG