From c9c05966d963947d55753a63447e8ec2c3518c3c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 23 Jun 2016 14:36:48 +0200 Subject: media-video/bashnapi: Bump to 1.3.5 --- media-video/bashnapi/bashnapi-1.3.5.ebuild | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 media-video/bashnapi/bashnapi-1.3.5.ebuild (limited to 'media-video/bashnapi/bashnapi-1.3.5.ebuild') 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 000000000000..1f60c30c1b6d --- /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 +} -- cgit v1.2.3-18-g5258