BSD Ports

devel/rubygem-term-ansicolor 1.11.3 FreeBSD

Term::ANSIColor for Ruby

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
devel, ruby
Package size
44.5 KiB, 147.7 KiB installed

Description

Small Ruby library that colors strings using ANSI escape sequences. It's possible to use constants:

print red, bold, "red bold", reset, "\\n"

or unary functions:

print red(bold("red bold")), "\\n"

Blockforms do also autoreset at the block's end:

print red { bold { "red bold" } }, "\\n"

It's also possible to use this module as Mixin for classes of objects that respond to :to_str, e.g. String.

class String
  include Term::ANSIColor
end
print "red bold".red.bold, "\\n"

In the other systems

SystemPortVersion
FreeBSDdevel/rubygem-term-ansicolor1.11.3
DragonFlydevel/rubygem-term-ansicolor1.11.2

Install

Binary package:

pkg install rubygem-term-ansicolor

From the ports tree:

cd /usr/ports/devel/rubygem-term-ansicolor/ && make install clean

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

RUN_DEPENDS=	rubygem-term-ansicolor>0:devel/rubygem-term-ansicolor

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.11.31.11.31.7.11.11.21.11.3
FreeBSD:14:quarterly1.11.31.11.3n/a1.11.21.11.3
FreeBSD:15:latest1.11.31.11.3n/a1.11.21.11.2
FreeBSD:15:quarterly1.11.31.11.3n/an/an/a
FreeBSD:16:latest1.11.31.11.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 6
Run dependencies 22

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/term-ansicolor-1.11.3.gem491528c01ec3abd095eb94dca8aed5a127d36e594239eb525eb306259c9e930534603
Master sites 1
  • RG

Commit history 0

No commits in the history this site was built from.