# $FreeBSD: tags/RELEASE_12_1_0/graphics/jp/Makefile 508370 2019-08-08 09:57:32Z 0mp $

PORTNAME=	jp
DISTVERSION=	1.1.12
CATEGORIES=	graphics

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Terminal charts, plots, histograms and maps from JSON and CSV

LICENSE=	MIT APACHE20
LICENSE_COMB=	multi

USES=		go
USE_GITHUB=	yes
GH_ACCOUNT=	sgreben
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET=	github.com/${GH_ACCOUNT}/${PORTNAME}/cmd/${PORTNAME}

OPTIONS_DEFINE=	DOCS EXAMPLES

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>
