From patchwork Wed Aug 3 15:46:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Wurmus X-Patchwork-Id: 14288 Received: (qmail 16679 invoked by uid 89); 3 Aug 2016 15:57:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=XML, suited X-Spam-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 03 Aug 2016 15:57:08 +0000 Received: from localhost ([::1]:35366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUyXa-0000pd-MZ for patchwork@sourceware.org; Wed, 03 Aug 2016 11:57:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUyNI-0006js-Sh for guix-devel@gnu.org; Wed, 03 Aug 2016 11:46:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUyND-00052w-S7 for guix-devel@gnu.org; Wed, 03 Aug 2016 11:46:27 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUyND-00052g-I5 for guix-devel@gnu.org; Wed, 03 Aug 2016 11:46:23 -0400 Received: from localhost (141.80.193.18 [141.80.193.18]) by mx.zohomail.com with SMTPS id 1470239181593580.7554673430548; Wed, 3 Aug 2016 08:46:21 -0700 (PDT) From: Ricardo Wurmus To: guix-devel@gnu.org Subject: [PATCH 3/5] gnu: Add libvirt-glib. Date: Wed, 3 Aug 2016 17:46:01 +0200 Message-Id: <20160803154603.6939-4-rekado@elephly.net> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160803154603.6939-1-rekado@elephly.net> References: <20160803154603.6939-1-rekado@elephly.net> X-ZohoMail: Z_26063301 SPT_1 Z_26062608 SPT_0 X-Zoho-Virus-Status: 2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 74.201.84.163 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/qemu.scm (libvirt-glib): New variable. --- gnu/packages/qemu.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/qemu.scm b/gnu/packages/qemu.scm index 36faa7c..a577cd1 100644 --- a/gnu/packages/qemu.scm +++ b/gnu/packages/qemu.scm @@ -317,3 +317,51 @@ capabilities of recent versions of Linux. The library aims at providing long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed.") (license lgpl2.1+))) + +(define-public libvirt-glib + (package + (name "libvirt-glib") + (version "0.2.3") + (source (origin + (method url-fetch) + (uri (string-append "ftp://libvirt.org/libvirt/glib/" + "libvirt-glib-" version ".tar.gz")) + (sha256 + (base32 + "1pahj8qa7k2307sd57rwqwq1hijya02v0sxk91hl3cw48niimcf3")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + (substitute* "tests/test-events.c" + (("/bin/true") (which "true"))) + #t))))) + (inputs + `(("libxml2" ,libxml2) + ("libvirt" ,libvirt) + ("gobject-introspection" ,gobject-introspection) + ("glib" ,glib) + ("openssl" ,openssl) + ("cyrus-sasl" ,cyrus-sasl) + ("lvm2" ,lvm2) ; for libdevmapper + ("libyajl" ,libyajl))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("intltool" ,intltool) + ("glib" ,glib "bin") + ("vala" ,vala))) + (home-page "http://libvirt.org") + (synopsis "GLib wrapper around libvirt") + (description "libvirt-glib wraps the libvirt library to provide a +high-level object-oriented API better suited for glib-based applications, via +three libraries: + +@enumerate +@item libvirt-glib - GLib main loop integration & misc helper APIs +@item libvirt-gconfig - GObjects for manipulating libvirt XML documents +@item libvirt-gobject - GObjects for managing libvirt objects +@end enumerate +") + (license lgpl2.1+)))