summaryrefslogtreecommitdiffstats
path: root/devel/cut/Makefile
blob: 8c607e81170d934edb9addb48b2451ebf24c1ca6 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Created by: Sergei Gnezdov <sergeiga@yahoo.com>
# $FreeBSD$

PORTNAME=	cut
PORTVERSION=	2.7
CATEGORIES=	devel
MASTER_SITES=	https://bitbucket.org/kc5tja/cut/get/
DISTNAME=	v${PORTVERSION}
DIST_SUBDIR=	cut

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Unit Testing Framework for C, C++, and Objective-C

LICENSE=	BSD3CLAUSE

WRKSRC=		${WRKDIR}/kc5tja-cut-d4fc09276ea9

USES=		python:run shebangfix tar:bzip2
SHEBANG_FILES=	*.py
ALL_TARGET=	build

PLIST_SUB=	VERSION="${PORTVERSION}"

OPTIONS_DEFINE=	DOCS

do-configure:
	@${ECHO_CMD} -n > ${WRKDIR}/cutgen
	@${ECHO_CMD} "#!${SH}" >> ${WRKDIR}/cutgen
	@${ECHO_CMD} "cd ${PYTHONPREFIX_SITELIBDIR}/cut" >> ${WRKDIR}/cutgen
	@${ECHO_CMD} "exec ${PYTHON_CMD:T} cutgen.py" >> ${WRKDIR}/cutgen

do-install:
	(cd ${WRKDIR} && ${INSTALL_SCRIPT} cutgen \
		${STAGEDIR}${PREFIX}/bin)
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/cut/${PORTVERSION}
	(cd ${WRKSRC} && ${INSTALL_DATA} cut.h \
		${STAGEDIR}${PREFIX}/include/cut/${PORTVERSION})
	(cd ${WRKSRC}/build/lib && ${INSTALL_DATA} libcut.a \
		${STAGEDIR}${PREFIX}/lib)
	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cut
	(cd ${WRKSRC} && ${INSTALL_DATA} *.py \
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cut)

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} index.html \
		${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud