guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add GnuCash.


From: Ricardo Wurmus
Subject: Re: [PATCH] Add GnuCash.
Date: Wed, 06 May 2015 09:05:49 +0200

> here's a patch to add the latest release of webkitgtk 2.4 which is
> needed by GnuCash (second patch).

I forgot to add the patch that adds goffice in the version GnuCash
requires.  It's attached.

>From 98a99c25d43cdcd8aa0051bc91c3696fccfb634b Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Sun, 19 Apr 2015 18:38:24 +0200
Subject: [PATCH] gnu: Add goffice-0.8.

* gnu/packages/gnome.scm (goffice-0.8): New variable.
---
 gnu/packages/gnome.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index b96b9e1..9f04b9b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -70,7 +70,8 @@
   #:use-module (gnu packages mail)
   #:use-module (gnu packages backup)
   #:use-module (gnu packages nettle)
-  #:use-module (gnu packages ncurses))
+  #:use-module (gnu packages ncurses)
+  #:use-module (srfi srfi-1))
 
 (define-public brasero
   (package
@@ -1279,6 +1280,31 @@ Hints specification (EWMH).")
      ;; Note: NOT LGPL
      (list license:gpl2 license:gpl3))))
 
+(define-public goffice-0.8
+  (package (inherit goffice)
+    (version "0.8.17")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" (package-name 
goffice) "/"
+                                  (version-major+minor version)  "/"
+                                  (package-name goffice) "-" version 
".tar.xz"))
+              (sha256
+               (base32 
"05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
+    (arguments
+     `(#:phases
+       (alist-cons-after
+        'unpack 'fix-pcre-check
+        (lambda _
+          (substitute* "configure"
+            (("glib/gregex\\.h") "glib.h")) #t)
+        %standard-phases)))
+    (propagated-inputs
+     ;; libgoffice-0.8.pc mentions libgsf-1
+     `(("libgsf" ,libgsf)))
+    (inputs
+     `(("gtk" ,gtk+-2)
+       ,@(alist-delete "gtk" (package-inputs goffice))))))
+
 (define-public gnumeric
   (package
     (name "gnumeric")
-- 
2.1.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]