pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/subliminal Fix indentation and incorrect __fu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a8e16992b3c6
branches: trunk
changeset: 361132:a8e16992b3c6
user: leot <leot%pkgsrc.org@localhost>
date: Fri Apr 14 19:10:23 2017 +0000
description:
Fix indentation and incorrect __future__ import in patch-subliminal_subtitles_subrip.py
Bump PKGREVISION
diffstat:
textproc/subliminal/Makefile | 3 +-
textproc/subliminal/PLIST | 4 ++-
textproc/subliminal/distinfo | 4 +-
textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py | 15 +++++----
4 files changed, 15 insertions(+), 11 deletions(-)
diffs (80 lines):
diff -r 64c1d3284637 -r a8e16992b3c6 textproc/subliminal/Makefile
--- a/textproc/subliminal/Makefile Fri Apr 14 18:43:56 2017 +0000
+++ b/textproc/subliminal/Makefile Fri Apr 14 19:10:23 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2017/04/14 14:17:45 leot Exp $
+# $NetBSD: Makefile,v 1.2 2017/04/14 19:10:23 leot Exp $
DISTNAME= subliminal-2.0.5
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_PYPI:=s/subliminal/}
diff -r 64c1d3284637 -r a8e16992b3c6 textproc/subliminal/PLIST
--- a/textproc/subliminal/PLIST Fri Apr 14 18:43:56 2017 +0000
+++ b/textproc/subliminal/PLIST Fri Apr 14 19:10:23 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/04/14 14:17:45 leot Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/04/14 19:10:23 leot Exp $
bin/subliminal-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -94,6 +94,8 @@
${PYSITELIB}/subliminal/subtitles/__init__.pyc
${PYSITELIB}/subliminal/subtitles/__init__.pyo
${PYSITELIB}/subliminal/subtitles/subrip.py
+${PYSITELIB}/subliminal/subtitles/subrip.pyc
+${PYSITELIB}/subliminal/subtitles/subrip.pyo
${PYSITELIB}/subliminal/utils.py
${PYSITELIB}/subliminal/utils.pyc
${PYSITELIB}/subliminal/utils.pyo
diff -r 64c1d3284637 -r a8e16992b3c6 textproc/subliminal/distinfo
--- a/textproc/subliminal/distinfo Fri Apr 14 18:43:56 2017 +0000
+++ b/textproc/subliminal/distinfo Fri Apr 14 19:10:23 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1 2017/04/14 14:17:45 leot Exp $
+$NetBSD: distinfo,v 1.2 2017/04/14 19:10:23 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
+SHA1 (patch-subliminal_subtitles_subrip.py) = 4e44270d77605812537a7549195c8667b083cf0e
diff -r 64c1d3284637 -r a8e16992b3c6 textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py
--- a/textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py Fri Apr 14 18:43:56 2017 +0000
+++ b/textproc/subliminal/patches/patch-subliminal_subtitles_subrip.py Fri Apr 14 19:10:23 2017 +0000
@@ -1,24 +1,25 @@
-$NetBSD: patch-subliminal_subtitles_subrip.py,v 1.1 2017/04/14 14:17:45 leot Exp $
+$NetBSD: patch-subliminal_subtitles_subrip.py,v 1.2 2017/04/14 19:10:23 leot Exp $
-Use print() function from the __future__ in order to make the code compatible
-with Python 3.
+- Use print() function from the __future__ in order to make the code compatible
+ with Python 3.
+- Fix an indentation error.
--- subliminal/subtitles/subrip.py.orig 2016-06-24 19:30:34.000000000 +0000
+++ subliminal/subtitles/subrip.py
-@@ -1,5 +1,6 @@
+@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
++from __future__ import print_function
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')
+- i = 0
+ print(read_cue('toto'))
- i = 0
++ i = 0
for x in read_cue('toto'):
- print x
+ print(x)
Home |
Main Index |
Thread Index |
Old Index