gnu: Add dbus-cxx.
* gnu/packages/glib.scm (define-module): Add popt package and cmake build system. (dbus-cxx): New package. Signed-off-by: Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
This commit is contained in:
		
							parent
							
								
									14defc9c81
								
							
						
					
					
						commit
						4fbd3c36c6
					
				
					 1 changed files with 42 additions and 0 deletions
				
			
		| 
						 | 
					@ -13,6 +13,7 @@
 | 
				
			||||||
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 | 
					;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 | 
				
			||||||
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
 | 
					;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
 | 
				
			||||||
;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
 | 
					;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
 | 
				
			||||||
 | 
					;;; Copyright © 2020 Arthur Margerit <ruhtra.mar@gmail.com>
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
;;; This file is part of GNU Guix.
 | 
					;;; This file is part of GNU Guix.
 | 
				
			||||||
;;;
 | 
					;;;
 | 
				
			||||||
| 
						 | 
					@ -53,6 +54,7 @@
 | 
				
			||||||
  #:use-module (gnu packages package-management)
 | 
					  #:use-module (gnu packages package-management)
 | 
				
			||||||
  #:use-module (gnu packages perl)
 | 
					  #:use-module (gnu packages perl)
 | 
				
			||||||
  #:use-module (gnu packages perl-check)
 | 
					  #:use-module (gnu packages perl-check)
 | 
				
			||||||
 | 
					  #:use-module (gnu packages popt)
 | 
				
			||||||
  #:use-module (gnu packages pkg-config)
 | 
					  #:use-module (gnu packages pkg-config)
 | 
				
			||||||
  #:use-module (gnu packages python)
 | 
					  #:use-module (gnu packages python)
 | 
				
			||||||
  #:use-module (gnu packages python-xyz)
 | 
					  #:use-module (gnu packages python-xyz)
 | 
				
			||||||
| 
						 | 
					@ -61,6 +63,7 @@
 | 
				
			||||||
  #:use-module (gnu packages xml)
 | 
					  #:use-module (gnu packages xml)
 | 
				
			||||||
  #:use-module (gnu packages xorg)
 | 
					  #:use-module (gnu packages xorg)
 | 
				
			||||||
  #:use-module (guix build-system gnu)
 | 
					  #:use-module (guix build-system gnu)
 | 
				
			||||||
 | 
					  #:use-module (guix build-system cmake)
 | 
				
			||||||
  #:use-module (guix build-system meson)
 | 
					  #:use-module (guix build-system meson)
 | 
				
			||||||
  #:use-module (guix build-system perl)
 | 
					  #:use-module (guix build-system perl)
 | 
				
			||||||
  #:use-module (guix build-system python)
 | 
					  #:use-module (guix build-system python)
 | 
				
			||||||
| 
						 | 
					@ -932,6 +935,45 @@ programming language.  It also contains the utility
 | 
				
			||||||
    (home-page "https://sourceforge.net/projects/dbus-cplusplus/")
 | 
					    (home-page "https://sourceforge.net/projects/dbus-cplusplus/")
 | 
				
			||||||
    (license license:lgpl2.1+)))
 | 
					    (license license:lgpl2.1+)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(define-public dbus-cxx
 | 
				
			||||||
 | 
					  (package
 | 
				
			||||||
 | 
					    (name "dbus-cxx")
 | 
				
			||||||
 | 
					    (version "0.12.0")
 | 
				
			||||||
 | 
					    (source (origin
 | 
				
			||||||
 | 
					              (method url-fetch)
 | 
				
			||||||
 | 
					              (uri (string-append "mirror://sourceforge/dbus-cxx/dbus-cxx/"
 | 
				
			||||||
 | 
					                                  version "/dbus-cxx-" version ".tar.gz"))
 | 
				
			||||||
 | 
					              (sha256
 | 
				
			||||||
 | 
					               (base32
 | 
				
			||||||
 | 
					                "1acsgpkd9v7b9jdc79ijmh9dbdfrzgkwkaff518i3zpk7y6g5mzw"))))
 | 
				
			||||||
 | 
					    (build-system cmake-build-system)
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     `(#:configure-flags '("-DENABLE_TESTS=ON"
 | 
				
			||||||
 | 
					                           "-DENABLE_TOOLS=ON"
 | 
				
			||||||
 | 
					                           "-DENABLE_GLIBMM=ON")))
 | 
				
			||||||
 | 
					    (inputs `(("dbus" ,dbus)
 | 
				
			||||||
 | 
					              ("libsigc++" ,libsigc++)
 | 
				
			||||||
 | 
					              ("glibmm" ,glibmm)
 | 
				
			||||||
 | 
					              ("python" ,python)
 | 
				
			||||||
 | 
					              ("popt" ,popt)
 | 
				
			||||||
 | 
					              ("expat" ,expat)))
 | 
				
			||||||
 | 
					    (native-inputs `(("pkg-config" ,pkg-config)
 | 
				
			||||||
 | 
					                     ("m4" ,m4)))
 | 
				
			||||||
 | 
					    (synopsis "C++ wrapper for dbus")
 | 
				
			||||||
 | 
					    (description "Dbus-cxx is a C++ wrapper for dbus.\n
 | 
				
			||||||
 | 
					It exposes the C API to allow direct manipulation and
 | 
				
			||||||
 | 
					relies on sigc++ to provide an Oriented Object interface.\n
 | 
				
			||||||
 | 
					This package provide 2 utils:
 | 
				
			||||||
 | 
					@enumerate
 | 
				
			||||||
 | 
					@item @command{dbus-cxx-xml2cpp} to generate proxy and adapter
 | 
				
			||||||
 | 
					@item @command{dbus-cxx-introspect} to introspect a dbus interface
 | 
				
			||||||
 | 
					@end enumerate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Some codes examples can be find at:
 | 
				
			||||||
 | 
					@url{https://dbus-cxx.github.io/examples.html}")
 | 
				
			||||||
 | 
					    (home-page "https://dbus-cxx.github.io/")
 | 
				
			||||||
 | 
					    (license license:gpl3)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public appstream-glib
 | 
					(define-public appstream-glib
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "appstream-glib")
 | 
					    (name "appstream-glib")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue