From 4bbb35b98282b36a604e8c64bdbe7f45b45e21f9 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 9 Jan 2005 05:02:08 +0000 Subject: [PATCH] New port: devel/pear-HTML_Template_Flexy An extremely powerful Tokenizer driven Template engine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HTML_Template_Flexy started it's life as a simplification of HTML_Template_Xipe, however in Version 0.2, It became one of the first template engine to use a real Lexer, rather than regex'es, making it possible to do things like ASP.net or Cold Fusion tags. PR: ports/75818 Submitted by: Antônio Carlos Venâncio Júnior --- devel/Makefile | 1 + devel/pear-HTML_Template_Flexy/Makefile | 73 ++++++++++++++++++++++++ devel/pear-HTML_Template_Flexy/distinfo | 2 + devel/pear-HTML_Template_Flexy/pkg-descr | 6 ++ 4 files changed, 82 insertions(+) create mode 100644 devel/pear-HTML_Template_Flexy/Makefile create mode 100644 devel/pear-HTML_Template_Flexy/distinfo create mode 100644 devel/pear-HTML_Template_Flexy/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 37f384e45728..89a44648bcad 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1107,6 +1107,7 @@ SUBDIR += pear-HTML_Select SUBDIR += pear-HTML_Select_Common SUBDIR += pear-HTML_Table + SUBDIR += pear-HTML_Template_Flexy SUBDIR += pear-HTML_Template_IT SUBDIR += pear-HTML_Template_PHPLIB SUBDIR += pear-HTML_TreeMenu diff --git a/devel/pear-HTML_Template_Flexy/Makefile b/devel/pear-HTML_Template_Flexy/Makefile new file mode 100644 index 000000000000..033a20b64269 --- /dev/null +++ b/devel/pear-HTML_Template_Flexy/Makefile @@ -0,0 +1,73 @@ +# Ports collection makefile for: pear-HTML_Template_Flexy +# Date created: 04 January 2005 +# Whom: Antonio Carlos Venancio Junior () +# +# $FreeBSD$ +# + +PORTNAME= HTML_Template_Flexy +PORTVERSION= 1.1.2 +CATEGORIES= devel www pear + +MAINTAINER= antonio@php.net +COMMENT= An extremely powerful Tokenizer driven Template engine + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${BUILD_DEPENDS} + +LATEST_LINK= pear-HTML_Template_Flexy +OPTIONS= PEAR_HTML_JAVASCRIPT "PEAR::HTML_Javascript support" off \ + PEAR_FILE_GETTEXT "PEAR::File_Gettext support" off \ + PEAR_TRANSLATION2 "PEAR::Translation2 support" off + +USE_PHP= yes + +CATEGORY= HTML/Template +FILES= Flexy.php Flexy/example.ini Flexy/Element.php \ + Flexy/Element/Xul.php Flexy/Factory.php Flexy/Assign.php \ + Flexy/Plugin.php Flexy/Plugin/Savant.php Flexy/SmartyAPI.php \ + Flexy/Translator.php Flexy/templates/translator.html \ + Flexy/compileAll.php Flexy/Tree.php Flexy/Tokenizer.php \ + Flexy/Token.php Flexy/Token/Tag.php Flexy/Token/EndTag.php \ + Flexy/Token/If.php Flexy/Token/Else.php Flexy/Token/End.php \ + Flexy/Token/Foreach.php Flexy/Token/Var.php Flexy/Token/Method.php \ + Flexy/Token/Processing.php Flexy/Token/Text.php Flexy/Test.php \ + Flexy/Compiler.php Flexy/Compiler/Flexy.php \ + Flexy/Compiler/Flexy/Tag.php Flexy/Compiler/Flexy/Flexy.php \ + Flexy/Compiler/Standard.php Flexy/Compiler/Standard/Tag.php \ + Flexy/Compiler/Standard/Flexy.php Flexy/Compiler/Regex.php \ + Flexy/Compiler/Regex/BodyOnly.php Flexy/Compiler/Regex/Php.php \ + Flexy/Compiler/Regex/RtfSimpleTags.php \ + Flexy/Compiler/Regex/SimpleTags.php Flexy/Compiler/Regex/Mail.php \ + Flexy/Compiler/Regex/Xml.php Flexy/Compiler/Regex/Math.php \ + Flexy/Compiler/SmartyConvertor.php +TESTS= test.php treeTest.php templates/blocks.html templates/conditions.html \ + templates/error_foreach.html templates/flexy_tojavascript.html \ + templates/forms.html templates/function.html templates/globals.html \ + templates/image_view.html templates/includes.html \ + templates/javascript.html templates/looping.html templates/methods.html \ + templates/namespaces.html templates/raw_php.html \ + templates/raw_text.html templates/variables.html smarty/smartytest.php + +.include + +PHP_VERS= ${PHP_VERSION:S/.//g} + +.if defined(PHP_VERS) && ${PHP_VERS} < 430 +IGNORE= "You need PHP 4.3.0 or later to install PEAR::HTML_Template_Flexy" +.endif + +.if !defined(WITH_PEAR_HTML_JAVASCRIPT) +BUILD_DEPENDS+= ${PEARDIR}/HTML/Javascript.php:${PORTSDIR}/devel/pear-HTML_Javascript +.endif + +.if defined(WITH_PEAR_FILE_GETTEXT) +BUILD_DEPENDS+= ${PEARDIR}/File/Gettext.php:${PORTSDIR}/sysutils/pear-File_Gettext +.endif + +.if defined(WITH_PEAR_TRANSLATION2) +BUILD_DEPENDS+= ${PEARDIR}/Translation2.php:${PORTSDIR}/sysutils/pear-Translation2 +.endif + +.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" +.include diff --git a/devel/pear-HTML_Template_Flexy/distinfo b/devel/pear-HTML_Template_Flexy/distinfo new file mode 100644 index 000000000000..27e744a64ad3 --- /dev/null +++ b/devel/pear-HTML_Template_Flexy/distinfo @@ -0,0 +1,2 @@ +MD5 (PEAR/HTML_Template_Flexy-1.1.2.tgz) = 581ad6c8edb898b11f5da172728377f4 +SIZE (PEAR/HTML_Template_Flexy-1.1.2.tgz) = 104884 diff --git a/devel/pear-HTML_Template_Flexy/pkg-descr b/devel/pear-HTML_Template_Flexy/pkg-descr new file mode 100644 index 000000000000..20973d89d6f1 --- /dev/null +++ b/devel/pear-HTML_Template_Flexy/pkg-descr @@ -0,0 +1,6 @@ +HTML_Template_Flexy started it's life as a simplification of HTML_Template_Xipe, +however in Version 0.2, It became one of the first template engine to use a real +Lexer, rather than regex'es, making it possible to do things like ASP.net or +Cold Fusion tags. + +WWW: http://pear.php.net/package/HTML_Template_Flexy/