summaryrefslogtreecommitdiff
path: root/app-i18n/fcitx-qt5
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/fcitx-qt5
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/fcitx-qt5')
-rw-r--r--app-i18n/fcitx-qt5/Manifest13
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild43
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild39
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild39
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild39
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild40
-rw-r--r--app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch86
-rw-r--r--app-i18n/fcitx-qt5/metadata.xml15
8 files changed, 314 insertions, 0 deletions
diff --git a/app-i18n/fcitx-qt5/Manifest b/app-i18n/fcitx-qt5/Manifest
new file mode 100644
index 000000000000..edf69f582a0b
--- /dev/null
+++ b/app-i18n/fcitx-qt5/Manifest
@@ -0,0 +1,13 @@
+AUX fcitx-qt5-1.0.5-ucs4.patch 3776 SHA256 f3ad90ebe52bbdab63d38feaeab06f463611b954d1260fafcc510929c456e4aa SHA512 8c604f95ab49e99cbbc701a5dff619d5940b3e7dceadad93ca16998f8d87eba9995f4ef55c51df2ba2894e4b38575c751617481d3de310da15f6398af53f61d5 WHIRLPOOL 8a3140ffe4518dbc7cafb834c64b0610a9c9901f827bee60d395f19b4a1728030060ecaaa619d06162e40843cb7d2986dceceb0ba3f211d3f310f6c3c8c2ac3c
+DIST fcitx-qt5-1.0.5.tar.xz 53584 SHA256 8cef90024ca84c3f607943b91f6bfe63fd077507bbe100e5a1936464095841de SHA512 f4da9ede8918cef7aa0dbacea534ab81024e3c6d812bedd287c4c4c9a8b9ca994d4708489c602967f3504ce057ec6e118674503f5d796883f1890e8ecc11c501 WHIRLPOOL 764190a5f523fc40ca5f937704d5bc1a7018232284f50b9b1b6a36b5dd41dfbebda5db337bdc49b08e601e94f51935f2a70d96dddbd4091744ec8c89a77f26b0
+DIST fcitx-qt5-1.0.6.tar.xz 53892 SHA256 a2aea7b49a9508e68d087ac5c9f3d1d1d414318e1aca14fed92a2f8a7e8848c8 SHA512 ea816a3bc324b838d77d7ee67a05853f7f07cbc3c0c1e0a3809fe72084f7e0db8e98623499299712b8b496922e46acb06cf3a1cbd3ff2ef1de92ca5a74d540da WHIRLPOOL aae4029ad2bd5120cd7910fa0a2644dca346acbf47da22d54d7fd3bdb70fab9bdbcf40207e8870f1bebee48de07d9c4a39d44ef04a56eb8472e31087cf6326d3
+DIST fcitx-qt5-1.1.0.tar.xz 55944 SHA256 9be3205e9bb730a23f28bf742d8c41a5035fcd8d91b51aaef875d888c12c0c65 SHA512 1f11c13162483957f0ff29dc8d05e8c781bfcc6f60d938037b94ae825be9c1bc47f594540a2d1d3ffa7185abcc9fd734522a64e36813d3116ec394b52f98135c WHIRLPOOL bbac0393b3e697d48b8bde3acec54a1f8d3daade53c31b8775418067c450c3960820c6ce2e2ec1583d1aa2263a7f7f13cf08d7b32deb1c1a851fc892e367f4e2
+DIST fcitx-qt5-1.1.1.tar.xz 56352 SHA256 4b062869dae011747ff257e6976debd1d69fb13e6121318ce725c0c240291b02 SHA512 ea7faa953561527fd0f6224a06ab97ab84a9e36a06d44f9807e38e6d8e537ab2c7126c4cda2d4718473ace1245709ce6175ac9431b6f0527a63b2d6e92feb18c WHIRLPOOL 385566104e215309dae5742ee4ed360b4b5a23b282fe64a4e50ac13a710478998262f2022320ceda2c4f423406292e7ded48dd2adec7e7b532d5e4bb8b524776
+EBUILD fcitx-qt5-1.0.5.ebuild 860 SHA256 d8cb4ee5dc2b7228a6960af1baf075585437c4fc630eb8749c4fcbb9ff2b473e SHA512 08f085874b6e2681846ba6abc3a88f8d21e13e009197e3b2955f920f74f8c6a5778d565ca5d8ec8a0ffcda130b4620b3c7b05f068704493f33a583fce366fb8c WHIRLPOOL afee0f3252f99a044bd7c54852f0b6ec976c05d63a3dcf5fc89b019dd7d93e415a5aea0beff8f1d39d3447ec822a9c090a6b2426a4b62da67acb38f1d94029f2
+EBUILD fcitx-qt5-1.0.6.ebuild 818 SHA256 0a296833bba8c1c01fea77e443b3e792d1c92201cf189ea1fbf2b9205769aa7b SHA512 47626df5ea35a0ed011d12589a95aaf71ef0c59f6070efcf310e64c0de8a3ff5fa77e014e6cfac2cad6694ace40a7fcb313de6d51cd92b83b3e44ba8fcfbd824 WHIRLPOOL 1970b80b93ab02f093998af92b1efc4f004b4382f0c102b86f0818b8cb4ea9bb5384c105a951def436429d45e89067c1f71858d6e9739d0896c6b4c39d6858a8
+EBUILD fcitx-qt5-1.1.0.ebuild 816 SHA256 2c8b0cd85dc0f4805fe1e608d15379ef980fdb42f83a31ec17f2a0e5a1972a22 SHA512 d25fb2bfb7706cba12f36a8cd40b420d94c01cfbd5f177b1dee41e8ad3d259fdefe4da1dd0aed40dd8016f9ebf7ec4364812f21678678ad07d8c771bb8e3dcee WHIRLPOOL 4af6e879bef817f5ff376eced3d7b97d32e3bc98ba339ed45600bb5f7597ec5301f9c78bce5dd05c6306ec7c28fcfd615058de4c9163b3bbdc4a44b30a678038
+EBUILD fcitx-qt5-1.1.1.ebuild 830 SHA256 72e83961bc9bd08d19ab4fcc3d19da3e92e3c188057ac71e5e0284eae338b66f SHA512 f9b4973a27a0f56b423571c78fde4b806d15466eb5bdb5ae172e895d883f152ec421642db7bfb1769bc4547196a5cfba8821f8b52d63344dbb16fb75b93cfbfa WHIRLPOOL 0e9d8c1ad865749f23831a37867ebd25c05b75677fff1d7f55a153a048dce80a1a13891304ae4c3f628c9c5994ee393b12d39dbc896132fb39f6fb78e9fa61c5
+EBUILD fcitx-qt5-4.9999.ebuild 829 SHA256 4a3acaba884861ab236a345f22e308af4f53fd7e777d73b91e9cc517ca0cd802 SHA512 ae82b2c5f6c1a035bbb71a545694b3a57e608de862a4b6d133f17fe3f99d9805806c17d99f11f42672fa4ed86ab1a614ca687abd0cc16eff1b7929a5f656aaa9 WHIRLPOOL be3cd46fadc5a2ba5ce54995c6756173c9d95d65894563b84b0485b6282f588c26d481ba27d7c4dff470ccdf015fda12164e6dd3a02568b64e0fd1229f3d6191
+MISC ChangeLog 4384 SHA256 261f8d3d58fa4dbf1d6ab5855c99b16dd16a4debd289a01ec3c7a197fd03eb1e SHA512 fb76c92b2cb205d781b12b3e11b80104fcf4cabd4c38e953f15ed4eb4bd4e659d7fb5a65748fe2a2e9fe512ce73e0b36eda2dc3dd6fe5be8fde94a356426821d WHIRLPOOL 9f93b04594daeaf416b2093b12ae5d39844968e7ef0d46a0645d688ba1e500973f87541c6cb7ee2a3a4535d137ff6eec905bfe088cf2e84c2f6ad1e9c916087f
+MISC ChangeLog-2015 843 SHA256 e89e001966ce223ad3334738870444dca20664da57c0b0d64b11de32fc26f3cb SHA512 714b955d8a859889a2af1d47882c3d06e5a056a8011a11b191c867997c91f90a8fcffc65bcc891b452a34d04feea31d75c8cb16ff9bff837ee6adab3bf648407 WHIRLPOOL 0e9661f71dfaaf03bf5b68167c5f8442112fc0d7f94b6c82f1cdb5ef0eb1e82a5ed81fd44dd859827fe61f83278b157c50cf4cbf9e840da9cc8d8c15bd38916b
+MISC metadata.xml 448 SHA256 51d64c2dd912603ad14ae9e3fc20014911082ebec23f27468f06c2d0a39ef05a SHA512 37fc515507954a58b16c0fc81ddfe1b24ac21db88b7cd858ef14167526ec48ddfaa144ac5653bf9c5fffdc148ecbeb82ae57b807822c8f85a5cf90d3c81bd6a4 WHIRLPOOL f521d77d9953ee344937204f7be001e5eccc201b7fe8b9be6139728367aa64b0665877ee706e9df989576ac6faa64480da0b068dae1fec7066bf431a86ddd6bc
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild
new file mode 100644
index 000000000000..4c3c996c6d6f
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="amd64 ~hppa ~ppc64 x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-ucs4.patch"
+)
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild
new file mode 100644
index 000000000000..7e1852577c1f
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild
new file mode 100644
index 000000000000..8668783c73fe
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="amd64 ~hppa ~ppc64 x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild
new file mode 100644
index 000000000000..18564da597d7
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild
new file mode 100644
index 000000000000..b1b4481aedc5
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS=""
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ dev-qt/qtconcurrent:5
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch b/app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch
new file mode 100644
index 000000000000..28cf78efc9c1
--- /dev/null
+++ b/app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch
@@ -0,0 +1,86 @@
+https://github.com/fcitx/fcitx-qt5/commit/31ecc9f2f9c8eb77082044944bbb6740d35ae7c3
+https://github.com/fcitx/fcitx-qt5/commit/8fc110e6125d85d3c50112bc20a6ed36395b2b21
+
+--- /platforminputcontext/qfcitxplatforminputcontext.cpp
++++ /platforminputcontext/qfcitxplatforminputcontext.cpp
+@@ -254,6 +254,12 @@
+ anchor = var2.toInt();
+ else
+ anchor = cursor;
++
++ // adjust it to real character size
++ QVector<uint> tempUCS4 = text.leftRef(cursor).toUcs4();
++ cursor = tempUCS4.size();
++ tempUCS4 = text.leftRef(anchor).toUcs4();
++ anchor = tempUCS4.size();
+ if (data.surroundingText != text) {
+ data.surroundingText = text;
+ proxy->SetSurroundingText(text, cursor, anchor);
+@@ -388,6 +394,7 @@
+ delete data.proxy;
+ }
+ data.proxy = new FcitxQtInputContextProxy(m_connection->serviceName(), path, *m_connection->connection(), this);
++ data.proxy->setProperty("icData", qVariantFromValue(static_cast<void*>(&data)));
+ connect(data.proxy, SIGNAL(CommitString(QString)), this, SLOT(commitString(QString)));
+ connect(data.proxy, SIGNAL(ForwardKey(uint, uint, int)), this, SLOT(forwardKey(uint, uint, int)));
+ connect(data.proxy, SIGNAL(UpdateFormattedPreedit(FcitxQtFormattedPreeditList,int)), this, SLOT(updateFormattedPreedit(FcitxQtFormattedPreeditList,int)));
+@@ -480,15 +487,56 @@
+ update(Qt::ImCursorRectangle);
+ }
+
+-void QFcitxPlatformInputContext::deleteSurroundingText(int offset, uint nchar)
++void QFcitxPlatformInputContext::deleteSurroundingText(int offset, uint _nchar)
+ {
+ QObject *input = qApp->focusObject();
+ if (!input)
+ return;
+
+ QInputMethodEvent event;
+- event.setCommitString("", offset, nchar);
+- QCoreApplication::sendEvent(input, &event);
++
++ FcitxQtInputContextProxy *proxy = qobject_cast<FcitxQtInputContextProxy*>(sender());
++ if (!proxy) {
++ return;
++ }
++
++ FcitxQtICData *data = static_cast<FcitxQtICData*>(proxy->property("icData").value<void *>());
++ QVector<uint> ucsText = data->surroundingText.toUcs4();
++
++ int cursor = data->surroundingCursor;
++ // make nchar signed so we are safer
++ int nchar = _nchar;
++ // Qt's reconvert semantics is different from gtk's. It doesn't count the current
++ // selection. Discard selection from nchar.
++ if (data->surroundingAnchor < data->surroundingCursor) {
++ nchar -= data->surroundingCursor - data->surroundingAnchor;
++ offset += data->surroundingCursor - data->surroundingAnchor;
++ cursor = data->surroundingAnchor;
++ } else if (data->surroundingAnchor > data->surroundingCursor) {
++ nchar -= data->surroundingAnchor - data->surroundingCursor;
++ cursor = data->surroundingCursor;
++ }
++
++ // validates
++ if (nchar >= 0 && cursor + offset >= 0 && cursor + offset + nchar < ucsText.size()) {
++ // order matters
++ QVector<uint> replacedChars = ucsText.mid(cursor + offset, nchar);
++ nchar = QString::fromUcs4(replacedChars.data(), replacedChars.size()).size();
++
++ int start, len;
++ if (offset >= 0) {
++ start = cursor;
++ len = offset;
++ } else {
++ start = cursor;
++ len = -offset;
++ }
++
++ QVector<uint> prefixedChars = ucsText.mid(start, len);
++ offset = QString::fromUcs4(prefixedChars.data(), prefixedChars.size()).size() * (offset >= 0 ? 1 : -1);
++ event.setCommitString("", offset, nchar);
++ QCoreApplication::sendEvent(input, &event);
++ }
+ }
+
+ void QFcitxPlatformInputContext::forwardKey(uint keyval, uint state, int type)
diff --git a/app-i18n/fcitx-qt5/metadata.xml b/app-i18n/fcitx-qt5/metadata.xml
new file mode 100644
index 000000000000..1a301afceb2d
--- /dev/null
+++ b/app-i18n/fcitx-qt5/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-qt5</remote-id>
+ </upstream>
+</pkgmetadata>