summaryrefslogtreecommitdiff
path: root/app-i18n/ibus-sunpinyin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-20 19:52:06 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-20 19:52:06 +0000
commitd4d7098dcb2f9dd257109bbcb55fd40beda1b78d (patch)
tree48d3c6b3c45f18db0f90650f822ea19a10284f61 /app-i18n/ibus-sunpinyin
parent4161fa7d1be6dac96e36f8ed343f234a8ef3a74f (diff)
gentoo auto-resync : 20:12:2022 - 19:52:06
Diffstat (limited to 'app-i18n/ibus-sunpinyin')
-rw-r--r--app-i18n/ibus-sunpinyin/Manifest4
-rw-r--r--app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.4_pre20200306162733-python-3.patch85
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20200306162733.ebuild89
-rw-r--r--app-i18n/ibus-sunpinyin/metadata.xml14
4 files changed, 0 insertions, 192 deletions
diff --git a/app-i18n/ibus-sunpinyin/Manifest b/app-i18n/ibus-sunpinyin/Manifest
deleted file mode 100644
index 94ac8fede0b6..000000000000
--- a/app-i18n/ibus-sunpinyin/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX ibus-sunpinyin-2.0.4_pre20200306162733-python-3.patch 4693 BLAKE2B 1cc396678b14eb1d42909b1448c7f9f53c370fa3a9c061574fcb13149b8f791e988cb4f6a5f4018eeb248e0cb49dcad6332e23d8207f42bf142462d81e689c43 SHA512 c32d569dfc42947afece3650409bbbe1c56bddd73e43a0c609d2fc989711cf80a3cf728c5ce7de9dc446bcb5f37d44f1ea6965ddc630a7af2bf01305802567b1
-DIST sunpinyin-2.0.4_pre20200306162733.tar.gz 547519 BLAKE2B 6e0e4457217d7b85221cab15173f588a5c7c039208a8f6cd48ed5fb21c5b5eae2f4616d6fddbf6eff8a006193097de26c866d5385d4602f41059ee8d7e52a2d5 SHA512 e8cf73aeca8dcbc7dd6f51f034a9a0363201bc14a814800e071c987933935b0e8039aa84178a6bd1cba1c7dee4b25b2d5546e78ea683e68e8981afea48fdab33
-EBUILD ibus-sunpinyin-2.0.4_pre20200306162733.ebuild 2161 BLAKE2B 0aa5bf0da7d17c2b15b75dee6d87b8eb430c502ab45088d602a623859c1012407e290ec44dbe32b826fbb2624d6926195842a8b16839a0710b5089426cfd9e3d SHA512 28375c8cc311379a9eb49d5f3a4eb295b93ef5ee8a8ef060d32e61236dd60bb0f775607bf6148c875335a899609589320f8291c8fa2c8209d367bf280d80e5ad
-MISC metadata.xml 421 BLAKE2B 3b413555276753d7d056c926cc5aa5d22dc5f1350fa7f87b9a4b22390e26e0373f5ffc14830b9abca9d048f405955f565e1a6487c7f33ae2c47a6c22e9f48867 SHA512 1786c309e3e4f974a57f49d8e10f02e2dccb5101b9d27d4933c30077c78a067f3c6f3a9e74f83a051a2b0d802b46f482a30ecb1aad7a0bf08b5c73897c5bfb6d
diff --git a/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.4_pre20200306162733-python-3.patch b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.4_pre20200306162733-python-3.patch
deleted file mode 100644
index 09bc30d44cfb..000000000000
--- a/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.4_pre20200306162733-python-3.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-https://github.com/sunpinyin/sunpinyin/issues/111
-
---- a/wrapper/ibus/setup/main.py
-+++ b/wrapper/ibus/setup/main.py
-@@ -63,7 +63,7 @@
- class Logger:
- @staticmethod
- def pr(message):
-- print >> sys.stderr, message
-+ print(message, file=sys.stderr)
-
-
- class Option(object):
-@@ -73,10 +73,10 @@
- """
- config = ibus.Bus().get_config()
- __wrappers = {
-- type(True): glib.Variant.new_boolean,
-- type(1): glib.Variant.new_int32,
-- type('str'): glib.Variant.new_string,
-- type([]): glib.Variant.new_strv,
-+ bool: glib.Variant.new_boolean,
-+ int: glib.Variant.new_int32,
-+ str: glib.Variant.new_string,
-+ list: glib.Variant.new_strv,
- }
-
- def __init__(self, name, default):
-@@ -258,7 +258,7 @@
- def read_config(self):
- if not self.saved_pairs:
- self.saved_pairs = self.read()
-- keys = set([pair.split(':')[0] for pair in self.saved_pairs])
-+ keys = {pair.split(':')[0] for pair in self.saved_pairs}
- for opt in self.options:
- opt.is_enabled = (opt.key() in keys)
- # throw away unknown pair
-@@ -445,28 +445,28 @@
- # TODO: the UI should looks like a virtual keyboard,
- # user are allowed to choose the mappings to all punctuation keys.
- def __init__(self):
-- mappings = [MappingInfo('togglebutton1', [('`',None), ('~',u'~')]),
-+ mappings = [MappingInfo('togglebutton1', [('`', None), ('~', '~')]),
- MappingInfo('togglebutton2', []),
-- MappingInfo('togglebutton3', [('2',None), ('@',u'@')]),
-- MappingInfo('togglebutton4', [('3',None), ('#',u'#')]),
-- MappingInfo('togglebutton5', [('4',None), ('$',u'¥' )]),
-- MappingInfo('togglebutton6', [('5',None), ('%',u'%')]),
-- MappingInfo('togglebutton7', [('6',None), ('^',u'…')]),
-- MappingInfo('togglebutton8', [('7',None), ('&',u'&')]),
-- MappingInfo('togglebutton9', [('8',None), ('*',u'*')]),
-- MappingInfo('togglebutton10', [('9',None), ('*',u'(')]),
-- MappingInfo('togglebutton11', [('0',None), ('*',u')')]),
-- MappingInfo('togglebutton12', [('-',u'-'), ('_',u'——')]),
-- MappingInfo('togglebutton13', [('=',u'='), ('+',u'+')]),
-- MappingInfo('togglebutton14', [('\\',None), ('|',u'‖')]),
-- MappingInfo('togglebutton27', [('[',u'〔'), ('{',u'{')]),
-- MappingInfo('togglebutton28', [(']',u'〕'), ('}',u'}')]),
-+ MappingInfo('togglebutton3', [('2', None), ('@', '@')]),
-+ MappingInfo('togglebutton4', [('3', None), ('#', '#')]),
-+ MappingInfo('togglebutton5', [('4', None), ('$', '¥' )]),
-+ MappingInfo('togglebutton6', [('5', None), ('%', '%')]),
-+ MappingInfo('togglebutton7', [('6', None), ('^', '…')]),
-+ MappingInfo('togglebutton8', [('7', None), ('&', '&')]),
-+ MappingInfo('togglebutton9', [('8', None), ('*', '*')]),
-+ MappingInfo('togglebutton10', [('9', None), ('*', '(')]),
-+ MappingInfo('togglebutton11', [('0', None), ('*', ')')]),
-+ MappingInfo('togglebutton12', [('-', '-'), ('_', '——')]),
-+ MappingInfo('togglebutton13', [('=', '='), ('+', '+')]),
-+ MappingInfo('togglebutton14', [('\\', None), ('|', '‖')]),
-+ MappingInfo('togglebutton27', [('[', '〔'), ('{', '{')]),
-+ MappingInfo('togglebutton28', [(']', '〕'), ('}', '}')]),
- MappingInfo('togglebutton39', []),
- MappingInfo('togglebutton40', []),
-- MappingInfo('togglebutton50', [(',',None), ('<',u'〈')]),
-- MappingInfo('togglebutton51', [('.',u'·'), ('>',u'〉')]),
-- MappingInfo('togglebutton52', [('/',u'/'), ('?',None)])]
-- #'\'',(u'‘',u'’'),
-+ MappingInfo('togglebutton50', [(',', None), ('<', '〈')]),
-+ MappingInfo('togglebutton51', [('.', '·'), ('>', '〉')]),
-+ MappingInfo('togglebutton52', [('/', '/'), ('?', None)])]
-+ #'\'', ('‘', '’'),
- MultiCheckDialog.__init__(self, ui_name="punctmapping",
- config_name="General/PunctMapping/Mappings",
- mappings=mappings,
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20200306162733.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20200306162733.ebuild
deleted file mode 100644
index 3a4dfec5de4c..000000000000
--- a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20200306162733.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 2009-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-PYTHON_COMPAT=( python3_{8..9} )
-
-inherit python-single-r1 scons-utils toolchain-funcs
-
-MY_PN="sunpinyin"
-MY_P="${MY_PN}-${PV}"
-
-if [[ "${PV}" == "9999" ]]; then
- inherit git-r3
-
- EGIT_REPO_URI="https://github.com/sunpinyin/sunpinyin"
-elif [[ "${PV}" == *_pre* ]]; then
- SUNPINYIN_GIT_REVISION="f39c195db08661e894017507842991a1ef70bedf"
-fi
-
-DESCRIPTION="Chinese SunPinyin engine for IBus"
-HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
-if [[ "${PV}" == "9999" ]]; then
- SRC_URI=""
-elif [[ "${PV}" == *_pre* ]]; then
- SRC_URI="https://github.com/sunpinyin/${MY_PN}/archive/${SUNPINYIN_GIT_REVISION}.tar.gz -> ${MY_P}.tar.gz"
-else
- SRC_URI="https://github.com/sunpinyin/${MY_PN}/archive/v${PV/_/-}.tar.gz -> ${MY_P}.tar.gz"
-fi
-
-LICENSE="|| ( CDDL LGPL-2.1 )"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+gui"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-BDEPEND="sys-devel/gettext
- virtual/pkgconfig"
-DEPEND="app-i18n/ibus
- ~app-i18n/sunpinyin-${PV}
- dev-libs/glib:2
- virtual/libintl"
-RDEPEND="${DEPEND}
- app-i18n/sunpinyin-data
- gui? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep '
- app-i18n/ibus[introspection,python,${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- ')
- x11-libs/gtk+:3[introspection]
- )"
-
-if [[ "${PV}" == *_pre* ]]; then
- S="${WORKDIR}/${MY_PN}-${SUNPINYIN_GIT_REVISION}"
-elif [[ "${PV}" != "9999" ]]; then
- S="${WORKDIR}/${MY_PN}-${PV/_/-}"
-fi
-
-PATCHES=(
- "${FILESDIR}/${PN}-2.0.4_pre20200306162733-python-3.patch"
-)
-
-src_prepare() {
- default
- sed -e "/^exec python /s/python/${EPYTHON}/" -i wrapper/ibus/setup/ibus-setup-sunpinyin.in || die
-
- if ! use gui; then
- sed \
- -e "s:'setup/ibus-setup-sunpinyin'::" \
- -e "/env\.Alias('install-libexec'/s:, setup_target::" \
- -i wrapper/ibus/SConstruct || die
- fi
-}
-
-src_configure() {
- tc-export CXX
-}
-
-src_compile() {
- escons -C wrapper/ibus \
- --prefix="${EPREFIX}/usr" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --libexecdir="${EPREFIX}/usr/libexec" \
- --datadir="${EPREFIX}/usr/share"
-}
-
-src_install() {
- escons -C wrapper/ibus --install-sandbox="${D}" install
-}
diff --git a/app-i18n/ibus-sunpinyin/metadata.xml b/app-i18n/ibus-sunpinyin/metadata.xml
deleted file mode 100644
index d07fba105be9..000000000000
--- a/app-i18n/ibus-sunpinyin/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>cjk@gentoo.org</email>
- <name>Cjk</name>
- </maintainer>
- <use>
- <flag name="gui">Install graphical user interface tool (ibus-setup-sunpinyin)</flag>
- </use>
- <upstream>
- <remote-id type="github">sunpinyin/sunpinyin</remote-id>
- </upstream>
-</pkgmetadata>