[gentoo-commits] repo/gentoo:master commit in: media-video/bashnapi/

2020-03-19 Thread Michał Górny
commit: b7ccf0fd6a391e6a7b7a1330de004d5f6f61b49e
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Mar 19 17:12:25 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Mar 19 17:20:26 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7ccf0fd

media-video/bashnapi: Remove redundant versions

Signed-off-by: Michał Górny  gentoo.org>

 media-video/bashnapi/Manifest  |  1 -
 media-video/bashnapi/bashnapi-1.3.5.ebuild | 56 --
 2 files changed, 57 deletions(-)

diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest
index 01ec8af90d3..702d39c1e33 100644
--- a/media-video/bashnapi/Manifest
+++ b/media-video/bashnapi/Manifest
@@ -1,2 +1 @@
-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-1.3.5.ebuild 
b/media-video/bashnapi/bashnapi-1.3.5.ebuild
deleted file mode 100644
index 993294be32e..000
--- a/media-video/bashnapi/bashnapi-1.3.5.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Napiprojekt.pl subtitle downloader in bash"
-HOMEPAGE="https://sourceforge.net/projects/bashnapi/;
-SRC_URI="mirror://sourceforge/${PN}/bashnapi_v${PV}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND="app-arch/p7zip"
-
-S=${WORKDIR}/napi-${PV}
-
-src_configure() {
-   # install.sh does not support --destdir
-   sed -i -e "s^\(NAPI_COMMON_PATH=\).*$^\1${EPREFIX}/usr/share/napi^" \
-   napi.sh subotage.sh || die
-}
-
-src_install() {
-   default # for docs
-   dobin napi.sh subotage.sh
-   insinto /usr/share/napi
-   doins napi_common.sh
-}
-
-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
-}



[gentoo-commits] repo/gentoo:master commit in: media-video/bashnapi/

2020-01-04 Thread Michał Górny
commit: 76688c7c1ffd1d59c91fa5cad1995b31b48e22a1
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Jan  5 06:02:17 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jan  5 06:08:49 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76688c7c

media-video/bashnapi: Bump to 2.0.0

Signed-off-by: Michał Górny  gentoo.org>

 media-video/bashnapi/Manifest  |  1 +
 media-video/bashnapi/bashnapi-2.0.0.ebuild | 50 ++
 2 files changed, 51 insertions(+)

diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest
index a62bcd76beb..01ec8af90d3 100644
--- a/media-video/bashnapi/Manifest
+++ b/media-video/bashnapi/Manifest
@@ -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
index 000..00ed0043585
--- /dev/null
+++ b/media-video/bashnapi/bashnapi-2.0.0.ebuild
@@ -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
+}



[gentoo-commits] repo/gentoo:master commit in: media-video/bashnapi/

2020-01-03 Thread Michał Górny
commit: bdfeb4202d7251c88683e6a47b4ce7c626e3ed73
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Jan  3 16:44:09 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Jan  3 20:39:44 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdfeb420

media-video/bashnapi: Remove outdated blocker

Signed-off-by: Michał Górny  gentoo.org>

 media-video/bashnapi/bashnapi-1.3.5.ebuild | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/media-video/bashnapi/bashnapi-1.3.5.ebuild 
b/media-video/bashnapi/bashnapi-1.3.5.ebuild
index 9671be6e261..993294be32e 100644
--- a/media-video/bashnapi/bashnapi-1.3.5.ebuild
+++ b/media-video/bashnapi/bashnapi-1.3.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -12,9 +12,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-# subotage is now integrated into bashnapi
-RDEPEND="app-arch/p7zip
-   !media-video/subotage"
+RDEPEND="app-arch/p7zip"
 
 S=${WORKDIR}/napi-${PV}
 



[gentoo-commits] repo/gentoo:master commit in: media-video/bashnapi/

2018-01-01 Thread Michał Górny
commit: e6740e7bee8aa3af94def061b3ba234171a8ef27
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jan  1 22:08:03 2018 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jan  2 06:18:51 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6740e7b

media-video/bashnapi: Clean old up

 media-video/bashnapi/Manifest  |  1 -
 media-video/bashnapi/bashnapi-1.1.5.ebuild | 33 --
 2 files changed, 34 deletions(-)

diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest
index befd0881bfb..a62bcd76beb 100644
--- a/media-video/bashnapi/Manifest
+++ b/media-video/bashnapi/Manifest
@@ -1,2 +1 @@
 DIST bashnapi_v1.3.5.tar.gz 98580 BLAKE2B 
4a7b42f91c14c7dc24cbf14535700a778d915db0dec31206cd7bb91519f33aa4eedced56aa4efa136e3eef23f6674d1a7dafe6c63686aca4dccf076952da762d
 SHA512 
7cf5abb009021a43261be863f320d6324b02ea25f1388c7cc99a4f695a3eb987971ada172f74d21e3a44deeec35e48c4424fa378de53749f994b6c0d0f76eec8
-DIST napi_v1.1.5_subotage_0.15.tgz 38080 BLAKE2B 
b8e15a91ebc026a74fb90d8ed81d8d0b1c9de31b4ab24a276258c05c844137a85afa7840b88abd5a52ff017e4792587919526c773987865a91b2e9f8dd9be09d
 SHA512 
a8f2b79a3d0767c99af448e7ec9fb8d9b2048876f966ab7ef07c17b7935066387dd20e9535f43947266810d66d28e5e2d02cffc5f033c65112c10744506e86f5

diff --git a/media-video/bashnapi/bashnapi-1.1.5.ebuild 
b/media-video/bashnapi/bashnapi-1.1.5.ebuild
deleted file mode 100644
index d4e2ad65a1a..000
--- a/media-video/bashnapi/bashnapi-1.1.5.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-SUB_VER=0.15
-MY_TAR=napi_v${PV}_subotage_${SUB_VER}
-
-DESCRIPTION="Napiprojekt.pl subtitle downloader in bash"
-HOMEPAGE="https://sourceforge.net/projects/bashnapi/;
-SRC_URI="mirror://sourceforge/${PN}/${MY_TAR}.tgz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-S=${WORKDIR}/napi
-
-src_install() {
-   default # for docs
-
-   dobin napi.sh
-}
-
-pkg_postinst() {
-   elog "Optional runtime dependencies:"
-   elog
-   elog "   \033[1mmedia-video/subotage\033[0m for subtitle format 
conversion"
-   elog
-   elog "   \033[1mmedia-video/mediainfo\033[0m"
-   elog "or \033[1mmedia-video/mplayer\033[0m for FPS detection (for 
conversion)"
-}



[gentoo-commits] repo/gentoo:master commit in: media-video/bashnapi/

2016-06-23 Thread Michał Górny
commit: c9c05966d963947d55753a63447e8ec2c3518c3c
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Jun 23 12:36:48 2016 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun 23 12:47:51 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9c05966

media-video/bashnapi: Bump to 1.3.5

 media-video/bashnapi/Manifest  |  1 +
 media-video/bashnapi/bashnapi-1.3.5.ebuild | 59 ++
 2 files changed, 60 insertions(+)

diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest
index 5d8e703..d488d36 100644
--- a/media-video/bashnapi/Manifest
+++ b/media-video/bashnapi/Manifest
@@ -1 +1,2 @@
+DIST bashnapi_v1.3.5.tar.gz 98580 SHA256 
a51f1c30f04bdd8fb3b267f4adbe5c8caa80e3e3320fda7d7be0a6ef5faeb961 SHA512 
7cf5abb009021a43261be863f320d6324b02ea25f1388c7cc99a4f695a3eb987971ada172f74d21e3a44deeec35e48c4424fa378de53749f994b6c0d0f76eec8
 WHIRLPOOL 
7bd9f7d4cad694da29849fe5885b93092d35632fb41d53381c4c77efdb63bd9341a325b97900f0b638c7068e2cbaec97a481138b655413ca34ac6a8433b1b685
 DIST napi_v1.1.5_subotage_0.15.tgz 38080 SHA256 
7748a94bcefcbf840f4a7a13fcda2df6442de049f453baa8ff4d4158e21a47d3 SHA512 
a8f2b79a3d0767c99af448e7ec9fb8d9b2048876f966ab7ef07c17b7935066387dd20e9535f43947266810d66d28e5e2d02cffc5f033c65112c10744506e86f5
 WHIRLPOOL 
9dd9c62dfcae68df02d022ce264030290b8d2097fbab7600770e1288c3c44321c65a54ea60e45ad8c30ce0afb8ec4b02fc8cbfdef4a62847fd821ceebf001b02

diff --git a/media-video/bashnapi/bashnapi-1.3.5.ebuild 
b/media-video/bashnapi/bashnapi-1.3.5.ebuild
new file mode 100644
index 000..1f60c30
--- /dev/null
+++ b/media-video/bashnapi/bashnapi-1.3.5.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Napiprojekt.pl subtitle downloader in bash"
+HOMEPAGE="http://sourceforge.net/projects/bashnapi/;
+SRC_URI="mirror://sourceforge/${PN}/bashnapi_v${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# subotage is now integrated into bashnapi
+RDEPEND="app-arch/p7zip
+   !media-video/subotage"
+
+S=${WORKDIR}/napi-${PV}
+
+src_configure() {
+   # install.sh does not support --destdir
+   sed -i -e "s^\(NAPI_COMMON_PATH=\).*$^\1${EPREFIX}/usr/share/napi^" \
+   napi.sh subotage.sh || die
+}
+
+src_install() {
+   default # for docs
+   dobin napi.sh subotage.sh
+   insinto /usr/share/napi
+   doins napi_common.sh
+}
+
+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
+}