add interprets: for java

closes https://github.com/pkgxdev/pkgx/issues/840
This commit is contained in:
Jacob Heider 2023-10-27 13:12:18 -04:00
parent 596d0c7248
commit b7413e1349
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -1,9 +1,15 @@
distributable: distributable:
url: https://github.com/openjdk/jdk20u/archive/jdk-20.0.2+9.tar.gz url: https://github.com/openjdk/jdk20u/archive/jdk-20.0.2+9.tar.gz
strip-components: 1 strip-components: 1
versions: versions:
- 20.0.2.9 - 20.0.2.9
#FIXME #FIXME
interprets:
extensions: java
args: java
dependencies: dependencies:
giflib.sourceforge.io: '*' giflib.sourceforge.io: '*'
harfbuzz.org: ^8 harfbuzz.org: ^8
@ -26,9 +32,11 @@ dependencies:
x.org/xtst: '*' x.org/xtst: '*'
info-zip.org/zip: '*' info-zip.org/zip: '*'
darwinsys.com/file: '*' darwinsys.com/file: '*'
runtime: runtime:
env: env:
JAVA_HOME: '{{prefix}}' JAVA_HOME: '{{prefix}}'
build: build:
dependencies: dependencies:
linux: linux:
@ -94,6 +102,7 @@ build:
- --with-libjpeg=system - --with-libjpeg=system
- --with-libpng=system - --with-libpng=system
- --with-zlib=system - --with-zlib=system
provides: provides:
- bin/jar - bin/jar
- bin/jarsigner - bin/jarsigner
@ -124,6 +133,7 @@ provides:
- bin/keytool - bin/keytool
- bin/rmiregistry - bin/rmiregistry
- bin/serialver - bin/serialver
test: test:
script: script:
- java --version | grep {{version.marketing}} - java --version | grep {{version.marketing}}