diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-12 11:48:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-12 11:48:47 +0100 |
commit | 0d64e4aba03bad82adf8ae589fd10b9c219b92aa (patch) | |
tree | a0db81898e976e96ec178518d7b636c80d8e26d3 /net-misc/ytfzf | |
parent | 8d9dd6a2b8f0525f6337deacd0cc20027f645396 (diff) |
gentoo auto-resync : 12:05:2023 - 11:48:47
Diffstat (limited to 'net-misc/ytfzf')
-rw-r--r-- | net-misc/ytfzf/Manifest | 4 | ||||
-rw-r--r-- | net-misc/ytfzf/metadata.xml | 3 | ||||
-rw-r--r-- | net-misc/ytfzf/ytfzf-2.6.0.ebuild | 58 |
3 files changed, 63 insertions, 2 deletions
diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest index 81866a507e96..3a6f04b2cbcf 100644 --- a/net-misc/ytfzf/Manifest +++ b/net-misc/ytfzf/Manifest @@ -1,3 +1,5 @@ DIST ytfzf-2.5.5.tar.gz 3278740 BLAKE2B e80ee83cbd80fd3d53dd4e3f9aca4fed71b6bbebc6b0f0d8c85263efa4dfd184e45998719df966279365378669624119035f069c4d2b2d5f820e5304bd36604d SHA512 811fbc1de1b23bddd988c74212f0d6b314e5a7998ebc06e0481d42a5e6afa530f10a0e749a293a76799eff1fc380ebd54210f5e152c6d8ab07fd39327544c9d7 +DIST ytfzf-2.6.0.tar.gz 3277853 BLAKE2B f99de6c473ee728d42290a647df9e0404dea92854203f306401d916e920814517dee3ddde8c8ff06cb7ff29f5a9b8f438867a1d9bc02aa6e208d030ad8b786a7 SHA512 fb9a1bd161a735a9c464948d6ba3664982eadd25456d5d565c57e478574949324dbf556620fb837c00bc4946c65336ec895f7c59e1169631effadf70085773c4 EBUILD ytfzf-2.5.5.ebuild 1317 BLAKE2B a0de447cc088afd0fcbe686fa2b378917b69854ef45bff7f858ea99b700903bdfd656bf1ea260908cedf817950598175aa185ad9b44bdc4b659415e618736aef SHA512 01a0ee642b1a8fffc57916af82017bf3fac94e4e299f1c0ebe3084dfcc1e97debe1977943694502c341948e4fcbbf3501b94c255058af382cfd52463e905b409 -MISC metadata.xml 498 BLAKE2B 465ce6a83a75395c9021b7208a156bc91f55fe2522279a781509bc490e832611e89718317c88d4e2986f16f6ea1f8bc457d2f5978efa011e62c56cef756cf0ed SHA512 49f6d3c039246622d687f63b703390eef0d4fef51f485a091ccdb767da1b2cd8a380275cabe6117465add0e15acf6f6533033a5b17c751091abe462a43044884 +EBUILD ytfzf-2.6.0.ebuild 1382 BLAKE2B 07b63da6140d69bda5dbdd48c0e76a01ec5d1836df916afbace44d58b48aaf0e957e85717fc25a6205edf26d02cf5733b5b85b153593d2778d23546ea2f60657 SHA512 b335f566f276973488950b0d3a0fb5728beac06759269f728ebb16505a4c20ac454da84aec3a9c105f52f4868bde8a7e32cfcdbefc5e26e03de387d79a916306 +MISC metadata.xml 650 BLAKE2B cef000d14639ebedc5583c42fc5ec8ea62307702ee1ca01272356a4aea375a464d0c0a24bedff98e38e16133161d09864e4c4875e7ecbad96b1611aebe0924e5 SHA512 61b25935bb80c572023948e49bfd3c8bf7551e94f0cc36592049f03498557c165f3c64815c41067ae85823254e578134770a235072254fd9e2e7ad06956c9b2f diff --git a/net-misc/ytfzf/metadata.xml b/net-misc/ytfzf/metadata.xml index b6a91b9d9370..153b2385848c 100644 --- a/net-misc/ytfzf/metadata.xml +++ b/net-misc/ytfzf/metadata.xml @@ -7,7 +7,8 @@ </maintainer> <stabilize-allarches/> <use> - <flag name="minimal">Skip <pkg>app-shells/fzf</pkg> and <pkg>media-video/mpv</pkg> dependencies (requires custom settings)</flag> + <flag name="minimal">Skip all optional dependencies (may no longer work out-of-the-box and require custom setting up)</flag> + <flag name="thumbnails">Pull <pkg>media-gfx/ueberzugpp</pkg> or <pkg>media-gfx/ueberzug</pkg> for viewing thumbnails (default method when using -t)</flag> </use> <upstream> <remote-id type="github">pystardust/ytfzf</remote-id> diff --git a/net-misc/ytfzf/ytfzf-2.6.0.ebuild b/net-misc/ytfzf/ytfzf-2.6.0.ebuild new file mode 100644 index 000000000000..62121ae8df88 --- /dev/null +++ b/net-misc/ytfzf/ytfzf-2.6.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2021-2023 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="minimal +thumbnails" + +RDEPEND=" + app-misc/jq + net-misc/curl[ssl] + app-alternatives/awk + !minimal? ( + app-shells/fzf + media-video/mpv[lua] + net-misc/yt-dlp + thumbnails? ( + || ( + media-gfx/ueberzugpp + media-gfx/ueberzug + ) + ) + )" + +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 +} |