From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 3/6 v2] gnu: Add libpeas. Date: Sun, 8 Dec 2013 21:33:09 +0100 Message-ID: <1386534789-17655-1-git-send-email-tipecaml@gmail.com> References: <87d2lgp6d9.fsf@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vpl1b-0000Qq-Hv for guix-devel@gnu.org; Sun, 08 Dec 2013 15:32:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vpl1U-0007Oi-GI for guix-devel@gnu.org; Sun, 08 Dec 2013 15:32:23 -0500 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]:57283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vpl1U-0007Oa-9P for guix-devel@gnu.org; Sun, 08 Dec 2013 15:32:16 -0500 Received: by mail-wg0-f53.google.com with SMTP id k14so2626014wgh.20 for ; Sun, 08 Dec 2013 12:32:15 -0800 (PST) In-Reply-To: <87d2lgp6d9.fsf@gnu.org> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/gnome.scm (libpeas): New variable. --- gnu/packages/gnome.scm | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 713b64f..6b852fb 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -355,3 +355,67 @@ notification daemon, as defined in the Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user's way.") (license lgpl2.1+))) + +(define-public libpeas + (package + (name "libpeas") + (version "1.9.0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (string-copy version 0 (string-rindex version #\.)) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "13fzyzv6c0cfdj83z1s16lv8k997wpnzyzr0wfwcfkcmvz64g1q0")))) + (build-system gnu-build-system) + (arguments + `(#:modules ((guix build gnome) + (guix build gnu-build-system) + (guix build utils)) + #:imported-modules ((guix build gnome) + (guix build gnu-build-system) + (guix build utils)) + #:phases + (alist-replace + 'configure + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (let ((configure (assoc-ref %standard-phases 'configure))) + (substitute* "libpeas-gtk/Makefile.in" + (("--add-include-path") + (string-append + " --add-include-path=" (gir-path inputs "atk") + " --add-include-path=" (gir-path inputs "gdk-pixbuf") + " --add-include-path=" (gir-path inputs "gtk+") + " --add-include-path=" (gir-path inputs "pango") + " --add-include-path"))) + (substitute* "libpeas-gtk/Makefile.in" + (("--includedir=\\$\\(top_builddir") + (string-append + " --includedir=" (gir-path inputs "atk") + " --includedir=" (gir-path inputs "gdk-pixbuf") + " --includedir=" (gir-path inputs "gtk+") + " --includedir=" (gir-path inputs "pango") + " --includedir=$(top_builddir"))) + (apply configure args))) + %standard-phases))) + (inputs + `(("atk" ,atk) + ("gdk-pixbuf" ,gdk-pixbuf) + ("glib" ,glib) + ("gobject-introspection" ,gobject-introspection) + ("gtk+" ,gtk+) + ("intltool" ,intltool) + ("pango" ,pango) + ("pkg-config" ,pkg-config))) + (home-page "https://wiki.gnome.org/Libpeas") + (synopsis "GObject plugin system") + (description + "libpeas is a gobject-based plugins engine, and is targetted at giving +every application the chance to assume its own extensibility. It also has a +set of features including, but not limited to: multiple extension points; on +demand (lazy) programming language support for C, Python and JS; simplicity of +the API") + + (license lgpl2.0+))) -- 1.8.4.rc3