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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3F14B158020 for ; Sun, 23 Oct 2022 06:09:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C1D5E05AC; Sun, 23 Oct 2022 06:09:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10CAAE05AC for ; Sun, 23 Oct 2022 06:09:06 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D48AE3411B7 for ; Sun, 23 Oct 2022 06:09:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A8BD55B for ; Sun, 23 Oct 2022 06:09:04 +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: <1666505219.cb49b192886e9c956af99d591720ed57560bc37a.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ytfzf/, net-misc/ytfzf/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/ytfzf/Manifest net-misc/ytfzf/files/ytfzf-2.5.1-ueberzug.patch net-misc/ytfzf/ytfzf-2.5.1.ebuild X-VCS-Directories: net-misc/ytfzf/files/ net-misc/ytfzf/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: cb49b192886e9c956af99d591720ed57560bc37a X-VCS-Branch: master Date: Sun, 23 Oct 2022 06:09:04 +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: 652be156-1967-4cd0-bb38-94fda96c6055 X-Archives-Hash: aaba36b36311814398e74fd57a81f826 commit: cb49b192886e9c956af99d591720ed57560bc37a Author: Ionen Wolkens gentoo org> AuthorDate: Sun Oct 23 05:28:49 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Sun Oct 23 06:06:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb49b192 net-misc/ytfzf: add 2.5.1 Signed-off-by: Ionen Wolkens gentoo.org> net-misc/ytfzf/Manifest | 1 + net-misc/ytfzf/files/ytfzf-2.5.1-ueberzug.patch | 10 ++++ net-misc/ytfzf/ytfzf-2.5.1.ebuild | 63 +++++++++++++++++++++++++ 3 files changed, 74 insertions(+) diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest index e3c3a4ca32c4..322f9374caca 100644 --- a/net-misc/ytfzf/Manifest +++ b/net-misc/ytfzf/Manifest @@ -1 +1,2 @@ DIST ytfzf-2.5.0.tar.gz 3260280 BLAKE2B 33535afc6be18fe9efeddf666ccdc646db227fcb601a52baeaca91b9316b87b1300fdab50ceca5eb9e21fef5571a87e917f78f71b97e7ec2abbebf5158b4487d SHA512 43e366694687be517a0b3da0d16e423f32046ab5de92368748e87c622f43e34bd1037f01b37fcb05ae8ce87ca536672cf3f5ca2b2608bab07ec9f4abeabb61ec +DIST ytfzf-2.5.1.tar.gz 3263331 BLAKE2B 690a108e7b2e744a33acc67ea73ec28af87050c27af0e1cf274b163aa3f9699ee22b10ea7ecf88559c56c57443e686ad5e03ea61dc21571310425280de24d764 SHA512 00ec6a17c465f1590f61590ff45763d4e58cd7a281868817987b199b62c463f38c0543a0f6a71b983bd256f07f8c3cd25a0211945db2a74dada2078a42b69a51 diff --git a/net-misc/ytfzf/files/ytfzf-2.5.1-ueberzug.patch b/net-misc/ytfzf/files/ytfzf-2.5.1-ueberzug.patch new file mode 100644 index 000000000000..5ebb36564f42 --- /dev/null +++ b/net-misc/ytfzf/files/ytfzf-2.5.1-ueberzug.patch @@ -0,0 +1,10 @@ +https://github.com/pystardust/ytfzf/issues/592 +--- a/ytfzf ++++ b/ytfzf +@@ -1698,4 +1698,4 @@ + mkfifo "$UEBERZUG_FIFO" +- ueberzug layer --parser json < "$UEBERZUG_FIFO" & +- exec 3> "$UEBERZUG_FIFO" > "$thumbnail_debug_log" 2>&1 # to keep the fifo open ++ ueberzug layer --parser json < "$UEBERZUG_FIFO" > "$thumbnail_debug_log" 2>&1 & ++ exec 3> "$UEBERZUG_FIFO" # to keep the fifo open + ;; diff --git a/net-misc/ytfzf/ytfzf-2.5.1.ebuild b/net-misc/ytfzf/ytfzf-2.5.1.ebuild new file mode 100644 index 000000000000..82ded86e3370 --- /dev/null +++ b/net-misc/ytfzf/ytfzf-2.5.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021-2022 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="X minimal" + +RDEPEND=" + app-misc/jq + net-misc/curl[ssl] + virtual/awk + !minimal? ( + X? ( media-gfx/ueberzug ) + app-shells/fzf + media-video/mpv[lua] + net-misc/yt-dlp + )" + +PATCHES=( + "${FILESDIR}"/${P}-ueberzug.patch +) + +src_prepare() { + default + + sed -i "/^: ...YTFZF_SYSTEM_ADDON_DIR/s|/usr/local|${EPREFIX}/usr|" ytfzf || die +} + +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 +}