summaryrefslogtreecommitdiff
path: root/net/gdrive/Makefile
blob: 5368f46fb78a919eaca3b5ae3fe5b10b1b5174b0 (plain)
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
PORTNAME=	gdrive
DISTVERSION=	2.1.1
PORTREVISION=	19
CATEGORIES=	net

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
# https://github.com/prasmussen/gdrive/pull/428
PATCHFILES=	3c060f4d33530866496515b45fcfaa3fd2da5f32.patch:-p1 \
		4916e16a91b84702ebe67ca7be4295b26d4cb0b5.patch:-p1 \
		0197c982f6c961e8a44ec9895fcc33c1fe4c3ac2.patch:-p1 \
		f397bb25e339dc4cf1e9bf2467336ba6fd48fd9f.patch:-p1

MAINTAINER=	dmgk@FreeBSD.org
COMMENT=	Google Drive CLI Client
WWW=		https://github.com/prasmussen/gdrive

LICENSE=	MIT

USES=		go
USE_GITHUB=	yes
GH_ACCOUNT=	prasmussen

GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}

OPTIONS_DEFINE=	DOCS

PLIST_FILES=	bin/gdrive
PORTDOCS=	README.md

post-patch:
	${MV} ${WRKSRC}/vendor/github.com/sabhiram/go-git-ignore \
		${WRKSRC}/vendor/github.com/sabhiram/go-gitignore

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>