>From a82ab4f66aed111c07358a238de3fc1e369799c0 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 7 May 2020 11:24:09 +0200 Subject: [PATCH 2/2] gnu: Add libappindicator. * gnu/packages/freedesktop.scm (libappindicator): New variable. --- gnu/packages/freedesktop.scm | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index d88c151df7..20e4024dfb 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1801,3 +1801,61 @@ useful with system integration.") (description "A set of symbols and convience functions that all indicators would like to use. Originally from the Ayatana indicators project.") (license license:gpl3+))) + +(define-public libappindicator + (package + (name "libappindicator") + (version "12.10.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://launchpad.net/libappindicator/" + (version-major+minor version) "/" version + "/+download/libappindicator-" version ".tar.gz")) + (sha256 + (base32 + "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m")))) + (build-system gnu-build-system) + (native-inputs + `(("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("pkg-config" ,pkg-config))) + (inputs + `(("gtk+" ,gtk+) + ("dbus-glib" ,dbus-glib) + ("python" ,python-2) + ("python2-pygtk" ,python2-pygtk) + ("python2-pygobject" ,python2-pygobject) + ("libdbusmenu" ,libdbusmenu) + ("libindicator" ,libindicator))) + (arguments + `(#:configure-flags '("--with-gtk=3") + #:make-flags '("CFLAGS=-Wno-error=deprecated-declarations") + #:tests? #f ; FIXME: Require the dbus-test-runner package. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-codegen-path + (lambda _ + (substitute* "configure" + (("PYGTK_CODEGEN=.*") "PYGTK_CODEGEN=pygtk-codegen-2.0\n")) + #t)) + (add-after 'unpack 'disable-fail-on-error + (lambda _ + (substitute* "src/Makefile.in" + (("-Werror") "")) + #t)) + (add-after 'unpack 'fix-test + (lambda _ + (substitute* "tests/Makefile.in" + (("/bin/bash") (which "bash")) + (("/bin/sh") (which "sh"))) + (substitute* "docs/reference/Makefile.in" + (("/bin/sh") (which "sh"))) + #t))))) + (home-page "https://launchpad.net/libappindicator") + (synopsis "Library to export a menu into the system tray") + (description "A library to allow applications to export a menu, originally +into the Unity menu bar. Based on KSNI, it also works in KDE and will +fallback to generic system tray support if none of those are available.") + (license license:gpl3+))) -- 2.25.1