From patchwork Wed May 15 04:51:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Meiyo Peng X-Patchwork-Id: 13985 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 5580016FFC; Wed, 15 May 2019 06:10:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id C191016FF9 for ; Wed, 15 May 2019 06:10:40 +0100 (BST) Received: from localhost ([127.0.0.1]:59655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQmBc-0000tx-5s for patchwork@mira.cbaines.net; Wed, 15 May 2019 01:10:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQmB1-0000OW-Nn for guix-patches@gnu.org; Wed, 15 May 2019 01:10:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQmB0-0006Lv-LH for guix-patches@gnu.org; Wed, 15 May 2019 01:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQmB0-0006Lh-I3 for guix-patches@gnu.org; Wed, 15 May 2019 01:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQmB0-0000s6-A2 for guix-patches@gnu.org; Wed, 15 May 2019 01:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35741] [PATCH] gnu: Add libdbusmenu. Resent-From: Meiyo Peng Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 May 2019 05:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35741 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35741@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15578969713292 (code B ref -1); Wed, 15 May 2019 05:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2019 05:09:31 +0000 Received: from localhost ([127.0.0.1]:50738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQmAV-0000r2-91 for submit@debbugs.gnu.org; Wed, 15 May 2019 01:09:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQmAT-0000qj-JN for submit@debbugs.gnu.org; Wed, 15 May 2019 01:09:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:45905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQmAO-00052I-Bm for submit@debbugs.gnu.org; Wed, 15 May 2019 01:09:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQmAN-0008Ob-0b for guix-patches@gnu.org; Wed, 15 May 2019 01:09:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQlte-0007tR-RO for guix-patches@gnu.org; Wed, 15 May 2019 00:52:08 -0400 Received: from mx1.riseup.net ([198.252.153.129]:54764) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQlte-0007d8-20 for guix-patches@gnu.org; Wed, 15 May 2019 00:52:06 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id C19CE1A0681 for ; Tue, 14 May 2019 21:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1557895918; bh=VkZTyPzQONVF4G1JHThLEJrJWwa1/2t1tIyGThd9mPM=; h=From:To:Cc:Subject:Date:From; b=bgl6z6B7zxjXLEQgpw1VU9E7GiaMiqsBxCXkvIIFLJ3O4ffhRfU/b0ffCF/y9j0+j mP8EnjS/X0yNUpGMSwnnQWiHBvPemVn7CClTZsvBAGJABZgar35COTLK6B0otpfJAW D/uiyWaG6vsbHa7LyPjmuvsUALQMJofycDr+ad4o= X-Riseup-User-ID: 5C55F7E197F32AAA76B0D9174BAEF4C28E24F8D52A955466A588E6DCAB964C94 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id C9A6F223697; Tue, 14 May 2019 21:51:57 -0700 (PDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id d63ef838; Wed, 15 May 2019 04:51:52 +0000 (UTC) From: Meiyo Peng Date: Wed, 15 May 2019 12:51:27 +0800 Message-Id: <20190515045127.30916-1-meiyo@riseup.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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/gtk.scm (libdbusmenu): New variable. --- gnu/packages/gtk.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 6e63ca6614..a885d35080 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2018 Alex Vong ;;; Copyright © 2018 Arun Isaac ;;; Copyright © 2018 Pierre Neidhardt +;;; Copyright © 2019 Meiyo Peng ;;; ;;; This file is part of GNU Guix. ;;; @@ -1754,3 +1755,53 @@ popular spread sheet programs.") shell scripts. Example of how to use @code{yad} can be consulted at @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.") (license license:gpl3+))) + +(define-public libdbusmenu + (package + (name "libdbusmenu") + (version "16.04.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://launchpad.net/libdbusmenu/" + (version-major+minor version) "/" version + "/+download/libdbusmenu-" version ".tar.gz")) + (sha256 + (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + '("--sysconfdir=/etc" + "--localstatedir=/var" + ;; The shebang of the generated test files should be patched before + ;; enabling tests. + "--disable-tests") + #:make-flags + `(,(string-append "typelibdir=" (assoc-ref %outputs "out") + "/lib/girepository-1.0")) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-environment + (lambda _ + (setenv "HAVE_VALGRIND_TRUE" "") + (setenv "HAVE_VALGRIND_FALSE" "#") + #t))))) + (inputs + `(("glib" ,glib) + ("gtk+" ,gtk+) + ("gtk+-2" ,gtk+-2))) + (native-inputs + `(("glib:bin" ,glib "bin") + ("gnome-doc-utils" ,gnome-doc-utils) + ("gobject-introspection" ,gobject-introspection) + ("intltool" ,intltool) + ("json-glib" ,json-glib) + ("pkg-config" ,pkg-config) + ("python" ,python-2) + ("vala" ,vala))) + (home-page "https://launchpad.net/libdbusmenu") + (synopsis "Library for passing menus over DBus") + (description "@code{libdbusmenu} passes a menu structure across DBus so +that a program can create a menu simply without worrying about how it is +displayed on the other side of the bus.") + (license (list license:gpl3 license:lgpl2.1 license:lgpl3))))