aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gauche-gaunit/Makefile
blob: 84167d6ac674680f63f07e57ce49ab7eeb42721d (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
# New ports collection makefile for:    GaUnit
# Date created:                8 May 2004
# Whom:                        Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$

PORTNAME=   gaunit
PORTVERSION=    0.1.0
CATEGORIES= devel scheme
MASTER_SITES=   http://www.cozmixng.org/~kou/download/
PKGNAMEPREFIX=  gauche-

MAINTAINER= ports@FreeBSD.org
COMMENT=    An unit testing framework in Gauche

BUILD_DEPENDS=  gosh:${PORTSDIR}/lang/gauche
RUN_DEPENDS=    ${BUILD_DEPENDS}

NO_BUILD=   yes
DOCSDIR=    ${PREFIX}/share/doc/gauche/${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/gauche/${PORTNAME}

.if !defined(NOPORTDOCS)
PORTDOCS=   README.* Tutorial.*
.endif

do-install:
    cd ${WRKSRC}; ${LOCALBASE}/bin/gosh install/install.scm

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
    ${MKDIR} ${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/sample/* ${EXAMPLESDIR}

test:
    cd ${WRKSRC}; ${LOCALBASE}/bin/gosh -I. test/run-test.scm

.include <bsd.port.mk>