aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/hfm/Makefile
blob: 77f8f14dd389f356362dda75bcf9f5922710daa2 (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
38
39
40
41
42
43
44
45
46
47
48
49
# $FreeBSD$

PORTNAME=   hfm
PORTVERSION=    1.2.3
DISTVERSIONPREFIX=  v
CATEGORIES= sysutils

MAINTAINER= 554b8425@razorfever.net
COMMENT=    Run tests in parallel at high frequency

LICENSE=    BSD2CLAUSE

# gb 0.4 includes FreeBSD-specific fixes that this port requires
#   https://github.com/constabulary/gb/issues/506
BUILD_DEPENDS=  go>=1.5:lang/go \
        gb>=0.4:devel/gb \
        ${LOCALBASE}/lib/libucl.a:textproc/libucl

USES=       compiler:c++11-lang
USE_GITHUB= yes

GH_ACCOUNT= derekmarcotte
GH_TUPLE=   mitchellh:go-libucl:f9d0e55:gu/vendor/src/github.com/mitchellh/go-libucl \
        op:go-logging:dfaf3df:gl/vendor/src/github.com/op/go-logging

USERS=      _hfm
GROUPS=     _hfm

USE_RC_SUBR=    hfm

MAKE_ARGS+= ETCDIR=${ETCDIR} TAG=${DISTVERSIONPREFIX}${PORTVERSION}

ALL_TARGET= test build

do-patch:
    (cd ${WRKSRC}; ${PATCH} vendor/src/github.com/mitchellh/go-libucl/libucl.go < vendor/patches/github.com/mitchellh/go-libucl/libucl.go.patch )

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/hfm ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${ETCDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/hfm.conf.sample ${STAGEDIR}${ETCDIR}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>