diff options
Diffstat (limited to 'devel/php5-phing/Makefile')
-rw-r--r-- | devel/php5-phing/Makefile | 235 |
1 files changed, 217 insertions, 18 deletions
diff --git a/devel/php5-phing/Makefile b/devel/php5-phing/Makefile index 18ed2735f09c..168b100f5da9 100644 --- a/devel/php5-phing/Makefile +++ b/devel/php5-phing/Makefile @@ -7,32 +7,231 @@ PORTNAME= phing PORTVERSION= 2.3.0 +PORTREVISION= 1 CATEGORIES= devel -MASTER_SITES= http://www.tigris.org/files/documents/995/40189/ -PKGNAMEPREFIX= php5- +MASTER_SITES= http://pear.phing.info/get/ -MAINTAINER= kuriyama@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Project build system based on Apache Ant -USE_ZIP= yes +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear +RUN_DEPENDS= ${BUILD_DEPENDS} + USE_PHP= yes DEFAULT_PHP_VER=5 WANT_PHP_CLI= yes NO_BUILD= yes -do-install: - cd ${WRKSRC}/classes; \ - for d in `${FIND} phing -type d`; do \ - ${INSTALL} -d ${PREFIX}/lib/php/$$d; \ - done; \ - for i in `${FIND} phing -type f`; do \ - ${INSTALL_DATA} $$i ${PREFIX}/lib/php/$$i; \ - done +CHANNEL= pear.phing.info +SUB_FILES= pear-deinstall pear-install +SUB_LIST+= CHANNEL=${CHANNEL} +PKGINSTALL= ${WRKDIR}/pear-install +PKGDEINSTALL= ${WRKDIR}/pear-deinstall + +CATEGORY=phing +FILES= etc/log.xsl etc/phpunit2-noframes.xsl etc/phpunit2-frames.xsl \ + etc/coverage-frames.xsl etc/str.replace.function.xsl etc/VERSION.TXT \ + bin/pear-phing.bat bin/pear-phing bin/phing.php \ + CHANGELOG TODO CREDITS README \ + IntrospectionHelper.php ProjectComponent.php \ + BuildLogger.php TaskContainer.php BuildEvent.php Task.php \ + TaskAdapter.php Phing.php RuntimeConfigurable.php BuildListener.php \ + Project.php UnknownElement.php BuildException.php Target.php \ + util/regexp/RegexpEngine.php util/regexp/Regexp.php \ + util/regexp/PregEngine.php \ + util/SourceFileScanner.php util/ExtendedFileStream.php \ + util/DirectoryScanner.php \ + util/LogWriter.php util/FileUtils.php util/StringHelper.php \ + util/PathTokenizer.php \ + filters/util/IniFileTokenReader.php \ + filters/util/ChainReaderHelper.php \ + filters/LineContainsRegexp.php filters/ChainableReader.php \ + filters/ExpandProperties.php filters/TailFilter.php \ + filters/ReplaceTokens.php \ + filters/XsltFilter.php filters/StripLineBreaks.php \ + filters/StripLineComments.php \ + filters/TranslateGettext.php filters/BaseFilterReader.php \ + filters/HeadFilter.php \ + filters/TabToSpaces.php filters/TidyFilter.php \ + filters/StripPhpComments.php\ + filters/XincludeFilter.php filters/ReplaceRegexp.php \ + filters/BaseParamFilterReader.php\ + filters/LineContains.php filters/PrefixLines.php \ + filters/StripWhitespace.php\ + mappers/IdentityMapper.php mappers/RegexpMapper.php \ + mappers/FlattenMapper.php \ + mappers/MergeMapper.php mappers/FileNameMapper.php \ + mappers/GlobMapper.php \ + types/selectors/ContainsRegexpSelector.php \ + types/selectors/SelectorScanner.php \ + types/selectors/MajoritySelector.php types/selectors/NoneSelector.php \ + types/selectors/DependSelector.php types/selectors/NotSelector.php \ + types/selectors/SelectorUtils.php types/selectors/AndSelector.php \ + types/selectors/DepthSelector.php types/selectors/BaseSelector.php \ + types/selectors/SizeSelector.php types/selectors/DateSelector.php \ + types/selectors/BaseSelectorContainer.php \ + types/selectors/ContainsSelector.php \ + types/selectors/FileSelector.php types/selectors/SelectSelector.php \ + types/selectors/FilenameSelector.php types/selectors/OrSelector.php \ + types/selectors/PresentSelector.php types/selectors/TypeSelector.php \ + types/selectors/BaseExtendSelector.php \ + types/selectors/SelectorContainer.php \ + types/selectors/ExtendSelector.php \ + types/selectors/ExtendFileSelector.php \ + types/Parameterizable.php types/PatternSet.php \ + types/DirSet.php types/FileSet.php types/Path.php types/Reference.php \ + types/TokenSource.php types/PhingFilterReader.php \ + types/TokenReader.php \ + types/Parameter.php types/FileList.php types/DataType.php \ + types/RegularExpression.php \ + types/defaults.properties types/AbstractFileSet.php \ + types/Description.php \ + types/Mapper.php types/Commandline.php types/FilterChain.php \ + lib/Capsule.php lib/Zip.php \ + system/lang/FileNotFoundException.php \ + system/lang/NullPointerException.php \ + system/lang/Character.php \ + system/lang/EventObject.php system/lang/SecurityException.php \ + system/io/WinNTFileSystem.php system/io/StringReader.php \ + system/io/Reader.php system/io/InputStreamReader.php \ + system/io/FileReader.php system/io/BufferedReader.php \ + system/io/PhingFile.php \ + system/io/OutputStreamWriter.php \ + system/io/Win32FileSystem.php system/io/FilterReader.php \ + system/io/FileInputStream.php system/io/InputStream.php \ + system/io/FileOutputStream.php \ + system/io/OutputStream.php system/io/FileWriter.php \ + system/io/FileSystem.php system/io/Writer.php \ + system/io/BufferedWriter.php \ + system/io/ConsoleReader.php system/io/IOException.php \ + system/io/UnixFileSystem.php system/util/Properties.php \ + system/util/Timer.php system/util/Message.php \ + system/util/Register.php \ + listener/AnsiColorLogger.php listener/defaults.properties \ + listener/PearLogListener.php \ + listener/XmlLogger.php listener/NoBannerLogger.php \ + listener/DefaultLogger.php \ + listener/StreamRequiredBuildLogger.php \ + tasks/ext/ioncube/IoncubeLicenseTask.php \ + tasks/ext/ioncube/IoncubeComment.php \ + tasks/ext/ioncube/IoncubeEncoderTask.php \ + tasks/ext/phpunit/phpunit2/SummaryPHPUnit2ResultFormatter.php \ + tasks/ext/phpunit/phpunit2/PHPUnit2ResultFormatter.php \ + tasks/ext/phpunit/phpunit2/XMLPHPUnit2ResultFormatter.php \ + tasks/ext/phpunit/phpunit2/PlainPHPUnit2ResultFormatter.php \ + tasks/ext/phpunit/phpunit3/SummaryPHPUnit3ResultFormatter.php \ + tasks/ext/phpunit/phpunit3/PHPUnit3ResultFormatter.php \ + tasks/ext/phpunit/phpunit3/XMLPHPUnit3ResultFormatter.php \ + tasks/ext/phpunit/phpunit3/PlainPHPUnit3ResultFormatter.php \ + tasks/ext/phpunit/FormatterElement.php \ + tasks/ext/phpunit/PHPUnitTask.php tasks/ext/phpunit/BatchTest.php \ + tasks/ext/phpunit/PHPUnitUtil.php \ + tasks/ext/phpunit/PHPUnitTestRunner.php \ + tasks/ext/phpunit/PHPUnitReportTask.php \ + tasks/ext/simpletest/SimpleTestSummaryResultFormatter.php \ + tasks/ext/simpletest/SimpleTestResultFormatter.php \ + tasks/ext/simpletest/SimpleTestTask.php \ + tasks/ext/simpletest/SimpleTestPlainResultFormatter.php \ + tasks/ext/simpletest/SimpleTestCountResultFormatter.php \ + tasks/ext/simpletest/SimpleTestFormatterElement.php \ + tasks/ext/coverage/CoverageReportTask.php \ + tasks/ext/coverage/CoverageMerger.php \ + tasks/ext/coverage/CoverageReportTransformer.php \ + tasks/ext/coverage/CoverageSetupTask.php \ + tasks/ext/coverage/CoverageMergerTask.php \ + tasks/ext/dbdeploy/DbmsSyntaxMsSql.php \ + tasks/ext/dbdeploy/DbmsSyntax.php \ + tasks/ext/dbdeploy/DbmsSyntaxFactory.php \ + tasks/ext/dbdeploy/DbmsSyntaxSQLite.php \ + tasks/ext/dbdeploy/DbmsSyntaxMysql.php \ + tasks/ext/dbdeploy/DbDeployTask.php \ + tasks/ext/pearpackage/Fileset.php \ + tasks/ext/svn/SvnLastRevisionTask.php \ + tasks/ext/svn/SvnExportTask.php tasks/ext/svn/SvnUpdateTask.php \ + tasks/ext/svn/SvnCheckoutTask.php tasks/ext/svn/SvnBaseTask.php \ + tasks/ext/phpdoc/PhingPhpDocumentorSetup.php \ + tasks/ext/phpdoc/PhpDocumentorTask.php \ + tasks/ext/phpdoc/PhpDocumentorExternalTask.php \ + tasks/ext/creole/CreoleSQLExecTask.php \ + tasks/ext/creole/CreoleTask.php tasks/ext/PearPackage2Task.php \ + tasks/ext/PhpLintTask.php tasks/ext/SmartyTask.php \ + tasks/ext/JslLintTask.php tasks/ext/MailTask.php \ + tasks/ext/XmlLintTask.php tasks/ext/TarTask.php \ + tasks/ext/PearPackageTask.php tasks/ext/UntarTask.php \ + tasks/ext/CapsuleTask.php tasks/ext/pdo/PDOResultFormatter.php \ + tasks/ext/pdo/PDOSQLExecTask.php tasks/ext/pdo/PDOTask.php \ + tasks/ext/pdo/PDOSQLExecFormatterElement.php \ + tasks/ext/pdo/PlainPDOResultFormatter.php \ + tasks/ext/pdo/XMLPDOResultFormatter.php \ + tasks/ext/PackageAsPathTask.php \ + tasks/ext/ScpSendTask.php tasks/ext/ZipTask.php \ + tasks/ext/ZendCodeAnalyzerTask.php tasks/ext/ExtractBaseTask.php \ + tasks/ext/UnzipTask.php tasks/system/condition/IsFalseCondition.php \ + tasks/system/condition/AndCondition.php \ + tasks/system/condition/ContainsCondition.php \ + tasks/system/condition/IsSetCondition.php \ + tasks/system/condition/ConditionBase.php \ + tasks/system/condition/EqualsCondition.php \ + tasks/system/condition/IsTrueCondition.php \ + tasks/system/condition/ReferenceExistsCondition.php \ + tasks/system/condition/Condition.php \ + tasks/system/condition/NotCondition.php \ + tasks/system/condition/OrCondition.php \ + tasks/system/condition/OsCondition.php \ + tasks/system/SequentialTask.php \ + tasks/system/ForeachTask.php tasks/system/TstampTask.php \ + tasks/system/ExitTask.php \ + tasks/system/TaskdefTask.php tasks/system/EchoTask.php \ + tasks/system/ConditionTask.php \ + tasks/system/CvsPassTask.php tasks/system/PropertyTask.php \ + tasks/system/UpToDateTask.php \ + tasks/system/PhpEvalTask.php tasks/system/XsltTask.php \ + tasks/system/CvsTask.php \ + tasks/system/PropertyPromptTask.php tasks/system/ResolvePathTask.php \ + tasks/system/InputTask.php \ + tasks/system/TypedefTask.php tasks/system/PhingTask.php \ + tasks/system/MoveTask.php \ + tasks/system/MkdirTask.php tasks/system/AppendTask.php \ + tasks/system/WarnTask.php \ + tasks/system/CopyTask.php tasks/system/AdhocTask.php \ + tasks/system/AdhocTaskdefTask.php \ + tasks/system/AvailableTask.php tasks/system/TouchTask.php \ + tasks/system/ExecTask.php \ + tasks/system/ReflexiveTask.php tasks/system/MatchingTask.php \ + tasks/system/ChmodTask.php \ + tasks/system/IfTask.php tasks/system/AdhocTypedefTask.php \ + tasks/system/IncludePathTask.php \ + tasks/system/PhingCallTask.php tasks/system/DeleteTask.php \ + tasks/defaults.properties \ + parser/ProjectConfigurator.php parser/DataTypeHandler.php \ + parser/NestedElementHandler.php \ + parser/ExpatParseException.php parser/AbstractSAXParser.php \ + parser/ExpatParser.php \ + parser/TaskHandler.php parser/AbstractHandler.php \ + parser/RootHandler.php \ + parser/ProjectHandler.php parser/TargetHandler.php \ + parser/Location.php \ + input/InputHandler.php input/InputRequest.php \ + input/MultipleChoiceInputRequest.php \ + input/DefaultInputHandler.php input/PropertyFileInputHandler.php \ + input/YesNoInputRequest.php + +DOCS= +EXAMPLES= src/HelloWorldTest.php src/HelloWorld.php build.xml +SQLS= +SCRIPTFILES= +TESTS= + +post-extract: + ${MV} ${WRKSRC}/example ${WRKSRC}/examples ${SED} -e "s|/opt/phing|${PREFIX}/lib/php/phing|" \ - -e "s|@@PHP_LIB@@|${PREFIX}/lib/php|" \ - -e "s|@@PEAR_LIB@@|${PREFIX}/share/pear|" \ - ${WRKSRC}/bin/phing > ${WRKSRC}/bin/phing.new - ${INSTALL_SCRIPT} ${WRKSRC}/bin/phing.new ${PREFIX}/bin/phing - ${INSTALL_DATA} ${WRKSRC}/bin/phing.php ${PREFIX}/bin/phing.php + -e "s|@PHP-BIN@|${PREFIX}/bin/php|" \ + -e "s|@PEAR-DIR@|${PREFIX}/share/pear|" \ + ${WRKSRC}/bin/pear-phing > ${WRKSRC}/bin/pear-phing.new + @${INSTALL_SCRIPT} ${WRKSRC}/bin/pear-phing.new ${PREFIX}/bin/phing + ${INSTALL_DATA} ${WRKSRC}/bin/phing.php ${PREFIX}/share/pear/phing.php + @${CHMOD} 755 ${PREFIX}/bin/phing -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/devel/pear/bsd.pear.mk" +.include <bsd.port.post.mk> |