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 3346F158094 for ; Wed, 14 Sep 2022 04:05:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0EF70E08CA; Wed, 14 Sep 2022 04:05:46 +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 E9743E08CA for ; Wed, 14 Sep 2022 04:05:45 +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 C75383407AF for ; Wed, 14 Sep 2022 04:05:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 167F65DD for ; Wed, 14 Sep 2022 04:05:43 +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: <1663128169.f7d92d2c8e00f41bfcb6aedd8bff71b7f0fdb2c1.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.0-cachedir.patch net-misc/ytfzf/ytfzf-2.5.0.ebuild X-VCS-Directories: net-misc/ytfzf/ net-misc/ytfzf/files/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: f7d92d2c8e00f41bfcb6aedd8bff71b7f0fdb2c1 X-VCS-Branch: master Date: Wed, 14 Sep 2022 04:05:43 +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: 2646456d-966e-443a-a413-fedc8be7ddfc X-Archives-Hash: 3c1ff6f41bc9a41cfaca096a83841c52 commit: f7d92d2c8e00f41bfcb6aedd8bff71b7f0fdb2c1 Author: Ionen Wolkens gentoo org> AuthorDate: Wed Sep 14 02:01:15 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Sep 14 04:02:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7d92d2c net-misc/ytfzf: add 2.5.0 Signed-off-by: Ionen Wolkens gentoo.org> net-misc/ytfzf/Manifest | 1 + net-misc/ytfzf/files/ytfzf-2.5.0-cachedir.patch | 16 +++++++ net-misc/ytfzf/ytfzf-2.5.0.ebuild | 63 +++++++++++++++++++++++++ 3 files changed, 80 insertions(+) diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest index 77eab4c37ce4..4a94a807b041 100644 --- a/net-misc/ytfzf/Manifest +++ b/net-misc/ytfzf/Manifest @@ -1 +1,2 @@ DIST ytfzf-2.4.1.tar.gz 3256903 BLAKE2B e95fc86d1ed2099aeb96d8daf808861e279865e17758dc8b0b5fa4c349dd819371012d13073f89b94469f1d69f00b66bb01860e3190e324baadc30e2cbae8074 SHA512 f0be168d5fd32cc75f95d0533a093cb9e3aa238d39e024271d69f078b974da51504bd1fd65a34378085a148f1ddae68f6c2fdc15c7a56c2353ec3d6695451771 +DIST ytfzf-2.5.0.tar.gz 3260280 BLAKE2B 33535afc6be18fe9efeddf666ccdc646db227fcb601a52baeaca91b9316b87b1300fdab50ceca5eb9e21fef5571a87e917f78f71b97e7ec2abbebf5158b4487d SHA512 43e366694687be517a0b3da0d16e423f32046ab5de92368748e87c622f43e34bd1037f01b37fcb05ae8ce87ca536672cf3f5ca2b2608bab07ec9f4abeabb61ec diff --git a/net-misc/ytfzf/files/ytfzf-2.5.0-cachedir.patch b/net-misc/ytfzf/files/ytfzf-2.5.0-cachedir.patch new file mode 100644 index 000000000000..11023779e690 --- /dev/null +++ b/net-misc/ytfzf/files/ytfzf-2.5.0-cachedir.patch @@ -0,0 +1,16 @@ +https://github.com/pystardust/ytfzf/commit/cfc739211352b0d5249e48419a34ee6e1913aadd +From: Euro20179 +Date: Tue, 13 Sep 2022 18:50:36 -0700 +Subject: [PATCH] fix: if cache dir is missing, ytfzf complains when trying to + create instances.json +--- a/ytfzf ++++ b/ytfzf +@@ -2278,6 +2278,8 @@ do_an_event_function "on_post_set_vars" + # files + : "${hist_file:="$cache_dir/watch_hist"}" "${search_hist_file:="$cache_dir/search_hist"}" + ++[ ! -d "$cache_dir" ] && mkdir -p "$cache_dir" ++ + # Where do we put the list of healthy instances? + : "${instances_file:="$cache_dir/instances.json"}" + diff --git a/net-misc/ytfzf/ytfzf-2.5.0.ebuild b/net-misc/ytfzf/ytfzf-2.5.0.ebuild new file mode 100644 index 000000000000..743a99d9afe1 --- /dev/null +++ b/net-misc/ytfzf/ytfzf-2.5.0.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}-cachedir.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 +}