aboutsummaryrefslogtreecommitdiff
path: root/graphics/jp/Makefile
blob: 4859f1c148c5d312727b6d135a0785218b9cbc1e (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
PORTNAME=	jp
DISTVERSION=	1.1.12
PORTREVISION=	10
CATEGORIES=	graphics

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Terminal charts, plots, histograms and maps from JSON and CSV
WWW=		https://github.com/sgreben/jp

LICENSE=	MIT APACHE20
LICENSE_COMB=	multi

USES=		go
USE_GITHUB=	yes
GH_ACCOUNT=	sgreben
GH_TUPLE=	golang:sys:fead79001313:golang_sys/vendor/golang.org/x/sys_fead79001313
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET=	github.com/${GH_ACCOUNT}/${PORTNAME}/cmd/${PORTNAME}

OPTIONS_DEFINE=	DOCS EXAMPLES

pre-build:
	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
	${MV} ${WRKSRC}/vendor/golang.org/x/sys_fead79001313 ${WRKSRC}/vendor/golang.org/x/sys

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && \
		${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR})

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && \
		${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>