diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /media-video/bashnapi/bashnapi-2.0.0.ebuild | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'media-video/bashnapi/bashnapi-2.0.0.ebuild')
-rw-r--r-- | media-video/bashnapi/bashnapi-2.0.0.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
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 000000000000..00ed00435858 --- /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 +} |