copy from fcitx-4.2.7-r1.ebuild