[arch-commits] Commit in deepin-terminal/repos (4 files)
Felix Yan
fyan at archlinux.org
Wed Dec 9 14:12:41 UTC 2015
Date: Wednesday, December 9, 2015 @ 15:12:41
Author: fyan
Revision: 151270
archrelease: copy trunk to community-testing-any
Added:
deepin-terminal/repos/community-testing-any/
deepin-terminal/repos/community-testing-any/PKGBUILD
(from rev 151269, deepin-terminal/trunk/PKGBUILD)
deepin-terminal/repos/community-testing-any/deepin-terminal.install
(from rev 151269, deepin-terminal/trunk/deepin-terminal.install)
deepin-terminal/repos/community-testing-any/use-deepinvte.patch
(from rev 151269, deepin-terminal/trunk/use-deepinvte.patch)
---------------------+
PKGBUILD | 42 +++++++++++++++++++++++++++++++++++
use-deepinvte.patch | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+)
Copied: deepin-terminal/repos/community-testing-any/PKGBUILD (from rev 151269, deepin-terminal/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2015-12-09 14:12:41 UTC (rev 151270)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-terminal
+pkgver=1.1.1
+_commit=bdf2acb68b32ab3e7262146f4d0011d32d2c9e54
+pkgrel=1
+pkgdesc='Awesome terminal for Linux Deepin'
+arch=('any')
+url="https://gitcafe.com/Deepin/deepin-terminal"
+license=('GPL3')
+depends=('python2-deepin-vte' 'desktop-file-utils' 'expect' 'hicolor-icon-theme'
+ 'python2-dbus' 'python2-deepin-ui' 'xdotool' 'ttf-dejavu')
+makedepends=('deepin-gettext-tools' 'git')
+groups=('deepin-extra')
+install="${pkgname}.install"
+source=("git+https://github.com/linuxdeepin/deepin-terminal.git#commit=$_commit"
+ use-deepinvte.patch)
+sha256sums=('SKIP'
+ 'b1d0d3a1ac3ea78d235cd721d757ad00715267775e2c219a5ba0474119c2bb3c')
+
+prepare(){
+ cd deepin-terminal
+
+ # use deepinvte
+ patch -p1 --no-backup-if-mismatch -i ../use-deepinvte.patch
+
+ # fix python version
+ find "${srcdir}" -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+}
+
+build() {
+ cd deepin-terminal
+ deepin-generate-mo tools/locale_config.ini
+}
+
+package() {
+ cd deepin-terminal
+ make DESTDIR="${pkgdir}" PREFIX="/usr" install
+}
Copied: deepin-terminal/repos/community-testing-any/deepin-terminal.install (from rev 151269, deepin-terminal/trunk/deepin-terminal.install)
===================================================================
Copied: deepin-terminal/repos/community-testing-any/use-deepinvte.patch (from rev 151269, deepin-terminal/trunk/use-deepinvte.patch)
===================================================================
--- community-testing-any/use-deepinvte.patch (rev 0)
+++ community-testing-any/use-deepinvte.patch 2015-12-09 14:12:41 UTC (rev 151270)
@@ -0,0 +1,60 @@
+diff --git a/src/main.py b/src/main.py
+index bfb7005..3ef77ee 100755
+--- a/src/main.py
++++ b/src/main.py
+@@ -57,7 +57,7 @@ import subprocess
+ import sys
+ import traceback
+ import urllib
+-import vte
++import deepinvte
+ import shlex
+
+ PROJECT_NAME = "deepin-terminal"
+@@ -1324,9 +1324,9 @@ class Terminal(object):
+
+ gtk.main()
+
+-class TerminalWrapper(vte.Terminal):
++class TerminalWrapper(deepinvte.Terminal):
+ """
+- Wrapper class for vte.Terminal. Propagate keys. Make some customize as well.
++ Wrapper class for deepinvte.Terminal. Propagate keys. Make some customize as well.
+ """
+
+ def __init__(self,
+@@ -1340,7 +1340,7 @@ class TerminalWrapper(vte.Terminal):
+ Initial values.
+ :param parent_widget: which grid this widget belongs to.
+ """
+- vte.Terminal.__init__(self)
++ deepinvte.Terminal.__init__(self)
+ self.parent_widget = parent_widget
+ self.press_q_quit = press_q_quit
+ self.set_word_chars("-A-Za-z0-9,./?%&#:_")
+@@ -1582,19 +1582,19 @@ class TerminalWrapper(vte.Terminal):
+
+ def change_cursor_shape(self, cursor_shape):
+ if cursor_shape == "block":
+- self.set_cursor_shape(vte.CURSOR_SHAPE_BLOCK)
++ self.set_cursor_shape(deepinvte.CURSOR_SHAPE_BLOCK)
+ elif cursor_shape == "ibeam":
+- self.set_cursor_shape(vte.CURSOR_SHAPE_IBEAM)
++ self.set_cursor_shape(deepinvte.CURSOR_SHAPE_IBEAM)
+ elif cursor_shape == "underline":
+- self.set_cursor_shape(vte.CURSOR_SHAPE_UNDERLINE)
++ self.set_cursor_shape(deepinvte.CURSOR_SHAPE_UNDERLINE)
+
+ def change_cursor_blink_mode(self, cursor_blink_mode):
+ if cursor_blink_mode == "system":
+- self.set_cursor_blink_mode(vte.CURSOR_BLINK_SYSTEM)
++ self.set_cursor_blink_mode(deepinvte.CURSOR_BLINK_SYSTEM)
+ elif cursor_blink_mode == "on":
+- self.set_cursor_blink_mode(vte.CURSOR_BLINK_ON)
++ self.set_cursor_blink_mode(deepinvte.CURSOR_BLINK_ON)
+ elif cursor_blink_mode == "off":
+- self.set_cursor_blink_mode(vte.CURSOR_BLINK_OFF)
++ self.set_cursor_blink_mode(deepinvte.CURSOR_BLINK_OFF)
+
+ def change_encoding(self, encoding):
+ self.set_encoding(encoding)
More information about the arch-commits
mailing list