Lines 6-25
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= PHPUnit2 |
8 |
PORTNAME= PHPUnit2 |
9 |
PORTVERSION= 2.2.0 |
9 |
DISTVERSION= 2.2.0beta4 |
10 |
PORTREVISION= 1 |
10 |
PORTEPOCH= 1 |
11 |
CATEGORIES= devel www pear |
11 |
CATEGORIES= devel www pear |
12 |
DISTNAME= ${PORTNAME}-${PORTVERSION}beta3 |
|
|
13 |
|
12 |
|
14 |
MAINTAINER= antonio@php.net |
13 |
MAINTAINER= antonio@php.net |
15 |
COMMENT= Regression testing framework for unit tests |
14 |
COMMENT= PEAR regression testing framework for unit tests |
16 |
|
15 |
|
17 |
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR |
16 |
BUILD_DEPENDS= ${PEARDIR}/Benchmark/Timer.php:${PORTSDIR}/benchmarks/pear-Benchmark |
18 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
17 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
19 |
|
18 |
|
20 |
LATEST_LINK= pear-PHPUnit2 |
19 |
LATEST_LINK= pear-PHPUnit2 |
21 |
OPTIONS= PEAR_BENCHMARK "PEAR::Benchmark support" on \ |
20 |
OPTIONS= PEAR_LOG "PEAR::Log support" |
22 |
PEAR_LOG "PEAR::Log support" off |
|
|
23 |
|
21 |
|
24 |
NO_PACKAGE= Conflicting dependences between PHP4 and PHP5 |
22 |
NO_PACKAGE= Conflicting dependences between PHP4 and PHP5 |
25 |
|
23 |
|
Lines 36-90
Link Here
|
36 |
Extensions/Log/XML.php Extensions/TestDox/ResultPrinter/HTML.php \ |
34 |
Extensions/Log/XML.php Extensions/TestDox/ResultPrinter/HTML.php \ |
37 |
Extensions/TestDox/ResultPrinter/Text.php \ |
35 |
Extensions/TestDox/ResultPrinter/Text.php \ |
38 |
Extensions/TestDox/NamePrettifier.php \ |
36 |
Extensions/TestDox/NamePrettifier.php \ |
39 |
Extensions/TestDox/ResultPrinter.php \ |
37 |
Extensions/TestDox/ResultPrinter.php Extensions/ExceptionTestCase.php \ |
40 |
Extensions/ExceptionTestCase.php Extensions/PerformanceTestCase.php \ |
38 |
Extensions/PerformanceTestCase.php Extensions/RepeatedTest.php \ |
41 |
Extensions/RepeatedTest.php Extensions/TestDecorator.php \ |
39 |
Extensions/TestDecorator.php Extensions/TestSetup.php \ |
42 |
Extensions/TestSetup.php Framework/Assert.php \ |
40 |
Framework/Assert.php Framework/AssertionFailedError.php \ |
43 |
Framework/AssertionFailedError.php Framework/Error.php \ |
41 |
Framework/Error.php Framework/ComparisonFailure.php \ |
44 |
Framework/ComparisonFailure.php Framework/IncompleteTest.php \ |
42 |
Framework/IncompleteTest.php Framework/IncompleteTestError.php \ |
45 |
Framework/IncompleteTestError.php Framework/Test.php \ |
43 |
Framework/Test.php Framework/TestCase.php Framework/TestFailure.php \ |
46 |
Framework/TestCase.php Framework/TestFailure.php \ |
44 |
Framework/TestListener.php Framework/TestResult.php Framework/TestSuite.php \ |
47 |
Framework/TestListener.php Framework/TestResult.php \ |
45 |
Framework/Warning.php Runner/BaseTestRunner.php \ |
48 |
Framework/TestSuite.php Framework/Warning.php \ |
46 |
Runner/IncludePathTestCollector.php Runner/StandardTestSuiteLoader.php \ |
49 |
Runner/BaseTestRunner.php Runner/IncludePathTestCollector.php \ |
47 |
Runner/TestCollector.php Runner/TestRunListener.php \ |
50 |
Runner/StandardTestSuiteLoader.php Runner/TestCollector.php \ |
48 |
Runner/TestSuiteLoader.php Runner/Version.php Tests/Framework/AllTests.php \ |
51 |
Runner/TestRunListener.php Runner/TestSuiteLoader.php \ |
|
|
52 |
Runner/Version.php Tests/Framework/AllTests.php \ |
53 |
Tests/Framework/AssertTest.php Tests/Framework/ComparisonFailureTest.php \ |
49 |
Tests/Framework/AssertTest.php Tests/Framework/ComparisonFailureTest.php \ |
54 |
Tests/Framework/SuiteTest.php Tests/Framework/TestCaseTest.php \ |
50 |
Tests/Framework/SuiteTest.php Tests/Framework/TestCaseTest.php \ |
55 |
Tests/Framework/TestImplementorTest.php \ |
51 |
Tests/Framework/TestImplementorTest.php Tests/Framework/TestListenerTest.php \ |
56 |
Tests/Framework/TestListenerTest.php Tests/Extensions/TestDox/AllTests.php \ |
52 |
Tests/Extensions/TestDox/AllTests.php \ |
57 |
Tests/Extensions/TestDox/NamePrettifierTest.php \ |
53 |
Tests/Extensions/TestDox/NamePrettifierTest.php Tests/Extensions/AllTests.php \ |
58 |
Tests/Extensions/AllTests.php Tests/Extensions/ExceptionTestCaseTest.php \ |
54 |
Tests/Extensions/ExceptionTestCaseTest.php Tests/Extensions/ExtensionTest.php \ |
59 |
Tests/Extensions/ExtensionTest.php \ |
|
|
60 |
Tests/Extensions/PerformanceTestCaseTest.php \ |
55 |
Tests/Extensions/PerformanceTestCaseTest.php \ |
61 |
Tests/Extensions/RepeatedTestTest.php Tests/Runner/AllTests.php \ |
56 |
Tests/Extensions/RepeatedTestTest.php Tests/Runner/AllTests.php \ |
62 |
Tests/Runner/BaseTestRunnerTest.php Tests/AllTests.php \ |
57 |
Tests/Runner/BaseTestRunnerTest.php Tests/AllTests.php \ |
63 |
Tests/DoubleTestCase.php Tests/Error.php Tests/Failure.php \ |
58 |
Tests/DoubleTestCase.php Tests/Error.php Tests/Failure.php \ |
64 |
Tests/InheritedTestCase.php Tests/MockRunner.php Tests/NoArgTestCaseTest.php \ |
59 |
Tests/InheritedTestCase.php Tests/Iterator.php Tests/MockRunner.php \ |
65 |
Tests/NonStatic.php Tests/NoTestCaseClass.php Tests/NoTestCases.php \ |
60 |
Tests/NoArgTestCaseTest.php Tests/NonStatic.php Tests/NoTestCaseClass.php \ |
66 |
Tests/NotPublicTestCase.php Tests/NotVoidTestCase.php Tests/OneTestCase.php \ |
61 |
Tests/NoTestCases.php Tests/NotPublicTestCase.php Tests/NotVoidTestCase.php \ |
67 |
Tests/OverrideTestCase.php Tests/SetupFailure.php Tests/Sleep.php \ |
62 |
Tests/OneTestCase.php Tests/OverrideTestCase.php Tests/SetupFailure.php \ |
68 |
Tests/Success.php Tests/TearDownFailure.php Tests/ThrowExceptionTestCase.php \ |
63 |
Tests/Sleep.php Tests/Success.php Tests/TearDownFailure.php \ |
69 |
Tests/ThrowNoExceptionTestCase.php Tests/TornDown.php Tests/TornDown2.php \ |
64 |
Tests/ThrowExceptionTestCase.php Tests/ThrowNoExceptionTestCase.php \ |
70 |
Tests/TornDown3.php Tests/TornDown4.php Tests/TornDown5.php Tests/WasRun.php \ |
65 |
Tests/TornDown.php Tests/TornDown2.php Tests/TornDown3.php Tests/TornDown4.php \ |
71 |
TextUI/ResultPrinter.php TextUI/TestRunner.php Util/Filter.php \ |
66 |
Tests/TornDown5.php Tests/WasRun.php TextUI/ResultPrinter.php \ |
72 |
Util/Printer.php Util/Skeleton.php |
67 |
TextUI/TestRunner.php Util/Filter.php Util/Printer.php Util/Skeleton.php |
73 |
SCRIPTFILES= phpunit |
68 |
SCRIPTFILES= phpunit |
74 |
|
69 |
|
75 |
.include <bsd.port.pre.mk> |
70 |
post-patch: |
76 |
|
71 |
@${REINPLACE_CMD} -e "s|@version@|${PORTVERSION}|" ${WRKSRC}/Runner/Version.php |
77 |
.if !defined(WITHOUT_PEAR_BENCHMARK) |
|
|
78 |
BUILD_DEPENDS+= ${PEARDIR}/Benchmark/Timer.php:${PORTSDIR}/benchmarks/pear-Benchmark |
79 |
.endif |
80 |
|
72 |
|
81 |
.if defined(WITH_PEAR_LOG) |
73 |
.if defined(WITH_PEAR_LOG) |
82 |
BUILD_DEPENDS+= ${PEARDIR}/Log.php:${PORTSDIR}/sysutils/pear-Log |
74 |
RUN_DEPENDS+= ${PEARDIR}/Log.php:${PORTSDIR}/sysutils/pear-Log |
83 |
.endif |
75 |
.endif |
84 |
|
76 |
|
85 |
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" |
77 |
.include <bsd.port.pre.mk> |
86 |
|
78 |
|
87 |
post-patch: |
79 |
PHP_VERS= ${PHP_VERSION:S/.//g} |
88 |
@${REINPLACE_CMD} -e "s|@version@|${PORTVERSION}|" ${WRKSRC}/Runner/Version.php |
|
|
89 |
|
80 |
|
|
|
81 |
.if defined(PHP_VERS) && ${PHP_VERS} < 502 |
82 |
IGNORE= "You need PHP 5.0.2 or later to install PEAR::PHPUnit2" |
83 |
.endif |
84 |
|
85 |
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" |
90 |
.include <bsd.port.post.mk> |
86 |
.include <bsd.port.post.mk> |