media-video/bashnapi: Bump to 2.0.0
authorMichał Górny <mgorny@gentoo.org>
Sun, 5 Jan 2020 06:02:17 +0000 (07:02 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 5 Jan 2020 06:08:49 +0000 (07:08 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
media-video/bashnapi/Manifest
media-video/bashnapi/bashnapi-2.0.0.ebuild [new file with mode: 0644]

index a62bcd76beb815e6b20d721f0f0a08f863243e45..01ec8af90d3ef081631f2cc26881b823c39921ef 100644 (file)
@@ -1 +1,2 @@
 DIST bashnapi_v1.3.5.tar.gz 98580 BLAKE2B 4a7b42f91c14c7dc24cbf14535700a778d915db0dec31206cd7bb91519f33aa4eedced56aa4efa136e3eef23f6674d1a7dafe6c63686aca4dccf076952da762d SHA512 7cf5abb009021a43261be863f320d6324b02ea25f1388c7cc99a4f695a3eb987971ada172f74d21e3a44deeec35e48c4424fa378de53749f994b6c0d0f76eec8
+DIST napi-2.0.0.tar.gz 104326 BLAKE2B f7fbea40bfbcadbefa44b31ca4689a4ce4470abf715fc7c38f2b06c911cd8a32f8dcf0ae605cdf6bb9afb00b64ae1bbb468ad02e094c3e4d272745177c5ae6e7 SHA512 fc64d8d815c2014e04115623099351226a66268c2b414fa3cee37fd73f4e6a84f41cc57e96184d9f30e72e84ba98f886be45e68b4c9d3c774c874ea40bc6c2b7
diff --git a/media-video/bashnapi/bashnapi-2.0.0.ebuild b/media-video/bashnapi/bashnapi-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..00ed004
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+MY_P=napi-${PV}
+DESCRIPTION="Napiprojekt.pl subtitle downloader in bash"
+HOMEPAGE="https://sourceforge.net/projects/bashnapi/"
+SRC_URI="https://download.sourceforge.net/bashnapi/${MY_P}.tar.gz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="app-arch/p7zip
+       net-misc/wget
+       sys-apps/debianutils
+       sys-apps/file"
+
+# tests are normally run via docker
+RESTRICT="test"
+
+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
+}