mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
56 lines
1.0 KiB
Makefile
56 lines
1.0 KiB
Makefile
PORTNAME= gleam
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.25.0
|
|
CATEGORIES= lang
|
|
|
|
MAINTAINER= dch@FreeBSD.org
|
|
COMMENT= ML-flavoured type-safe language using Erlang's BEAM runtime
|
|
WWW= https://gleam.run/
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/compiler-core/LICENCE
|
|
|
|
USES= cargo ssl
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= gleam-lang
|
|
|
|
.include "Makefile.deps"
|
|
|
|
RUSTFLAGS+= --cap-lints=warn
|
|
|
|
PORTSCOUT= limit:[0-9.]+
|
|
|
|
PLIST_FILES= bin/gleam
|
|
|
|
PORTDOCS= README.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTSCOUT= limit:[0-9.]+
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && \
|
|
cargo build --release)
|
|
(cd ${WRKSRC}/compiler-cli && \
|
|
env HOME=${WRKDIR} cargo install --path . --force --locked)
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/bin/
|
|
${MV} ${WRKSRC}/target/release/gleam \
|
|
${STAGEDIR}${PREFIX}/bin/
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gleam
|
|
|
|
post-install-DOCS-on:
|
|
(cd ${WRKSRC} && \
|
|
${COPYTREE_SHARE} README.md ${STAGEDIR}${DOCSDIR})
|
|
|
|
do-test:
|
|
(cd ${WRKSRC} && \
|
|
gleam new hello && \
|
|
cd hello && \
|
|
gleam test)
|
|
|
|
.include <bsd.port.mk>
|