aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lab/Makefile
blob: 42165b063762603449a405b95b92d2af39ce6f1d (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# $FreeBSD$

PORTNAME=   lab
PORTVERSION=    0.16.0
DISTVERSIONPREFIX=  v
CATEGORIES= devel

MAINTAINER= swills@FreeBSD.org
COMMENT=    Lab makes it simple to work with repositories on GitLab

LICENSE=    UNLICENSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

USES=       go

OPTIONS_DEFINE= GIT_SUBVERSION

GIT_SUBVERSION_DESC=        Use devel/git-subversion as backend
GIT_SUBVERSION_RUN_DEPENDS= git-subversion>0:devel/git-subversion
GIT_SUBVERSION_RUN_DEPENDS_OFF= git:devel/git

USE_GITHUB= yes

GH_TUPLE=   zaquestion:${PORTNAME}:${DISTVERSIONPREFIX}${PORTVERSION}:DEFAULT/src/github.com/zaquestion/${PORTNAME} \
        avast:retry-go:5469272a8171:avast_retry_go/vendor/github.com/avast/retry-go \
        cpuguy83:go-md2man:v1.0.8:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man \
        davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
        fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
        gdamore:encoding:b23993cbb635:gdamore_encoding/vendor/github.com/gdamore/encoding \
        gdamore:tcell:2f258105ca8c:gdamore_tcell/vendor/github.com/gdamore/tcell \
        go-yaml:yaml:v2.2.1:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
        golang:appengine:v1.3.0:golang_appengine/vendor/google.golang.org/appengine \
        golang:crypto:0709b304e793:golang_crypto/vendor/golang.org/x/crypto \
        golang:net:03003ca0c849:golang_net/vendor/golang.org/x/net \
        golang:oauth2:f42d05182288:golang_oauth2/vendor/golang.org/x/oauth2 \
        golang:protobuf:v1.2.0:golang_protobuf/vendor/github.com/golang/protobuf \
        golang:sys:d0be0721c37e:golang_sys/vendor/golang.org/x/sys \
        golang:text:v0.3.0:golang_text/vendor/golang.org/x/text \
        google:go-querystring:v1.0.0:google_go_querystring/vendor/github.com/google/go-querystring \
        hashicorp:hcl:ef8a98b0bbce:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
        inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
        lucasb-eyer:go-colorful:231272389856:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \
        lunixbochs:vtclean:2d01aacdc34a:lunixbochs_vtclean/vendor/github.com/lunixbochs/vtclean \
        magiconair:properties:v1.7.6:magiconair_properties/vendor/github.com/magiconair/properties \
        mattn:go-runewidth:v0.0.2:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
        mitchellh:mapstructure:00c29f56e238:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
        pelletier:go-toml:v1.1.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
        pkg:errors:v0.8.0:pkg_errors/vendor/github.com/pkg/errors \
        pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
        rivo:tview:f855bee0205c:rivo_tview/vendor/github.com/rivo/tview \
        rsteube:cobra:v0.0.1-zsh-completion-custom:rsteube_cobra/vendor/github.com/spf13/cobra \
        russross:blackfriday:v1.5.1:russross_blackfriday/vendor/github.com/russross/blackfriday \
        spf13:afero:v1.1.0:spf13_afero/vendor/github.com/spf13/afero \
        spf13:cast:v1.2.0:spf13_cast/vendor/github.com/spf13/cast \
        spf13:jwalterweatherman:7c0cea34c8ec:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
        spf13:pflag:v1.0.1:spf13_pflag/vendor/github.com/spf13/pflag \
        spf13:viper:15738813a09d:spf13_viper/vendor/github.com/spf13/viper \
        stretchr:testify:v1.2.2:stretchr_testify/vendor/github.com/stretchr/testify \
        tcnksm:go-gitconfig:v0.1.2:tcnksm_go_gitconfig/vendor/github.com/tcnksm/go-gitconfig \
        xanzy:go-gitlab:7bc4155e8bf8:xanzy_go_gitlab/vendor/github.com/xanzy/go-gitlab
PLIST_FILES=    bin/lab

do-build:
    @cd ${WRKSRC}/src/github.com/zaquestion/${PORTNAME}; \
        ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 ${BUILD_ENV} \
        GOPATH=${WRKSRC} go build \
        -ldflags "-X \"main.version=${PORTVERSION}\""

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

.include <bsd.port.mk>