aboutsummaryrefslogtreecommitdiff
path: root/shells/modernish/Makefile
blob: 096f3e312a7cb37af79efd9902b11df4bc0ed313 (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
PORTNAME=	modernish
DISTVERSIONPREFIX=	v
DISTVERSION=	0.16.5
CATEGORIES=	shells

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	POSIX shell feature detection and language extension library

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes

NO_ARCH=	yes
NO_BUILD=	yes

OPTIONS_DEFINE=	DOCS EXAMPLES

post-extract:
	${MV} ${WRKSRC}/lib/modernish/cap/BUG_DEVTTY.t ${WRKDIR}

do-install:
	cd ${WRKSRC} && \
	${SETENV} ${MAKE_ENV} ${SH} -x ./install.sh -d ${PREFIX} -D ${STAGEDIR} -n -s ${SH}

	${MV} ${WRKDIR}/BUG_DEVTTY.t ${STAGEDIR}${PREFIX}/lib/modernish/cap/BUG_DEVTTY.t

	${RM} ${STAGEDIR}${DOCSDIR}/LICENSE
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR:H}
	${MV} ${STAGEDIR}${DOCSDIR}/examples ${STAGEDIR}${EXAMPLESDIR}
	${RLN} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}/examples

.include <bsd.port.mk>