aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/gnome.scm
blob: 2ebbd2956580ea23fce383ff0f39acec3571e160 (about) (plain)
blob size (267KB) exceeds display size limit (100KB).
#:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system ant) #:use-module (gnu packages graphviz) #:use-module (gnu packages java)) (define-public plantuml (package (name "plantuml") (version "1.2024.6") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/plantuml/plantuml/") (commit (string-append "v" version)))) (sha256 (base32 "0h6hk34x5qc8cyqlw90wnakji8w6n9bykpr3dygvfwg2kvw5rhlv")))) (build-system ant-build-system) (arguments `(#:tests? #f ; no tests #:build-target "dist" #:phases (modify-phases %standard-phases (add-before 'build 'delete-extra-from-classpath (lambda _ (substitute* "build.xml" (("1.6") "1.7") (("<attribute name=\"Class-Path\"") "<!--") (("ditaa0_9.jar\" />") "-->")) #t)) (add-after 'delete-extra-from-classpath 'patch-usr-bin-dot (lambda* (#:key inputs #:allow-other-keys) (let ((dot (search-input-file inputs "/bin/dot"))) (substitute* "src/net/sourceforge/plantuml/dot/GraphvizLinux.java" (("/usr/bin/dot") dot))) #t)) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (install-file "plantuml.jar" (string-append (assoc-ref outputs "out") "/share/java")) #t)) (add-after 'install 'make-wrapper (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (wrapper (string-append out "/bin/plantuml"))) (mkdir-p (string-append out "/bin")) (with-output-to-file wrapper (lambda _ (display (string-append "#!/bin/sh\n\n" (assoc-ref inputs "jre") "/bin/java -jar " out "/share/java/plantuml.jar \"$@\"\n")))) (chmod wrapper #o555)) #t))))) (inputs `(("graphviz" ,graphviz) ("jre" ,icedtea))) (home-page "https://plantuml.com/") (synopsis "Draw UML diagrams from simple textual description") (description "Plantuml is a tool to generate sequence, usecase, class, activity, component, state, deployment and object UML diagrams, using a simple and human readable text description. Contains @code{salt}, a tool that can design simple graphical interfaces.") (license license:gpl3+)))