aboutsummaryrefslogtreecommitdiff
path: root/textproc/fcitx5-configtool
diff options
context:
space:
mode:
authorAdriaan de Groot <adridg@FreeBSD.org>2021-03-18 23:45:34 +0000
committerAdriaan de Groot <adridg@FreeBSD.org>2021-03-18 23:45:34 +0000
commitf626afa84f93f3cf4250e4d585ae016566751a83 (patch)
tree067b4c7c06db425929e545ca52277af11bf89783 /textproc/fcitx5-configtool
parentba6f0c0540eca7a9b3d16736121f4366e7f7084c (diff)
downloadports-f626afa84f93f3cf4250e4d585ae016566751a83.tar.gz
ports-f626afa84f93f3cf4250e4d585ae016566751a83.zip
Fix textproc/fcitx5-configtool ahead of KF5 5.80
I'm not sure this is really KF5 related: CMake has gotten more conservative with #cmakedefine recently, so it might have been missed-fallout in a CMake update previously. No change to the port except replacing #cmakedefine with the correct #define (the CMake variant is for variables with boolean type at the CMake level)
Notes
Notes: svn path=/head/; revision=568765
Diffstat (limited to 'textproc/fcitx5-configtool')
-rw-r--r--textproc/fcitx5-configtool/Makefile4
-rw-r--r--textproc/fcitx5-configtool/files/patch-config.h.in19
2 files changed, 22 insertions, 1 deletions
diff --git a/textproc/fcitx5-configtool/Makefile b/textproc/fcitx5-configtool/Makefile
index 7825364ce80a..9ce77a424918 100644
--- a/textproc/fcitx5-configtool/Makefile
+++ b/textproc/fcitx5-configtool/Makefile
@@ -3,6 +3,7 @@
PORTNAME= fcitx5-configtool
DISTVERSION= 5.0.2
+PORTREVISION= 1
CATEGORIES= textproc x11
MAINTAINER= khng300@gmail.com
@@ -28,7 +29,8 @@ USE_GITHUB= yes
GH_ACCOUNT= fcitx
USE_KDE= ecm coreaddons kdeclarative i18n itemviews kirigami2 package widgetsaddons
-USE_QT= concurrent core gui quickcontrols2 widgets x11extras buildtools_build qmake_build
+USE_QT= concurrent core dbus declarative gui quickcontrols2 widgets x11extras \
+ buildtools_build qmake_build
USE_XORG= x11 xkbfile
USE_LDCONFIG= yes
diff --git a/textproc/fcitx5-configtool/files/patch-config.h.in b/textproc/fcitx5-configtool/files/patch-config.h.in
new file mode 100644
index 000000000000..478f1f17adf7
--- /dev/null
+++ b/textproc/fcitx5-configtool/files/patch-config.h.in
@@ -0,0 +1,19 @@
+--- config.h.in.orig 2021-03-18 23:30:34 UTC
++++ config.h.in
+@@ -6,11 +6,11 @@
+ #ifndef _KCM_FCITX5_CONFIG_H_
+ #define _KCM_FCITX5_CONFIG_H_
+
+-#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@"
+-#cmakedefine XKEYBOARDCONFIG_XKBBASE "@XKEYBOARDCONFIG_XKBBASE@"
+-#cmakedefine ISOCODES_ISO639_2_JSON "@ISOCODES_ISO639_2_JSON@"
+-#cmakedefine ISOCODES_ISO639_3_JSON "@ISOCODES_ISO639_3_JSON@"
+-#cmakedefine ISOCODES_ISO639_5_JSON "@ISOCODES_ISO639_5_JSON@"
++#define PROJECT_VERSION "@PROJECT_VERSION@"
++#define XKEYBOARDCONFIG_XKBBASE "@XKEYBOARDCONFIG_XKBBASE@"
++#define ISOCODES_ISO639_2_JSON "@ISOCODES_ISO639_2_JSON@"
++#define ISOCODES_ISO639_3_JSON "@ISOCODES_ISO639_3_JSON@"
++#define ISOCODES_ISO639_5_JSON "@ISOCODES_ISO639_5_JSON@"
+
+ #define FCITX5_QT5_GUI_WRAPPER "@FCITX5_QT5_GUI_WRAPPER@"
+