Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2006 12:13:03 GMT
From:      Gerrit Beine<gerrit.beine@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/106478: Update port: devel/simpletest
Message-ID:  <200612081213.kB8CD39c014690@www.freebsd.org>
Resent-Message-ID: <200612081220.kB8CK7n9074339@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106478
>Category:       ports
>Synopsis:       Update port: devel/simpletest
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 08 12:20:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gerrit Beine
>Release:        FreeBSD 6.1-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD freebsd.vmware 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
- take maintainership
- removed faked PEAR compatibility
- updated to stable version 1.0
- set PHP to version 4 as default
>How-To-Repeat:

>Fix:
diff -Nur /usr/ports/devel/simpletest/Makefile simpletest/Makefile
--- /usr/ports/devel/simpletest/Makefile	Mon Jan 23 10:48:39 2006
+++ simpletest/Makefile	Fri Dec  8 11:27:31 2006
@@ -5,104 +5,57 @@
 # $FreeBSD: ports/devel/simpletest/Makefile,v 1.6 2006/01/23 09:48:39 linimon Exp $
 #
 
-PORTNAME=	SimpleTest
-PORTVERSION=	1.0.r1
+PORTNAME=	simpletest
+PORTVERSION=	1.0
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME:L}/
-DISTNAME=	php_simple_test_1.0RC1
+DISTNAME=	${PORTNAME:L}_${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+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
 
-SIMPLETESTS?=	unit
-
-.include <bsd.port.pre.mk>
-
-PHP_CONFIG?=	${LOCALBASE}/bin/php-config
-
-.if !defined(PEARDIR) && exists(${PHP_CONFIG})
-_PEARPREFIX!=	${PHP_CONFIG} --prefix
-_PEARDIR=	share/pear
-PEARDIR=	${_PEARPREFIX}/${_PEARDIR}
-.endif
 WRKSRC=		${WRKDIR}/${PORTNAME:L}
-PLIST_SUB+=	PEARDIR="${_PEARDIR}"
+
 .if !defined(NOPORTDOCS)
-DOCS=		HELP_MY_TESTS_DONT_WORK_ANYMORE LICENSE README VERSION \
-		docs/expectation_documentation.html \
-		docs/form_testing_documentation.html \
-		docs/group_test_documentation.html \
-		docs/index.html \
-		docs/mock_objects_documentation.html \
-		docs/overview.html \
-		docs/partial_mocks_documentation.html \
-		docs/reporter_documentation.html \
-		docs/server_stubs_documentation.html \
-		docs/unit_test_documentation.html \
-		docs/web_tester_documentation.html
+DOCFILES=	HELP_MY_TESTS_DONT_WORK_ANYMORE README
+HTMLDOCFILES=	docs/en/*
 .endif
 
-TESTS=		test/acceptance_test.php \
-		test/adapter_test.php \
-		test/all_tests.php \
-		test/authentication_test.php \
-		test/browser_test.php \
-		test/dumper_test.php \
-		test/errors_test.php \
-		test/expectation_test.php \
-		test/form_test.php \
-		test/frames_test.php \
-		test/http_test.php \
-		test/live_test.php \
-		test/options_test.php \
-		test/page_test.php \
-		test/parser_test.php \
-		test/real_sites_test.php \
-		test/remote_test.php \
-		test/shell_test.php \
-		test/shell_tester_test.php \
-		test/simple_mock_test.php \
-		test/socket_test.php \
-		test/tag_test.php \
-		test/unit_tests.php \
-		test/url_test.php \
-		test/user_agent_test.php \
-		test/visual_test.php \
-		test/web_tester_test.php \
-		test/xml_test.php
-
-CLASSES=	authentication.php browser.php dumper.php errors.php \
-		expectation.php extensions/pear_test_case.php \
-		extensions/phpunit_test_case.php form.php frames.php http.php \
-		mock_objects.php options.php page.php parser.php remote.php \
-		reporter.php scorer.php shell_tester.php simple_test.php \
-		socket.php tag.php unit_tester.php url.php user_agent.php \
-		web_tester.php xml.php
-
-pre-patch:
-	${CP} -r ${WRKSRC}/test ${WRKSRC}/test.beforeinstall
-
-#do-build:
-#	cd ${WRKSRC}/test.beforeinstall && \
-#	${LOCALBASE}/bin/php -f ${SIMPLETESTS}_tests.php
+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}
-.for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${MKDIR} ${DOCSDIR}/html
+.for file in ${DOCFILES}
+	${CP} ${WRKSRC}/${file} ${DOCSDIR}
 .endfor
-	${MKDIR} ${DATADIR}/test
-.for f in ${TESTS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}/${f}
-.endfor
-	${MKDIR} ${PEARDIR}/simpletest/extensions
-.for f in ${CLASSES}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${PEARDIR}/simpletest/${f}
+.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.post.mk>
+.include <bsd.port.mk>
diff -Nur /usr/ports/devel/simpletest/distinfo simpletest/distinfo
--- /usr/ports/devel/simpletest/distinfo	Sun Jan 22 09:30:03 2006
+++ simpletest/distinfo	Fri Dec  8 11:10:15 2006
@@ -1,3 +1,3 @@
-MD5 (php_simple_test_1.0RC1.tar.gz) = 00ec0a4c94e5480c15550039886248c1
-SHA256 (php_simple_test_1.0RC1.tar.gz) = 0890a10c7b0a51c675af9d6b9164d008c3e3e4c168c9472877e75fdb3fb61ebd
-SIZE (php_simple_test_1.0RC1.tar.gz) = 155315
+MD5 (simpletest_1.0.tar.gz) = 043457189beef64eaa7c3a2735a36b5d
+SHA256 (simpletest_1.0.tar.gz) = 905ecccf3a3505a3f676bb386665e4070cffb53f31fbf5eaa6b98816580e7a4d
+SIZE (simpletest_1.0.tar.gz) = 218460
diff -Nur /usr/ports/devel/simpletest/pkg-plist simpletest/pkg-plist
--- /usr/ports/devel/simpletest/pkg-plist	Sun Jan 22 02:48:34 2006
+++ simpletest/pkg-plist	Thu Jan  1 01:00:00 1970
@@ -1,75 +0,0 @@
-%%PEARDIR%%/simpletest/authentication.php
-%%PEARDIR%%/simpletest/browser.php
-%%PEARDIR%%/simpletest/dumper.php
-%%PEARDIR%%/simpletest/errors.php
-%%PEARDIR%%/simpletest/expectation.php
-%%PEARDIR%%/simpletest/extensions/pear_test_case.php
-%%PEARDIR%%/simpletest/extensions/phpunit_test_case.php
-%%PEARDIR%%/simpletest/form.php
-%%PEARDIR%%/simpletest/frames.php
-%%PEARDIR%%/simpletest/http.php
-%%PEARDIR%%/simpletest/mock_objects.php
-%%PEARDIR%%/simpletest/options.php
-%%PEARDIR%%/simpletest/page.php
-%%PEARDIR%%/simpletest/parser.php
-%%PEARDIR%%/simpletest/remote.php
-%%PEARDIR%%/simpletest/reporter.php
-%%PEARDIR%%/simpletest/scorer.php
-%%PEARDIR%%/simpletest/shell_tester.php
-%%PEARDIR%%/simpletest/simple_test.php
-%%PEARDIR%%/simpletest/socket.php
-%%PEARDIR%%/simpletest/tag.php
-%%PEARDIR%%/simpletest/unit_tester.php
-%%PEARDIR%%/simpletest/url.php
-%%PEARDIR%%/simpletest/user_agent.php
-%%PEARDIR%%/simpletest/web_tester.php
-%%PEARDIR%%/simpletest/xml.php
-%%PORTDOCS%%%%DOCSDIR%%/HELP_MY_TESTS_DONT_WORK_ANYMORE
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/VERSION
-%%PORTDOCS%%%%DOCSDIR%%/expectation_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/form_testing_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/group_test_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/mock_objects_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/overview.html
-%%PORTDOCS%%%%DOCSDIR%%/partial_mocks_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/reporter_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/server_stubs_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/unit_test_documentation.html
-%%PORTDOCS%%%%DOCSDIR%%/web_tester_documentation.html
-%%DATADIR%%/test/acceptance_test.php
-%%DATADIR%%/test/adapter_test.php
-%%DATADIR%%/test/all_tests.php
-%%DATADIR%%/test/authentication_test.php
-%%DATADIR%%/test/browser_test.php
-%%DATADIR%%/test/dumper_test.php
-%%DATADIR%%/test/errors_test.php
-%%DATADIR%%/test/expectation_test.php
-%%DATADIR%%/test/form_test.php
-%%DATADIR%%/test/frames_test.php
-%%DATADIR%%/test/http_test.php
-%%DATADIR%%/test/live_test.php
-%%DATADIR%%/test/options_test.php
-%%DATADIR%%/test/page_test.php
-%%DATADIR%%/test/parser_test.php
-%%DATADIR%%/test/real_sites_test.php
-%%DATADIR%%/test/remote_test.php
-%%DATADIR%%/test/shell_test.php
-%%DATADIR%%/test/shell_tester_test.php
-%%DATADIR%%/test/simple_mock_test.php
-%%DATADIR%%/test/socket_test.php
-%%DATADIR%%/test/tag_test.php
-%%DATADIR%%/test/unit_tests.php
-%%DATADIR%%/test/url_test.php
-%%DATADIR%%/test/user_agent_test.php
-%%DATADIR%%/test/visual_test.php
-%%DATADIR%%/test/web_tester_test.php
-%%DATADIR%%/test/xml_test.php
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%DATADIR%%/test
-@dirrm %%DATADIR%%
-@dirrm %%PEARDIR%%/simpletest/extensions
-@dirrm %%PEARDIR%%/simpletest
-@dirrmtry %%PEARDIR%%

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612081213.kB8CD39c014690>