media-video/bashnapi: Bump to 2.0.2

Closes: https://bugs.gentoo.org/957215
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-06-06 20:32:54 +02:00
parent f95077398c
commit 105b68c1c8
2 changed files with 54 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}