diff --git a/devel/Makefile b/devel/Makefile index c6fee0aca2de..4ef64a112285 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -800,6 +800,7 @@ SUBDIR += pear-Date SUBDIR += pear-HTML_Common SUBDIR += pear-HTML_Select_Common + SUBDIR += pear-HTML_Template_IT SUBDIR += pear-I18N SUBDIR += pear-PEAR SUBDIR += pedisassem diff --git a/devel/pear-HTML_Template_IT/Makefile b/devel/pear-HTML_Template_IT/Makefile new file mode 100644 index 000000000000..6fd3b02ba490 --- /dev/null +++ b/devel/pear-HTML_Template_IT/Makefile @@ -0,0 +1,39 @@ +# Ports collection makefile for: pear-HTML_Template_IT +# Date created: 02 September 2003 +# Whom: Alex Miller () +# +# $FreeBSD$ +# + +PORTNAME= HTML_Template_IT +PORTVERSION= 1.1 +CATEGORIES= devel www + +MAINTAINER= ports@FreeBSD.org +COMMENT= PEAR template API + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${BUILD_DEPENDS} + +.include +.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common" + +MANIFEST= IT.php ITX.php IT_Error.php +TESTDIR= ${PEARDIR}/tests/${PORTNAME} + +do-install: + @${MKDIR} -p ${PEARDIR}/HTML/Template +.for FILE in ${MANIFEST} + @${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/HTML/Template +.endfor + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/HTML/Template +.if !defined(NOPORTDOCS) + @${MKDIR} ${TESTDIR} + @${CP} -Rp ${WRKSRC}/tests/* ${TESTDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} + @${ECHO_MSG} "===> Examples installed in ${TESTDIR}." + @${ECHO_MSG} " (These tests require PHPUnit - see" + @${ECHO_MSG} " ;;)." +.endif + +.include diff --git a/devel/pear-HTML_Template_IT/distinfo b/devel/pear-HTML_Template_IT/distinfo new file mode 100644 index 000000000000..1bfa1448790b --- /dev/null +++ b/devel/pear-HTML_Template_IT/distinfo @@ -0,0 +1 @@ +MD5 (PEAR/HTML_Template_IT-1.1.tgz) = 6062a6b0cf6033b206bd62aaeb36c055 diff --git a/devel/pear-HTML_Template_IT/pkg-descr b/devel/pear-HTML_Template_IT/pkg-descr new file mode 100644 index 000000000000..5a15e20101c8 --- /dev/null +++ b/devel/pear-HTML_Template_IT/pkg-descr @@ -0,0 +1,21 @@ +HTML_Template_IT: +Simple template API. +The Isotemplate API is somewhat tricky for a beginner although it is the best +one you can build. template::parse() [phplib template = Isotemplate] requests +you to name a source and a target where the current block gets parsed into. +Source and target can be block names or even handler names. + +Features : + * Nested blocks + * Include external file + * Custom tags format (default {mytag}) + +HTML_Template_ITX : +With this class you get the full power of the phplib template class. +You may have one file with blocks in it but you have as well one main file +and multiple files one for each block. This is quite usefull when you have +user configurable websites. Using blocks not in the main template allows +you to modify some parts of your layout easily. + + +WWW: http://pear.php.net/package-info.php?package=HTML_Template_IT diff --git a/devel/pear-HTML_Template_IT/pkg-plist b/devel/pear-HTML_Template_IT/pkg-plist new file mode 100644 index 000000000000..14a9c23b2876 --- /dev/null +++ b/devel/pear-HTML_Template_IT/pkg-plist @@ -0,0 +1,23 @@ +%%PEARDIR%%/HTML/Template/IT.php +%%PEARDIR%%/HTML/Template/ITX.php +%%PEARDIR%%/HTML/Template/IT_Error.php +%%PKGREGDIR%%/package.xml +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/Console_TestListener.php +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/ITX_api_testcase.php +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/ITX_usage_testcase.php +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/IT_api_testcase.php +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/IT_usage_testcase.php +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/test.php +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/__include.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/addblock.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/blockiteration.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/blocks.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/globals.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/include.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/loadtemplatefile.html +%%PORTDOCS%%%%PEARDIR%%/tests/HTML_Template_IT/templates/replaceblock.html +@dirrm %%PEARDIR%%/HTML/Template +@unexec rmdir %%PEARDIR%%/HTML 2>/dev/null || true +@dirrm %%PKGREGDIR%% +%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/HTML_Template_IT/templates +%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/HTML_Template_IT