commit:     105b68c1c8f09330cf5f63d2dad4dcdb0c426893
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  6 18:32:54 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun  6 18:35:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105b68c1

media-video/bashnapi: Bump to 2.0.2

Closes: https://bugs.gentoo.org/957215
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 media-video/bashnapi/Manifest              |  1 +
 media-video/bashnapi/bashnapi-2.0.2.ebuild | 53 ++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest
index 702d39c1e33a..a28be6009344 100644
--- a/media-video/bashnapi/Manifest
+++ b/media-video/bashnapi/Manifest
@@ -1 +1,2 @@
 DIST napi-2.0.0.tar.gz 104326 BLAKE2B 
f7fbea40bfbcadbefa44b31ca4689a4ce4470abf715fc7c38f2b06c911cd8a32f8dcf0ae605cdf6bb9afb00b64ae1bbb468ad02e094c3e4d272745177c5ae6e7
 SHA512 
fc64d8d815c2014e04115623099351226a66268c2b414fa3cee37fd73f4e6a84f41cc57e96184d9f30e72e84ba98f886be45e68b4c9d3c774c874ea40bc6c2b7
+DIST napi-v2.0.2.tar.bz2 90803 BLAKE2B 
8688a172b3de53c84509844bb30f407b85229d59365906ed3d523e55bf862f208702aecadd62911cd94bd5af9a3c2a56d58cc1a45613f0d5cb4c331cda32ab94
 SHA512 
347ea2196f708bc7898658dbe267590703ae2a59b56ffaf345bfdbfd4a3c4912ad157aea0533d6bcbf61b35be476c6fa34f466fcaad76636215976bafa397914

diff --git a/media-video/bashnapi/bashnapi-2.0.2.ebuild 
b/media-video/bashnapi/bashnapi-2.0.2.ebuild
new file mode 100644
index 000000000000..a1da191f96cf
--- /dev/null
+++ b/media-video/bashnapi/bashnapi-2.0.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+MY_P=napi-v${PV}
+DESCRIPTION="Napiprojekt.pl subtitle downloader in bash"
+HOMEPAGE="https://gitlab.com/hesperos/napi/";
+SRC_URI="
+       https://gitlab.com/hesperos/napi/-/archive/v${PV}/${MY_P}.tar.bz2
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# tests are normally run via docker
+RESTRICT="test"
+
+RDEPEND="
+       app-arch/p7zip
+       net-misc/wget
+       sys-apps/debianutils
+       sys-apps/file
+"
+
+pkg_postinst() {
+       # packages that can be used to detect FPS
+       local fps_pkgs=(
+               media-video/ffmpeg
+               media-video/mediainfo
+               media-video/mplayer
+               # also mplayer2
+       )
+       local p found
+
+       for p in "${fps_pkgs[@]}"; do
+               if has_version "${p}"; then
+                       found=1
+                       break
+               fi
+       done
+
+       if [[ ! ${found} ]]; then
+               elog "In order to support FPS detection, install one of the 
following packages:"
+               elog
+               for p in "${fps_pkgs[@]}"; do
+                       elog "  ${p}"
+               done
+       fi
+}

Reply via email to