Date: Saturday, December 10, 2016 @ 09:25:20
  Author: felixonmars
Revision: 198715

archrelease: copy trunk to community-any

Added:
  deepin-movie/repos/community-any/PKGBUILD
    (from rev 198714, deepin-movie/trunk/PKGBUILD)
  deepin-movie/repos/community-any/ctypes.patch
    (from rev 198714, deepin-movie/trunk/ctypes.patch)
  deepin-movie/repos/community-any/xcffib.patch
    (from rev 198714, deepin-movie/trunk/xcffib.patch)
Deleted:
  deepin-movie/repos/community-any/PKGBUILD
  deepin-movie/repos/community-any/ctypes.patch
  deepin-movie/repos/community-any/xcffib.patch

--------------+
 PKGBUILD     |   86 ++++++++++++++++++++++++++++-----------------------------
 ctypes.patch |   76 +++++++++++++++++++++++++-------------------------
 xcffib.patch |   86 ++++++++++++++++++++++++++++-----------------------------
 3 files changed, 124 insertions(+), 124 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2016-12-10 09:25:04 UTC (rev 198714)
+++ PKGBUILD    2016-12-10 09:25:20 UTC (rev 198715)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-
-pkgname=deepin-movie
-epoch=1
-pkgver=2.2.10
-pkgrel=1
-pkgdesc='Movie player based on QtAV'
-arch=('any')
-url="https://github.com/linuxdeepin/deepin-movie";
-license=('GPL3')
-depends=('python2-ass' 'python2-pyqt5' 'qtav' 'mediainfo' 'deepin-menu' 
'python2-dbus'
-         'python2-peewee' 'python2-magic' 'deepin-qml-widgets' 
'python2-xpybutil')
-makedepends=('deepin-gettext-tools' 'git')
-groups=('deepin-extra')
-source=("git+https://github.com/linuxdeepin/deepin-movie.git#tag=$pkgver";
-        ctypes.patch xcffib.patch)
-sha256sums=('SKIP'
-            '0427345ba7da2460795b992e566daa0f5be234f4c66dac6e73b64ade17ed1eb7'
-            '612699576290d30e3687995e76aa75b8559afd697d3bf8b8d8c858633a38eac5')
-
-prepare() {
-  cd deepin-movie
-
-  # fix python version
-  find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
-
-  patch -p1 -i ../ctypes.patch
-  patch -p1 -i ../xcffib.patch
-}
-
-build() {
-  cd deepin-movie
-  python2 configure.py
-  deepin-generate-mo locale/locale_config.ini
-}
-
-package() {
-  cd deepin-movie
-  make DESTDIR="${pkgdir}" PREFIX="/usr" install
-
-  chmod 0755 "$pkgdir"/usr/share/deepin-movie/main.py
-}

Copied: deepin-movie/repos/community-any/PKGBUILD (from rev 198714, 
deepin-movie/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2016-12-10 09:25:20 UTC (rev 198715)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=deepin-movie
+epoch=1
+pkgver=2.2.10
+pkgrel=2
+pkgdesc='Movie player based on QtAV'
+arch=('any')
+url="https://github.com/linuxdeepin/deepin-movie";
+license=('GPL3')
+depends=('python2-ass' 'python2-pyqt5' 'qtav' 'mediainfo' 'deepin-menu' 
'python2-dbus'
+         'python2-peewee' 'python2-magic' 'deepin-qml-widgets' 
'python2-xpybutil' 'python2-pysrt')
+makedepends=('deepin-gettext-tools' 'git')
+groups=('deepin-extra')
+source=("git+https://github.com/linuxdeepin/deepin-movie.git#tag=$pkgver";
+        ctypes.patch xcffib.patch)
+sha256sums=('SKIP'
+            '0427345ba7da2460795b992e566daa0f5be234f4c66dac6e73b64ade17ed1eb7'
+            '612699576290d30e3687995e76aa75b8559afd697d3bf8b8d8c858633a38eac5')
+
+prepare() {
+  cd deepin-movie
+
+  # fix python version
+  find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+
+  patch -p1 -i ../ctypes.patch
+  patch -p1 -i ../xcffib.patch
+}
+
+build() {
+  cd deepin-movie
+  python2 configure.py
+  deepin-generate-mo locale/locale_config.ini
+}
+
+package() {
+  cd deepin-movie
+  make DESTDIR="${pkgdir}" PREFIX="/usr" install
+
+  chmod 0755 "$pkgdir"/usr/share/deepin-movie/main.py
+}

Deleted: ctypes.patch
===================================================================
--- ctypes.patch        2016-12-10 09:25:04 UTC (rev 198714)
+++ ctypes.patch        2016-12-10 09:25:20 UTC (rev 198715)
@@ -1,38 +0,0 @@
-From 8451ef5e2937e1ef4cc9f67145c982773310b3de Mon Sep 17 00:00:00 2001
-From: Felix Yan <felixonm...@archlinux.org>
-Date: Sun, 11 Oct 2015 20:37:29 +0800
-Subject: [PATCH] Fix a ctypes-related crash on Arch
-
-"Python integers and Python longs are passed as the platforms default C
-int type, their value is masked to fit into the C type." So when they
-are big enough a segfault will occur.
-
-Many thanks to lilydjwg.
-
-Change-Id: I2472ed375bf183c39267ea4f2aca5ff09dcea8cd
----
- src/utils/font_utils.py | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/src/utils/font_utils.py b/src/utils/font_utils.py
-index c13eb21..36d85fa 100644
---- a/src/utils/font_utils.py
-+++ b/src/utils/font_utils.py
-@@ -30,7 +30,9 @@
- 
- # initialize
- libfc.FcInit()
-+libfc.FcPatternCreate.restype = c_void_p
- pattern = libfc.FcPatternCreate()
-+libfc.FcObjectSetBuild.restype = c_void_p
- objectSet = libfc.FcObjectSetBuild("family", "familylang",
-                                    "lang", "spacing", None)
- 
-@@ -86,6 +88,7 @@ def fontsByLocale(locale):
- 
-     # get all fonts
-     libfc.FcFontList.restype = POINTER(FcFontSet)
-+    libfc.FcFontList.argtypes = [c_void_p] * 3
-     libfc.FcLangSetGetLangs.restype = POINTER(FcStrSet)
-     libfc.FcStrListNext.restype = c_char_p
-     libfc.FcPatternFormat.restype = c_char_p

Copied: deepin-movie/repos/community-any/ctypes.patch (from rev 198714, 
deepin-movie/trunk/ctypes.patch)
===================================================================
--- ctypes.patch                                (rev 0)
+++ ctypes.patch        2016-12-10 09:25:20 UTC (rev 198715)
@@ -0,0 +1,38 @@
+From 8451ef5e2937e1ef4cc9f67145c982773310b3de Mon Sep 17 00:00:00 2001
+From: Felix Yan <felixonm...@archlinux.org>
+Date: Sun, 11 Oct 2015 20:37:29 +0800
+Subject: [PATCH] Fix a ctypes-related crash on Arch
+
+"Python integers and Python longs are passed as the platforms default C
+int type, their value is masked to fit into the C type." So when they
+are big enough a segfault will occur.
+
+Many thanks to lilydjwg.
+
+Change-Id: I2472ed375bf183c39267ea4f2aca5ff09dcea8cd
+---
+ src/utils/font_utils.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/utils/font_utils.py b/src/utils/font_utils.py
+index c13eb21..36d85fa 100644
+--- a/src/utils/font_utils.py
++++ b/src/utils/font_utils.py
+@@ -30,7 +30,9 @@
+ 
+ # initialize
+ libfc.FcInit()
++libfc.FcPatternCreate.restype = c_void_p
+ pattern = libfc.FcPatternCreate()
++libfc.FcObjectSetBuild.restype = c_void_p
+ objectSet = libfc.FcObjectSetBuild("family", "familylang",
+                                    "lang", "spacing", None)
+ 
+@@ -86,6 +88,7 @@ def fontsByLocale(locale):
+ 
+     # get all fonts
+     libfc.FcFontList.restype = POINTER(FcFontSet)
++    libfc.FcFontList.argtypes = [c_void_p] * 3
+     libfc.FcLangSetGetLangs.restype = POINTER(FcStrSet)
+     libfc.FcStrListNext.restype = c_char_p
+     libfc.FcPatternFormat.restype = c_char_p

Deleted: xcffib.patch
===================================================================
--- xcffib.patch        2016-12-10 09:25:04 UTC (rev 198714)
+++ xcffib.patch        2016-12-10 09:25:20 UTC (rev 198715)
@@ -1,43 +0,0 @@
-From 62fd02a727ae6fdfaac3fb2cd18cf36412153a0e Mon Sep 17 00:00:00 2001
-From: Felix Yan <felixonm...@archlinux.org>
-Date: Fri, 18 Sep 2015 14:07:51 +0800
-Subject: [PATCH] add support for xcffib as an alternative to xpyb
-
-xcffib is well maintained and packaged for most Linux distros, and it is
-meant to be mostly a drop-in replacement to xpyb. It would be great if
-xcffib support could be added so we don't need to package the legacy
-xpyb.
-
-I have also filed a pull request for xpybutil to add xcffib support at
-https://github.com/BurntSushi/xpybutil/pull/8
-
-Change-Id: I9491b5383d6df2ee214e804d93903f91484be076
----
- src/views/window.py | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/src/views/window.py b/src/views/window.py
-index 18600d0..181d5c0 100644
---- a/src/views/window.py
-+++ b/src/views/window.py
-@@ -24,7 +24,10 @@
- import json
- from random import randint
- 
--import xcb
-+try:
-+    from xcb.xproto import PropMode
-+except ImportError:
-+    from xcffib.xproto import PropMode
- from xpybutil.icccm import State
- from xpybutil.ewmh import (c, atom, request_wm_state_checked,
-     request_active_window_checked, revent_checked )
-@@ -118,7 +121,7 @@ def play(self, pathList):
-     def setDeepinWindowShadowHint(self, width):
-         width = str(width)
-         window = self.winId().__int__()
--        return c.core.ChangeProperty(xcb.xproto.PropMode.Replace, window,
-+        return c.core.ChangeProperty(PropMode.Replace, window,
-                                      atom('DEEPIN_WINDOW_SHADOW'),
-                                      atom('STRING'), 8, len(width), width)
- 

Copied: deepin-movie/repos/community-any/xcffib.patch (from rev 198714, 
deepin-movie/trunk/xcffib.patch)
===================================================================
--- xcffib.patch                                (rev 0)
+++ xcffib.patch        2016-12-10 09:25:20 UTC (rev 198715)
@@ -0,0 +1,43 @@
+From 62fd02a727ae6fdfaac3fb2cd18cf36412153a0e Mon Sep 17 00:00:00 2001
+From: Felix Yan <felixonm...@archlinux.org>
+Date: Fri, 18 Sep 2015 14:07:51 +0800
+Subject: [PATCH] add support for xcffib as an alternative to xpyb
+
+xcffib is well maintained and packaged for most Linux distros, and it is
+meant to be mostly a drop-in replacement to xpyb. It would be great if
+xcffib support could be added so we don't need to package the legacy
+xpyb.
+
+I have also filed a pull request for xpybutil to add xcffib support at
+https://github.com/BurntSushi/xpybutil/pull/8
+
+Change-Id: I9491b5383d6df2ee214e804d93903f91484be076
+---
+ src/views/window.py | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/views/window.py b/src/views/window.py
+index 18600d0..181d5c0 100644
+--- a/src/views/window.py
++++ b/src/views/window.py
+@@ -24,7 +24,10 @@
+ import json
+ from random import randint
+ 
+-import xcb
++try:
++    from xcb.xproto import PropMode
++except ImportError:
++    from xcffib.xproto import PropMode
+ from xpybutil.icccm import State
+ from xpybutil.ewmh import (c, atom, request_wm_state_checked,
+     request_active_window_checked, revent_checked )
+@@ -118,7 +121,7 @@ def play(self, pathList):
+     def setDeepinWindowShadowHint(self, width):
+         width = str(width)
+         window = self.winId().__int__()
+-        return c.core.ChangeProperty(xcb.xproto.PropMode.Replace, window,
++        return c.core.ChangeProperty(PropMode.Replace, window,
+                                      atom('DEEPIN_WINDOW_SHADOW'),
+                                      atom('STRING'), 8, len(width), width)
+ 

Reply via email to