aboutsummaryrefslogtreecommitdiff
path: root/devel/shards/Makefile
blob: e709ae30417b5cef8368779b9a6974e4535ade30 (plain) (blame)
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
37
PORTNAME=	shards
DISTVERSIONPREFIX=	v
DISTVERSION=	0.17.2
CATEGORIES=	devel

MAINTAINER=	dmgk@FreeBSD.org
COMMENT=	Dependency manager for the Crystal programming language
WWW=		https://github.com/crystal-lang/shards

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	crystal:lang/crystal
LIB_DEPENDS=	libevent.so:devel/libevent \
		libgc-threaded.so:devel/boehm-gc-threaded \
		libpcre.so:devel/pcre \
		libyaml.so:textproc/libyaml
RUN_DEPENDS=	git:devel/git

USES=		gmake
USE_GITHUB=	yes
GH_ACCOUNT=	crystal-lang
GH_TUPLE=	crystal-lang:crystal-molinillo:v0.2.0:molinillo/lib/molinillo

MAKE_ARGS+=	CRYSTAL="${LOCALBASE}/bin/crystal" \
		FLAGS="--release --no-debug" \
		MANDIR="${STAGEDIR}${PREFIX}/man" \
		SHARDS_CONFIG_BUILD_COMMIT="9d17faf6a7e8"

PLIST_FILES=	bin/shards \
		man/man1/shards.1.gz \
		man/man5/shard.yml.5.gz

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

.include <bsd.port.mk>