PORTNAME=	packr
DISTVERSIONPREFIX=	v
DISTVERSION=	2.8.3
PORTREVISION=	41
CATEGORIES=	devel

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple and easy way to embed static files into Go binaries
WWW=		https://github.com/gobuffalo/packr

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		go:modules

GO_MODULE=	github.com/gobuffalo/packr/v2
GO_TARGET=	./packr2

PLIST_FILES=	bin/packr2

PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

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

.include <bsd.port.mk>
