[arch-commits] Commit in sk1/trunk (PKGBUILD python2-fix.patch)

Sergej Pupykin spupykin at archlinux.org
Fri Feb 20 16:32:47 UTC 2015


    Date: Friday, February 20, 2015 @ 17:32:47
  Author: spupykin
Revision: 128035

upgpkg: sk1 0.9.3-1

upd

Added:
  sk1/trunk/python2-fix.patch
Modified:
  sk1/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   15 ++++++++++---
 python2-fix.patch |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-20 16:16:44 UTC (rev 128034)
+++ PKGBUILD	2015-02-20 16:32:47 UTC (rev 128035)
@@ -3,17 +3,24 @@
 # Contributor: ConnorBehan <connor.behan at gmail.com>
 
 pkgname=sk1
-pkgver=0.9.2
+pkgver=0.9.3
 pkgrel=1
 pkgdesc="Fork of skencil with improved CMYK support"
 arch=(i686 x86_64)
 url="http://sk1project.org/modules.php?name=Products&product=sk1"
-depends=('tcl' 'tk' 'zenity' 'sk1libs' 'sk1sdk'
+depends=('tcl' 'tk' 'zenity'
 	 'python2-cairo' 'python2-lcms' 'python2-pillow')
 license=('GPL' 'LGPL')
-source=(http://downloads.sourceforge.net/project/sk1/sk1/sK1_v.$pkgver/sk1-$pkgver.tar.gz)
-md5sums=('60d505332b99c569204249e0b3b434c4')
+source=(http://downloads.sourceforge.net/project/sk1/sk1/sK1_v.$pkgver/sk1-$pkgver.tar.gz
+	python2-fix.patch)
+md5sums=('04cfbc5ffd4e25ae47a95b2e37cd8465'
+         'e560945a89c5445ce2f04960884a5f6b')
 
+prepare() {
+  cd $srcdir/sk1-${pkgver}
+  patch -p1 <$srcdir/python2-fix.patch
+}
+
 build() {
   cd $srcdir/sk1-${pkgver}
   python2 setup.py build

Added: python2-fix.patch
===================================================================
--- python2-fix.patch	                        (rev 0)
+++ python2-fix.patch	2015-02-20 16:32:47 UTC (rev 128035)
@@ -0,0 +1,57 @@
+diff -wbBur sk1-0.9.3/src/sk1/managers/dialogmanager.py sk1-0.9.3.my/src/sk1/managers/dialogmanager.py
+--- sk1-0.9.3/src/sk1/managers/dialogmanager.py	2014-10-28 20:54:25.000000000 +0300
++++ sk1-0.9.3.my/src/sk1/managers/dialogmanager.py	2015-02-20 19:13:54.588252445 +0300
+@@ -199,7 +199,7 @@
+ 	tmpfile = NamedTemporaryFile()
+ 	execline = ''
+ 	if sk1.LANG: execline += 'export LANG=' + sk1.LANG + ';'
+-	execline += 'python %s/gtk/open_file_dialog.py ' % (PATH,)
++	execline += 'python2 %s/gtk/open_file_dialog.py ' % (PATH,)
+ 	execline += ' caption="' + name + '" start_dir="' + initialdir + '"'
+ 	execline += ' filetypes="' + filetypes + '" window-icon="' + icon + '"'
+ 	os.system(execline + '>' + tmpfile.name)
+@@ -229,7 +229,7 @@
+ 	execline = ''
+ 	if sk1.LANG: execline += 'export LANG=' + sk1.LANG + ';'
+ 	path = os.path.join(initialdir, initialfile)
+-	execline += 'python %s/gtk/save_file_dialog.py ' % (PATH,)
++	execline += 'python2 %s/gtk/save_file_dialog.py ' % (PATH,)
+ 	execline += ' caption="' + name + '" path="' + path + '" '
+ 	execline += ' filetypes="' + filetypes + '" window-icon="' + icon + '"'
+ 	os.system(execline + '>' + tmpfile.name)
+diff -wbBur sk1-0.9.3/src/sk1/managers/docmanager.py sk1-0.9.3.my/src/sk1/managers/docmanager.py
+--- sk1-0.9.3/src/sk1/managers/docmanager.py	2014-11-02 20:51:38.000000000 +0300
++++ sk1-0.9.3.my/src/sk1/managers/docmanager.py	2015-02-20 19:13:59.778162450 +0300
+@@ -223,7 +223,7 @@
+ 
+ 		execline = ''
+ 		if sk1.LANG: execline += 'export LANG=' + sk1.LANG + ';'
+-		execline += 'python %s/gtk/print_dialog.py ' % (PATH,)
++		execline += 'python2 %s/gtk/print_dialog.py ' % (PATH,)
+ 		execline += ' filepath="' + pdffile.name + '"'
+ 		execline += ' window-icon="' + icon + '"'
+ 
+diff -wbBur sk1-0.9.3/src/sk1sdk/tkstyle/colors.py sk1-0.9.3.my/src/sk1sdk/tkstyle/colors.py
+--- sk1-0.9.3/src/sk1sdk/tkstyle/colors.py	2014-09-03 20:42:00.000000000 +0400
++++ sk1-0.9.3.my/src/sk1sdk/tkstyle/colors.py	2015-02-20 19:14:21.267789842 +0300
+@@ -146,7 +146,7 @@
+ 			" style.bg[gtk.STATE_SELECTED].to_string(),"+ \
+ 			" style.bg[gtk.STATE_INSENSITIVE].to_string();"
+ 	
+-		os.system('python -c "%s" >%s 2>/dev/null'%(command, tmpfile.name))	
++		os.system('python2 -c "%s" >%s 2>/dev/null'%(command, tmpfile.name))	
+ 
+ 		for type in ["base","text","fg","bg"]:
+ 			line=tmpfile.readline().strip().split()
+diff -wbBur sk1-0.9.3/src/sk1sdk/tkstyle/fonts.py sk1-0.9.3.my/src/sk1sdk/tkstyle/fonts.py
+--- sk1-0.9.3/src/sk1sdk/tkstyle/fonts.py	2014-09-10 13:06:18.000000000 +0400
++++ sk1-0.9.3.my/src/sk1sdk/tkstyle/fonts.py	2015-02-20 19:14:26.454366585 +0300
+@@ -50,7 +50,7 @@
+ 
+ 	tmpfile = NamedTemporaryFile()
+ 	command = "import gtk;w = gtk.Window();w.realize();style=w.get_style(); print style.font_desc.to_string();"
+-	os.system('python -c "%s" >%s 2>/dev/null' % (command, tmpfile.name))
++	os.system('python2 -c "%s" >%s 2>/dev/null' % (command, tmpfile.name))
+ 
+ 	font = tmpfile.readline().strip()
+ 



More information about the arch-commits mailing list