Merge pull request #164105 from ncfavier/ibus

ibus: 1.5.24 -> 1.5.26
This commit is contained in:
Jan Tojnar 2022-03-15 21:24:52 +01:00 committed by GitHub
commit 0f94c5b151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 9 deletions

View file

@ -40,13 +40,15 @@ in
KDEDIRS = [ "" ]; KDEDIRS = [ "" ];
QT_PLUGIN_PATH = [ "/lib/qt4/plugins" "/lib/kde4/plugins" ]; QT_PLUGIN_PATH = [ "/lib/qt4/plugins" "/lib/kde4/plugins" ];
QTWEBKIT_PLUGIN_PATH = [ "/lib/mozilla/plugins/" ]; QTWEBKIT_PLUGIN_PATH = [ "/lib/mozilla/plugins/" ];
GTK_PATH = [ "/lib/gtk-2.0" "/lib/gtk-3.0" ]; GTK_PATH = [ "/lib/gtk-2.0" "/lib/gtk-3.0" "/lib/gtk-4.0" ];
XDG_CONFIG_DIRS = [ "/etc/xdg" ]; XDG_CONFIG_DIRS = [ "/etc/xdg" ];
XDG_DATA_DIRS = [ "/share" ]; XDG_DATA_DIRS = [ "/share" ];
MOZ_PLUGIN_PATH = [ "/lib/mozilla/plugins" ]; MOZ_PLUGIN_PATH = [ "/lib/mozilla/plugins" ];
LIBEXEC_PATH = [ "/lib/libexec" ]; LIBEXEC_PATH = [ "/lib/libexec" ];
}; };
environment.pathsToLink = [ "/lib/gtk-2.0" "/lib/gtk-3.0" "/lib/gtk-4.0" ];
environment.extraInit = environment.extraInit =
'' ''
unset ASPELL_CONF unset ASPELL_CONF

View file

@ -1,6 +1,7 @@
{ lib, stdenv { lib, stdenv
, substituteAll , substituteAll
, fetchurl , fetchurl
, fetchpatch
, fetchFromGitHub , fetchFromGitHub
, autoreconfHook , autoreconfHook
, gettext , gettext
@ -9,12 +10,14 @@
, vala , vala
, wrapGAppsHook , wrapGAppsHook
, dbus , dbus
, systemd
, dconf ? null , dconf ? null
, glib , glib
, gdk-pixbuf , gdk-pixbuf
, gobject-introspection , gobject-introspection
, gtk2 , gtk2
, gtk3 , gtk3
, gtk4
, gtk-doc , gtk-doc
, runCommand , runCommand
, isocodes , isocodes
@ -60,16 +63,22 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ibus"; pname = "ibus";
version = "1.5.24"; version = "1.5.26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ibus"; owner = "ibus";
repo = "ibus"; repo = "ibus";
rev = version; rev = version;
sha256 = "sha256-1qx06MlEUjSS067FdQG1Bdi4ZAh3hPcNjUX5PIiC3Sk="; sha256 = "7Vuj4Gyd+dLUoCkR4SPkfGPwVQPRo2pHk0pRAsmtjxc=";
}; };
patches = [ patches = [
# Fixes systemd unit installation path https://github.com/ibus/ibus/pull/2388
(fetchpatch {
url = "https://github.com/ibus/ibus/commit/33b4b3932bfea476a841f8df99e20049b83f4b0e.patch";
sha256 = "kh8SBR+cqsov/B0A2YXLJVq1F171qoSRUKbBPHjPRHI=";
})
(substituteAll { (substituteAll {
src = ./fix-paths.patch; src = ./fix-paths.patch;
pythonInterpreter = python3Runtime.interpreter; pythonInterpreter = python3Runtime.interpreter;
@ -94,6 +103,7 @@ stdenv.mkDerivation rec {
(enableFeature enablePython2Library "python-library") (enableFeature enablePython2Library "python-library")
(enableFeature enablePython2Library "python2") # XXX: python2 library does not work anyway (enableFeature enablePython2Library "python2") # XXX: python2 library does not work anyway
(enableFeature enableUI "ui") (enableFeature enableUI "ui")
"--enable-gtk4"
"--enable-install-tests" "--enable-install-tests"
"--with-unicode-emoji-dir=${unicode-emoji}/share/unicode/emoji" "--with-unicode-emoji-dir=${unicode-emoji}/share/unicode/emoji"
"--with-emoji-annotation-dir=${cldr-emoji-annotation}/share/unicode/cldr/common/annotations" "--with-emoji-annotation-dir=${cldr-emoji-annotation}/share/unicode/cldr/common/annotations"
@ -123,12 +133,14 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
dbus dbus
systemd
dconf dconf
gdk-pixbuf gdk-pixbuf
gobject-introspection gobject-introspection
python3.pkgs.pygobject3 # for pygobject overrides python3.pkgs.pygobject3 # for pygobject overrides
gtk2 gtk2
gtk3 gtk3
gtk4
isocodes isocodes
json-glib json-glib
libnotify libnotify

View file

@ -1,6 +1,8 @@
diff --git a/configure.ac b/configure.ac
index a3cdb2da..cade9466 100644
--- a/configure.ac --- a/configure.ac
+++ b/configure.ac +++ b/configure.ac
@@ -429,11 +429,11 @@ @@ -469,11 +469,11 @@ PKG_CHECK_EXISTS([pygobject-3.0 >= $PYGOBJECT_REQUIRED],
if test "x$enable_pygobject" = "xyes"; then if test "x$enable_pygobject" = "xyes"; then
PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED]) PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
@ -14,7 +16,7 @@
AC_SUBST(py2overridesdir) AC_SUBST(py2overridesdir)
fi fi
fi fi
@@ -462,7 +462,7 @@ @@ -502,7 +502,7 @@ if test x"$enable_python_library" = x"yes"; then
PYTHON2_VERSION=`$PYTHON2 -c "import sys; sys.stdout.write(sys.version[[:3]])"` PYTHON2_VERSION=`$PYTHON2 -c "import sys; sys.stdout.write(sys.version[[:3]])"`
PYTHON2_LIBDIR="$PYTHON2_PREFIX/lib/python$PYTHON2_VERSION" PYTHON2_LIBDIR="$PYTHON2_PREFIX/lib/python$PYTHON2_VERSION"
python2dir="$PYTHON2_LIBDIR/site-packages" python2dir="$PYTHON2_LIBDIR/site-packages"
@ -23,9 +25,11 @@
AC_SUBST(pkgpython2dir) AC_SUBST(pkgpython2dir)
else else
enable_python_library="no (disabled, use --enable-python-library to enable)" enable_python_library="no (disabled, use --enable-python-library to enable)"
diff --git a/data/dconf/Makefile.am b/data/dconf/Makefile.am
index 5360f033..6d5e726f 100644
--- a/data/dconf/Makefile.am --- a/data/dconf/Makefile.am
+++ b/data/dconf/Makefile.am +++ b/data/dconf/Makefile.am
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@ man_5dir = $(mandir)/man5
install-data-hook: install-data-hook:
if test -z "$(DESTDIR)"; then \ if test -z "$(DESTDIR)"; then \
@ -34,12 +38,14 @@
fi fi
EXTRA_DIST = \ EXTRA_DIST = \
diff --git a/setup/ibus-setup.in b/setup/ibus-setup.in
index 474ce8a8..ee30808e 100644
--- a/setup/ibus-setup.in --- a/setup/ibus-setup.in
+++ b/setup/ibus-setup.in +++ b/setup/ibus-setup.in
@@ -27,5 +27,5 @@ @@ -27,5 +27,5 @@ export IBUS_PREFIX=@prefix@
export IBUS_DATAROOTDIR=@datarootdir@ export IBUS_DATAROOTDIR=@datarootdir@
export IBUS_LOCALEDIR=@localedir@ export IBUS_LOCALEDIR=@localedir@
export IBUS_LIBEXECDIR=${libexecdir} export IBUS_LIBEXECDIR=${libexecdir}
-exec ${PYTHON:-@PYTHON@} @prefix@/share/ibus/setup/main.py $@ -exec ${PYTHON:-@PYTHON@} @prefix@/share/ibus/setup/main.py "$@"
+exec @pythonInterpreter@ @prefix@/share/ibus/setup/main.py $@ +exec @pythonInterpreter@ @prefix@/share/ibus/setup/main.py "$@"