[arch-commits] Commit in sugar-activity-pippy (4 files)

Balló György bgyorgy at archlinux.org
Wed Feb 15 04:10:09 UTC 2017


    Date: Wednesday, February 15, 2017 @ 04:10:09
  Author: bgyorgy
Revision: 212491

archrelease: copy trunk to community-any

Added:
  sugar-activity-pippy/repos/
  sugar-activity-pippy/repos/community-any/
  sugar-activity-pippy/repos/community-any/PKGBUILD
    (from rev 212490, sugar-activity-pippy/trunk/PKGBUILD)
  sugar-activity-pippy/repos/community-any/fix-missing-icons.patch
    (from rev 212490, sugar-activity-pippy/trunk/fix-missing-icons.patch)

-------------------------+
 PKGBUILD                |   33 ++++++++++++++++++++++++++++++
 fix-missing-icons.patch |   49 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Copied: sugar-activity-pippy/repos/community-any/PKGBUILD (from rev 212490, sugar-activity-pippy/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2017-02-15 04:10:09 UTC (rev 212491)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=sugar-activity-pippy
+_pkgname=Pippy
+pkgver=70
+pkgrel=1
+pkgdesc="Sugar activity to learn and develop in Python programming language"
+arch=('any')
+url="https://wiki.sugarlabs.org/go/Activities/Pippy"
+license=('GPL')
+groups=('sugar-fructose')
+depends=('python2-pybox2d' 'python2-pygame' 'sugar' 'vte3')
+source=($pkgname-$pkgver.tar.gz::https://github.com/sugarlabs/$_pkgname/archive/v$pkgver.tar.gz
+        fix-missing-icons.patch)
+sha256sums=('7c7ca995661a4e1c0964e5788ad5dfce539beca7acaa46b278b7f71429ccf575'
+            '38bc051a8a4b5c2dbee2c1d4b73083eb8708b689935448b9767f5d339a684f44')
+
+prepare() {
+  cd $_pkgname-$pkgver
+  patch -Np1 -i ../fix-missing-icons.patch
+  find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+  sed -i 's/python %s; sleep 1/python2 %s; sleep 1/' pippy_app.py
+  sed -i "s/require_version('Vte', '2.90')/require_version('Vte', '2.91')/" activity.py pippy_app.py
+  sed -i 's/self._collab.props.leader/self._collab._leader/' pippy_app.py texteditor.py
+  rm -r library/box2d_*/ library/Box2D.py library/LICENSE
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python2 setup.py install --prefix "$pkgdir/usr"
+  rm -r "$pkgdir"/usr/share/applications
+}

Copied: sugar-activity-pippy/repos/community-any/fix-missing-icons.patch (from rev 212490, sugar-activity-pippy/trunk/fix-missing-icons.patch)
===================================================================
--- repos/community-any/fix-missing-icons.patch	                        (rev 0)
+++ repos/community-any/fix-missing-icons.patch	2017-02-15 04:10:09 UTC (rev 212491)
@@ -0,0 +1,49 @@
+From 3f4af9d67adb530503e42ec10f39f2f6255df0ad Mon Sep 17 00:00:00 2001
+From: James Cameron <quozl at laptop.org>
+Date: Wed, 18 May 2016 12:00:33 +1000
+Subject: [PATCH] Fix missing run, stop, clear icons
+
+Three toolbar icons were not visible until pressed.
+
+Cause was missing show() method call.
+---
+ pippy_app.py | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/pippy_app.py b/pippy_app.py
+index fadf74f..55297bc 100644
+--- a/pippy_app.py
++++ b/pippy_app.py
+@@ -256,8 +256,10 @@ def initialize_display(self):
+ 
+         icon_bw = Gtk.Image()
+         icon_bw.set_from_file(os.path.join(icons_path, 'run_bw.svg'))
++        icon_bw.show()
+         icon_color = Gtk.Image()
+         icon_color.set_from_file(os.path.join(icons_path, 'run_color.svg'))
++        icon_color.show()
+         button = ToolButton(label=_('Run!'))
+         button.props.accelerator = _('<alt>r')
+         button.set_icon_widget(icon_bw)
+@@ -270,8 +272,10 @@ def initialize_display(self):
+ 
+         icon_bw = Gtk.Image()
+         icon_bw.set_from_file(os.path.join(icons_path, 'stopit_bw.svg'))
++        icon_bw.show()
+         icon_color = Gtk.Image()
+         icon_color.set_from_file(os.path.join(icons_path, 'stopit_color.svg'))
++        icon_color.show()
+         button = ToolButton(label=_('Stop'))
+         button.props.accelerator = _('<alt>s')
+         button.set_icon_widget(icon_bw)
+@@ -284,8 +288,10 @@ def initialize_display(self):
+ 
+         icon_bw = Gtk.Image()
+         icon_bw.set_from_file(os.path.join(icons_path, 'eraser_bw.svg'))
++        icon_bw.show()
+         icon_color = Gtk.Image()
+         icon_color.set_from_file(os.path.join(icons_path, 'eraser_color.svg'))
++        icon_color.show()
+         button = ToolButton(label=_('Clear'))
+         button.props.accelerator = _('<alt>c')
+         button.set_icon_widget(icon_bw)



More information about the arch-commits mailing list