pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/fcitx5 fcitx5: handle xdg autostart .deskt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0730bc99a7f
branches:  trunk
changeset: 375810:d0730bc99a7f
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Mar 27 13:17:34 2022 +0000

description:
fcitx5: handle xdg autostart .desktop file correctly. Bump.

diffstat:

 inputmethod/fcitx5/Makefile |  15 +++++++++++++--
 inputmethod/fcitx5/PLIST    |   4 ++--
 2 files changed, 15 insertions(+), 4 deletions(-)

diffs (60 lines):

diff -r 696945ed3e04 -r d0730bc99a7f inputmethod/fcitx5/Makefile
--- a/inputmethod/fcitx5/Makefile       Sun Mar 27 12:45:04 2022 +0000
+++ b/inputmethod/fcitx5/Makefile       Sun Mar 27 13:17:34 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2021/12/08 16:05:12 adam Exp $
+# $NetBSD: Makefile,v 1.5 2022/03/27 13:17:34 tnn Exp $
 
 DISTNAME=      fcitx5-5.0.5
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    inputmethod
 MASTER_SITES=  https://download.fcitx-im.org/fcitx5/fcitx5/
 EXTRACT_SUFX=  .tar.xz
@@ -47,6 +47,16 @@
 PKGCONFIG_OVERRIDE+=   src/lib/fcitx/Fcitx5Core.pc.in
 PKGCONFIG_OVERRIDE+=   src/modules/Fcitx5Module.pc.in
 
+SUBST_CLASSES+=                xdg
+SUBST_STAGE.xdg=       pre-configure
+SUBST_MESSAGE.xdg=     Fix desktop autostart file installation
+SUBST_FILES.xdg=       data/CMakeLists.txt
+SUBST_SED.xdg=         -e 's,{CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart,{CMAKE_INSTALL_PREFIX}/share/examples/fcitx5,'
+
+MAKE_DIRS+=    ${PKG_SYSCONFDIR}/xdg/autostart
+CONF_FILES+=   ${PREFIX}/share/examples/fcitx5/org.fcitx.Fcitx5.desktop        \
+               ${PKG_SYSCONFDIR}/xdg/autostart/org.fcitx.Fcitx5.desktop
+
 pre-configure:
        ${LN} -s ${DISTDIR}/en_dict-20121020.tar.gz \
                ${WRKSRC}/src/modules/spell/dict
@@ -61,6 +71,7 @@
 .include "../../graphics/gdk-pixbuf2/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../sysutils/dbus/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../textproc/cldr-emoji-annotation/buildlink3.mk"
 .include "../../textproc/enchant2/buildlink3.mk"
 .include "../../textproc/expat/buildlink3.mk"
diff -r 696945ed3e04 -r d0730bc99a7f inputmethod/fcitx5/PLIST
--- a/inputmethod/fcitx5/PLIST  Sun Mar 27 12:45:04 2022 +0000
+++ b/inputmethod/fcitx5/PLIST  Sun Mar 27 13:17:34 2022 +0000
@@ -1,9 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2021/02/17 15:16:25 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/03/27 13:17:34 tnn Exp $
 bin/fcitx5
 bin/fcitx5-configtool
 bin/fcitx5-diagnose
 bin/fcitx5-remote
-etc/xdg/autostart/org.fcitx.Fcitx5.desktop
 include/Fcitx5/Config/fcitx-config/configuration.h
 include/Fcitx5/Config/fcitx-config/dbushelper.h
 include/Fcitx5/Config/fcitx-config/enum.h
@@ -169,6 +168,7 @@
 share/applications/fcitx5-configtool.desktop
 share/applications/org.fcitx.Fcitx5.desktop
 share/dbus-1/services/org.fcitx.Fcitx5.service
+share/examples/fcitx5/org.fcitx.Fcitx5.desktop
 share/fcitx5/addon/classicui.conf
 share/fcitx5/addon/clipboard.conf
 share/fcitx5/addon/dbus.conf



Home | Main Index | Thread Index | Old Index