Use ${LOCALBASE} instead /usr/local

Diff from SASANO Takayoshi, thanks
This commit is contained in:
rsadowski 2022-10-26 18:46:02 +00:00
parent 88c018efd4
commit 6c76384efd
2 changed files with 5 additions and 2 deletions

View File

@ -36,6 +36,9 @@ LIB_DEPENDS = inputmethods/fcitx \
inputmethods/fcitx-qt \
inputmethods/libkkc
pre-configure:
${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
# ninja: error: unknown target 'test'
NO_TEST = Yes

View File

@ -1,11 +1,11 @@
--- CMakeLists.txt.orig Thu Mar 10 03:25:57 2022
+++ CMakeLists.txt Sat Oct 22 21:30:34 2022
+++ CMakeLists.txt Sun Oct 23 17:31:01 2022
@@ -25,7 +25,7 @@
endif ()
if (NOT SKK_DEFAULT_PATH)
- set(SKK_DEFAULT_PATH "/usr/share/skk/")
+ set(SKK_DEFAULT_PATH "/usr/local/share/skk/")
+ set(SKK_DEFAULT_PATH "${LOCALBASE}/share/skk/")
endif ()
include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake")