summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-12-19 23:00:38 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-12-19 23:21:06 +0100
commit719d8d5b93cb9b732eba15a75f1b075735a91062 (patch)
tree1f2b933d12fbc2b693551d7d244f556e1c741dde /gnu
parent1fb76dce3e2ea62bb0ba8d118a56b4476c953fb4 (diff)
downloadguix-719d8d5b93cb9b732eba15a75f1b075735a91062.tar.gz
gnu: Add java-piccolo2d-extras.
* gnu/packages/java-graphics.scm (java-piccolo2d-extras): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java-graphics.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/java-graphics.scm b/gnu/packages/java-graphics.scm
index 7c1a5f68b4..10288bd83a 100644
--- a/gnu/packages/java-graphics.scm
+++ b/gnu/packages/java-graphics.scm
@@ -55,3 +55,35 @@ create robust, full-featured graphical applications in Java, with features
 such as zooming and multiple representation.  This package provides the core
 libraries.")
     (license license:bsd-3)))
+
+(define-public java-piccolo2d-extras
+  (package (inherit java-piccolo2d-core)
+    (name "java-piccolo2d-extras")
+    (arguments
+     `(#:jar-name "piccolo2d-extras.jar"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'chdir
+           (lambda _ (chdir "extras") #t))
+         (add-after 'chdir 'remove-failing-test
+           (lambda _
+             ;; TODO: These both fail with "Unable to convolve src image"
+             (delete-file "src/test/java/org/piccolo2d/extras/nodes/PShadowTest.java")
+             (delete-file "src/test/java/org/piccolo2d/extras/util/ShadowUtilsTest.java")
+             #t))
+         (add-before 'check 'start-xorg-server
+           (lambda* (#:key inputs #:allow-other-keys)
+             ;; The test suite requires a running X server.
+             (system (string-append (assoc-ref inputs "xorg-server")
+                                    "/bin/Xvfb :1 -screen 0 640x480x24 &"))
+             (setenv "DISPLAY" ":1")
+             #t)))))
+    (inputs
+     `(("java-piccolo2d-core" ,java-piccolo2d-core)
+       ("java-junit" ,java-junit)))
+    (native-inputs
+     `(("xorg-server" ,xorg-server))) ; for tests
+    (description "Piccolo2D is a framework (in the Jazz ZUI tradition) to
+create robust, full-featured graphical applications in Java, with features
+such as zooming and multiple representation.  This package provides additional
+features not found in the core libraries.")))