summaryrefslogtreecommitdiff
path: root/devel/go-cli/Makefile
blob: 8a03f75a4b2c337f6d24547bcd669ea462393fa9 (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
# $NetBSD: Makefile,v 1.6 2018/03/30 11:56:20 bsiegert Exp $

DISTNAME=	cli-1.20.0
PKGNAME=	go-${DISTNAME}
PKGREVISION=	2
MASTER_SITES=	${MASTER_SITE_GITHUB:=urfave/}
CATEGORIES=	devel
GITHUB_TAG=	v${PKGVERSION_NOREV}
GITHUB_PROJECT= ${PKGBASE:S/^go-//}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/urfave/cli
COMMENT=	Package for building command line apps in Go
LICENSE=	mit

GO_DIST_BASE=	${DISTNAME}
GO_SRCPATH=	gopkg.in/urfave/cli.v1

REPLACE_BASH+=	autocomplete/bash_autocomplete
REPLACE_PYTHON+= generate-flag-types
REPLACE_PYTHON+= runtests
USE_TOOLS+=	bash:run

# Deal with renaming
pre-install:
	${MKDIR} ${WRKDIR}/src/github.com/urfave
	${MKDIR} ${WRKDIR}/pkg/${GO_PLATFORM}/github.com/urfave
	${CP} -R ${WRKDIR}/src/gopkg.in/urfave/cli.v1 ${WRKDIR}/src/github.com/urfave/cli
	${CP} -R ${WRKDIR}/pkg/${GO_PLATFORM}/gopkg.in/urfave/cli.v1 ${WRKDIR}/pkg/${GO_PLATFORM}/github.com/urfave/cli

.include "../../www/go-toml-burntsushi/buildlink3.mk"
.include "../../devel/go-yaml/buildlink3.mk"
.include "../../lang/go/go-package.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"