Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2002 21:40:01 +0100 (CET)
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35748: new port: www/smarty
Message-ID:  <200203102040.g2AKe1r07710@elevation.zuhause.stoert.net>

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

>Number:         35748
>Category:       ports
>Synopsis:       new port: www/smarty
>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:   Sun Mar 10 13:20:01 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 #8: Fri Mar 1 23:38:06 CET 2002 corecode@elevation.zuhause.stoert.net:/usr/obj/i386/k7/usr/src/sys/ELEVATION i386


	
>Description:

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/Makefile
#	smarty/distinfo
#	smarty/pkg-comment
#	smarty/pkg-descr
#	smarty/pkg-plist
#	smarty/files
#	smarty/files/pkg-message
#
echo c - smarty
mkdir -p smarty > /dev/null 2>&1
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
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
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.tar.gz) = f708ab578e8ad1c16a3873d28fd09d03
XMD5 (Smarty-2.0-docs.tar.gz) = b724fda1abe43b6e560570da77a1ef82
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.append.html
X%%PORTDOCS%%share/doc/smarty/manual/api.assign.html
X%%PORTDOCS%%share/doc/smarty/manual/api.clear.all.assign.html
X%%PORTDOCS%%share/doc/smarty/manual/api.clear.all.cache.html
X%%PORTDOCS%%share/doc/smarty/manual/api.clear.assign.html
X%%PORTDOCS%%share/doc/smarty/manual/api.clear.cache.html
X%%PORTDOCS%%share/doc/smarty/manual/api.clear.compiled.tpl.html
X%%PORTDOCS%%share/doc/smarty/manual/api.display.html
X%%PORTDOCS%%share/doc/smarty/manual/api.fetch.html
X%%PORTDOCS%%share/doc/smarty/manual/api.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/api.get.template.vars.html
X%%PORTDOCS%%share/doc/smarty/manual/api.html
X%%PORTDOCS%%share/doc/smarty/manual/api.is.cached.html
X%%PORTDOCS%%share/doc/smarty/manual/api.register.compiler.function.html
X%%PORTDOCS%%share/doc/smarty/manual/api.register.function.html
X%%PORTDOCS%%share/doc/smarty/manual/api.register.modifier.html
X%%PORTDOCS%%share/doc/smarty/manual/api.register.postfilter.html
X%%PORTDOCS%%share/doc/smarty/manual/api.register.prefilter.html
X%%PORTDOCS%%share/doc/smarty/manual/api.register.resource.html
X%%PORTDOCS%%share/doc/smarty/manual/api.trigger.error.html
X%%PORTDOCS%%share/doc/smarty/manual/api.unregister.compiler.function.html
X%%PORTDOCS%%share/doc/smarty/manual/api.unregister.function.html
X%%PORTDOCS%%share/doc/smarty/manual/api.unregister.modifier.html
X%%PORTDOCS%%share/doc/smarty/manual/api.unregister.postfilter.html
X%%PORTDOCS%%share/doc/smarty/manual/api.unregister.prefilter.html
X%%PORTDOCS%%share/doc/smarty/manual/api.unregister.resource.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/constant.smarty.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/default.template.handler.function.html
X%%PORTDOCS%%share/doc/smarty/manual/features.caching.html
X%%PORTDOCS%%share/doc/smarty/manual/features.compiling.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.assigned.variables.html
X%%PORTDOCS%%share/doc/smarty/manual/language.builtin.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/language.builtin.modifiers.html
X%%PORTDOCS%%share/doc/smarty/manual/language.combining.modifiers.html
X%%PORTDOCS%%share/doc/smarty/manual/language.config.variables.html
X%%PORTDOCS%%share/doc/smarty/manual/language.custom.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/language.custom.functions.top.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.capture.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.config.load.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.foreach.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.if.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.include.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.include.php.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.insert.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.ldelim.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.literal.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.php.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.section.html
X%%PORTDOCS%%share/doc/smarty/manual/language.function.strip.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.syntax.attributes.html
X%%PORTDOCS%%share/doc/smarty/manual/language.syntax.comments.html
X%%PORTDOCS%%share/doc/smarty/manual/language.syntax.functions.html
X%%PORTDOCS%%share/doc/smarty/manual/language.variables.html
X%%PORTDOCS%%share/doc/smarty/manual/language.variables.smarty.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/templates.from.any.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/templates.from.elsewhere.html
X%%PORTDOCS%%share/doc/smarty/manual/templates.from.template.dir.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/doc/smarty/manual/variable.cache.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.cache.handler.func.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.cache.lifetime.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.cache.modified.check.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.caching.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.compile.check.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.compile.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.compile.id.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.compiler.class.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.config.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.debug.tpl.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.debugging.ctrl.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.debugging.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.default.template.handler.func.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.force.compile.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.global.assign.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.left.delimiter.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.php.handling.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.plugins.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.request.vars.order.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.right.delimiter.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.secure.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.security.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.security.settings.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.show.info.header.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.show.info.include.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.template.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.trusted.dir.html
X%%PORTDOCS%%share/doc/smarty/manual/variable.undefined.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
X%%PORTDOCS%%@exec mkdir -p %D/share/examples/smarty/templates_c
X%%PORTDOCS%%@exec mkdir -p %D/share/examples/smarty/cache
Xshare/smarty/Config_File.class.php
Xshare/smarty/Smarty.class.php
Xshare/smarty/Smarty_Compiler.class.php
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.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
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
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
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?200203102040.g2AKe1r07710>