Browse Source

chinese/ibus-pinyin: fix build with sqlite3 DQS option off

Also mention that ibus-libpinyin should be preferred.

See also:	PR 270064
PR:		270376
Henry Hu 2 years ago
committed by Robert Clausecker
parent
commit
f38d0fdbea
  1. 2
      chinese/ibus-pinyin/Makefile
  2. 16
      chinese/ibus-pinyin/files/patch-data_db_english_english.awk
  3. 4
      chinese/ibus-pinyin/files/patch-src_PYConfig.cc
  4. 4
      chinese/ibus-pinyin/pkg-descr

2
chinese/ibus-pinyin/Makefile

@ -1,6 +1,6 @@
PORTNAME= ibus-pinyin
PORTVERSION= 1.5.0
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= chinese
MAINTAINER= henry.hu.sh@gmail.com

16
chinese/ibus-pinyin/files/patch-data_db_english_english.awk

@ -0,0 +1,16 @@
--- data/db/english/english.awk.orig 2023-03-20 04:01:48 UTC
+++ data/db/english/english.awk
@@ -16,10 +16,10 @@ BEGIN {
}
# Insert data into english table
- { printf "INSERT INTO english (word, freq) VALUES (\"%s\", \"%f\");\n", $1, $2}
+ { printf "INSERT INTO english (word, freq) VALUES (\'%s\', \'%f\');\n", $1, $2}
#quit sqlite3
END {
# Commit the transcation
print "COMMIT;"
-}
\ No newline at end of file
+}

4
chinese/ibus-pinyin/files/patch-init-config → chinese/ibus-pinyin/files/patch-src_PYConfig.cc

@ -1,6 +1,4 @@
diff --git a/src/PYConfig.cc b/src/PYConfig.cc
index 7e24b2c..1ef0b99 100644
--- src/PYConfig.cc
--- src/PYConfig.cc.orig 2012-12-19 15:30:43 UTC
+++ src/PYConfig.cc
@@ -114,6 +114,7 @@ Config::initDefaultValues (void)
m_init_full_punct = TRUE;

4
chinese/ibus-pinyin/pkg-descr

@ -1 +1,5 @@
PinYin engine for IBus.
This pinyin input method is deprecated; new users should switch to
chinese/ibus-libpinyin, which is a contemporary implementation of pinyin input
method.

Loading…
Cancel
Save