aboutsummaryrefslogtreecommitdiffstats
path: root/devel/shards/Makefile
blob: 357891074a455ed7008f3d3b8437e4ac436b4222 (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
# $FreeBSD$

PORTNAME=       shards
DISTVERSIONPREFIX=  v
DISTVERSION=        0.7.2
PORTREVISION=       1
CATEGORIES=     devel

MAINTAINER= greg@unrelenting.technology
COMMENT=    Dependency manager for the Crystal programming language

LICENSE=    APACHE20

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

USE_GITHUB= yes
GH_ACCOUNT= crystal-lang

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

do-build:
    cd ${WRKSRC} && crystal build --release --no-debug -o bin/shards src/shards.cr

do-install:
    ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/shards ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_MAN} ${INSTALL_WRKSRC}/src/man/shards.1 ${STAGEDIR}${MANPREFIX}/man/man1/
    ${INSTALL_MAN} ${INSTALL_WRKSRC}/src/man/shard.yml.5 ${STAGEDIR}${MANPREFIX}/man/man5/

.include <bsd.port.mk>