unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add goffice and gnumeric
@ 2014-06-28 14:02 John Darrington
  2014-06-29 20:30 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: John Darrington @ 2014-06-28 14:02 UTC (permalink / raw)
  To: guix-devel; +Cc: John Darrington

gnu/packages/gnome.scm (goffice, gnumeric): New variables.
---
 gnu/packages/gnome.scm |   77 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ee7c7c5..952ac38 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1090,3 +1090,80 @@ widgets built in the loading process.")
 controls using the Bonobo component framework.")
     (license license:lgpl2.0+)))
 
+
+(define-public goffice
+  (package
+    (name "goffice")
+    (version "0.10.14")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://gnome/sources/" name "/" 
+                    (string-take version 4) "/" name "-"
+                    version    ".tar.xz"))
+              (sha256
+               (base32 "0kj0iwng6w4axm7yv2zy7myn5dhw5ilrlq2pzrjlm9i852ikqy60"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("gtk+" ,gtk+)
+       ("libgsf" ,libgsf)
+       ("librsvg" ,librsvg)
+       ("libxslt" ,libxslt)
+       ("libxml2" ,libxml2)))
+    (native-inputs
+     `(("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (home-page "https://developer.gnome.org/goffice/")
+    (synopsis "Document-centric objects and utilities")
+    (description "A GLib/GTK+ set of document-centric objects and utilities.")
+    (license 
+     `(license:gpl2
+       license:gpl3))))
+
+(define-public gnumeric
+  (package
+    (name "gnumeric")
+    (version "1.12.17")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://gnome/sources/" name "/" 
+                    (string-take version 4) "/" name "-" version
+                    ".tar.xz"))
+              (sha256
+               (base32
+                "18bvc3phghr4p5440fp8hm6gvp53d3mqs9cyc637zpmk0b6bcp7c"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(;; The gnumeric developers don't worry much about failing tests.
+       ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
+       #:tests? #f 
+       :phases
+       alist-cons-before
+       'configure 'pre-conf
+       (lambda* (#:key outputs #:allow-other-keys)
+         ;; Make install tries to write into the directory of goffice
+         ;; I am informed that this only affects the possibility to embed a
+         ;; spreadsheet inside an abiword document.   So presumably when we
+         ;; package abiword we'll have to refer it to this directory.
+         (substitute* "configure" 
+           (("^GOFFICE_PLUGINS_DIR=.*")
+            (string-append "GOFFICE_PLUGINS_DIR=" 
+                           (assoc-ref outputs "out") "/goffice/plugins"))))
+       %standard-phases)))
+    (inputs
+     `(("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("goffice" ,goffice)
+       ("libgsf" ,libgsf)
+       ("libxml2" ,libxml2)
+       ("zlib" ,zlib)))
+    (native-inputs
+     `(("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (home-page "http://www.gnumeric.org")
+    (synopsis "Spreadsheet program")
+    (description  "Gnumeric is a spreadsheet program for GNOME.")
+    (license 
+     `(license:gpl3
+       license:gpl2))))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: Add goffice and gnumeric
  2014-06-28 14:02 [PATCH] gnu: Add goffice and gnumeric John Darrington
@ 2014-06-29 20:30 ` Ludovic Courtès
  2014-06-30  7:58   ` John Darrington
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2014-06-29 20:30 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <jmd@gnu.org> skribis:

> gnu/packages/gnome.scm (goffice, gnumeric): New variables.

Nice!  Comments below:

> +    (license 
> +     `(license:gpl2
> +       license:gpl3))))

Remember this field must be either a <license> object or a list thereof
(the one above is a list of symbols.)  So change it to:

  (license (list license:gpl2 license:gpl3))

Also, please add a comment stating what this means exactly: is it
dual-licensed?  Does it mean that some files are GPLv2-only and others
are GPLv3-only (which would be a problem)?

Does it mean some files are GPLv2-or-later and others are
GPLv3-or-later?  In that case, the value should be ‘license:gpl3+’.

> +    (arguments
> +     `(;; The gnumeric developers don't worry much about failing tests.
> +       ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
> +       #:tests? #f 
> +       :phases

Should be #:phases.

> +       alist-cons-before

Missing opening parenthesis.

> +       'configure 'pre-conf
> +       (lambda* (#:key outputs #:allow-other-keys)
> +         ;; Make install tries to write into the directory of goffice
> +         ;; I am informed that this only affects the possibility to embed a
> +         ;; spreadsheet inside an abiword document.   So presumably when we
> +         ;; package abiword we'll have to refer it to this directory.

“Abiword”.

> +    (description  "Gnumeric is a spreadsheet program for GNOME.")

A bit terse.  ;-)  Maybe there’s a paragraph from README or so that
could be used?

> +    (license 
> +     `(license:gpl3
> +       license:gpl2))))

Same as above.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] gnu: Add goffice and gnumeric
  2014-06-29 20:30 ` Ludovic Courtès
@ 2014-06-30  7:58   ` John Darrington
  2014-06-30 11:03     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: John Darrington @ 2014-06-30  7:58 UTC (permalink / raw)
  To: guix-devel; +Cc: John Darrington

gnu/packages/gnome.scm (goffice, gnumeric): New variables.
---
 gnu/packages/gnome.scm |   79 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ee7c7c5..8fe82d7 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1090,3 +1090,82 @@ widgets built in the loading process.")
 controls using the Bonobo component framework.")
     (license license:lgpl2.0+)))
 
+
+(define-public goffice
+  (package
+    (name "goffice")
+    (version "0.10.14")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://gnome/sources/" name "/" 
+                    (string-take version 4) "/" name "-"
+                    version    ".tar.xz"))
+              (sha256
+               (base32 "0kj0iwng6w4axm7yv2zy7myn5dhw5ilrlq2pzrjlm9i852ikqy60"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("gtk+" ,gtk+)
+       ("libgsf" ,libgsf)
+       ("librsvg" ,librsvg)
+       ("libxslt" ,libxslt)
+       ("libxml2" ,libxml2)))
+    (native-inputs
+     `(("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (home-page "https://developer.gnome.org/goffice/")
+    (synopsis "Document-centric objects and utilities")
+    (description "A GLib/GTK+ set of document-centric objects and utilities.")
+    (license 
+     ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
+     ;; Note: NOT LGPL
+     (list license:gpl2 license:gpl3))))
+
+(define-public gnumeric
+  (package
+    (name "gnumeric")
+    (version "1.12.17")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://gnome/sources/" name "/" 
+                    (string-take version 4) "/" name "-" version
+                    ".tar.xz"))
+              (sha256
+               (base32
+                "18bvc3phghr4p5440fp8hm6gvp53d3mqs9cyc637zpmk0b6bcp7c"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(;; The gnumeric developers don't worry much about failing tests.
+       ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
+       #:tests? #f 
+       #:phases
+       (alist-cons-before
+        'configure 'pre-conf
+        (lambda* (#:key outputs #:allow-other-keys)
+          ;; Make install tries to write into the directory of goffice
+          ;; I am informed that this only affects the possibility to embed a
+          ;; spreadsheet inside an Abiword document.   So presumably when we
+          ;; package abiword we'll have to refer it to this directory.
+          (substitute* "configure" 
+            (("^GOFFICE_PLUGINS_DIR=.*")
+             (string-append "GOFFICE_PLUGINS_DIR=" 
+                            (assoc-ref outputs "out") "/goffice/plugins"))))
+        %standard-phases)))
+    (inputs
+     `(("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("goffice" ,goffice)
+       ("libgsf" ,libgsf)
+       ("libxml2" ,libxml2)
+       ("zlib" ,zlib)))
+    (native-inputs
+     `(("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (home-page "http://www.gnumeric.org")
+    (synopsis "Spreadsheet program")
+    (description "Gnumeric is a spreadsheet program for GNOME. The project aims
+to become a drop in replacement for proprietary spreadsheets.")
+    (license 
+    ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
+     (list license:gpl2 license:gpl3))))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: Add goffice and gnumeric
  2014-06-30  7:58   ` John Darrington
@ 2014-06-30 11:03     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2014-06-30 11:03 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <jmd@gnu.org> skribis:

> gnu/packages/gnome.scm (goffice, gnumeric): New variables.

[...]

> +    (description "Gnumeric is a spreadsheet program for GNOME. The project aims

Two spaces after an end-of-sentence period.

OK to push with this change, thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-30 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-28 14:02 [PATCH] gnu: Add goffice and gnumeric John Darrington
2014-06-29 20:30 ` Ludovic Courtès
2014-06-30  7:58   ` John Darrington
2014-06-30 11:03     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).