Date: Mon, 15 Jan 2024 13:57:13 GMT From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: d8be971f1a4f - main - chinese/fctx: Get rid of MANPREFIX and install mans to share/man. Message-ID: <202401151357.40FDvDaw059468@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=d8be971f1a4f5c304e357e121d918f12b55f9f81 commit d8be971f1a4f5c304e357e121d918f12b55f9f81 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2024-01-13 11:53:48 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2024-01-15 13:56:56 +0000 chinese/fctx: Get rid of MANPREFIX and install mans to share/man. To achieve this, add a temporary hacky knob KDE_MAN_PREFIX to allow ports to override the man installation dir. Once Uses/kde.mk migrates to share/man, this knob will be removed. Approved by: tcberner --- Mk/Uses/kde.mk | 6 ++++-- chinese/fcitx/Makefile | 2 +- chinese/fcitx/files/patch-CMakeLists.txt | 9 ++++----- chinese/fcitx/pkg-plist | 18 +++++++++--------- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Mk/Uses/kde.mk b/Mk/Uses/kde.mk index 47bc634ee6df..b8c4038762ca 100644 --- a/Mk/Uses/kde.mk +++ b/Mk/Uses/kde.mk @@ -249,8 +249,10 @@ CMAKE_ARGS+= -DCMAKE_MODULE_PATH="${LOCALBASE};${KDE_PREFIX}" \ -DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=true # Set man-page installation prefix. -CMAKE_ARGS+= -DKDE_INSTALL_MANDIR:PATH="${KDE_PREFIX}/man" \ - -DMAN_INSTALL_DIR:PATH="${KDE_PREFIX}/man" +# TODO: Remove the KDE_MAN_PREFIX knob once all kde ports are switched to use share/man +KDE_MAN_PREFIX?= ${KDE_PREFIX}/man +CMAKE_ARGS+= -DKDE_INSTALL_MANDIR:PATH="${KDE_MAN_PREFIX}" \ + -DMAN_INSTALL_DIR:PATH="${KDE_MAN_PREFIX}" # Disable autotests unless TEST_TARGET is defined. . if !defined(TEST_TARGET) diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile index ba6a787fba64..6c2bf55dbb81 100644 --- a/chinese/fcitx/Makefile +++ b/chinese/fcitx/Makefile @@ -64,13 +64,13 @@ TPUNC_DESC= Use traditional quotation marks .include <bsd.port.options.mk> +KDE_MAN_PREFIX= ${PREFIX}/share/man CMAKE_ARGS+= -DENABLE_XDGAUTOSTART=OFF -DFORCE_ENCHANT=ON \ -DLIBICONV_LIBC_HAS_ICONV_OPEN=OFF \ -DDATADIR=${DATADIR} \ -DDOCSDIR=${DOCSDIR} \ -DGOBJECT_INTROSPECTION_GIRDIR=${PREFIX}/share/gir-1.0 \ -DGOBJECT_INTROSPECTION_TYPELIBDIR=${PREFIX}/lib/girepository-1.0 \ - -DMANPREFIX=${MANPREFIX} \ -DPREFIX=${PREFIX} \ -DENABLE_QT=OFF -DENABLE_QT_IM_MODULE=OFF -DENABLE_QT_GUI=OFF diff --git a/chinese/fcitx/files/patch-CMakeLists.txt b/chinese/fcitx/files/patch-CMakeLists.txt index 2a0d041cbd1f..b84facf6478a 100644 --- a/chinese/fcitx/files/patch-CMakeLists.txt +++ b/chinese/fcitx/files/patch-CMakeLists.txt @@ -1,17 +1,16 @@ ---- CMakeLists.txt.orig 2015-12-12 08:02:09 UTC +--- CMakeLists.txt.orig 2020-08-01 01:40:38 UTC +++ CMakeLists.txt -@@ -206,16 +206,21 @@ if (NOT DEFINED SYSCONFDIR) +@@ -200,16 +200,21 @@ endif() set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc" CACHE PATH "sys config directory [default=PREFIX/etc/]") endif() -set(includedir "${CMAKE_INSTALL_PREFIX}/include") -set(libdir ${LIB_INSTALL_DIR}) -set(pkgconfdir ${LIBDATA_INSTALL_DIR}/pkgconfig) --set(mandir ${MAN_INSTALL_DIR}) +set(includedir "${PREFIX}/include") +set(libdir ${PREFIX}/lib) +set(pkgconfdir ${PREFIX}/libdata/pkgconfig) -+set(mandir ${MANPREFIX}/man) + set(mandir ${MAN_INSTALL_DIR}) set(addondir ${libdir}/${package} ) -set(pkgdatadir ${prefix}/share/${package}) +set(addondestdir "\${PREFIX}/lib/${package}" ) @@ -28,7 +27,7 @@ list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${LIB_INSTALL_DIR}" _isSystemPlatformLibDir) list(FIND CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "${LIB_INSTALL_DIR}" _isSystemCxxLibDir) -@@ -228,9 +233,13 @@ endif("${_isSystemPlatformLibDir}" STREQ +@@ -222,9 +227,13 @@ set(FCITX4_ADDON_INSTALL_DIR ${addondir}) # For FcitxMacro set(FCITX4_ADDON_INSTALL_DIR ${addondir}) diff --git a/chinese/fcitx/pkg-plist b/chinese/fcitx/pkg-plist index 62e69814a2ba..0edd8d6e685a 100644 --- a/chinese/fcitx/pkg-plist +++ b/chinese/fcitx/pkg-plist @@ -126,15 +126,15 @@ libdata/pkgconfig/fcitx-config.pc libdata/pkgconfig/fcitx-gclient.pc libdata/pkgconfig/fcitx-utils.pc libdata/pkgconfig/fcitx.pc -man/man1/createPYMB.1.gz -man/man1/fcitx-remote.1.gz -man/man1/fcitx.1.gz -man/man1/mb2org.1.gz -man/man1/mb2txt.1.gz -man/man1/readPYBase.1.gz -man/man1/readPYMB.1.gz -man/man1/scel2org.1.gz -man/man1/txt2mb.1.gz +share/man/man1/createPYMB.1.gz +share/man/man1/fcitx-remote.1.gz +share/man/man1/fcitx.1.gz +share/man/man1/mb2org.1.gz +share/man/man1/mb2txt.1.gz +share/man/man1/readPYBase.1.gz +share/man/man1/readPYMB.1.gz +share/man/man1/scel2org.1.gz +share/man/man1/txt2mb.1.gz share/applications/fcitx-configtool.desktop share/applications/fcitx-skin-installer.desktop share/applications/fcitx.desktop
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401151357.40FDvDaw059468>