summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/php-FastTemplate/Makefile40
-rw-r--r--www/php-FastTemplate/distinfo6
-rw-r--r--www/php-FastTemplate/pkg/DESCR9
-rw-r--r--www/php-FastTemplate/pkg/PLIST21
4 files changed, 76 insertions, 0 deletions
diff --git a/www/php-FastTemplate/Makefile b/www/php-FastTemplate/Makefile
new file mode 100644
index 00000000000..fb8d9c5c494
--- /dev/null
+++ b/www/php-FastTemplate/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/28 03:36:16 jlam Exp $
+
+DISTNAME= FastTemplate-1_1_0
+PKGNAME= php-FastTemplate-1.1.0
+CATEGORIES= www php4
+MASTER_SITES= http://www.thewebmasters.net/php/
+
+PATCHFILES= php4.diff
+PATCH_SITES= http://www.thewebmasters.net/php/FastTemplate/
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://www.thewebmasters.net/php/FastTemplate.phtml
+COMMENT= PHP extension for managing templates and variable interpolation
+
+DEPENDS+= php>=3.0.18:../../www/php4
+
+DIST_SUBDIR= ${PKGBASE}
+WRKSRC= ${WRKDIR}/FastTemplate
+
+NO_BUILD= YES
+
+PHP_LIB_SUBDIR= lib/php
+PHP_LIB_DIR= ${PREFIX}/${PHP_LIB_SUBDIR}
+DOCDIR= ${PREFIX}/share/doc/html/${PKGBASE}
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+PLIST_SUBST+= PHP_LIB_SUBDIR=${PHP_LIB_SUBDIR}
+PLIST_SUBST+= PKGBASE=${PKGBASE}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PHP_LIB_DIR} ${DOCDIR} ${EGDIR}/templates
+ ${INSTALL_DATA} ${WRKSRC}/class.FastTemplate.php3 ${PHP_LIB_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/FastTemplate.html ${DOCDIR}
+ cd ${WRKSRC}; for file in *.phtml; do \
+ dest=${EGDIR}/`${BASENAME} $${file} .phtml`.php; \
+ ${INSTALL_DATA} $${file} $${dest}; \
+ done
+ ${INSTALL_DATA} ${WRKSRC}/templates/*.tpl ${EGDIR}/templates
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/php-FastTemplate/distinfo b/www/php-FastTemplate/distinfo
new file mode 100644
index 00000000000..429d8e8663e
--- /dev/null
+++ b/www/php-FastTemplate/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/10/28 03:36:16 jlam Exp $
+
+SHA1 (php-FastTemplate/FastTemplate-1_1_0.tar.gz) = 43d2a91a50a904e8fc449c77412cfa63960fe4fb
+Size (php-FastTemplate/FastTemplate-1_1_0.tar.gz) = 21508 bytes
+SHA1 (php-FastTemplate/php4.diff) = 34d448bb6a102bf44a842535010b75392abbb5cb
+Size (php-FastTemplate/php4.diff) = 684 bytes
diff --git a/www/php-FastTemplate/pkg/DESCR b/www/php-FastTemplate/pkg/DESCR
new file mode 100644
index 00000000000..6d7a1448729
--- /dev/null
+++ b/www/php-FastTemplate/pkg/DESCR
@@ -0,0 +1,9 @@
+FastTemplate is a port of the Perl CGI::FastTemplate module to PHP, which
+is a very fast implementation of templates using simple variable
+interpolation.
+
+Templates are very useful for CGI programming, because adding HTML to your
+PHP code clutters your code and forces you to do any HTML modifications.
+By putting all of your HTML in seperate template files, you can let a
+graphic or interface designer change the look of your application without
+having to bug you, or let them muck around in your PHP code.
diff --git a/www/php-FastTemplate/pkg/PLIST b/www/php-FastTemplate/pkg/PLIST
new file mode 100644
index 00000000000..c65b945c6bb
--- /dev/null
+++ b/www/php-FastTemplate/pkg/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/28 03:36:16 jlam Exp $
+${PHP_LIB_SUBDIR}/class.FastTemplate.php3
+share/doc/html/${PKGBASE}/FastTemplate.html
+share/examples/${PKGBASE}/dynamic_example.php
+share/examples/${PKGBASE}/example_1.php
+share/examples/${PKGBASE}/example_2.php
+share/examples/${PKGBASE}/example_3.php
+share/examples/${PKGBASE}/templates/begin.tpl
+share/examples/${PKGBASE}/templates/dynamic.tpl
+share/examples/${PKGBASE}/templates/footer.tpl
+share/examples/${PKGBASE}/templates/header.tpl
+share/examples/${PKGBASE}/templates/htaccess.tpl
+share/examples/${PKGBASE}/templates/main.tpl
+share/examples/${PKGBASE}/templates/middle.tpl
+share/examples/${PKGBASE}/templates/row.tpl
+share/examples/${PKGBASE}/templates/table.tpl
+share/examples/${PKGBASE}/templates/test.tpl
+@dirrm share/examples/${PKGBASE}/templates
+@dirrm share/examples/${PKGBASE}
+@dirrm share/doc/html/${PKGBASE}
+@unexec rmdir -p %D/${PHP_LIB_SUBDIR} 2>/dev/null || true