git: 7e81061dd679 - main - graphics/wallhaven-cli: CLI for wallhaven to browse wallpapers in terminal

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 28 Oct 2024 12:44:16 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7e81061dd6793abc6228cdaf6591f4a1aa72d053

commit 7e81061dd6793abc6228cdaf6591f4a1aa72d053
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2024-10-26 13:04:14 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-10-28 12:42:00 +0000

    graphics/wallhaven-cli: CLI for wallhaven to browse wallpapers in terminal
    
    wallhaven-cli is a command-line interface (CLI) tool designed for
    interacting with the Wallhaven image repository. Wallhaven is known
    for its extensive collection of high-quality wallpapers.
    
    WWW: https://github.com/r3tr0ananas/wallhaven-cli
    
    PR:             281760
---
 graphics/Makefile                |  1 +
 graphics/wallhaven-cli/Makefile  | 22 ++++++++++++++++++++++
 graphics/wallhaven-cli/distinfo  |  5 +++++
 graphics/wallhaven-cli/pkg-descr |  3 +++
 4 files changed, 31 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index f819baa2cc88..22001c03421d 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -1214,6 +1214,7 @@
     SUBDIR += waffle
     SUBDIR += waifu2x-converter-cpp
     SUBDIR += waifu2x-ncnn-vulkan
+    SUBDIR += wallhaven-cli
     SUBDIR += wayland
     SUBDIR += wayland-protocols
     SUBDIR += wayland-utils
diff --git a/graphics/wallhaven-cli/Makefile b/graphics/wallhaven-cli/Makefile
new file mode 100644
index 000000000000..a68829a2d1d4
--- /dev/null
+++ b/graphics/wallhaven-cli/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	wallhaven-cli
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.0.5
+CATEGORIES=	graphics
+
+MAINTAINER=	nxjoseph@protonmail.com
+COMMENT=	CLI for wallhaven to browse wallpapers in terminal
+WWW=		https://github.com/r3tr0ananas/wallhaven-cli
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	chafa:graphics/chafa \
+		fzf:textproc/fzf
+
+USES=		go:1.23,modules
+
+GO_MODULE=	github.com/r3tr0ananas/wallhaven-cli/v2
+GO_TARGET=	./wallhaven
+PLIST_FILES=	bin/wallhaven
+
+.include <bsd.port.mk>
diff --git a/graphics/wallhaven-cli/distinfo b/graphics/wallhaven-cli/distinfo
new file mode 100644
index 000000000000..f2bc94a6fe43
--- /dev/null
+++ b/graphics/wallhaven-cli/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1729951373
+SHA256 (go/graphics_wallhaven-cli/wallhaven-cli-v2.0.5/v2.0.5.mod) = e4046e484528215b298e8c6faac0b34dadd3ae78a71f31dbd4ae59f341690ce5
+SIZE (go/graphics_wallhaven-cli/wallhaven-cli-v2.0.5/v2.0.5.mod) = 250
+SHA256 (go/graphics_wallhaven-cli/wallhaven-cli-v2.0.5/v2.0.5.zip) = 0bd3a574b60018884949f577db69f69a03a8a59a8471bd8a25d59799630b32ca
+SIZE (go/graphics_wallhaven-cli/wallhaven-cli-v2.0.5/v2.0.5.zip) = 10615
diff --git a/graphics/wallhaven-cli/pkg-descr b/graphics/wallhaven-cli/pkg-descr
new file mode 100644
index 000000000000..8641092be517
--- /dev/null
+++ b/graphics/wallhaven-cli/pkg-descr
@@ -0,0 +1,3 @@
+wallhaven-cli is a command-line interface (CLI) tool designed for
+interacting with the Wallhaven image repository. Wallhaven is known
+for its extensive collection of high-quality wallpapers.