summaryrefslogtreecommitdiff
path: root/lang/gleam/Makefile
blob: e6469bc9d1bdc808d86c5a9c3fdc7769bd442ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

PORTNAME=	gleam
DISTVERSIONPREFIX=	v
DISTVERSION=	0.14.4
PORTREVISION=	1
CATEGORIES=	lang

MAINTAINER=	dch@FreeBSD.org
COMMENT=	Ml-flavoured type-safe language using Erlang's BEAM runtime

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/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

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gleam

post-install-DOCS-on:
	(cd ${WRKSRC} && ${COPYTREE_SHARE} README.md ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>