From 3bb7e578ba1dcaebb9c0be4dda5f405c192804b9 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sun, 25 May 2014 05:34:50 +0000 Subject: [PATCH] Twig is a modern template engine for PHP Fast: Twig compiles templates down to plain optimized PHP code. The overhead compared to regular PHP code was reduced to the very minimum. Secure: Twig has a sandbox mode to evaluate untrusted template code. This allows Twig to be used as a template language for applications where users may modify the template design. Flexible: Twig is powered by a flexible lexer and parser. This allows the developer to define its own custom tags and filters, and create its own DSL. WWW: http://twig.sensiolabs.org/ PR: ports/180256 Submitted by: ports@michael-fausten.de --- www/Makefile | 1 + www/twig-php/Makefile | 21 +++++ www/twig-php/distinfo | 2 + www/twig-php/pkg-descr | 12 +++ www/twig-php/pkg-plist | 184 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 220 insertions(+) create mode 100644 www/twig-php/Makefile create mode 100644 www/twig-php/distinfo create mode 100644 www/twig-php/pkg-descr create mode 100644 www/twig-php/pkg-plist diff --git a/www/Makefile b/www/Makefile index 196b9788c45c..a7d415faae35 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2038,6 +2038,7 @@ SUBDIR += tt-rss SUBDIR += ttf2eot SUBDIR += twig + SUBDIR += twig-php SUBDIR += twiki SUBDIR += twiki-BehaviourContrib SUBDIR += twiki-BlogAddOn diff --git a/www/twig-php/Makefile b/www/twig-php/Makefile new file mode 100644 index 000000000000..390c19d032af --- /dev/null +++ b/www/twig-php/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= twig +PORTVERSION= 1.13.1 +CATEGORIES= www +MASTER_SITES= http://pear.twig-project.org/get/ +PKGNAMESUFFIX= -php +DISTNAME= Twig-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@michael-fausten.de +COMMENT= Fast, secure, flexible and modern template engine for PHP + +NO_BUILD= yes +USE_PHP= yes + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) + +.include diff --git a/www/twig-php/distinfo b/www/twig-php/distinfo new file mode 100644 index 000000000000..f331985fbda3 --- /dev/null +++ b/www/twig-php/distinfo @@ -0,0 +1,2 @@ +SHA256 (Twig-1.13.1.tgz) = c3e9b000dd3913622ea6b2bd434b3cbaf7cd416166d0706df48c952c1694866a +SIZE (Twig-1.13.1.tgz) = 82782 diff --git a/www/twig-php/pkg-descr b/www/twig-php/pkg-descr new file mode 100644 index 000000000000..cc4b366b318d --- /dev/null +++ b/www/twig-php/pkg-descr @@ -0,0 +1,12 @@ +Twig is a modern template engine for PHP + +Fast: Twig compiles templates down to plain optimized PHP code. +The overhead compared to regular PHP code was reduced to the very minimum. +Secure: Twig has a sandbox mode to evaluate untrusted template code. +This allows Twig to be used as a template language for applications +where users may modify the template design. +Flexible: Twig is powered by a flexible lexer and parser. +This allows the developer to define its own custom tags and filters, +and create its own DSL. + +WWW: http://twig.sensiolabs.org/ diff --git a/www/twig-php/pkg-plist b/www/twig-php/pkg-plist new file mode 100644 index 000000000000..85930123cd90 --- /dev/null +++ b/www/twig-php/pkg-plist @@ -0,0 +1,184 @@ +%%DATADIR%%/AUTHORS +%%DATADIR%%/CHANGELOG +%%DATADIR%%/LICENSE +%%DATADIR%%/README.markdown +%%DATADIR%%/lib/Twig/Autoloader.php +%%DATADIR%%/lib/Twig/Compiler.php +%%DATADIR%%/lib/Twig/CompilerInterface.php +%%DATADIR%%/lib/Twig/Environment.php +%%DATADIR%%/lib/Twig/Error/Loader.php +%%DATADIR%%/lib/Twig/Error/Runtime.php +%%DATADIR%%/lib/Twig/Error/Syntax.php +%%DATADIR%%/lib/Twig/Error.php +%%DATADIR%%/lib/Twig/ExistsLoaderInterface.php +%%DATADIR%%/lib/Twig/ExpressionParser.php +%%DATADIR%%/lib/Twig/Extension/Core.php +%%DATADIR%%/lib/Twig/Extension/Debug.php +%%DATADIR%%/lib/Twig/Extension/Escaper.php +%%DATADIR%%/lib/Twig/Extension/Optimizer.php +%%DATADIR%%/lib/Twig/Extension/Sandbox.php +%%DATADIR%%/lib/Twig/Extension/Staging.php +%%DATADIR%%/lib/Twig/Extension/StringLoader.php +%%DATADIR%%/lib/Twig/Extension.php +%%DATADIR%%/lib/Twig/ExtensionInterface.php +%%DATADIR%%/lib/Twig/Filter/Function.php +%%DATADIR%%/lib/Twig/Filter/Method.php +%%DATADIR%%/lib/Twig/Filter/Node.php +%%DATADIR%%/lib/Twig/Filter.php +%%DATADIR%%/lib/Twig/FilterCallableInterface.php +%%DATADIR%%/lib/Twig/FilterInterface.php +%%DATADIR%%/lib/Twig/Function/Function.php +%%DATADIR%%/lib/Twig/Function/Method.php +%%DATADIR%%/lib/Twig/Function/Node.php +%%DATADIR%%/lib/Twig/Function.php +%%DATADIR%%/lib/Twig/FunctionCallableInterface.php +%%DATADIR%%/lib/Twig/FunctionInterface.php +%%DATADIR%%/lib/Twig/Lexer.php +%%DATADIR%%/lib/Twig/LexerInterface.php +%%DATADIR%%/lib/Twig/Loader/Array.php +%%DATADIR%%/lib/Twig/Loader/Chain.php +%%DATADIR%%/lib/Twig/Loader/Filesystem.php +%%DATADIR%%/lib/Twig/Loader/String.php +%%DATADIR%%/lib/Twig/LoaderInterface.php +%%DATADIR%%/lib/Twig/Markup.php +%%DATADIR%%/lib/Twig/Node/AutoEscape.php +%%DATADIR%%/lib/Twig/Node/Block.php +%%DATADIR%%/lib/Twig/Node/BlockReference.php +%%DATADIR%%/lib/Twig/Node/Body.php +%%DATADIR%%/lib/Twig/Node/Do.php +%%DATADIR%%/lib/Twig/Node/Embed.php +%%DATADIR%%/lib/Twig/Node/Expression/Array.php +%%DATADIR%%/lib/Twig/Node/Expression/AssignName.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Add.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/And.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/BitwiseAnd.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/BitwiseOr.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/BitwiseXor.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Concat.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Div.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Equal.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/FloorDiv.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Greater.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/GreaterEqual.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/In.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Less.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/LessEqual.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Mod.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Mul.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/NotEqual.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/NotIn.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Or.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Power.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Range.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary/Sub.php +%%DATADIR%%/lib/Twig/Node/Expression/Binary.php +%%DATADIR%%/lib/Twig/Node/Expression/BlockReference.php +%%DATADIR%%/lib/Twig/Node/Expression/Call.php +%%DATADIR%%/lib/Twig/Node/Expression/Conditional.php +%%DATADIR%%/lib/Twig/Node/Expression/Constant.php +%%DATADIR%%/lib/Twig/Node/Expression/ExtensionReference.php +%%DATADIR%%/lib/Twig/Node/Expression/Filter/Default.php +%%DATADIR%%/lib/Twig/Node/Expression/Filter.php +%%DATADIR%%/lib/Twig/Node/Expression/Function.php +%%DATADIR%%/lib/Twig/Node/Expression/GetAttr.php +%%DATADIR%%/lib/Twig/Node/Expression/MethodCall.php +%%DATADIR%%/lib/Twig/Node/Expression/Name.php +%%DATADIR%%/lib/Twig/Node/Expression/Parent.php +%%DATADIR%%/lib/Twig/Node/Expression/TempName.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Constant.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Defined.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Divisibleby.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Even.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Null.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Odd.php +%%DATADIR%%/lib/Twig/Node/Expression/Test/Sameas.php +%%DATADIR%%/lib/Twig/Node/Expression/Test.php +%%DATADIR%%/lib/Twig/Node/Expression/Unary/Neg.php +%%DATADIR%%/lib/Twig/Node/Expression/Unary/Not.php +%%DATADIR%%/lib/Twig/Node/Expression/Unary/Pos.php +%%DATADIR%%/lib/Twig/Node/Expression/Unary.php +%%DATADIR%%/lib/Twig/Node/Expression.php +%%DATADIR%%/lib/Twig/Node/Flush.php +%%DATADIR%%/lib/Twig/Node/For.php +%%DATADIR%%/lib/Twig/Node/ForLoop.php +%%DATADIR%%/lib/Twig/Node/If.php +%%DATADIR%%/lib/Twig/Node/Import.php +%%DATADIR%%/lib/Twig/Node/Include.php +%%DATADIR%%/lib/Twig/Node/Macro.php +%%DATADIR%%/lib/Twig/Node/Module.php +%%DATADIR%%/lib/Twig/Node/Print.php +%%DATADIR%%/lib/Twig/Node/Sandbox.php +%%DATADIR%%/lib/Twig/Node/SandboxedModule.php +%%DATADIR%%/lib/Twig/Node/SandboxedPrint.php +%%DATADIR%%/lib/Twig/Node/Set.php +%%DATADIR%%/lib/Twig/Node/SetTemp.php +%%DATADIR%%/lib/Twig/Node/Spaceless.php +%%DATADIR%%/lib/Twig/Node/Text.php +%%DATADIR%%/lib/Twig/Node.php +%%DATADIR%%/lib/Twig/NodeInterface.php +%%DATADIR%%/lib/Twig/NodeOutputInterface.php +%%DATADIR%%/lib/Twig/NodeTraverser.php +%%DATADIR%%/lib/Twig/NodeVisitor/Escaper.php +%%DATADIR%%/lib/Twig/NodeVisitor/Optimizer.php +%%DATADIR%%/lib/Twig/NodeVisitor/SafeAnalysis.php +%%DATADIR%%/lib/Twig/NodeVisitor/Sandbox.php +%%DATADIR%%/lib/Twig/NodeVisitorInterface.php +%%DATADIR%%/lib/Twig/Parser.php +%%DATADIR%%/lib/Twig/ParserInterface.php +%%DATADIR%%/lib/Twig/Sandbox/SecurityError.php +%%DATADIR%%/lib/Twig/Sandbox/SecurityPolicy.php +%%DATADIR%%/lib/Twig/Sandbox/SecurityPolicyInterface.php +%%DATADIR%%/lib/Twig/SimpleFilter.php +%%DATADIR%%/lib/Twig/SimpleFunction.php +%%DATADIR%%/lib/Twig/SimpleTest.php +%%DATADIR%%/lib/Twig/Template.php +%%DATADIR%%/lib/Twig/TemplateInterface.php +%%DATADIR%%/lib/Twig/Test/Function.php +%%DATADIR%%/lib/Twig/Test/IntegrationTestCase.php +%%DATADIR%%/lib/Twig/Test/Method.php +%%DATADIR%%/lib/Twig/Test/Node.php +%%DATADIR%%/lib/Twig/Test/NodeTestCase.php +%%DATADIR%%/lib/Twig/Test.php +%%DATADIR%%/lib/Twig/TestCallableInterface.php +%%DATADIR%%/lib/Twig/TestInterface.php +%%DATADIR%%/lib/Twig/Token.php +%%DATADIR%%/lib/Twig/TokenParser/AutoEscape.php +%%DATADIR%%/lib/Twig/TokenParser/Block.php +%%DATADIR%%/lib/Twig/TokenParser/Do.php +%%DATADIR%%/lib/Twig/TokenParser/Embed.php +%%DATADIR%%/lib/Twig/TokenParser/Extends.php +%%DATADIR%%/lib/Twig/TokenParser/Filter.php +%%DATADIR%%/lib/Twig/TokenParser/Flush.php +%%DATADIR%%/lib/Twig/TokenParser/For.php +%%DATADIR%%/lib/Twig/TokenParser/From.php +%%DATADIR%%/lib/Twig/TokenParser/If.php +%%DATADIR%%/lib/Twig/TokenParser/Import.php +%%DATADIR%%/lib/Twig/TokenParser/Include.php +%%DATADIR%%/lib/Twig/TokenParser/Macro.php +%%DATADIR%%/lib/Twig/TokenParser/Sandbox.php +%%DATADIR%%/lib/Twig/TokenParser/Set.php +%%DATADIR%%/lib/Twig/TokenParser/Spaceless.php +%%DATADIR%%/lib/Twig/TokenParser/Use.php +%%DATADIR%%/lib/Twig/TokenParser.php +%%DATADIR%%/lib/Twig/TokenParserBroker.php +%%DATADIR%%/lib/Twig/TokenParserBrokerInterface.php +%%DATADIR%%/lib/Twig/TokenParserInterface.php +%%DATADIR%%/lib/Twig/TokenStream.php +@dirrm %%DATADIR%%/lib/Twig/Error +@dirrm %%DATADIR%%/lib/Twig/Extension +@dirrm %%DATADIR%%/lib/Twig/Filter +@dirrm %%DATADIR%%/lib/Twig/Function +@dirrm %%DATADIR%%/lib/Twig/Loader +@dirrm %%DATADIR%%/lib/Twig/Node/Expression/Binary +@dirrm %%DATADIR%%/lib/Twig/Node/Expression/Filter +@dirrm %%DATADIR%%/lib/Twig/Node/Expression/Test +@dirrm %%DATADIR%%/lib/Twig/Node/Expression/Unary +@dirrm %%DATADIR%%/lib/Twig/Node/Expression +@dirrm %%DATADIR%%/lib/Twig/Node +@dirrm %%DATADIR%%/lib/Twig/NodeVisitor +@dirrm %%DATADIR%%/lib/Twig/Sandbox +@dirrm %%DATADIR%%/lib/Twig/Test +@dirrm %%DATADIR%%/lib/Twig/TokenParser +@dirrm %%DATADIR%%/lib/Twig +@dirrm %%DATADIR%%/lib +@dirrm %%DATADIR%%