summaryrefslogtreecommitdiff
path: root/textproc/choose/Makefile
blob: 7dbab66f16b2e8b74ff37c83311cdfc193be1749 (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
PORTNAME=	choose
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.4
CATEGORIES=	textproc

MAINTAINER=	tagattie@FreeBSD.org
COMMENT=	Human-friendly and fast alternative to cut and (sometimes) awk
WWW=		https://github.com/theryangeary/choose

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	theryangeary

PLIST_FILES=	bin/${PORTNAME}

PORTDOCS=	contributing.md readme.md

OPTIONS_DEFINE=	DOCS

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

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

.include <bsd.port.mk>