From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#35741] [PATCH] gnu: Add libdbusmenu. Resent-Message-ID: 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) From: Meiyo Peng Date: Wed, 15 May 2019 12:51:27 +0800 Message-Id: <20190515045127.30916-1-meiyo@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35741@debbugs.gnu.org * 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 =C2=A9 2018 Alex Vong ;;; Copyright =C2=A9 2018 Arun Isaac ;;; Copyright =C2=A9 2018 Pierre Neidhardt +;;; Copyright =C2=A9 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=3D/etc" + "--localstatedir=3D/var" + ;; The shebang of the generated test files should be patched be= fore + ;; enabling tests. + "--disable-tests") + #:make-flags + `(,(string-append "typelibdir=3D" (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)))) --=20 2.21.0