git: 5b26fa6fa8c6 - main - graphics/rubygem-blurhash: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 19 Nov 2022 04:04:54 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b26fa6fa8c6ad8491b7542ef5d443f5ded547cf

commit 5b26fa6fa8c6ad8491b7542ef5d443f5ded547cf
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-11-19 04:03:04 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-11-19 04:03:04 +0000

    graphics/rubygem-blurhash: New port
    
    Scruffy is a Ruby library for creating great looking graphs and charts.
    Graphs can be rendered to SVG code or an image. Blend the beauty of
    Gruff with the SVG capabilities of SVG::Graph, make it super simple and
    extensible, and you've got Scruffy.
    
    Sponsored by:   Nepustil
---
 graphics/Makefile                   |  1 +
 graphics/rubygem-blurhash/Makefile  | 18 ++++++++++++++++++
 graphics/rubygem-blurhash/distinfo  |  3 +++
 graphics/rubygem-blurhash/pkg-descr |  4 ++++
 4 files changed, 26 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index c0c09ff8733c..4b43687827f6 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -1004,6 +1004,7 @@
     SUBDIR += ristretto
     SUBDIR += rlottie
     SUBDIR += ruby-gd
+    SUBDIR += rubygem-blurhash
     SUBDIR += rubygem-cairo
     SUBDIR += rubygem-captcha
     SUBDIR += rubygem-chunky_png
diff --git a/graphics/rubygem-blurhash/Makefile b/graphics/rubygem-blurhash/Makefile
new file mode 100644
index 000000000000..ffbc1e584ab8
--- /dev/null
+++ b/graphics/rubygem-blurhash/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	blurhash
+PORTVERSION=	0.1.6
+CATEGORIES=	graphics rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Ruby bindings for Blurhash library
+WWW=		https://github.com/Gargron/blurhash
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	rubygem-ffi>0:devel/rubygem-ffi
+
+USE_RUBY=	yes
+USES=		gem
+
+.include <bsd.port.mk>
diff --git a/graphics/rubygem-blurhash/distinfo b/graphics/rubygem-blurhash/distinfo
new file mode 100644
index 000000000000..67739ba206de
--- /dev/null
+++ b/graphics/rubygem-blurhash/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1668829976
+SHA256 (rubygem/blurhash-0.1.6.gem) = 5f03291a929e4ce8a51aa65502347d11fd8fb3d34259b42ac231fbd8780d46e7
+SIZE (rubygem/blurhash-0.1.6.gem) = 11776
diff --git a/graphics/rubygem-blurhash/pkg-descr b/graphics/rubygem-blurhash/pkg-descr
new file mode 100644
index 000000000000..fd2bd595c8dc
--- /dev/null
+++ b/graphics/rubygem-blurhash/pkg-descr
@@ -0,0 +1,4 @@
+Scruffy is a Ruby library for creating great looking graphs and charts.
+Graphs can be rendered to SVG code or an image. Blend the beauty of Gruff
+with the SVG capabilities of SVG::Graph, make it super simple and extensible,
+and you've got Scruffy.