net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / app-i18n / sogoupinyin / sogoupinyin-2.4.0.3469.ebuild
blobb02c131cd741fc0c7851c40f99b8af3db007be0d
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 DESCRIPTION="Sogou Pinyin input method."
7 HOMEPAGE="http://pinyin.sogou.com/linux/"
8 SRC_URI="amd64? ( http://pinyin.sogou.com/linux/download.php?f=linux&bit=64 -> ${PN}_${PV}_amd64.deb )
9 x86? ( http://pinyin.sogou.com/linux/download.php?f=linux&bit=32 -> ${PN}_${PV}_i386.deb )
12 LICENSE="Fcitx-Sogou"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE=""
16 RESTRICT="mirror"
18 RDEPEND=">=app-i18n/fcitx-4.2.8[X]
19 !app-i18n/fcitx-qimpanel
20 net-dns/libidn
21 app-i18n/opencc
22 net-libs/libssh2
23 media-video/rtmpdump
24 dev-qt/qtdeclarative:5
25 dev-qt/qtgui:5
26 x11-apps/xprop
27 sys-apps/lsb-release
28 !app-i18n/fcitx-sogoupinyin"
29 DEPEND="${RDEPEND}"
30 S=${WORKDIR}
32 QA_PRESTRIPPED="
33 /usr/bin/sogou-sys-notify
34 /usr/bin/sogou-qimpanel-watchdog
35 /usr/bin/sogou-qimpanel
36 /usr/lib/fcitx/fcitx-sogoupinyin.so
37 /usr/lib/fcitx/fcitx-sogoucloudpinyin.so
38 /usr/lib/fcitx/fcitx-punc-ng.so
39 /usr/lib/fcitx/fcitx-fullwidth-char-enhance.so
40 /usr/lib/fcitx/fcitx-autoeng-ng.so
43 src_compile(){
44 tar xf "${WORKDIR}/data.tar.xz"
45 rm control.tar.gz data.tar.xz debian-binary
46 # rm -rf usr/share/fcitx-qimpanel
47 rm -rf usr/share/keyrings
48 rm -rf etc/X11
51 src_install(){
52 dodir /usr/lib/fcitx
53 insinto /usr/lib/fcitx
54 insopts -m0755
55 doins "${S}"/usr/lib/*-linux-gnu/fcitx/*
56 dodir /usr/share/mime-info
57 insinto /usr/share/mime-info
58 install -D "${S}/usr/lib/mime/packages/fcitx-ui-sogou-qimpanel" fcitx-ui-sogou-qimpanel.keys
59 dodir /usr/share
60 insinto /usr/share
61 doins -r "${S}"/usr/share/*
63 dodir /usr/bin
64 insinto /usr/bin
65 doins "${S}"/usr/bin/*
66 dodir /etc/xdg/autostart
67 insinto /etc/xdg/autostart
68 doins "${S}"/etc/xdg/autostart/*
70 # dodir /usr/lib
71 # insinto /usr/lib
72 # dosym libcurl.so.4 /usr/lib/libcurl-gnutls.so.4
73 # dosym libgnutls.so /usr/lib/libgnutls.so.26
74 # dosym librtmp.so /usr/lib/librtmp.so.0
77 pkg_postinst(){
78 einfo
79 einfo "After install the fcitx-sogoupinyin, a restart of fcitx is"
80 einfo "expected."
81 einfo
82 einfo "if you see 请启用sogou-qimpanel面板程序,以便更好的享受搜狗输入法!"
83 einfo "relogin to your desktop, or just start sogou-qimpanel"