aboutsummaryrefslogtreecommitdiffstats
path: root/net/drive/Makefile
blob: 77a5b01f5b202a3752ff21e04f9e577df840e392 (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
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=   drive
PORTVERSION=    0.3.9.1
DISTVERSIONPREFIX=  v
PORTREVISION=   1
CATEGORIES= net

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Tiny program to pull or push Google Drive files

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
GO_TARGET=  ${GO_PKGNAME}/cmd/${GH_PROJECT}
USES=       go

PLIST_FILES=    bin/drive

GH_ACCOUNT= odeke-em
GH_TUPLE=   boltdb:bolt:v1.3.1:boltdb_bolt/../src/github.com/boltdb/bolt \
        cheggaaa:pb:v2.0.6:cheggaaa_pb/../src/github.com/cheggaaa/pb \
        fatih:color:v1.6.0:fatih_color/../src/github.com/fatih/color \
        golang:crypto:d644981:golang_crypto/../src/golang.org/x/crypto \
        golang:net:61147c4:golang_net/../src/golang.org/x/net \
        golang:oauth2:921ae39:golang_oauth2/../src/golang.org/x/oauth2 \
        google:google-api-go-client:dde16f2:google_googleapigoclient/../src/google.golang.org/api \
        GoogleCloudPlatform:google-cloud-go:v0.21.0:GoogleCloudPlatform_googlecloudgo/../src/cloud.google.com/go \
        mattn:go-colorable:v0.0.9:mattn_gocolorable/../src/github.com/mattn/go-colorable \
        mattn:go-isatty:v0.0.3:mattn_goisatty/../src/github.com/mattn/go-isatty \
        mattn:go-runewidth:v0.0.2:mattn_gorunewidth/../src/github.com/mattn/go-runewidth \
        odeke-em:cache:baf8e43:odekeem_cache/../src/github.com/odeke-em/cache \
        odeke-em:cli-spinner:610063b:odekeem_clispinner/../src/github.com/odeke-em/cli-spinner \
        odeke-em:command:91ca5ec:odekeem_command/../src/github.com/odeke-em/command \
        odeke-em:exponential-backoff:96e25d3:odekeem_exponential_backoff/../src/github.com/odeke-em/exponential-backoff \
        odeke-em:extractor:801861a:odekeem_extractor/../src/github.com/odeke-em/extractor \
        odeke-em:go-utils:e8ebaed:odekeem_go_utils/../src/github.com/odeke-em/go-utils \
        odeke-em:go-uuid:b211d76:odekeem_gouuid/../src/github.com/odeke-em/go-uuid \
        odeke-em:log:8d60a69:odekeem_log/../src/github.com/odeke-em/log \
        odeke-em:meddler:d2b51d2:odekeem_meddler/../src/github.com/odeke-em/meddler \
        odeke-em:namespace:0ab79ba:odekeem_namespace/../src/github.com/odeke-em/namespace \
        odeke-em:pretty-words:9d37a7f:odekeem_prettywords/../src/github.com/odeke-em/pretty-words \
        odeke-em:semalim:9c88bf5:odekeem_semalim/../src/github.com/odeke-em/semalim \
        odeke-em:statos:292960a:odekeem_statos/../src/github.com/odeke-em/statos \
        skratchdot:open-golang:75fb7ed:skratchdot_opengolang/../src/github.com/skratchdot/open-golang \
        VividCortex:ewma:v1.1.1:VividCortex_ewma/../src/github.com/VividCortex/ewma
USE_GITHUB= yes

post-patch:
    @${MKDIR} ${GO_WRKDIR_SRC}/gopkg.in/cheggaaa/
    @${LN} -s ${GO_WRKDIR_SRC}/github.com/cheggaaa/pb ${GO_WRKDIR_SRC}/gopkg.in/cheggaaa/pb.v2
    @${MKDIR} ${GO_WRKDIR_SRC}/gopkg.in/fatih/
    @${LN} -s ${GO_WRKDIR_SRC}/github.com/fatih/color ${GO_WRKDIR_SRC}/gopkg.in/fatih/color.v1
    @${MKDIR} ${GO_WRKDIR_SRC}/gopkg.in/mattn/
    @${LN} -s ${GO_WRKDIR_SRC}/github.com/mattn/go-colorable ${GO_WRKDIR_SRC}/gopkg.in/mattn/go-colorable.v0
    @${LN} -s ${GO_WRKDIR_SRC}/github.com/mattn/go-isatty ${GO_WRKDIR_SRC}/gopkg.in/mattn/go-isatty.v0
    @${LN} -s ${GO_WRKDIR_SRC}/github.com/mattn/go-runewidth ${GO_WRKDIR_SRC}/gopkg.in/mattn/go-runewidth.v0
    @${MKDIR} ${GO_WRKDIR_SRC}/gopkg.in/VividCortex/
    @${LN} -s ${GO_WRKDIR_SRC}/github.com/VividCortex/ewma ${GO_WRKDIR_SRC}/gopkg.in/VividCortex/ewma.v1

do-install:
    ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/drive ${STAGEDIR}${PREFIX}/bin/drive

.include <bsd.port.mk>