summaryrefslogtreecommitdiff
path: root/media-video/bashnapi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/bashnapi
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/bashnapi')
-rw-r--r--media-video/bashnapi/Manifest7
-rw-r--r--media-video/bashnapi/bashnapi-1.1.5.ebuild33
-rw-r--r--media-video/bashnapi/bashnapi-1.3.5.ebuild58
-rw-r--r--media-video/bashnapi/metadata.xml11
4 files changed, 109 insertions, 0 deletions
diff --git a/media-video/bashnapi/Manifest b/media-video/bashnapi/Manifest
new file mode 100644
index 000000000000..f175c7236b21
--- /dev/null
+++ b/media-video/bashnapi/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD bashnapi-1.1.5.ebuild 737 SHA256 52d8099c70dfcedc4f5627908a109e5de1c89218aac516400a49a14c45803ad7 SHA512 6311b0c41e49a0af06425b70b19ee1627cb2c2fa40211011cbbc7465dd6a67262f7b4d490435e3c6ff1021f598918037d2346b4a1bab32e3e8d2ff2b6726edfa WHIRLPOOL 48dad198c492fbd630644b645006d763c01f7936cd64a70d0f7a41e6050e8ea37c96ced3a809bd3392c2f8d8efa1ee265470804a4b41a62423f398a5daef81d5
+EBUILD bashnapi-1.3.5.ebuild 1191 SHA256 ce77769ed4d3d6f9b8f333c5f6442a376abb4beb716fb2d555a833fd45751797 SHA512 7eaea6de7b4ef121ea70faff2c76ee963c0f76af9ca9440cffd7eea5c86bd6bb2129eeda6b9f56250e15e7a616c5be20a9c4ae589f92dae60bcabadcde7260dc WHIRLPOOL 1d601faa9cd906ee61ba742a83b103433cfc653a9d5065634ce101762dccafff56156f34e78c32021d5aa8ab72b162307e37cc80c1bb8520d9e7fe591042c53e
+MISC ChangeLog 2442 SHA256 134a8b1d959a822f96c53b407bae2e91c143f10f0d95a2b7abe2a7cdc961027b SHA512 ffdea3e51437fa0e620dbbc806aa4c2676140f7f569554dfa6b138dd3c95e91dc7a0c2dbd5570c8c473619339203f9129bfd76fe6b083d859448203b1807f8f4 WHIRLPOOL 560b7ccbb661c72b1f02d0df9e6e2ad8c00c20ae40e83d7d91e302f45d34d9592867efa901cf9692634186006f6843876a243200e87216e89f2cd1b4473eb7a3
+MISC ChangeLog-2015 414 SHA256 a8e21870ad30ac3232924a0f4013aeed50fa74cdc192f5676bf713230a032e90 SHA512 eb163aaa0d7f12256d020040a25a31767b68c2ed9a5a25a885beb2f0b7d911de26f1987a8c01cf5ce860a3c9490208bcd3901f63995d2417f00c99d4f107ca21 WHIRLPOOL 92abda077fa90921aa53d71591ee89b9db4a739df4ea1cb3a4fea2c8584f0937e93e707f53ecaaf2cf5a0a3da01a5d6687c24031cb9b180f86e2e25bf65b6cdc
+MISC metadata.xml 325 SHA256 baeed7f194082af0374d19a1ddae7a2f3f5f0b876bb5ce76c9f752af757d327d SHA512 93311c8909919558e542db42c144d361ee0289e4c61fa2d49508941f1aa93e307fc6f9a6afce008e3fe54a964cfe35b7774fb94eca405cd4dabba8aa9cb80732 WHIRLPOOL 190cc7fba1e1889e5283638ae67c4190f3ef478e0a048286b893fc3c010c475cf722c5a4ab320a460815f1d63f93a8e371c3fb0cd0068b989ff0e60b6a81c6ec
diff --git a/media-video/bashnapi/bashnapi-1.1.5.ebuild b/media-video/bashnapi/bashnapi-1.1.5.ebuild
new file mode 100644
index 000000000000..d4e2ad65a1ab
--- /dev/null
+++ b/media-video/bashnapi/bashnapi-1.1.5.ebuild
@@ -0,0 +1,33 @@
+# 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)"
+}
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..9671be6e2615
--- /dev/null
+++ b/media-video/bashnapi/bashnapi-1.3.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# 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=""
+
+# 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
+}
diff --git a/media-video/bashnapi/metadata.xml b/media-video/bashnapi/metadata.xml
new file mode 100644
index 000000000000..15be92e50293
--- /dev/null
+++ b/media-video/bashnapi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bashnapi</remote-id>
+ </upstream>
+</pkgmetadata>