Skip to content

Commit

Permalink
plantuml: Add support for JLaTeXMath and change note
Browse files Browse the repository at this point in the history
  • Loading branch information
judaew authored and cjones051073 committed May 20, 2021
1 parent 408f03d commit 0bb6a3d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
15 changes: 11 additions & 4 deletions java/plantuml/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup github 1.0
PortGroup java 1.0

github.setup plantuml plantuml 1.2021.6 v
revision 0
revision 1
categories java editors
platforms darwin
supported_archs noarch
Expand All @@ -14,13 +14,14 @@ maintainers {outlook.de:judaew @judaew} openmaintainer
description PlantUML is a tool for generating UML diagrams from textual \
description.
long_description ${description}
homepage http://plantuml.com/
homepage https://plantuml.com/

checksums rmd160 459d88a129f4ca576c787102901e39f9b69a723a \
sha256 93e39a538928bbd26753e39de16a017d43bccf7ccc3cdd90b6c96079eff1c921 \
size 4665903

depends_build bin:ant:apache-ant
depends_build bin:ant:apache-ant \
port:jlatexmath

java.version 1.7+
java.fallback openjdk11
Expand All @@ -37,6 +38,8 @@ post-extract {
copy ${filespath}/${name}.in ${worksrcpath}/${name}
}

patchfiles patch-jlatexmath-name.diff

post-patch {
reinplace "s|__PLANTUML_LAUNCHER_PATH__|${prefix}/share/java/${jarname}|g" \
${worksrcpath}/${name}
Expand All @@ -48,5 +51,9 @@ destroot {
xinstall -m 0644 ${worksrcpath}/${jarname} ${javadir}
}

notes "Graphiz/DOT notation is enabled by installing gnuplot.\n"
notes "
graphviz port is optional -- you don't need this if you only need sequence
and activity diagrams. Otherwise, install with
sudo port install graphviz
"
11 changes: 11 additions & 0 deletions java/plantuml/files/patch-jlatexmath-name.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- build.xml.orig 2021-05-20 23:50:10.000000000 +0300
+++ build.xml 2021-05-20 23:51:38.000000000 +0300
@@ -96,7 +96,7 @@
<manifest>
<attribute name="Automatic-Module-Name" value="net.sourceforge.plantuml" />
<attribute name="Main-Class" value="net.sourceforge.plantuml.Run" />
- <attribute name="Class-Path" value="elk-full.jar avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.3.1.jar commons-logging-1.0.4.jar fop.jar xml-apis-ext-1.3.04.jar xmlgraphics-commons-1.4.jar jlatexmath-minimal-1.0.3.jar jlm_cyrillic.jar jlm_greek.jar vizjs.jar j2v8_win32_x86_64-3.1.6.jar j2v8_linux_x86_64-3.1.6.jar j2v8_macosx_x86_64-3.1.6.jar ditaa0_9.jar" />
+ <attribute name="Class-Path" value="elk-full.jar avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.3.1.jar commons-logging-1.0.4.jar fop.jar xml-apis-ext-1.3.04.jar xmlgraphics-commons-1.4.jar jlatexmath.jar jlm_cyrillic.jar jlm_greek.jar vizjs.jar j2v8_win32_x86_64-3.1.6.jar j2v8_linux_x86_64-3.1.6.jar j2v8_macosx_x86_64-3.1.6.jar ditaa0_9.jar" />
</manifest>
</jar>
<delete dir="build" />

0 comments on commit 0bb6a3d

Please sign in to comment.