blob: 94a0171489448faa6e9ef57659334d67d9455051 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# New ports collection makefile for: cons-test
# Date created: 15 September 2000
# Whom: rv@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= cons-test
PORTVERSION= 2.2.0
CATEGORIES= devel
MASTER_SITES= http://www.dsmit.com/cons/stable/ \
http://www.gnu.org/software/cons/stable/ \
ftp://ftp.gnu.org/pub/gnu/cons/stable/${PORTVERSION}/ \
http://www.baldmt.com/cons/stable/
EXTRACT_SUFX= .tgz
MAINTAINER= rv@FreeBSD.org
COMMENT= A test bed for `Cons' development
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 ${LOCALBASE}/bin/cons:${PORTSDIR}/devel/cons
USE_PERL5= yes
NO_BUILD= yes
CONS_TEST= cons-${PORTVERSION}/test
WRKSRC= ${WRKDIR}/${CONS_TEST}
PLIST_SUB= CONS_VER=${PORTVERSION} CONS_TEST=${CONS_TEST}
MAN1= cons-test.1
MANCOMPRESSED= yes
DOCS= CHANGES COPYING COPYRIGHT README TODO Tests.txt
TESTS= 1..83,101..147
TEST_LIBS= Cmd.pm Cons.pm
do-install:
#
# Install the script
#
${MKDIR} ${PREFIX}/bin
@${SED} -e 's:/usr/lib:${PREFIX}/lib:g' \
<${WRKSRC}/cons-test >${PREFIX}/bin/cons-test
@${CHMOD} a+x ${PREFIX}/bin/cons-test
#
# Install the tests
#
${MKDIR} ${PREFIX}/lib/${CONS_TEST}/t
${PERL} -e 'for (${TESTS}) {$$f=sprintf "t%04d.t", $$_;\
$$x= "${INSTALL_DATA} ${WRKSRC}/t/$$f \
${PREFIX}/lib/${CONS_TEST}/t";\
printf "$$x\n"; system $$x;}'
#
# Install the test libraries
#
${MKDIR} ${PREFIX}/lib/${CONS_TEST}/Test/Cmd
${INSTALL_DATA} ${WRKSRC}/Test/Cmd.pm ${PREFIX}/lib/${CONS_TEST}/Test
${INSTALL_DATA} ${WRKSRC}/Test/Cmd/Cons.pm \
${PREFIX}/lib/${CONS_TEST}/Test/Cmd
#
# Install the man pages
#
${INSTALL_MAN} ${WRKSRC}/cons-test.1.gz \
${PREFIX}/man/man1/cons-test.1.gz
.if !defined(NOPORTDOCS)
#
# Install the documentation
#
${MKDIR} ${PREFIX}/share/doc/${CONS_TEST}
.for f in ${DOCS}
${INSTALL} -c ${WRKSRC}/$f \
${PREFIX}/share/doc/${CONS_TEST}
.endfor
.endif
.include <bsd.port.mk>
|