[BACK]Return to patch-lxqt-config-input_keyboardlayoutconfig.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / lxqt-config / patches

File: [cvs.NetBSD.org] / pkgsrc / x11 / lxqt-config / patches / patch-lxqt-config-input_keyboardlayoutconfig.h (download)

Revision 1.1, Sat Apr 25 01:43:21 2020 UTC (2 years, 7 months ago) by gutteridge
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD

lxqt-config: add new package, version 0.14.1

System configuration control center for LXQt. (Packaged in wip by pin@,
additional changes by myself.)

$NetBSD: patch-lxqt-config-input_keyboardlayoutconfig.h,v 1.1 2020/04/25 01:43:21 gutteridge Exp $

Adjust hard-coded path assumptions to pkgsrc norms.

--- lxqt-config-input/keyboardlayoutconfig.h.orig	2019-02-24 00:16:01.000000000 +0000
+++ lxqt-config-input/keyboardlayoutconfig.h
@@ -22,15 +22,7 @@
 #define KEYBOARDLAYOUTCONFIG_H
 
 #include <QtCore/QtGlobal>
-#ifdef Q_OS_LINUX
-#define XKBD_BASELIST_PATH "/usr/share/X11/xkb/rules/base.lst"
-#elif defined(Q_OS_FREEBSD)
-#define XKBD_BASELIST_PATH "/usr/local/share/X11/xkb/rules/base.lst"
-#elif defined(Q_OS_OPENBSD)
-#define XKBD_BASELIST_PATH "/usr/X11R6/share/X11/xkb/rules/base.lst"
-#else
-#define XKBD_BASELIST_PATH "/usr/local/share/X11/xkb/rules/base.lst"
-#endif
+#define XKBD_BASELIST_PATH "@X11BASE@/@XKBSUB@/X11/xkb/rules/base.lst"
 
 #include <QWidget>
 #include "keyboardlayoutinfo.h"