[arch-commits] Commit in sunpinyin/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 12:49:34 UTC 2020
Date: Tuesday, July 7, 2020 @ 12:49:34
Author: felixonmars
Revision: 658240
archrelease: copy trunk to community-staging-x86_64
Added:
sunpinyin/repos/community-staging-x86_64/
sunpinyin/repos/community-staging-x86_64/PKGBUILD
(from rev 658239, sunpinyin/trunk/PKGBUILD)
sunpinyin/repos/community-staging-x86_64/scons-python3.patch
(from rev 658239, sunpinyin/trunk/scons-python3.patch)
---------------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
scons-python3.patch | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 88 insertions(+)
Copied: sunpinyin/repos/community-staging-x86_64/PKGBUILD (from rev 658239, sunpinyin/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 12:49:34 UTC (rev 658240)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+
+pkgname=sunpinyin
+pkgver=3.0.0rc1
+_tag=v3.0.0-rc1
+pkgrel=3
+arch=('x86_64')
+pkgdesc="Statistical Language Model based pinyin IME by Sun"
+license=('LGPL')
+url="http://sunpinyin.googlecode.com"
+depends=('sqlite' 'make' 'gcc-libs')
+optdepends=('sunpinyin-data: Statistical language model data from open-gram project for sunpinyin')
+makedepends=('git' 'scons' 'intltool' 'python2')
+source=("git://github.com/sunpinyin/sunpinyin.git#tag=$_tag" scons-python3.patch)
+md5sums=('SKIP'
+ '268a91412d5e5c8f3e7a092b0daa8220')
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ sed -i -e "1s|python|python2|" python/*.py python/importer/*.py
+
+ patch -p1 -i ../scons-python3.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ scons \
+ --prefix=/usr
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ scons \
+ --prefix=/usr \
+ --install-sandbox="$pkgdir" \
+ install
+}
Copied: sunpinyin/repos/community-staging-x86_64/scons-python3.patch (from rev 658239, sunpinyin/trunk/scons-python3.patch)
===================================================================
--- community-staging-x86_64/scons-python3.patch (rev 0)
+++ community-staging-x86_64/scons-python3.patch 2020-07-07 12:49:34 UTC (rev 658240)
@@ -0,0 +1,50 @@
+--- sunpinyin/SConstruct.orig 2019-07-26 18:43:44.176969620 +0000
++++ sunpinyin/SConstruct 2019-07-26 18:44:16.680683795 +0000
+@@ -1,6 +1,7 @@
+ import platform
+ import os
+ import sys
++from functools import reduce
+
+
+ version = "2.0.4"
+@@ -227,7 +227,7 @@
+ def PassVariables(envvar, env):
+ for (x, y) in envvar:
+ if x in os.environ:
+- print 'Warning: you\'ve set %s in the environmental variable!' % x
++ print ('Warning: you\'ve set %s in the environmental variable!' % x)
+ env[y] = os.environ[x]
+
+ env = CreateEnvironment()
+--- sunpinyin/wrapper/ibus/SConstruct.orig 2019-07-26 18:47:21.482881594 +0000
++++ sunpinyin/wrapper/ibus/SConstruct 2019-07-26 18:47:44.303156268 +0000
+@@ -36,7 +36,7 @@
+ def PassVariables(envvar, env):
+ for (x, y) in envvar:
+ if x in os.environ:
+- print 'Warning: you\'ve set %s in the environmental variable!' % x
++ print ('Warning: you\'ve set %s in the environmental variable!' % x)
+ env[y] = os.environ[x]
+
+ env = Environment(ENV=os.environ,
+@@ -141,7 +141,7 @@
+ libexec_target = env.Install(bin_dir, ['ibus-engine-sunpinyin',
+ 'setup/ibus-setup-sunpinyin'])
+ for exec_bin in libexec_target:
+- env.AddPostAction(exec_bin, Chmod(str(exec_bin), 0755))
++ env.AddPostAction(exec_bin, Chmod(str(exec_bin), '0755'))
+
+ setup_target = env.Install(data_dir + '/setup',
+ ['setup/setup.xml',
+--- sunpinyin/src/SConscript.orig 2019-07-26 18:52:28.323285506 +0000
++++ sunpinyin/src/SConscript 2019-07-26 18:52:51.890242437 +0000
+@@ -53,7 +53,7 @@
+ })
+ env.Command('sunpinyin-dictgen', 'sunpinyin-dictgen.mk', [
+ Copy("$TARGET", "$SOURCE"),
+- Chmod("$TARGET", 0755),
++ Chmod("$TARGET", '0755'),
+ ])
+
+ # -*- indent-tabs-mode: nil -*- vim:et:ts=4
More information about the arch-commits
mailing list