diff --git a/app-i18n/fcitx/Manifest b/app-i18n/fcitx/Manifest new file mode 100644 index 0000000000..b9b0f54b6d --- /dev/null +++ b/app-i18n/fcitx/Manifest @@ -0,0 +1 @@ +DIST en_dict-20121020.tar.gz 630491 BLAKE2B 2df897b1c9fb3a2ce186ee590e5f3ccbc7930f047218bf0fefa317f74b3287fc0be9c393d3310fe07208379118ec4c46608a1c703ef37b3aee65b2d790cb7f0d SHA512 8418bd02492bfd786c0fab93be4400ef027ec8e9fac02220cc1f653f5eb67f54573a6a84a15baba19bb34ab892745c87df16499d6304ea75009131e2ab3b97f2 diff --git a/app-i18n/fcitx/fcitx-9999.ebuild b/app-i18n/fcitx/fcitx-9999.ebuild index 1f14a26e73..d35f159193 100644 --- a/app-i18n/fcitx/fcitx-9999.ebuild +++ b/app-i18n/fcitx/fcitx-9999.ebuild @@ -11,7 +11,10 @@ DESCRIPTION="Fcitx 5 is a generic input method framework" HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5" EGIT_REPO_URI="https://github.com/fcitx/fcitx5.git" -LICENSE="LGPL-2+ Unicode-DFS-2016" +SPELL_EN_DICT_VER="20121020" +SRC_URI="https://download.fcitx-im.org/data/en_dict-${SPELL_EN_DICT_VER}.tar.gz" + +LICENSE="LGPL-2.1+ Unicode-DFS-2016" SLOT="5" KEYWORDS="" IUSE="+autostart doc +emoji +enchant +keyboard presage +server systemd test wayland +X" @@ -26,6 +29,7 @@ RESTRICT="!test? ( test )" RDEPEND=" !app-i18n/fcitx:4 dev-libs/libfmt + gnome-base/librsvg:2 sys-devel/gettext virtual/libintl x11-libs/cairo[X?] @@ -40,15 +44,14 @@ RDEPEND=" keyboard? ( app-text/iso-codes dev-libs/expat - dev-libs/json-c:= x11-misc/xkeyboard-config x11-libs/libxkbcommon[X?,wayland?] ) systemd? ( - sys-apps/systemd + sys-apps/systemd:= ) !systemd? ( - dev-libs/libuv + dev-libs/libuv:= sys-apps/dbus ) wayland? ( @@ -61,18 +64,32 @@ RDEPEND=" dev-libs/glib:2 >=x11-libs/xcb-imdkit-1.0.3:5 x11-libs/libX11 + x11-libs/libxcb:= x11-libs/libxkbfile x11-libs/xcb-util x11-libs/xcb-util-keysyms x11-libs/xcb-util-wm ) " -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + keyboard? ( dev-cpp/nlohmann_json ) + wayland? ( dev-libs/plasma-wayland-protocols ) +" BDEPEND=" virtual/pkgconfig kde-frameworks/extra-cmake-modules:0 " +src_unpack() { + git-r3_src_unpack + cp "${DISTDIR}/en_dict-${SPELL_EN_DICT_VER}.tar.gz" "${S}/src/modules/spell/" || die +} + +src_prepare() { + sed -e '/cmake_minimum_required/s/3\.13/3.16/' -i CMakeLists.txt || die + cmake_src_prepare +} + src_configure() { if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then # std::osyncstream used in fcitx-utils/log.cpp is marked as experimental.