Index: textproc/fcitx-qt5/Makefile =================================================================== --- textproc/fcitx-qt5/Makefile +++ textproc/fcitx-qt5/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= fcitx-qt5 -DISTVERSION= 1.1.1 +DISTVERSION= 1.2.1 CATEGORIES= textproc MAINTAINER= yuri@FreeBSD.org @@ -10,14 +10,19 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS+= libfcitx-config.so:chinese/fcitx \ +LIB_DEPENDS= libfcitx-config.so:chinese/fcitx \ libxkbcommon.so:x11/libxkbcommon USES= compiler:c++11-lib cmake:outsource gettext kde:5 pkgconfig USE_GITHUB= yes GH_ACCOUNT= fcitx USE_KDE= ecm -USE_QT5= core dbus gui qmake widgets buildtools_build +USE_QT5= concurrent core dbus gui qmake widgets buildtools_build USE_LDCONFIG= yes +OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes + +NLS_CMAKE_BOOL= NLS + .include Index: textproc/fcitx-qt5/distinfo =================================================================== --- textproc/fcitx-qt5/distinfo +++ textproc/fcitx-qt5/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1509935297 -SHA256 (fcitx-fcitx-qt5-1.1.1_GH0.tar.gz) = df4e4a3ffdc6beaf9ee7910b650144cfb5d2ad6911fecc111ac4343bfee1a3ce -SIZE (fcitx-fcitx-qt5-1.1.1_GH0.tar.gz) = 92019 +TIMESTAMP = 1511390031 +SHA256 (fcitx-fcitx-qt5-1.2.1_GH0.tar.gz) = 4fdfa31effdd7d09a51241a46ff5c7e2df651a8a07d6d8a38632479ada9cc9a2 +SIZE (fcitx-fcitx-qt5-1.2.1_GH0.tar.gz) = 208574 Index: textproc/fcitx-qt5/files/patch-CMakeLists.txt =================================================================== --- /dev/null +++ textproc/fcitx-qt5/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +--- CMakeLists.txt.orig 2017-11-22 23:37:00 UTC ++++ CMakeLists.txt +@@ -44,7 +44,9 @@ add_subdirectory(dbusaddons) + add_subdirectory(widgetsaddons) + add_subdirectory(guiwrapper) + add_subdirectory(quickphrase-editor) +-add_subdirectory(po) ++if (NLS) ++ add_subdirectory(po) ++endif(NLS) + endif() + + add_subdirectory(platforminputcontext) Index: textproc/fcitx-qt5/files/patch-widgetsaddons_CMakeLists.txt =================================================================== --- textproc/fcitx-qt5/files/patch-widgetsaddons_CMakeLists.txt +++ textproc/fcitx-qt5/files/patch-widgetsaddons_CMakeLists.txt @@ -1,4 +1,4 @@ ---- widgetsaddons/CMakeLists.txt.orig 2016-07-26 08:42:38 UTC +--- widgetsaddons/CMakeLists.txt.orig 2017-11-22 19:30:46 UTC +++ widgetsaddons/CMakeLists.txt @@ -59,7 +59,7 @@ set_target_properties(FcitxQt5WidgetsAdd AUTOMOC TRUE Index: textproc/fcitx-qt5/pkg-plist =================================================================== --- textproc/fcitx-qt5/pkg-plist +++ textproc/fcitx-qt5/pkg-plist @@ -15,13 +15,14 @@ include/FcitxQt5/fcitxqtwidgetsaddons_version.h lib/cmake/FcitxQt5DBusAddons/FcitxQt5DBusAddonsConfig.cmake lib/cmake/FcitxQt5DBusAddons/FcitxQt5DBusAddonsConfigVersion.cmake -lib/cmake/FcitxQt5DBusAddons/FcitxQt5DBusAddonsTargets-release.cmake +lib/cmake/FcitxQt5DBusAddons/FcitxQt5DBusAddonsTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/FcitxQt5DBusAddons/FcitxQt5DBusAddonsTargets.cmake lib/cmake/FcitxQt5WidgetsAddons/FcitxQt5WidgetsAddonsConfig.cmake lib/cmake/FcitxQt5WidgetsAddons/FcitxQt5WidgetsAddonsConfigVersion.cmake -lib/cmake/FcitxQt5WidgetsAddons/FcitxQt5WidgetsAddonsTargets-release.cmake +lib/cmake/FcitxQt5WidgetsAddons/FcitxQt5WidgetsAddonsTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/FcitxQt5WidgetsAddons/FcitxQt5WidgetsAddonsTargets.cmake lib/fcitx/libexec/fcitx-qt5-gui-wrapper +lib/fcitx/qt/libfcitx-quickphrase-editor5.so lib/libFcitxQt5DBusAddons.so lib/libFcitxQt5DBusAddons.so.1 lib/libFcitxQt5DBusAddons.so.1.0 @@ -29,3 +30,13 @@ lib/libFcitxQt5WidgetsAddons.so.1 lib/libFcitxQt5WidgetsAddons.so.1.0 %%QT_PLUGINDIR%%/platforminputcontexts/libfcitxplatforminputcontextplugin.so +%%NLS%%share/locale/ca/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/da/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/de/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/es/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/fr/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/ja/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/ko/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/ru/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/fcitx-qt5.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/fcitx-qt5.mo