git: f3464afac4c7 - main - www/youtube: New port: Youtube videos downloader

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 23 Mar 2025 10:12:20 UTC
The branch main has been updated by yuri:

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

commit f3464afac4c7efae5917facc1b4cf76198b5ad1c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-23 10:11:40 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-23 10:12:02 +0000

    www/youtube: New port: Youtube videos downloader
    
    PR:             285441
---
 www/Makefile          |  1 +
 www/youtube/Makefile  | 21 +++++++++++++++++++++
 www/youtube/distinfo  |  5 +++++
 www/youtube/pkg-descr |  1 +
 4 files changed, 28 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 2b6eb0e2ab1e..d5a8781969ee 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2637,6 +2637,7 @@
     SUBDIR += yaws
     SUBDIR += you-get
     SUBDIR += yourls
+    SUBDIR += youtube
     SUBDIR += yt-dlp
     SUBDIR += ytdl
     SUBDIR += yuicompressor
diff --git a/www/youtube/Makefile b/www/youtube/Makefile
new file mode 100644
index 000000000000..008286222473
--- /dev/null
+++ b/www/youtube/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	youtube
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.10.3
+CATEGORIES=	www
+PKGNAMESUFFIX=	-downloader
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Youtube videos downloader
+WWW=		https://github.com/kkdai/youtube
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:1.23,modules
+
+GO_MODULE=	github.com/kkdai/youtube/v2
+GO_TARGET=	./cmd/youtubedr
+
+PLIST_FILES=	${GO_TARGET:C/.\/cmd/bin/}
+
+.include <bsd.port.mk>
diff --git a/www/youtube/distinfo b/www/youtube/distinfo
new file mode 100644
index 000000000000..be542e5b2d76
--- /dev/null
+++ b/www/youtube/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1742724056
+SHA256 (go/www_youtube/youtube-v2.10.3/v2.10.3.mod) = a7c9caede906479bb1ace136cde4c6bc6cd97170070a456af65eb8668c2f3264
+SIZE (go/www_youtube/youtube-v2.10.3/v2.10.3.mod) = 1941
+SHA256 (go/www_youtube/youtube-v2.10.3/v2.10.3.zip) = f721817dcb68537dfd2565e4035a6ce76de0d95859f28f6f11cf82ec95b6cfa1
+SIZE (go/www_youtube/youtube-v2.10.3/v2.10.3.zip) = 60911
diff --git a/www/youtube/pkg-descr b/www/youtube/pkg-descr
new file mode 100644
index 000000000000..cc2b1b92f566
--- /dev/null
+++ b/www/youtube/pkg-descr
@@ -0,0 +1 @@
+youtube is a Youtube video download package.