1 |
commit: 76688c7c1ffd1d59c91fa5cad1995b31b48e22a1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 5 06:02:17 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 5 06:08:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76688c7c |
7 |
|
8 |
media-video/bashnapi: Bump to 2.0.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
media-video/bashnapi/Manifest | 1 + |
13 |
media-video/bashnapi/bashnapi-2.0.0.ebuild | 50 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest |
17 |
index a62bcd76beb..01ec8af90d3 100644 |
18 |
--- a/media-video/bashnapi/Manifest |
19 |
+++ b/media-video/bashnapi/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST bashnapi_v1.3.5.tar.gz 98580 BLAKE2B 4a7b42f91c14c7dc24cbf14535700a778d915db0dec31206cd7bb91519f33aa4eedced56aa4efa136e3eef23f6674d1a7dafe6c63686aca4dccf076952da762d SHA512 7cf5abb009021a43261be863f320d6324b02ea25f1388c7cc99a4f695a3eb987971ada172f74d21e3a44deeec35e48c4424fa378de53749f994b6c0d0f76eec8 |
22 |
+DIST napi-2.0.0.tar.gz 104326 BLAKE2B f7fbea40bfbcadbefa44b31ca4689a4ce4470abf715fc7c38f2b06c911cd8a32f8dcf0ae605cdf6bb9afb00b64ae1bbb468ad02e094c3e4d272745177c5ae6e7 SHA512 fc64d8d815c2014e04115623099351226a66268c2b414fa3cee37fd73f4e6a84f41cc57e96184d9f30e72e84ba98f886be45e68b4c9d3c774c874ea40bc6c2b7 |
23 |
|
24 |
diff --git a/media-video/bashnapi/bashnapi-2.0.0.ebuild b/media-video/bashnapi/bashnapi-2.0.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..00ed0043585 |
27 |
--- /dev/null |
28 |
+++ b/media-video/bashnapi/bashnapi-2.0.0.ebuild |
29 |
@@ -0,0 +1,50 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit cmake |
36 |
+ |
37 |
+MY_P=napi-${PV} |
38 |
+DESCRIPTION="Napiprojekt.pl subtitle downloader in bash" |
39 |
+HOMEPAGE="https://sourceforge.net/projects/bashnapi/" |
40 |
+SRC_URI="https://download.sourceforge.net/bashnapi/${MY_P}.tar.gz" |
41 |
+S=${WORKDIR}/${MY_P} |
42 |
+ |
43 |
+LICENSE="GPL-3+" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+RDEPEND="app-arch/p7zip |
48 |
+ net-misc/wget |
49 |
+ sys-apps/debianutils |
50 |
+ sys-apps/file" |
51 |
+ |
52 |
+# tests are normally run via docker |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+pkg_postinst() { |
56 |
+ # packages that can be used to detect FPS |
57 |
+ local fps_pkgs=( |
58 |
+ media-video/ffmpeg |
59 |
+ media-video/mediainfo |
60 |
+ media-video/mplayer |
61 |
+ # also mplayer2 |
62 |
+ ) |
63 |
+ local p found |
64 |
+ |
65 |
+ for p in "${fps_pkgs[@]}"; do |
66 |
+ if has_version "${p}"; then |
67 |
+ found=1 |
68 |
+ break |
69 |
+ fi |
70 |
+ done |
71 |
+ |
72 |
+ if [[ ! ${found} ]]; then |
73 |
+ elog "In order to support FPS detection, install one of the following packages:" |
74 |
+ elog |
75 |
+ for p in "${fps_pkgs[@]}"; do |
76 |
+ elog " ${p}" |
77 |
+ done |
78 |
+ fi |
79 |
+} |