1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/lang/gleam/Makefile
2021-10-25 10:55:19 +02:00

44 lines
881 B
Makefile

PORTNAME= gleam
DISTVERSIONPREFIX= v
DISTVERSION= 0.17.0
PORTREVISION= 1
CATEGORIES= lang
MAINTAINER= dch@FreeBSD.org
COMMENT= ML-flavoured type-safe language using Erlang's BEAM runtime
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/compiler-core/LICENCE
RUN_DEPENDS= rebar3:devel/rebar3
USES= cargo ssl
USE_GITHUB= yes
GH_ACCOUNT= gleam-lang
.include "Makefile.deps"
RUSTFLAGS+= --cap-lints=warn
PLIST_FILES= bin/gleam
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} && cargo build --release)
(cd ${WRKSRC}/compiler-cli && 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})
.include <bsd.port.mk>