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