Add lang/pkl, Apple's Open Source Configuration as Code language

This commit is contained in:
Yan Ka Chiu 2024-06-27 01:35:29 +08:00 committed by Li-Wen Hsu
parent 17f150ca5c
commit bbb58d3bb4
No known key found for this signature in database
GPG key ID: 82B261B14D3BC7AF
4 changed files with 37 additions and 0 deletions

View file

@ -285,6 +285,7 @@
SUBDIR += php83-extensions
SUBDIR += picoc
SUBDIR += picolisp
SUBDIR += pkl
SUBDIR += plexil
SUBDIR += pocl
SUBDIR += polyml

27
lang/pkl/Makefile Normal file
View file

@ -0,0 +1,27 @@
PORTNAME= pkl
DISTVERSION= 0.26.0
CATEGORIES= lang java
MASTER_SITES= https://github.com/apple/pkl/releases/download/${PORTVERSION}/
DISTNAME= jpkl
EXTRACT_SUFX=
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
EXTRACT_ONLY= # empty
MAINTAINER= nyan@myuji.xyz
COMMENT= Apple's Open Source Configuration as Code language
WWW= https://pkl-lang.org
LICENSE= APACHE20
USE_JAVA= yes
JAVA_VERSION= 17+
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= bin/pkl
do-install:
${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/jpkl ${STAGEDIR}${PREFIX}/bin/pkl
.include <bsd.port.mk>

3
lang/pkl/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1719362009
SHA256 (pkl-0.26.0/jpkl) = dc00252bf14ec13decf869e5061052e4b7300db20f4797d6434cc26aa8bfe77d
SIZE (pkl-0.26.0/jpkl) = 14762791

6
lang/pkl/pkg-descr Normal file
View file

@ -0,0 +1,6 @@
Pkl - pronounced Pickle - is an embeddable configuration language which
provides rich support for data templating and validation. It can be used from
the command line, integrated in a build pipeline, or embedded in a program.
Pkl scales from small to large, simple to complex, ad-hoc to repetitive
configuration tasks.