mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
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:
parent
b0e566a840
commit
496eb10bae
2 changed files with 40 additions and 1 deletions
|
@ -4,12 +4,15 @@ distributable:
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
gitlab: gitlab.gnome.org:GNOME/pango/tags
|
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:
|
dependencies:
|
||||||
cairographics.org: 1
|
cairographics.org: 1
|
||||||
freetype.org: 2
|
freetype.org: 2
|
||||||
gnome.org/glib: 2
|
gnome.org/glib: 2
|
||||||
harfbuzz.org: '>=4 <6' #FIXME we’re actually not sure about the specifics of this requirement
|
harfbuzz.org: '>=4'
|
||||||
freedesktop.org/fontconfig: 2
|
freedesktop.org/fontconfig: 2
|
||||||
sourceware.org/libffi: 3
|
sourceware.org/libffi: 3
|
||||||
gnu.org/fribidi: 1
|
gnu.org/fribidi: 1
|
||||||
|
|
36
projects/plantuml.com/package.yml
Normal file
36
projects/plantuml.com/package.yml
Normal 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}}
|
Loading…
Reference in a new issue