pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/subliminal Import subliminal-2.0.5 as textpro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/61e48ff783bc
branches:  trunk
changeset: 361099:61e48ff783bc
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Apr 14 14:17:45 2017 +0000

description:
Import subliminal-2.0.5 as textproc/subliminal

Subliminal is a python 2.7+ library to search and download subtitles.
It comes with an easy to use yet powerful CLI suitable for direct use or
cron jobs.

diffstat:

 textproc/subliminal/ALTERNATIVES                                       |    1 +
 textproc/subliminal/DESCR                                              |    3 +
 textproc/subliminal/Makefile                                           |   39 +++
 textproc/subliminal/PLIST                                              |  102 ++++++++++
 textproc/subliminal/distinfo                                           |    8 +
 textproc/subliminal/patches/patch-subliminal_subtitles_____init____.py |   19 +
 textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py       |   27 ++
 7 files changed, 199 insertions(+), 0 deletions(-)

diffs (227 lines):

diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/ALTERNATIVES  Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,1 @@
+bin/subliminal @PREFIX@/bin/subliminal-@PYVERSSUFFIX@
diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/DESCR Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,3 @@
+Subliminal is a python 2.7+ library to search and download subtitles.
+It comes with an easy to use yet powerful CLI suitable for direct use or
+cron jobs.
diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/Makefile      Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2017/04/14 14:17:45 leot Exp $
+
+DISTNAME=      subliminal-2.0.5
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_PYPI:=s/subliminal/}
+
+MAINTAINER=    leot%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/Diaoul/subliminal/
+COMMENT=       Video subtitles downloader
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-appdirs>=1.3:../../devel/py-appdirs
+DEPENDS+=      ${PYPKGPREFIX}-babelfish>=0.5.2:../../textproc/py-babelfish
+DEPENDS+=      ${PYPKGPREFIX}-beautifulsoup4>=4.4.0:../../www/py-beautifulsoup4
+DEPENDS+=      ${PYPKGPREFIX}-chardet>=2.3.0:../../converters/py-chardet
+DEPENDS+=      ${PYPKGPREFIX}-click>=4.0:../../devel/py-click
+DEPENDS+=      ${PYPKGPREFIX}-dogpile-cache>=0.6.0:../../devel/py-dogpile-cache
+DEPENDS+=      ${PYPKGPREFIX}-enzyme>=0.4.1:../../multimedia/py-enzyme
+DEPENDS+=      ${PYPKGPREFIX}-guessit>=2.0.1:../../textproc/py-guessit
+DEPENDS+=      ${PYPKGPREFIX}-pysrt>=1.0.1:../../textproc/py-pysrt
+DEPENDS+=      ${PYPKGPREFIX}-pytz>=2012c:../../time/py-pytz
+DEPENDS+=      ${PYPKGPREFIX}-rarfile>=2.7:../../archivers/py-rarfile
+DEPENDS+=      ${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests
+DEPENDS+=      ${PYPKGPREFIX}-six>=1.9.0:../../lang/py-six
+DEPENDS+=      ${PYPKGPREFIX}-stevedore>=1.0.0:../../devel/py-stevedore
+
+.include "../../lang/python/egg.mk"
+
+.if ${_PYTHON_VERSION} < 33
+DEPENDS+=      ${PYPKGPREFIX}-futures>=3.0:../../devel/py-futures
+.endif
+
+USE_LANGUAGES= # none
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/subliminal ${DESTDIR}${PREFIX}/bin/subliminal-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/PLIST Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,102 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/14 14:17:45 leot Exp $
+bin/subliminal-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/subliminal/__init__.py
+${PYSITELIB}/subliminal/__init__.pyc
+${PYSITELIB}/subliminal/__init__.pyo
+${PYSITELIB}/subliminal/cache.py
+${PYSITELIB}/subliminal/cache.pyc
+${PYSITELIB}/subliminal/cache.pyo
+${PYSITELIB}/subliminal/cli.py
+${PYSITELIB}/subliminal/cli.pyc
+${PYSITELIB}/subliminal/cli.pyo
+${PYSITELIB}/subliminal/converters/__init__.py
+${PYSITELIB}/subliminal/converters/__init__.pyc
+${PYSITELIB}/subliminal/converters/__init__.pyo
+${PYSITELIB}/subliminal/converters/addic7ed.py
+${PYSITELIB}/subliminal/converters/addic7ed.pyc
+${PYSITELIB}/subliminal/converters/addic7ed.pyo
+${PYSITELIB}/subliminal/converters/legendastv.py
+${PYSITELIB}/subliminal/converters/legendastv.pyc
+${PYSITELIB}/subliminal/converters/legendastv.pyo
+${PYSITELIB}/subliminal/converters/shooter.py
+${PYSITELIB}/subliminal/converters/shooter.pyc
+${PYSITELIB}/subliminal/converters/shooter.pyo
+${PYSITELIB}/subliminal/converters/thesubdb.py
+${PYSITELIB}/subliminal/converters/thesubdb.pyc
+${PYSITELIB}/subliminal/converters/thesubdb.pyo
+${PYSITELIB}/subliminal/converters/tvsubtitles.py
+${PYSITELIB}/subliminal/converters/tvsubtitles.pyc
+${PYSITELIB}/subliminal/converters/tvsubtitles.pyo
+${PYSITELIB}/subliminal/core.py
+${PYSITELIB}/subliminal/core.pyc
+${PYSITELIB}/subliminal/core.pyo
+${PYSITELIB}/subliminal/exceptions.py
+${PYSITELIB}/subliminal/exceptions.pyc
+${PYSITELIB}/subliminal/exceptions.pyo
+${PYSITELIB}/subliminal/extensions.py
+${PYSITELIB}/subliminal/extensions.pyc
+${PYSITELIB}/subliminal/extensions.pyo
+${PYSITELIB}/subliminal/providers/__init__.py
+${PYSITELIB}/subliminal/providers/__init__.pyc
+${PYSITELIB}/subliminal/providers/__init__.pyo
+${PYSITELIB}/subliminal/providers/addic7ed.py
+${PYSITELIB}/subliminal/providers/addic7ed.pyc
+${PYSITELIB}/subliminal/providers/addic7ed.pyo
+${PYSITELIB}/subliminal/providers/legendastv.py
+${PYSITELIB}/subliminal/providers/legendastv.pyc
+${PYSITELIB}/subliminal/providers/legendastv.pyo
+${PYSITELIB}/subliminal/providers/napiprojekt.py
+${PYSITELIB}/subliminal/providers/napiprojekt.pyc
+${PYSITELIB}/subliminal/providers/napiprojekt.pyo
+${PYSITELIB}/subliminal/providers/opensubtitles.py
+${PYSITELIB}/subliminal/providers/opensubtitles.pyc
+${PYSITELIB}/subliminal/providers/opensubtitles.pyo
+${PYSITELIB}/subliminal/providers/podnapisi.py
+${PYSITELIB}/subliminal/providers/podnapisi.pyc
+${PYSITELIB}/subliminal/providers/podnapisi.pyo
+${PYSITELIB}/subliminal/providers/shooter.py
+${PYSITELIB}/subliminal/providers/shooter.pyc
+${PYSITELIB}/subliminal/providers/shooter.pyo
+${PYSITELIB}/subliminal/providers/subscenter.py
+${PYSITELIB}/subliminal/providers/subscenter.pyc
+${PYSITELIB}/subliminal/providers/subscenter.pyo
+${PYSITELIB}/subliminal/providers/thesubdb.py
+${PYSITELIB}/subliminal/providers/thesubdb.pyc
+${PYSITELIB}/subliminal/providers/thesubdb.pyo
+${PYSITELIB}/subliminal/providers/tvsubtitles.py
+${PYSITELIB}/subliminal/providers/tvsubtitles.pyc
+${PYSITELIB}/subliminal/providers/tvsubtitles.pyo
+${PYSITELIB}/subliminal/refiners/__init__.py
+${PYSITELIB}/subliminal/refiners/__init__.pyc
+${PYSITELIB}/subliminal/refiners/__init__.pyo
+${PYSITELIB}/subliminal/refiners/metadata.py
+${PYSITELIB}/subliminal/refiners/metadata.pyc
+${PYSITELIB}/subliminal/refiners/metadata.pyo
+${PYSITELIB}/subliminal/refiners/omdb.py
+${PYSITELIB}/subliminal/refiners/omdb.pyc
+${PYSITELIB}/subliminal/refiners/omdb.pyo
+${PYSITELIB}/subliminal/refiners/tvdb.py
+${PYSITELIB}/subliminal/refiners/tvdb.pyc
+${PYSITELIB}/subliminal/refiners/tvdb.pyo
+${PYSITELIB}/subliminal/score.py
+${PYSITELIB}/subliminal/score.pyc
+${PYSITELIB}/subliminal/score.pyo
+${PYSITELIB}/subliminal/subtitle.py
+${PYSITELIB}/subliminal/subtitle.pyc
+${PYSITELIB}/subliminal/subtitle.pyo
+${PYSITELIB}/subliminal/subtitles/__init__.py
+${PYSITELIB}/subliminal/subtitles/__init__.pyc
+${PYSITELIB}/subliminal/subtitles/__init__.pyo
+${PYSITELIB}/subliminal/subtitles/subrip.py
+${PYSITELIB}/subliminal/utils.py
+${PYSITELIB}/subliminal/utils.pyc
+${PYSITELIB}/subliminal/utils.pyo
+${PYSITELIB}/subliminal/video.py
+${PYSITELIB}/subliminal/video.pyc
+${PYSITELIB}/subliminal/video.pyo
diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/distinfo      Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2017/04/14 14:17:45 leot Exp $
+
+SHA1 (subliminal-2.0.5.tar.gz) = a74f7be06afda4ce53563a13ce7d685fa4f1148f
+RMD160 (subliminal-2.0.5.tar.gz) = 0e9426ac4681cdf0e8a8f7742f4fada2f228d91c
+SHA512 (subliminal-2.0.5.tar.gz) = 56bc0e87496d5bc361430c4ee396b20374da697014203bdc4dda12341918e67c98aec579e44bd467898dbbf11f31e9de47ece17a0d78339f2bc700e3e6c8dd40
+Size (subliminal-2.0.5.tar.gz) = 51247 bytes
+SHA1 (patch-subliminal_subtitles_____init____.py) = 253b44d1421f51bc91abdbf960dbf759517e3f28
+SHA1 (patch-subliminal_subtitles_subrip.py) = f1ee205dce7cc566377d0a43b80974c7ef2432d8
diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/patches/patch-subliminal_subtitles_____init____.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/patches/patch-subliminal_subtitles_____init____.py    Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-subliminal_subtitles_____init____.py,v 1.1 2017/04/14 14:17:45 leot Exp $
+
+Use print() function from the __future__ in order to make the code compatible
+with Python 3.
+
+--- subliminal/subtitles/__init__.py.orig      2016-05-01 17:44:42.000000000 +0000
++++ subliminal/subtitles/__init__.py
+@@ -1,4 +1,5 @@
+ # -*- coding: utf-8 -*-
++from __future__ import print_function
+ from datetime import time
+ 
+ 
+@@ -85,4 +86,4 @@ class Cue(object):
+ 
+ if __name__ == '__main__':
+     cue = Cue(time(), time(1), [Bold('Hello')])
+-    print repr(cue)
++    print(repr(cue))
diff -r ca204387859c -r 61e48ff783bc textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py  Fri Apr 14 14:17:45 2017 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-subliminal_subtitles_subrip.py,v 1.1 2017/04/14 14:17:45 leot Exp $
+
+Use print() function from the __future__ in order to make the code compatible
+with Python 3.
+
+--- subliminal/subtitles/subrip.py.orig        2016-06-24 19:30:34.000000000 +0000
++++ subliminal/subtitles/subrip.py
+@@ -1,5 +1,6 @@
+ # -*- coding: utf-8 -*-
+ import re
++from __future__ import print_function
+ from datetime import time
+ 
+ from subliminal.subtitles import Cue
+@@ -73,10 +74,10 @@ class SubripSubtitle(object):
+ 
+ 
+ if __name__ == '__main__':
+-    print read_cue('toto')
++    print(read_cue('toto'))
+       i = 0
+     for x in read_cue('toto'):
+-        print x
++        print(x)
+         if i > 10:
+             break
+         i += 1



Home | Main Index | Thread Index | Old Index