From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 41134@debbugs.gnu.org
Subject: [bug#41134] [PATCH 2/2] gnu: Add libappindicator.
Date: Fri, 08 May 2020 08:42:52 +0200 [thread overview]
Message-ID: <87lfm3sz9v.fsf@ambrevar.xyz> (raw)
In-Reply-To: <handler.41134.B.158891966521951.ack@debbugs.gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 2929 bytes --]
* 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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-libappindicator.patch --]
[-- Type: text/x-patch, Size: 3054 bytes --]
From a82ab4f66aed111c07358a238de3fc1e369799c0 Mon Sep 17 00:00:00 2001
From: Pierre Neidhardt <mail@ambrevar.xyz>
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
next prev parent reply other threads:[~2020-05-08 6:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 6:34 [bug#41134] [PATCH 1/2] gnu: Add libindicator Pierre Neidhardt
[not found] ` <handler.41134.B.158891966521951.ack@debbugs.gnu.org>
2020-05-08 6:42 ` Pierre Neidhardt [this message]
2020-05-08 6:56 ` bug#41134: [PATCH 2/2] gnu: Add libappindicator Pierre Neidhardt
2020-05-11 11:46 ` [bug#41134] " Nicolò Balzarotti
2020-05-11 12:14 ` Pierre Neidhardt
2020-05-11 14:18 ` Raghav Gururajan
2020-05-11 15:07 ` Nicolò Balzarotti
2020-05-11 15:10 ` Raghav Gururajan
2020-05-14 17:14 ` Pierre Neidhardt
2020-05-11 11:38 ` [bug#41134] LibAppIndicator Raghav Gururajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfm3sz9v.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=41134@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.