plantuml.com (#2700)

* plantuml.com

* debug

* -debug

* harfbuzz.org: ^8

* wip

* let's get nuts

* pango ignore versions

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-08-17 20:28:59 +03:00 committed by GitHub
parent b0e566a840
commit 496eb10bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 1 deletions

View file

@ -4,12 +4,15 @@ distributable:
versions:
gitlab: gitlab.gnome.org:GNOME/pango/tags
ignore:
- /1\.51\.1/ # this version is broken really 1.51.0
- /1\.90\.*/ # beta of 2.0
dependencies:
cairographics.org: 1
freetype.org: 2
gnome.org/glib: 2
harfbuzz.org: '>=4 <6' #FIXME were actually not sure about the specifics of this requirement
harfbuzz.org: '>=4'
freedesktop.org/fontconfig: 2
sourceware.org/libffi: 3
gnu.org/fribidi: 1

View file

@ -0,0 +1,36 @@
distributable:
url: https://github.com/plantuml/plantuml/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: plantuml/plantuml
dependencies:
graphviz.org: '*'
openjdk.org: '*'
runtime:
env:
PLANTUML_JAR: "{{prefix}}/libexec/plantuml-{{version}}.jar"
JAVA_BIN: "{{deps.openjdk.org.prefix}}/bin/java"
DOT_BIN: "{{deps.graphviz.org.prefix}}/bin/dot"
build:
dependencies:
gnu.org/wget: '*'
script:
- wget https://github.com/plantuml/plantuml/releases/download/v{{version}}/plantuml-{{version}}.jar
- mkdir -p {{prefix}}/libexec
- install plantuml-{{version}}.jar {{prefix}}/libexec/
- run: |
cat <<EOS > plantuml
#!/bin/bash
if [[ "\$*" != *"-gui"* ]]; then
VMARGS="-Djava.awt.headless=true"
fi
GRAPHVIZ_DOT="\$DOT_BIN" exec "\$JAVA_BIN" \$VMARGS -jar "\$PLANTUML_JAR" "\$@"
EOS
- mkdir -p {{prefix}}/bin
- install plantuml {{prefix}}/bin/plantuml
provides:
- bin/plantuml
test:
script:
- plantuml -testdot
- plantuml -version | grep {{version}}