1 |
commit: 0d0c0152a108ab4123bba310eea13e8e6559349c |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 21 14:00:59 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 21 14:23:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d0c0152 |
7 |
|
8 |
net-misc/ytfzf: add 2.1 |
9 |
|
10 |
Use Makefile given upstream added necessary variables, removed gzip, |
11 |
and made it usable. |
12 |
|
13 |
Drop chafa optfeature, support isn't gone but it's just one of many |
14 |
non-default options that all have drawbacks for wayland. Trying |
15 |
to display them all would just be noise, and users should preferably |
16 |
look at ytfzf's documentation for ueberzug alternatives. |
17 |
|
18 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
19 |
|
20 |
net-misc/ytfzf/Manifest | 1 + |
21 |
net-misc/ytfzf/ytfzf-2.1.ebuild | 54 +++++++++++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 55 insertions(+) |
23 |
|
24 |
diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest |
25 |
index 23b6d80b921d..1ce75414567e 100644 |
26 |
--- a/net-misc/ytfzf/Manifest |
27 |
+++ b/net-misc/ytfzf/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST ytfzf-2.0.tar.gz 3227372 BLAKE2B fa67fdc44174e1a0bbbf581f51fc0010230a6de37a38f54bd6c3b5dc1a8ae19790486db90ab0ab1f15fa1a70b544dd7888ec88c6f53ec5c2543235f64dc1ab94 SHA512 43c43b6a446335a7eef9d206864069df1e075d49151b359ead47de6e7234efc1042ce0557233e53c303d3c38572fd33a955e229c457561211250ddd0df5ccb0e |
30 |
+DIST ytfzf-2.1.tar.gz 3230643 BLAKE2B b296048c976c260b3192f770bdf2dec99f5ad45066deeac23429808254552ea125ea8a8d129c47a5110916c4194f7b7742dd01f095809f4913077600a8205d4b SHA512 a86203bc1dffd05ff3543c44d5612bc8b0ffc675ce0484499cb89aa88c2618c88e832dd95ff2cd6f1803698c1c3264709a1e280ddbb9fb0985c0178f3adc16ea |
31 |
|
32 |
diff --git a/net-misc/ytfzf/ytfzf-2.1.ebuild b/net-misc/ytfzf/ytfzf-2.1.ebuild |
33 |
new file mode 100644 |
34 |
index 000000000000..c11320bd52ab |
35 |
--- /dev/null |
36 |
+++ b/net-misc/ytfzf/ytfzf-2.1.ebuild |
37 |
@@ -0,0 +1,54 @@ |
38 |
+# Copyright 2021-2022 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=8 |
42 |
+ |
43 |
+inherit optfeature |
44 |
+ |
45 |
+DESCRIPTION="Posix script to find and watch youtube videos from the terminal" |
46 |
+HOMEPAGE="https://github.com/pystardust/ytfzf/" |
47 |
+SRC_URI="https://github.com/pystardust/ytfzf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-3" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="minimal" |
53 |
+ |
54 |
+# fzf/mpv/yt-dlp "can" be optfeatures depending on configuration, but depend |
55 |
+# on them so it works as expected out-of-the-box while allowing to disable. |
56 |
+RDEPEND=" |
57 |
+ app-misc/jq |
58 |
+ net-misc/curl[ssl] |
59 |
+ virtual/awk |
60 |
+ !minimal? ( |
61 |
+ app-shells/fzf |
62 |
+ media-video/mpv[lua] |
63 |
+ net-misc/yt-dlp |
64 |
+ )" |
65 |
+ |
66 |
+src_compile() { :; } |
67 |
+ |
68 |
+src_install() { |
69 |
+ local emakeargs=( |
70 |
+ DESTDIR="${D}" |
71 |
+ PREFIX="${EPREFIX}"/usr |
72 |
+ DOCDIR="${EPREFIX}"/usr/share/doc/${PF} |
73 |
+ ) |
74 |
+ |
75 |
+ emake "${emakeargs[@]}" doc install |
76 |
+ einstalldocs |
77 |
+ |
78 |
+ rm -r "${ED}"/usr/share/licenses || die |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ optfeature "external menu support" x11-misc/dmenu |
83 |
+ optfeature "in-terminal thumbnails on X11" media-gfx/ueberzug |
84 |
+ optfeature "desktop notifications" x11-libs/libnotify |
85 |
+ |
86 |
+ if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0; then |
87 |
+ elog "Note that >=${PN}-2.0 is a major rewrite and is not compatible with" |
88 |
+ elog "configuration and some command arguments of older versions, see the" |
89 |
+ elog "newly added ${PN}(1) and ${PN}(5) man pages for more information." |
90 |
+ fi |
91 |
+} |