aboutsummaryrefslogtreecommitdiffstats
path: root/devel/grv/Makefile
blob: d44cfe712a6db341bf8566488b5bad308b456ea0 (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
50
51
52
53
54
55
56
# $FreeBSD$

PORTNAME=   grv
DISTVERSIONPREFIX=  v
DISTVERSION=    0.3.2
PORTREVISION=   1
CATEGORIES= devel

MAINTAINER= dg@syrec.org
COMMENT=    Terminal interface for viewing git repositories

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libgit2.so:devel/libgit2

USES=       go ncurses pkgconfig readline:port
USE_GITHUB= yes
GH_ACCOUNT= rgburke
GH_SUBDIR=  src/github.com/rgburke/grv
GH_TUPLE=   bradfitz:slice:2b758aa:slice/src/github.com/bradfitz/slice \
        camlistore:go4:94abd69:reflectutil/src/go4.org \
        davecgh:go-spew:d8f796a:spew/src/github.com/davecgh/go-spew \
        gobwas:glob:e7a84e9:glob/src/github.com/gobwas/glob \
        golang:crypto:a1f597e:crypto/src/golang.org/x/crypto \
        golang:sys:fead790:sys/src/golang.org/x/sys \
        mattn:go-runewidth:703b5e6:runewidth/src/github.com/mattn/go-runewidth \
        pmezard:go-difflib:5d4384e:difflib/src/github.com/pmezard/go-difflib \
        rgburke:goncurses:74f667a:goncurses/src/github.com/rgburke/goncurses \
        rjeczalik:notify:629144b:notify/src/github.com/rjeczalik/notify \
        Sirupsen:logrus:v1.4.0:logrus/src/github.com/Sirupsen/logrus \
        stretchr:objx:c61a9df:objx/src/github.com/stretchr/objx \
        stretchr:testify:34c6fa2:testify/src/github.com/stretchr/testify \
        tchap:go-patricia:v2.3.0:patricia/src/github.com/tchap/go-patricia \
        libgit2:git2go:ecaeb7a:git2go/src/gopkg.in/libgit2/git2go.v27 # Keep git2go branch in sync with devel/libgit2 version

PLIST_FILES=    bin/grv

OPTIONS_DEFINE= DOCS

PORTDOCS=   *

do-build:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build ./cmd/${PORTNAME}

do-test:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go test ./cmd/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>