Makefile 889 Bytes
Newer Older
marino's avatar
marino committed
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
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ahven
PORTVERSION=	2.3
CATEGORIES=	devel
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=${PORTNAME}/${PORTNAME}/Ahven%20${PORTVERSION}

MAINTAINER=	marino@FreeBSD.org
COMMENT=	Ada unit test framework

BUILD_DEPENDS=	adactl:${PORTSDIR}/lang/adacontrol

USES=		ada
ALL_TARGET=	build_all
DESTINY=	${WRKDIR}/destino
MAKE_ENV+=	DESTDIR=${DESTINY}

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
USE_PYTHON=	yes
BUILD_DEPENDS+=	sphinx-build:${PORTSDIR}/textproc/py-sphinx \
		${PYTHON_PKGNAMEPREFIX}sphinxcontrib-adadomain>0:${PORTSDIR}/textproc/py-sphinxcontrib-adadomain
ALL_TARGET+=	docs
.endif

post-install:
	@${RM} -rf ${DESTINY}${PREFIX}/share/doc/ahven/html/_sources
	@${RM} ${DESTINY}${PREFIX}/share/doc/ahven/html/.buildinfo
	@${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/

.include <bsd.port.mk>