[bug#39743,6/7] gnu: java-openjfx-controls: Add new variable.
diff mbox series

Message ID 20200222201755.50425-6-levenson@mmer.org
State Accepted
Headers show
Series
  • [bug#39742,1/7] gnu: java-openjfx-build: Add helpful patch.
Related show

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Alexey Abramov Feb. 22, 2020, 8:17 p.m. UTC
---
 gnu/packages/java.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Patch
diff mbox series

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 60f220f873..de7efbb29f 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3072,6 +3072,22 @@  distribution.")))
            (propagated-inputs
             `(("java-openjfx-graphics" ,java-openjfx-graphics)))))
 
+(define-public java-openjfx-controls
+  (package (inherit java-openjfx-build)
+           (name "java-openjfx-controls")
+           (arguments
+            `(#:jar-name "java-openjfx-controls.jar"
+              #:source-dir "modules/controls/src/main/java"
+              #:tests? #f
+              #:phases
+              (modify-phases %standard-phases
+                (add-before 'build 'copy-resources
+                  (lambda _
+                    (let ((resources (string-append (getcwd) "/modules/controls/src/main/resources")))
+                      (copy-recursively resources "build/classes")) #t)))))
+           (propagated-inputs
+            `(("java-openjfx-graphics" ,java-openjfx-graphics)))))
+
 (define-public java-openjfx-media
   (package (inherit java-openjfx-build)
     (name "java-openjfx-media")