aboutsummaryrefslogtreecommitdiff
path: root/devel/getoptions/Makefile
blob: e3735def4bf53db50c90838bc89ab69700dbb7bd (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
37
38
39
40
41
42
43
44
45
46
PORTNAME=	getoptions
PORTVERSION=	3.3.0
DISTVERSIONPREFIX=	v
CATEGORIES=	devel

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Elegant option parser for shell scripts
WWW=		https://github.com/ko1nksm/getoptions/

LICENSE=	CC0-1.0
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	ko1nksm

PORTDOCS=	*
PORTEXAMPLES=	*

TESTS_EXAMPLES=	advanced.sh basic.sh bench.sh example.sh \
	parser_definition.sh prehook.sh subcmd.sh

PLIST_FILES=	bin/getoptions \
				bin/gengetoptions

OPTIONS_DEFINE=	DOCS EXAMPLES

MAKE_ARGS=	PREFIX=${STAGEDIR}${PREFIX}

NO_ARCH=	yes

do-build:
	cd ${WRKSRC} && ${MAKE} build

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} README.md CHANGELOG.md \
		docs/References.md docs/Workarounds.md \
		${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for e in ${TESTS_EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/examples/${e} ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>