From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2713C15AD36 for ; Fri, 12 May 2023 09:02:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5494CE0BF3; Fri, 12 May 2023 09:02:48 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23149E0BF0 for ; Fri, 12 May 2023 09:02:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 53886335D98 for ; Fri, 12 May 2023 09:02:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7695FA70 for ; Fri, 12 May 2023 09:02:44 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1683881978.48f62d10e443582aaf93b220b9cd0f36d9dee351.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ytfzf/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/ytfzf/Manifest net-misc/ytfzf/metadata.xml net-misc/ytfzf/ytfzf-2.6.0.ebuild X-VCS-Directories: net-misc/ytfzf/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 48f62d10e443582aaf93b220b9cd0f36d9dee351 X-VCS-Branch: master Date: Fri, 12 May 2023 09:02:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 632973a3-f9d3-4eb4-b333-f3359ea5a157 X-Archives-Hash: c8ebdbcc2fa05aaadb8e67457a723173 commit: 48f62d10e443582aaf93b220b9cd0f36d9dee351 Author: Ionen Wolkens gentoo org> AuthorDate: Fri May 12 05:23:08 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Fri May 12 08:59:38 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48f62d10 net-misc/ytfzf: add 2.6.0 Replace IUSE=X by a more generic IUSE=thumbnails and allow either ueberzugpp or ueberzug. X is not quite right given pp supports other outputs like kitty (ytfzf -t -T kitty). Signed-off-by: Ionen Wolkens gentoo.org> net-misc/ytfzf/Manifest | 1 + net-misc/ytfzf/metadata.xml | 3 +- net-misc/ytfzf/ytfzf-2.6.0.ebuild | 58 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest index 8c3723d8cc1e..e70e98462a8c 100644 --- a/net-misc/ytfzf/Manifest +++ b/net-misc/ytfzf/Manifest @@ -1 +1,2 @@ DIST ytfzf-2.5.5.tar.gz 3278740 BLAKE2B e80ee83cbd80fd3d53dd4e3f9aca4fed71b6bbebc6b0f0d8c85263efa4dfd184e45998719df966279365378669624119035f069c4d2b2d5f820e5304bd36604d SHA512 811fbc1de1b23bddd988c74212f0d6b314e5a7998ebc06e0481d42a5e6afa530f10a0e749a293a76799eff1fc380ebd54210f5e152c6d8ab07fd39327544c9d7 +DIST ytfzf-2.6.0.tar.gz 3277853 BLAKE2B f99de6c473ee728d42290a647df9e0404dea92854203f306401d916e920814517dee3ddde8c8ff06cb7ff29f5a9b8f438867a1d9bc02aa6e208d030ad8b786a7 SHA512 fb9a1bd161a735a9c464948d6ba3664982eadd25456d5d565c57e478574949324dbf556620fb837c00bc4946c65336ec895f7c59e1169631effadf70085773c4 diff --git a/net-misc/ytfzf/metadata.xml b/net-misc/ytfzf/metadata.xml index b6a91b9d9370..153b2385848c 100644 --- a/net-misc/ytfzf/metadata.xml +++ b/net-misc/ytfzf/metadata.xml @@ -7,7 +7,8 @@ - Skip app-shells/fzf and media-video/mpv dependencies (requires custom settings) + Skip all optional dependencies (may no longer work out-of-the-box and require custom setting up) + Pull media-gfx/ueberzugpp or media-gfx/ueberzug for viewing thumbnails (default method when using -t) pystardust/ytfzf diff --git a/net-misc/ytfzf/ytfzf-2.6.0.ebuild b/net-misc/ytfzf/ytfzf-2.6.0.ebuild new file mode 100644 index 000000000000..62121ae8df88 --- /dev/null +++ b/net-misc/ytfzf/ytfzf-2.6.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="Posix script to find and watch youtube videos from the terminal" +HOMEPAGE="https://github.com/pystardust/ytfzf/" +SRC_URI="https://github.com/pystardust/ytfzf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="minimal +thumbnails" + +RDEPEND=" + app-misc/jq + net-misc/curl[ssl] + app-alternatives/awk + !minimal? ( + app-shells/fzf + media-video/mpv[lua] + net-misc/yt-dlp + thumbnails? ( + || ( + media-gfx/ueberzugpp + media-gfx/ueberzug + ) + ) + )" + +src_compile() { :; } + +src_install() { + local emakeargs=( + DESTDIR="${D}" + PREFIX="${EPREFIX}"/usr + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} + ) + + emake "${emakeargs[@]}" addons doc install + einstalldocs + + rm -r "${ED}"/usr/share/licenses || die +} + +pkg_postinst() { + optfeature "external menu support" x11-misc/dmenu + optfeature "desktop notifications" x11-libs/libnotify + + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog "Note that ${PN} supports many methods to display menus/thumbnails." + elog "This ebuild primarily covers defaults and major features, additional" + elog "dependencies may be needed for others. Set USE=minimal if want full" + elog "control over optional dependencies (e.g. fzf is optional if use dmenu)." + fi +}