Re: [PATCH] pspp

2013-12-02 Thread John Darrington
On Mon, Dec 02, 2013 at 01:53:46PM +0100, Ludovic Court??s wrote:
 John Darrington j...@darrington.wattle.id.au skribis:
 
  From 1e5f4146bbe1d1ba4d73a5ff52b9e80e461bbe8c Mon Sep 17 00:00:00 2001
  From: John Darrington j...@darrington.wattle.id.au
  Date: Sat, 30 Nov 2013 11:11:54 +0100
  Subject: [PATCH 1/2] gnu: Added gtksourceview
 
  * gnu/packages/gtk.scm (gtksourceview): New variable.
 
 Pushed.  The formatting still wasn???t as expected, so I just changed
 that as suggested.

Sorry.  I thought I had changed everything that you asked.  I'll check harder 
next time.

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.




Re: [PATCH] pspp

2013-11-30 Thread John Darrington
New patches attached.


J'

On Sat, Nov 30, 2013 at 11:15:31PM +0100, Ludovic Courtès wrote:
 Hi John,
 
 This looks great!  I just have minor stylistic notes:
 
 John Darrington j...@darrington.wattle.id.au skribis:
 
  From 69c6338775161fcba20f4ce9452b33fee90dc2d1 Mon Sep 17 00:00:00 2001
  From: John Darrington j...@darrington.wattle.id.au
  Date: Sat, 30 Nov 2013 11:11:54 +0100
  Subject: [PATCH 1/2] gnu: Added gtksourceview
 
  * gnu/packages/gtk.scm: New package gtksourceview
 
 Rather:
 
 * gnu/packages/gtk.scm (gtksourceview): New variable.
 
  +(uri (string-append mirror://gnome/sources/gtksourceview/ 
(string-take version 4) /gtksourceview-
  +version .tar.bz2))
 
 Please try to keep lines below 80 chars.
 
  +   (inputs
  +`(
  +  (intltool ,intltool)
  +  (pkg-config ,pkg-config)
  +  (gtk ,gtk+-2)
  +  (libxml2 ,libxml2)
  +
  +  ; These two are needed only to allow the tests to run successfully
  +  (xorg-server ,xorg-server)
  +  (shared-mime-info ,shared-mime-info)
  +))
 
 [...]
 
  +   (arguments
  +`(#:phases 
  +  ; Unfortunately, some of the tests in make check are highly 
dependent on the environment
  +  ; therefore, some black magic is required
 
 Please use the same style as the rest; in particular, no line break
 after an opening paren, no hanging closing parens, and two semicolons to
 introduce comments that are on line of their own (see ‘HACKING’.)
 
 (Nice that you managed to get the X tests running, BTW!)
 
  +   (synopsis A text widget that extends the standard gtk+ 2.x
  +text widget GtkTextView.)
 
 Rather like “Widget that extends GtkTextView from GTK+ 2.x” (no final
 period, no “A”.)
 
  From 39f8989a6e9067002911257701f90776f5b5b608 Mon Sep 17 00:00:00 2001
  From: John Darrington j...@darrington.wattle.id.au
  Date: Sat, 30 Nov 2013 13:54:46 +0100
  Subject: [PATCH 2/2] gnu: pspp: Enabled build of the gui
 
  * gnu/packages/math.scm (pspp): Removed the --without-gui flag
  and added the necessary inputs to build it.
 
 Should be ‘pspp’, not ‘pspp’.
 
 OK to apply modulo these cosmetic changes.  Could you post updated
 patches?
 
 Thanks!
 
 Ludo’.

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

From 1e5f4146bbe1d1ba4d73a5ff52b9e80e461bbe8c Mon Sep 17 00:00:00 2001
From: John Darrington j...@darrington.wattle.id.au
Date: Sat, 30 Nov 2013 11:11:54 +0100
Subject: [PATCH 1/2] gnu: Added gtksourceview

* gnu/packages/gtk.scm (gtksourceview): New variable.
---
 gnu/packages/gtk.scm |   58 ++
 1 file changed, 58 insertions(+)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index dff98b9..f55b5f1 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -27,6 +27,7 @@
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages icu4c)
   #:use-module (gnu packages libjpeg)
   #:use-module (gnu packages libpng)
@@ -162,6 +163,63 @@ used throughout the world.)
(license license:lgpl2.0+)
(home-page https://developer.gnome.org/pango/;)))
 
+
+(define-public gtksourceview
+  (package
+   (name gtksourceview)
+   (version 2.10.5) ; This is the last version which builds against gtk+2
+   (source (origin
+(method url-fetch)
+(uri (string-append mirror://gnome/sources/gtksourceview/ 
+(string-take version 4) /gtksourceview-
+version .tar.bz2))
+(sha256
+ (base32
+  07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5
+   (build-system gnu-build-system)
+   (inputs
+`(
+  (intltool ,intltool)
+  (pkg-config ,pkg-config)
+  (gtk ,gtk+-2)
+  (libxml2 ,libxml2)
+
+  ; These two are needed only to allow the tests to run successfully
+  (xorg-server ,xorg-server)
+  (shared-mime-info ,shared-mime-info)
+))
+   (arguments
+`(#:phases 
+  ;; Unfortunately, some of the tests in make check are highly dependent
+  ;; on the environment therefore, some black magic is required.
+   (alist-cons-before 'check 'start-xserver
+ (lambda* (#:key inputs #:allow-other-keys)
+   (let ((xorg-server (assoc-ref inputs xorg-server))
+ (mime (assoc-ref inputs shared-mime-info)))
+
+ ;; There must be a running X server and make check doesn't start one.
+ ;; Therefore we must do it.
+ (system