diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2019-12-20 23:20:30 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-12-20 23:20:56 +0100 |
commit | 47ec01382784eeb859ca3ce69862333a629e3c61 (patch) | |
tree | 797a431f42227fceddca519756a35ffc4bbbdd68 /gnu | |
parent | 70f2920c378a8da6d50647cc3f32bedb0827096d (diff) | |
download | guix-47ec01382784eeb859ca3ce69862333a629e3c61.tar.gz |
gnu: Add java-marlin-renderer.
* gnu/packages/java-graphics.scm (java-marlin-renderer): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/java-graphics.scm | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/gnu/packages/java-graphics.scm b/gnu/packages/java-graphics.scm index 10288bd83a..bc9972eb0a 100644 --- a/gnu/packages/java-graphics.scm +++ b/gnu/packages/java-graphics.scm @@ -24,7 +24,8 @@ #:use-module (guix build-system ant) #:use-module (gnu packages) #:use-module (gnu packages java) - #:use-module (gnu packages xorg)) + #:use-module (gnu packages xorg) + #:use-module (ice-9 match)) (define-public java-piccolo2d-core (package @@ -87,3 +88,36 @@ libraries.") 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."))) + +(define-public java-marlin-renderer + (package + (name "java-marlin-renderer") + (version "0.9.4.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bourgesl/marlin-renderer.git") + (commit (string-append "v" (string-map (match-lambda + (#\. #\_) + (c c)) + version))))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12vb8fmxf1smnyv6w8i1khahy76v6r29j1qwabbykxff8i9ndxqv")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "marlin.jar" + #:test-include (list "src/test/java/RunJUnitTest.java"))) + (inputs + `(("java-hamcrest-core" ,java-hamcrest-core) + ("java-junit" ,java-junit))) + (home-page "https://github.com/bourgesl/marlin-renderer/") + (synopsis "Rendering engine") + (description "Marlin is a Java2D @code{RenderingEngine} optimized for +performance (improved memory usage and footprint, better multi-threading) and +better visual quality based on OpenJDK's @code{pisces} implementation. It +handles shape rendering (@code{Graphics2D} @code{draw(Shape)} / +@code{fill(Shape)} with stroke and dash attributes.") + ;; With Classpath Exception + (license license:gpl2))) |