1 |
commit: 50fe651d475cbb4705dc3690249b570fe3873a2b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 15:20:51 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 21 17:12:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50fe651d |
7 |
|
8 |
net-misc/ytfzf: initial import, 1.2.0_p20211208 |
9 |
|
10 |
Using snapshot for yt-dlp support. |
11 |
|
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
net-misc/ytfzf/Manifest | 1 + |
15 |
net-misc/ytfzf/metadata.xml | 15 ++++++++++ |
16 |
net-misc/ytfzf/ytfzf-1.2.0_p20211208.ebuild | 44 +++++++++++++++++++++++++++++ |
17 |
3 files changed, 60 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..0bb9d14394f6 |
22 |
--- /dev/null |
23 |
+++ b/net-misc/ytfzf/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST ytfzf-1.2.0_p20211208.tar.gz 3230303 BLAKE2B eb1cc05945bc91226d9a3f893edfcfcc5d8544ac2607d6bec7bfc5dd4a8f4b0c01e7387a73d82d148e908e727a1f2809765c9e21e13ca9e7de947c68c1a28f10 SHA512 f87dea2afb706ec9ea23fab3fa02833ddeff7261807f8e2e77471829fe05d293644c6b1d75660cbaae798cfdaede5553d1eabcf6b608a08a7a9d2de825ab92a2 |
26 |
|
27 |
diff --git a/net-misc/ytfzf/metadata.xml b/net-misc/ytfzf/metadata.xml |
28 |
new file mode 100644 |
29 |
index 000000000000..b6a91b9d9370 |
30 |
--- /dev/null |
31 |
+++ b/net-misc/ytfzf/metadata.xml |
32 |
@@ -0,0 +1,15 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>ionen@g.o</email> |
38 |
+ <name>Ionen Wolkens</name> |
39 |
+ </maintainer> |
40 |
+ <stabilize-allarches/> |
41 |
+ <use> |
42 |
+ <flag name="minimal">Skip <pkg>app-shells/fzf</pkg> and <pkg>media-video/mpv</pkg> dependencies (requires custom settings)</flag> |
43 |
+ </use> |
44 |
+ <upstream> |
45 |
+ <remote-id type="github">pystardust/ytfzf</remote-id> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/net-misc/ytfzf/ytfzf-1.2.0_p20211208.ebuild b/net-misc/ytfzf/ytfzf-1.2.0_p20211208.ebuild |
50 |
new file mode 100644 |
51 |
index 000000000000..0ba10e67d3ae |
52 |
--- /dev/null |
53 |
+++ b/net-misc/ytfzf/ytfzf-1.2.0_p20211208.ebuild |
54 |
@@ -0,0 +1,44 @@ |
55 |
+# Copyright 2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=8 |
59 |
+ |
60 |
+inherit optfeature |
61 |
+ |
62 |
+MY_COMMIT="dc7b0056e9b84cf786e6e4adda7f91564d1d012f" |
63 |
+ |
64 |
+DESCRIPTION="Posix script to find and watch youtube videos from the terminal" |
65 |
+HOMEPAGE="https://github.com/pystardust/ytfzf/" |
66 |
+SRC_URI="https://github.com/pystardust/ytfzf/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
67 |
+S="${WORKDIR}/${PN}-${MY_COMMIT}" |
68 |
+ |
69 |
+LICENSE="GPL-3" |
70 |
+SLOT="0" |
71 |
+KEYWORDS="~amd64 ~x86" |
72 |
+IUSE="minimal" |
73 |
+ |
74 |
+# fzf/mpv "can" be optfeatures depending on configuration, but depend |
75 |
+# on them so it works as expected out-of-the-box and allow to disable. |
76 |
+RDEPEND=" |
77 |
+ app-misc/jq |
78 |
+ net-misc/curl[ssl] |
79 |
+ net-misc/yt-dlp |
80 |
+ !minimal? ( |
81 |
+ app-shells/fzf |
82 |
+ media-video/mpv[lua] |
83 |
+ )" |
84 |
+ |
85 |
+src_compile() { :; } |
86 |
+ |
87 |
+src_install() { |
88 |
+ dobin ytfzf |
89 |
+ |
90 |
+ dodoc README.md docs/{USAGE.md,conf.sh} |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ optfeature "external menu support" x11-misc/dmenu x11-misc/rofi |
95 |
+ optfeature "in-terminal thumbnails on X11" \ |
96 |
+ "media-gfx/ueberzug dev-python/pillow[jpeg]" |
97 |
+ optfeature "desktop notifications" x11-libs/libnotify |
98 |
+} |