Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ytfzf/
Date: Wed, 01 Mar 2023 16:02:22
Message-Id: 1677686449.65ab9d921b8a33b6cbcbf6504f76974889168407.ionen@gentoo
1 commit: 65ab9d921b8a33b6cbcbf6504f76974889168407
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 1 15:55:00 2023 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 16:00:49 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ab9d92
7
8 net-misc/ytfzf: add 2.5.5
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 net-misc/ytfzf/Manifest | 1 +
13 net-misc/ytfzf/ytfzf-2.5.5.ebuild | 53 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest
17 index eee178f4360e..a97b233c2ef3 100644
18 --- a/net-misc/ytfzf/Manifest
19 +++ b/net-misc/ytfzf/Manifest
20 @@ -1,2 +1,3 @@
21 DIST ytfzf-2.5.3.tar.gz 3265442 BLAKE2B e920bf60a567741cc84739d20f282c27036eafaa823ea273439e49f9b855798a11f611ee8b4893490538d24c3039f2780451272f82ead73c45fb0f2124e05417 SHA512 fcc9e6064fe381972f30a94fd418ba9a497fed4be891f40b75e608a4c095f7b311000ae104d8e877b52622defa4ff57cb0ec1ace4d034ba08f0ff3985438d58d
22 DIST ytfzf-2.5.4.tar.gz 3273455 BLAKE2B 9e4ba90cca7a17fc8c7283097db1925582b9dbb85b9b83db77f2e20a48db7566a8396114256bcb61bffb281ac0ce64f199702f495cd07f2e4e11d0c81605a973 SHA512 48ab12314a638d2682eb387c1d0bd2c8979762287194d897d801c1b845c28e3e6c2b383e1fede75e0b0649ab401855e6a9ee48a58cfc4e08b0f291da877ed150
23 +DIST ytfzf-2.5.5.tar.gz 3278740 BLAKE2B e80ee83cbd80fd3d53dd4e3f9aca4fed71b6bbebc6b0f0d8c85263efa4dfd184e45998719df966279365378669624119035f069c4d2b2d5f820e5304bd36604d SHA512 811fbc1de1b23bddd988c74212f0d6b314e5a7998ebc06e0481d42a5e6afa530f10a0e749a293a76799eff1fc380ebd54210f5e152c6d8ab07fd39327544c9d7
24
25 diff --git a/net-misc/ytfzf/ytfzf-2.5.5.ebuild b/net-misc/ytfzf/ytfzf-2.5.5.ebuild
26 new file mode 100644
27 index 000000000000..28d4e09cb02b
28 --- /dev/null
29 +++ b/net-misc/ytfzf/ytfzf-2.5.5.ebuild
30 @@ -0,0 +1,53 @@
31 +# Copyright 2021-2023 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit optfeature
37 +
38 +DESCRIPTION="Posix script to find and watch youtube videos from the terminal"
39 +HOMEPAGE="https://github.com/pystardust/ytfzf/"
40 +SRC_URI="https://github.com/pystardust/ytfzf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="X minimal"
46 +
47 +RDEPEND="
48 + app-misc/jq
49 + net-misc/curl[ssl]
50 + app-alternatives/awk
51 + !minimal? (
52 + X? ( media-gfx/ueberzug )
53 + app-shells/fzf
54 + media-video/mpv[lua]
55 + net-misc/yt-dlp
56 + )"
57 +
58 +src_compile() { :; }
59 +
60 +src_install() {
61 + local emakeargs=(
62 + DESTDIR="${D}"
63 + PREFIX="${EPREFIX}"/usr
64 + DOCDIR="${EPREFIX}"/usr/share/doc/${PF}
65 + )
66 +
67 + emake "${emakeargs[@]}" addons doc install
68 + einstalldocs
69 +
70 + rm -r "${ED}"/usr/share/licenses || die
71 +}
72 +
73 +pkg_postinst() {
74 + optfeature "external menu support" x11-misc/dmenu
75 + optfeature "desktop notifications" x11-libs/libnotify
76 +
77 + if [[ ! ${REPLACING_VERSIONS} ]]; then
78 + elog "Note that ${PN} supports many methods to display menus/thumbnails."
79 + elog "This ebuild primarily covers defaults and major features, additional"
80 + elog "dependencies may be needed for others. Set USE=minimal if want full"
81 + elog "control over optional dependencies (e.g. fzf is optional if use dmenu)."
82 + fi
83 +}