From 1663787912541937908c30959c32b016a779d600 Mon Sep 17 00:00:00 2001 From: taca Date: Fri, 11 Nov 2022 14:02:52 +0000 Subject: [PATCH] devel/ruby-paint: add package version 2.3.0 Required by ruby-lolcat package. Ruby Paint Paint creates terminal colors and effects for you. It combines the strengths of term-ansicolor, rainbow, and similar projects into a simple to use, however still flexible terminal colors gem with no core extensions by default. Features * No string extensions (suitable for library development) * Simple API * Faster than other terminal color gems (as of July 2022) * Supports true color or 256 colors (for capable terminals) * Allows you to set any terminal effects * Paint.mode: Fall-back modes for terminals with less colors, supported modes: o 0xFFFFFF (= 16777215) colors (true color) o 256 colors (palette) o 16 colors (only ANSI colors, combined with bright effect) o 8 colors (only ANSI colors) o 0 colors (no colors / deactivate) --- devel/ruby-paint/DESCR | 22 ++++++++++++++++++++++ devel/ruby-paint/Makefile | 14 ++++++++++++++ devel/ruby-paint/PLIST | 18 ++++++++++++++++++ devel/ruby-paint/distinfo | 5 +++++ 4 files changed, 59 insertions(+) create mode 100644 devel/ruby-paint/DESCR create mode 100644 devel/ruby-paint/Makefile create mode 100644 devel/ruby-paint/PLIST create mode 100644 devel/ruby-paint/distinfo diff --git a/devel/ruby-paint/DESCR b/devel/ruby-paint/DESCR new file mode 100644 index 000000000000..5686614248ed --- /dev/null +++ b/devel/ruby-paint/DESCR @@ -0,0 +1,22 @@ +Ruby Paint + +Paint creates terminal colors and effects for you. It combines the +strengths of term-ansicolor, rainbow, and similar projects into a simple to +use, however still flexible terminal colors gem with no core extensions by +default. + +Features + +* No string extensions (suitable for library development) +* Simple API +* Faster than other terminal color gems (as of July 2022) +* Supports true color or 256 colors (for capable terminals) +* Allows you to set any terminal effects +* Paint.mode: Fall-back modes for terminals with less colors, supported + modes: + + o 0xFFFFFF (= 16777215) colors (true color) + o 256 colors (palette) + o 16 colors (only ANSI colors, combined with bright effect) + o 8 colors (only ANSI colors) + o 0 colors (no colors / deactivate) diff --git a/devel/ruby-paint/Makefile b/devel/ruby-paint/Makefile new file mode 100644 index 000000000000..d3f4b57fe263 --- /dev/null +++ b/devel/ruby-paint/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1 2022/11/11 14:02:52 taca Exp $ + +DISTNAME= paint-2.3.0 +CATEGORIES= devel + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/janlelis/paint +COMMENT= Terminal painter with RGB and 256 (fallback) color +LICENSE= mit + +USE_LANGUAGES= # none + +.include "../../lang/ruby/gem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-paint/PLIST b/devel/ruby-paint/PLIST new file mode 100644 index 000000000000..25deaf7faaa1 --- /dev/null +++ b/devel/ruby-paint/PLIST @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1 2022/11/11 14:02:52 taca Exp $ +${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/.github/workflows/codeql-analysis.yml +${GEM_LIBDIR}/.github/workflows/test.yml +${GEM_LIBDIR}/.rspec +${GEM_LIBDIR}/CHANGELOG.md +${GEM_LIBDIR}/MIT-LICENSE.txt +${GEM_LIBDIR}/README.md +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/data/rgb_colors.marshal.gz +${GEM_LIBDIR}/lib/paint.rb +${GEM_LIBDIR}/lib/paint/constants.rb +${GEM_LIBDIR}/lib/paint/pa.rb +${GEM_LIBDIR}/lib/paint/rgb_colors.rb +${GEM_LIBDIR}/lib/paint/util.rb +${GEM_LIBDIR}/lib/paint/version.rb +${GEM_LIBDIR}/paint.gemspec +${GEM_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/devel/ruby-paint/distinfo b/devel/ruby-paint/distinfo new file mode 100644 index 000000000000..87d80f3f8c2c --- /dev/null +++ b/devel/ruby-paint/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2022/11/11 14:02:52 taca Exp $ + +BLAKE2s (paint-2.3.0.gem) = 174ac3d94bd598a12bc993223c79aeeb0ec90adf10be0b36a516351fdc69868e +SHA512 (paint-2.3.0.gem) = 76bf5ef168487fd8427c43a2e899edda3b3365f9d946785cc9428180d62f82d45b6d7597787a91392dac0b987f71a1b0166696d7965956c3ee3c8160c2e94f83 +Size (paint-2.3.0.gem) = 22016 bytes