From patchwork Fri May 8 06:42:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 21923 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5BCB227BBE3; Fri, 8 May 2020 07:44:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED,URIBL_SBL,URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) by mira.cbaines.net (Postfix) with ESMTP id DE8EA27BBE1 for ; Fri, 8 May 2020 07:44:06 +0100 (BST) Received: from localhost ([::1]:35948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWwju-0004B7-GR for patchwork@mira.cbaines.net; Fri, 08 May 2020 02:44:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWwjq-0004Ax-If for guix-patches@gnu.org; Fri, 08 May 2020 02:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWwjq-0001Kn-A1 for guix-patches@gnu.org; Fri, 08 May 2020 02:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWwjq-0005wb-7x for guix-patches@gnu.org; Fri, 08 May 2020 02:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41134] [PATCH 2/2] gnu: Add libappindicator. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 May 2020 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41134 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41134@debbugs.gnu.org Received: via spool by 41134-submit@debbugs.gnu.org id=B41134.158892018222773 (code B ref 41134); Fri, 08 May 2020 06:44:02 +0000 Received: (at 41134) by debbugs.gnu.org; 8 May 2020 06:43:02 +0000 Received: from localhost ([127.0.0.1]:44471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWwis-0005vF-BM for submit@debbugs.gnu.org; Fri, 08 May 2020 02:43:02 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWwiq-0005ub-Bs for 41134@debbugs.gnu.org; Fri, 08 May 2020 02:43:01 -0400 X-Originating-IP: 78.199.129.170 Received: from mimimi (moi44-1-78-199-129-170.fbx.proxad.net [78.199.129.170]) (Authenticated sender: mail@ambrevar.xyz) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 21FB760002 for <41134@debbugs.gnu.org>; Fri, 8 May 2020 06:42:52 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: References: <87o8qzszoa.fsf@ambrevar.xyz> Date: Fri, 08 May 2020 08:42:52 +0200 Message-ID: <87lfm3sz9v.fsf@ambrevar.xyz> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/freedesktop.scm (libappindicator): New variable. --- gnu/packages/freedesktop.scm | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) 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