1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-10 02:45:11 +00:00
freebsd-ports/devel/simpletest/Makefile
Martin Wilke f53f6264e0 - Pass maintainership to submitter
- Update to 1.0
- Set PHP to version 4 a default

PR:		ports/106478
Submitted by:	Gerrit Beine<gerrit.beine@gmx.de>
2006-12-08 22:26:50 +00:00

62 lines
1.7 KiB
Makefile

# Ports collection makefile for: simpletest
# Date created: 16 August 2004
# Whom: Roman Neuhauser (<neuhauser@chello.cz>)
#
# $FreeBSD$
#
PORTNAME= simpletest
PORTVERSION= 1.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}/
DISTNAME= ${PORTNAME:L}_${PORTVERSION}
MAINTAINER= gerrit.beine@gmx.de
COMMENT= Unit testing, mock objects and web testing framework for PHP
USE_PHP= pcre
USE_PHP_BUILD= yes
DEFAULT_PHP_VER=4
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME:L}
.if !defined(NOPORTDOCS)
DOCFILES= HELP_MY_TESTS_DONT_WORK_ANYMORE README
HTMLDOCFILES= docs/en/*
.endif
DATAFILES= *.php extensions test LICENSE VERSION
do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC}/ \
&& ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \
&& ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR}/html
.for file in ${DOCFILES}
${CP} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.for file in ${HTMLDOCFILES}
${CP} ${WRKSRC}/${file} ${DOCSDIR}/html
.endfor
.endif
post-install:
@${FIND} -s ${DATAFILES:S,^,${WRKSRC}/,} -not -type d \
| ${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${FIND} -s -d ${DATAFILES:S,^,${WRKSRC}/,} -type d \
| ${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${FIND} -s ${DOCSDIR} -not -type d \
| ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
@${FIND} -s -d ${DOCSDIR} -type d \
| ${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>