unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add gegl and gimp
@ 2014-07-03  9:38 John Darrington
  2014-07-03 17:18 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: John Darrington @ 2014-07-03  9:38 UTC (permalink / raw)
  To: guix-devel; +Cc: John Darrington

* gnu/packages/gimp.scm (gegl, gimp): New variables.
---
 gnu/packages/gimp.scm |   82 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/gnu/packages/gimp.scm b/gnu/packages/gimp.scm
index 33c3887..0fd54ba 100644
--- a/gnu/packages/gimp.scm
+++ b/gnu/packages/gimp.scm
@@ -60,3 +60,85 @@ representations, color models and component permutations.
 A vocabulary to formulate new pixel formats from existing primitives is
 provided as well as the framework to add new color models and data types.")
     (license license:lgpl3+)))
+
+(define-public gegl
+  (package
+    (name "gegl")
+    (version "0.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (list (string-append "http://download.gimp.org/pub/gegl/" 
+                                        (string-take version 3)
+                                        "/" name "-" version ".tar.bz2")))
+              (sha256
+               (base32
+                "09nlv06li9nrn74ifpm7223mxpg0s7cii702z72cpbwrjh6nlbnz"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (alist-cons-before
+        'build 'pre-build
+        (lambda _
+          ;; This test program seems to crash on exit. Specifically, whilst
+          ;; g_object_unreffing bufferA and bufferB - This seems to be a bug in
+          ;; the destructor.  This is just a test program so will not have any
+          ;; wider effect, although might be hiding another problem.  The
+          ;; developers view is: "No released version is expected to be
+          ;; stable.  Use the version from git" Go figure!!
+          (substitute* "tools/img_cmp.c"
+            (("g_object_unref \\(buffer.\\);") ""))
+
+          (substitute* "tests/compositions/Makefile"
+            (("/bin/sh") (which "bash"))))
+        %standard-phases)))
+    (inputs
+     `(("babl" ,babl)
+       ("glib" ,glib)
+       ("cairo" ,cairo)
+       ("pango" ,pango)
+       ("libpng" ,libpng)
+       ("libjpeg" ,libjpeg-8)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("intltool" ,intltool)))
+    (home-page "http://gegl.org")
+    (synopsis "Graph based image processing framework")
+    (description "GEGL (Generic Graphics Library) provides infrastructure to
+do demand based cached non destructive image editing on larger than RAM
+buffers.")
+    ;; The library itself is licensed under LGPL while the sample commandline
+    ;; application and GUI binary gegl is licensed under GPL.
+    (license (list license:lgpl3+ license:gpl3+))))
+
+(define-public gimp
+  (package
+    (name "gimp")
+    (version "2.8.10")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://download.gimp.org/pub/gimp/v2.8/gimp-"
+                                        version ".tar.bz2"))
+              (sha256
+               (base32
+                "1rha8yx0pplfjziqczjrxxp16vsvpmb5ziq3c218s4w9z4cqpzg7"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags       
+       `("--disable-python" ))) ; We don't have pygtk which seems to be needed for this feature
+    (inputs
+     `(("babl" ,babl)
+       ("glib" ,glib)
+       ("libtiff" ,libtiff)
+       ("libjpeg" ,libjpeg-8)
+       ("atk" ,atk)
+       ("gtk+" ,gtk+-2)
+       ("gegl" ,gegl)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("intltool" ,intltool)))
+    (home-page "http://gimp.org")
+    (synopsis "Image manipulation program.")
+    (description "GIMP is the GNU Image Manipulation Program. It is a freely
+distributed piece of software for such tasks as photo retouching, image
+composition and image authoring.")
+    (license license:gpl3+))) ; Some files are LGPLv3+
-- 
1.7.10.4

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

* Re: [PATCH] gnu: Add gegl and gimp
  2014-07-03  9:38 [PATCH] gnu: Add gegl and gimp John Darrington
@ 2014-07-03 17:18 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-07-03 17:18 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <jmd@gnu.org> skribis:

> * gnu/packages/gimp.scm (gegl, gimp): New variables.

Great, looks good to me!

[...]

> +        (lambda _
> +          ;; This test program seems to crash on exit. Specifically, whilst
> +          ;; g_object_unreffing bufferA and bufferB - This seems to be a bug in
> +          ;; the destructor.  This is just a test program so will not have any
> +          ;; wider effect, although might be hiding another problem.  The
> +          ;; developers view is: "No released version is expected to be
> +          ;; stable.  Use the version from git" Go figure!!
> +          (substitute* "tools/img_cmp.c"
> +            (("g_object_unref \\(buffer.\\);") ""))

Could you add a link to the discussion or PR (if any?).

> +    (arguments
> +     `(#:configure-flags       
> +       `("--disable-python" ))) ; We don't have pygtk which seems to be needed for this feature

Line too long, please move the comment above.

> +    (synopsis "Image manipulation program.")

No period here.

> +    (description "GIMP is the GNU Image Manipulation Program. It is a freely
> +distributed piece of software for such tasks as photo retouching, image
> +composition and image authoring.")

Two spaces after end-of-sentence period.

> +    (license license:gpl3+))) ; Some files are LGPLv3+

Comment all lower-case, or period at the end of sentence.

OK to push with these changes!

Ludo’.

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

end of thread, other threads:[~2014-07-03 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-03  9:38 [PATCH] gnu: Add gegl and gimp John Darrington
2014-07-03 17:18 ` 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).