ibus-anthy: rebuild for anthy 0.4
- Build with python3-gobject-devel - Remove gir build option since it can't be built without. Upstream don't provide option to disable
This commit is contained in:
parent
d004fdc667
commit
9b0ecbb5c5
@ -0,0 +1,25 @@
|
|||||||
|
From: NOKUBI Takatsugu <knok@daionet.gr.jp>
|
||||||
|
Date: Thu, 2 Nov 2017 15:11:52 +0900
|
||||||
|
Subject: read utf-8 encoded zipfile
|
||||||
|
|
||||||
|
---
|
||||||
|
anthy form Debian converted those zipfile to utf-8
|
||||||
|
data/zipcode-textdic.py | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/data/zipcode-textdic.py b/data/zipcode-textdic.py
|
||||||
|
index 6fa50d6..cb28a1f 100755
|
||||||
|
--- data/zipcode-textdic.py
|
||||||
|
+++ data/zipcode-textdic.py
|
||||||
|
@@ -21,9 +21,9 @@ if len(sys.argv) < 2:
|
||||||
|
anthy_zipfile = sys.argv[1]
|
||||||
|
|
||||||
|
try:
|
||||||
|
- contents = codecs.open(anthy_zipfile, 'r', 'euc_jp').read()
|
||||||
|
+ contents = codecs.open(anthy_zipfile, 'r', 'utf-8').read()
|
||||||
|
except UnicodeDecodeError as e:
|
||||||
|
- print('Your file is not eucJP? %s' % anthy_zipfile, file=sys.stderr)
|
||||||
|
+ print('Your file is not of UTF-8? %s' % anthy_zipfile, file=sys.stderr)
|
||||||
|
contents = open(anthy_zipfile).read()
|
||||||
|
|
||||||
|
output_zipfile = codecs.open('zipcode.t', 'w', 'utf-8')
|
@ -1,11 +1,12 @@
|
|||||||
# Template file for 'ibus-anthy'
|
# Template file for 'ibus-anthy'
|
||||||
pkgname=ibus-anthy
|
pkgname=ibus-anthy
|
||||||
version=1.5.11
|
version=1.5.11
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--libexec=/usr/lib/ibus $(vopt_enable gir introspection)"
|
build_helper=gir
|
||||||
hostmakedepends="automake gettext $(vopt_if gir gobject-introspection) libtool pkg-config swig"
|
configure_args="--libexec=/usr/lib/ibus"
|
||||||
makedepends="anthy-devel gettext-devel ibus-devel python-gobject-devel"
|
hostmakedepends="automake libtool pkg-config swig intltool gettext-devel"
|
||||||
|
makedepends="anthy-devel ibus-devel python3-gobject-devel"
|
||||||
depends="ibus"
|
depends="ibus"
|
||||||
short_desc="Japanese input method Anthy IMEngine for IBus Framework"
|
short_desc="Japanese input method Anthy IMEngine for IBus Framework"
|
||||||
maintainer="7185 <7185@free.fr>"
|
maintainer="7185 <7185@free.fr>"
|
||||||
@ -13,14 +14,11 @@ license="LGPL-2.1-or-later"
|
|||||||
homepage="https://github.com/ibus/ibus/wiki"
|
homepage="https://github.com/ibus/ibus/wiki"
|
||||||
distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
|
distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
|
||||||
checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
|
checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
|
||||||
|
make_check=extended
|
||||||
|
|
||||||
# Package build options
|
post_patch() {
|
||||||
build_options="gir"
|
2to3 -w gir/test.py
|
||||||
|
}
|
||||||
# Disable gir for cross builds.
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
build_options_default="gir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user