1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/cons-test/Makefile
Kris Kennaway 2b5073cca4 Reset maintainer on ports maintained by the following non-ports committers,
who did not respond to my email confirming whether they have an active
interest in maintaining the port:

  sue reg rv jmb dima reg horikawa msmith jhs ue
2003-11-03 01:30:43 +00:00

74 lines
1.9 KiB
Makefile

# 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= ports@FreeBSD.org
COMMENT= A test bed for `Cons' development
RUN_DEPENDS= ${SITE_PERL}/${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>