Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 16:18:59 +0200 (CEST)
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36655: new port: www/smarty (The PHP compiling template engine) 
Message-ID:  <200204021418.g32EIx229947@elevation.zuhause.stoert.net>

next in thread | raw e-mail | index | archive | help

>Number:         36655
>Category:       ports
>Synopsis:       new port: www/smarty (The PHP compiling template engine)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 02 07:00:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon 'corecode' Schubert
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD elevation.zuhause.stoert.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Mar 22 19:08:08 CET 2002 corecode@elevation.zuhause.stoert.net:/usr/obj/i386/k7/usr/src/sys/ELEVATION i386


	
>Description:
	this is a new upstream version and thus supercedes PR ports/35748

Smarty is a template engine for PHP. Many other template engines for PHP
provide  basic variable  substitution and  dynamic block  functionality.
Smarty takes  a step  further to  be a  "smart" template  engine, adding
features such  as configuration files, template  functions, and variable
modifiers, and making  all of this functionality as easy  as possible to
use for  both programmers and  template designers. Smarty  also converts
the  templates into  PHP  scripts,  eliminating the  need  to parse  the
templates on every invocation. This  makes Smarty extremely scalable and
managable for large application needs.

WWW: http://www.phpinsider.com/php/code/Smarty/

- Simon 'corecode' Schubert
	
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	smarty
#	smarty/files
#	smarty/files/pkg-message
#	smarty/Makefile
#	smarty/distinfo
#	smarty/pkg-comment
#	smarty/pkg-descr
#	smarty/pkg-plist
#
echo c - smarty
mkdir -p smarty > /dev/null 2>&1
echo c - smarty/files
mkdir -p smarty/files > /dev/null 2>&1
echo x - smarty/files/pkg-message
sed 's/^X//' >smarty/files/pkg-message << 'END-of-smarty/files/pkg-message'
XYou need to adjust php's include_path to contain `%%DATADIR%%'!
XFor example, insert
X	include_path = ".:%%DATADIR%%"
Xinto `%%LOCALBASE%%/etc/php.ini'.
END-of-smarty/files/pkg-message
echo x - smarty/Makefile
sed 's/^X//' >smarty/Makefile << 'END-of-smarty/Makefile'
X# New ports collection makefile for:	smarty
X# Date created:		10 March 2002
X# Whom:			Simon 'corecode' Schubert <corecode@corecode.ath.cx>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	smarty
XPORTVERSION=	2.0.1
XCATEGORIES=	www
XMASTER_SITES=	http://www.phpinsider.com/php/code/Smarty/download/
XDISTFILES=	Smarty-${PORTVERSION}${EXTRACT_SUFX}
X.if !defined(NOPORTDOCS)
XDISTFILES+=	Smarty-${PORTVERSION}-docs${EXTRACT_SUFX}
X.endif
X
XMAINTAINER=	corecode@corecode.ath.cx
X
XRUN_DEPENDS=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
X
XWRKSRC=		${WRKDIR}/Smarty-${PORTVERSION}
X
XNO_BUILD=	yes
X
XPKGMESSAGE=	${WRKDIR}/pkg-message
XMSG_SRC=	${FILESDIR}/pkg-message
X
XMSG_SUB=	DATADIR=${DATADIR} LOCALBASE=${LOCALBASE}
X
Xdo-install:
X	@${MKDIR} ${DATADIR}
X.for f in Config_File.class.php Smarty.class.php Smarty_Compiler.class.php overlib.js templates/debug.tpl
X	@${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR}
X.endfor
X	@${MKDIR} ${DATADIR}/plugins
X	@${INSTALL_DATA} ${WRKSRC}/plugins/* ${DATADIR}/plugins
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for f in BUGS FAQ INSTALL QUICKSTART README RESOURCES
X	@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
X.endfor
X	@${MKDIR} ${DOCSDIR}/manual
X	@${INSTALL_DATA} ${WRKDIR}/manual/* ${DOCSDIR}/manual
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${WRKSRC}/index.php ${EXAMPLESDIR}
X.for f in configs templates templates_c cache
X	@${MKDIR} ${EXAMPLESDIR}/$f
X	@-${INSTALL_DATA} ${WRKSRC}/$f/* ${EXAMPLESDIR}/$f 2>/dev/null || ${TRUE}
X.endfor
X.endif
X
Xpost-install:
X	@${SED} ${MSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${MSG_SRC} > ${PKGMESSAGE}
X	@${ECHO_CMD}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_CMD}
X
X.include <bsd.port.mk>
END-of-smarty/Makefile
echo x - smarty/distinfo
sed 's/^X//' >smarty/distinfo << 'END-of-smarty/distinfo'
XMD5 (Smarty-2.0.1.tar.gz) = 5c5f43f3301ad0d6c04f2f9bad8c29f8
XMD5 (Smarty-2.0.1-docs.tar.gz) = 65d76d9040ab6cb5ff5e0068bc4a98eb
END-of-smarty/distinfo
echo x - smarty/pkg-comment
sed 's/^X//' >smarty/pkg-comment << 'END-of-smarty/pkg-comment'
XThe PHP compiling template engine
END-of-smarty/pkg-comment
echo x - smarty/pkg-descr
sed 's/^X//' >smarty/pkg-descr << 'END-of-smarty/pkg-descr'
XSmarty is a template engine for PHP. Many other template engines for PHP
Xprovide  basic variable  substitution and  dynamic block  functionality.
XSmarty takes  a step  further to  be a  "smart" template  engine, adding
Xfeatures such  as configuration files, template  functions, and variable
Xmodifiers, and making  all of this functionality as easy  as possible to
Xuse for  both programmers and  template designers. Smarty  also converts
Xthe  templates into  PHP  scripts,  eliminating the  need  to parse  the
Xtemplates on every invocation. This  makes Smarty extremely scalable and
Xmanagable for large application needs.
X
XWWW: http://www.phpinsider.com/php/code/Smarty/
X
X- Simon 'corecode' Schubert
END-of-smarty/pkg-descr
echo x - smarty/pkg-plist
sed 's/^X//' >smarty/pkg-plist << 'END-of-smarty/pkg-plist'
X%%PORTDOCS%%share/doc/smarty/BUGS
X%%PORTDOCS%%share/doc/smarty/FAQ
X%%PORTDOCS%%share/doc/smarty/INSTALL
X%%PORTDOCS%%share/doc/smarty/QUICKSTART
X%%PORTDOCS%%share/doc/smarty/README
X%%PORTDOCS%%share/doc/smarty/RESOURCES
X%%PORTDOCS%%share/doc/smarty/manual/advanced.features.html
X%%PORTDOCS%%share/doc/smarty/manual/advanced.features.postfilters.html
X%%PORTDOCS%%share/doc/smarty/manual/api.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/api.html
X%%PORTDOCS%%share/doc/smarty/manual/appendixes.html
X%%PORTDOCS%%share/doc/smarty/manual/bugs.html
X%%PORTDOCS%%share/doc/smarty/manual/chapter.debugging.console.html
X%%PORTDOCS%%share/doc/smarty/manual/config.files.html
X%%PORTDOCS%%share/doc/smarty/manual/getting.started.html
X%%PORTDOCS%%share/doc/smarty/manual/how.smarty.works.html
X%%PORTDOCS%%share/doc/smarty/manual/index.html
X%%PORTDOCS%%share/doc/smarty/manual/installation.html
X%%PORTDOCS%%share/doc/smarty/manual/installing.smarty.html
X%%PORTDOCS%%share/doc/smarty/manual/language.builtin.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/language.custom.functions.top.html
X%%PORTDOCS%%share/doc/smarty/manual/language.html
X%%PORTDOCS%%share/doc/smarty/manual/language.modifiers.html
X%%PORTDOCS%%share/doc/smarty/manual/language.variables.html
X%%PORTDOCS%%share/doc/smarty/manual/overview.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.compiler.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.inserts.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.modifiers.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.naming.conventions.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.prefilters.postfilters.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.resources.html
X%%PORTDOCS%%share/doc/smarty/manual/plugins.writing.html
X%%PORTDOCS%%share/doc/smarty/manual/preface.html
X%%PORTDOCS%%share/doc/smarty/manual/resources.html
X%%PORTDOCS%%share/doc/smarty/manual/section.template.cache.handler.func.html
X%%PORTDOCS%%share/doc/smarty/manual/smarty.constants.html
X%%PORTDOCS%%share/doc/smarty/manual/smarty.for.designers.html
X%%PORTDOCS%%share/doc/smarty/manual/smarty.for.programmersr.html
X%%PORTDOCS%%share/doc/smarty/manual/template.resources.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.componentized.templates.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.dates.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.default.var.handling.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.obfuscating.email.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.passing.vars.html
X%%PORTDOCS%%share/doc/smarty/manual/tips.wap.html
X%%PORTDOCS%%share/doc/smarty/manual/troubleshooting.html
X%%PORTDOCS%%share/examples/smarty/configs/test.conf
X%%PORTDOCS%%share/examples/smarty/index.php
X%%PORTDOCS%%share/examples/smarty/templates/debug.tpl
X%%PORTDOCS%%share/examples/smarty/templates/footer.tpl
X%%PORTDOCS%%share/examples/smarty/templates/header.tpl
X%%PORTDOCS%%share/examples/smarty/templates/index.tpl
Xshare/smarty/Config_File.class.php
Xshare/smarty/Smarty.class.php
Xshare/smarty/Smarty_Compiler.class.php
Xshare/smarty/debug.tpl
Xshare/smarty/overlib.js
Xshare/smarty/plugins/function.assign.php
Xshare/smarty/plugins/function.assign_debug_info.php
Xshare/smarty/plugins/function.counter.php
Xshare/smarty/plugins/function.eval.php
Xshare/smarty/plugins/function.fetch.php
Xshare/smarty/plugins/function.html_options.php
Xshare/smarty/plugins/function.html_select_date.php
Xshare/smarty/plugins/function.html_select_time.php
Xshare/smarty/plugins/function.math.php
Xshare/smarty/plugins/function.popup.php
Xshare/smarty/plugins/function.popup_init.php
Xshare/smarty/plugins/modifier.capitalize.php
Xshare/smarty/plugins/modifier.count_characters.php
Xshare/smarty/plugins/modifier.count_paragraphs.php
Xshare/smarty/plugins/modifier.count_sentences.php
Xshare/smarty/plugins/modifier.count_words.php
Xshare/smarty/plugins/modifier.date_format.php
Xshare/smarty/plugins/modifier.debug_print_var.php
Xshare/smarty/plugins/modifier.default.php
Xshare/smarty/plugins/modifier.escape.php
Xshare/smarty/plugins/modifier.indent.php
Xshare/smarty/plugins/modifier.lower.php
Xshare/smarty/plugins/modifier.regex_replace.php
Xshare/smarty/plugins/modifier.replace.php
Xshare/smarty/plugins/modifier.spacify.php
Xshare/smarty/plugins/modifier.string_format.php
Xshare/smarty/plugins/modifier.strip_tags.php
Xshare/smarty/plugins/modifier.truncate.php
Xshare/smarty/plugins/modifier.upper.php
Xshare/smarty/plugins/modifier.wordwrap.php
Xshare/smarty/plugins/shared.make_timestamp.php
X@dirrm share/smarty/plugins
X@dirrm share/smarty
X%%PORTDOCS%%@dirrm share/examples/smarty/templates_c
X%%PORTDOCS%%@dirrm share/examples/smarty/templates
X%%PORTDOCS%%@dirrm share/examples/smarty/configs
X%%PORTDOCS%%@dirrm share/examples/smarty/cache
X%%PORTDOCS%%@dirrm share/examples/smarty
X%%PORTDOCS%%@dirrm share/doc/smarty/manual
X%%PORTDOCS%%@dirrm share/doc/smarty
END-of-smarty/pkg-plist
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204021418.g32EIx229947>