ports/162015: New port: www/phpmustache - Installs PHP code for the Mustache templating system

Steve Polyack spolyack at collaborativefusion.com
Tue Oct 25 21:00:26 UTC 2011


>Number:         162015
>Category:       ports
>Synopsis:       New port: www/phpmustache - Installs PHP code for the Mustache templating system
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 25 21:00:25 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Steve Polyack
>Release:        8.0-RELEASE-p2
>Organization:
Intermedix
>Environment:
>Description:
This includes the SHAR to introduce a new port, www/phpmustache.  This is the PHP version of the Mustache logic-less templating system (see http://mustache.github.com/).

There is already a port for the Perl version, available at www/p5-Template-Mustache.

portlint checks out:
[/usr/ports/www/phpmustache]$ portlint 
WARN: Makefile: only one MASTER_SITE configured.  Consider adding additional mirrors.
0 fatal errors and 1 warning found.

If there are any issues with the port as-is, I will be more than happy to correct them.

Thanks.
>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:
#
#	phpmustache
#	phpmustache/Makefile
#	phpmustache/distinfo
#	phpmustache/pkg-descr
#	phpmustache/files
#	phpmustache/files/pkg-message.in
#	phpmustache/pkg-plist
#
echo c - phpmustache
mkdir -p phpmustache > /dev/null 2>&1
echo x - phpmustache/Makefile
sed 's/^X//' >phpmustache/Makefile << '4699293c359abc43d62483f93e03e8a1'
X# New ports collection makefile for:   phpmustache
X# Date created:        25 October 2011
X# Whom:                Steve Polyack <spolyack at collaborativefusion.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	phpmustache
XPORTVERSION=	0.8.1
XCATEGORIES=	www
XMASTER_SITES=	https://github.com/bobthecow/mustache.php/tarball/master/
XDISTNAME=	bobthecow-mustache.php-v${PORTVERSION}-0-g${GITVERSION}
X
XMAINTAINER=	spolyack at collaborativefusion.com
XCOMMENT=	PHP5 code for Mustache
X
XGITVERSION=	1e23df0
XFETCH_ARGS=	-pRr
XWRKSRC=		${WRKDIR}/bobthecow-mustache.php-${GITVERSION}
X
XNO_BUILD=	yes
X
XSUB_FILES=	pkg-message
X
Xdo-install:
X	@${MKDIR} ${DATADIR}
X	@${INSTALL_DATA} ${WRKSRC}/Mustache.php ${DATADIR}
X	@${MKDIR} ${DATADIR}/test
X	@${INSTALL_DATA} ${WRKSRC}/test/*.php ${WRKSRC}/test/phpunit.xml ${DATADIR}/test
X	@${MKDIR} ${DATADIR}/test/lib/yaml/doc ${DATADIR}/test/lib/yaml/lib
X.for f in README.markdown LICENSE package.xml
X	@${INSTALL_DATA} ${WRKSRC}/test/lib/yaml/$f ${DATADIR}/test/lib/yaml
X.endfor
X	@${INSTALL_DATA} ${WRKSRC}/test/lib/yaml/lib/* ${DATADIR}/test/lib/yaml/lib
X	@${INSTALL_DATA} ${WRKSRC}/test/lib/yaml/doc/* ${DATADIR}/test/lib/yaml/doc
X	@${MKDIR} ${DATADIR}/test/spec
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for f in README.markdown LICENSE
X	@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
X.endfor
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${MKDIR} ${EXAMPLESDIR}
X	@${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
4699293c359abc43d62483f93e03e8a1
echo x - phpmustache/distinfo
sed 's/^X//' >phpmustache/distinfo << 'b0cd79b70d32dc5d2658bef412069d40'
XSHA256 (bobthecow-mustache.php-v0.8.1-0-g1e23df0.tar.gz) = 9111025ef0fa8b1412436ee26fc8715726399da16c57a69e29fb4927c42ede1c
XSIZE (bobthecow-mustache.php-v0.8.1-0-g1e23df0.tar.gz) = 41364
b0cd79b70d32dc5d2658bef412069d40
echo x - phpmustache/pkg-descr
sed 's/^X//' >phpmustache/pkg-descr << '2eea5960382589e7e4b13bcf43127d88'
XA Mustache implementation in PHP.
X
XWWW: https://github.com/bobthecow/mustache.php
2eea5960382589e7e4b13bcf43127d88
echo c - phpmustache/files
mkdir -p phpmustache/files > /dev/null 2>&1
echo x - phpmustache/files/pkg-message.in
sed 's/^X//' >phpmustache/files/pkg-message.in << '667543da1197167bb543fd29797c4e32'
XYou need to adjust php's include_path to contain `%%DATADIR%%'!
XFor example, insert
X	include_path = ".:%%DATADIR%%"
Xinto `%%LOCALBASE%%/etc/php.ini'.
667543da1197167bb543fd29797c4e32
echo x - phpmustache/pkg-plist
sed 's/^X//' >phpmustache/pkg-plist << '6e9deb50ea23fe053a8817deab1f4a81'
X%%DATADIR%%/Mustache.php
X%%PORTDOCS%%%%DOCSDIR%%/README.markdown
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/child_context/ChildContext.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/child_context/child_context.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/child_context/child_context.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/comments/Comments.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/comments/comments.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/comments/comments.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/complex/complex.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/complex/complex.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/complex/complex.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/delimiters/Delimiters.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/delimiters/delimiters.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/delimiters/delimiters.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot_notation/DotNotation.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot_notation/dot_notation.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot_notation/dot_notation.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/double_section/DoubleSection.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/double_section/double_section.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/double_section/double_section.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/escaped/Escaped.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/escaped/escaped.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/escaped/escaped.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/grand_parent_context/GrandParentContext.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/grand_parent_context/grand_parent_context.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/grand_parent_context/grand_parent_context.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/implicit_iterator/ImplicitIterator.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/implicit_iterator/implicit_iterator.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/implicit_iterator/implicit_iterator.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inverted_double_section/InvertedDoubleSection.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inverted_double_section/inverted_double_section.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inverted_double_section/inverted_double_section.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inverted_section/InvertedSection.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inverted_section/inverted_section.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inverted_section/inverted_section.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partials/Partials.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partials/partials.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partials/partials.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partials_with_view_class/PartialsWithViewClass.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partials_with_view_class/partials_with_view_class.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/partials_with_view_class/partials_with_view_class.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pragma_unescaped/PragmaUnescaped.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pragma_unescaped/pragma_unescaped.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pragma_unescaped/pragma_unescaped.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pragmas_in_partials/PragmasInPartials.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pragmas_in_partials/pragmas_in_partials.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pragmas_in_partials/pragmas_in_partials.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/recursive_partials/RecursivePartials.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/recursive_partials/recursive_partials.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/recursive_partials/recursive_partials.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_iterator_objects/SectionIteratorObjects.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_iterator_objects/section_iterator_objects.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_iterator_objects/section_iterator_objects.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_magic_objects/SectionMagicObjects.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_magic_objects/section_magic_objects.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_magic_objects/section_magic_objects.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_objects/SectionObjects.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_objects/section_objects.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/section_objects/section_objects.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sections/Sections.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sections/sections.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sections/sections.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sections_nested/SectionsNested.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sections_nested/sections_nested.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sections_nested/sections_nested.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple/Simple.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple/simple.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple/simple.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unescaped/Unescaped.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unescaped/unescaped.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unescaped/unescaped.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf8/UTF8.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf8/utf8.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf8/utf8.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf8_unescaped/UTF8Unescaped.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf8_unescaped/utf8_unescaped.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/utf8_unescaped/utf8_unescaped.txt
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/whitespace/Whitespace.php
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/whitespace/whitespace.mustache
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/whitespace/whitespace.txt
X%%DATADIR%%/test/MustacheExceptionTest.php
X%%DATADIR%%/test/MustacheHigherOrderSectionsTest.php
X%%DATADIR%%/test/MustacheInjectionTest.php
X%%DATADIR%%/test/MustacheObjectSectionTest.php
X%%DATADIR%%/test/MustachePragmaTest.php
X%%DATADIR%%/test/MustachePragmaUnescapedTest.php
X%%DATADIR%%/test/MustacheSpecTest.php
X%%DATADIR%%/test/MustacheTest.php
X%%DATADIR%%/test/lib/yaml/LICENSE
X%%DATADIR%%/test/lib/yaml/README.markdown
X%%DATADIR%%/test/lib/yaml/doc/00-Introduction.markdown
X%%DATADIR%%/test/lib/yaml/doc/01-Usage.markdown
X%%DATADIR%%/test/lib/yaml/doc/02-YAML.markdown
X%%DATADIR%%/test/lib/yaml/doc/A-License.markdown
X%%DATADIR%%/test/lib/yaml/lib/sfYaml.php
X%%DATADIR%%/test/lib/yaml/lib/sfYamlDumper.php
X%%DATADIR%%/test/lib/yaml/lib/sfYamlInline.php
X%%DATADIR%%/test/lib/yaml/lib/sfYamlParser.php
X%%DATADIR%%/test/lib/yaml/package.xml
X%%DATADIR%%/test/phpunit.xml
X at dirrm %%DATADIR%%/test/lib/yaml/doc
X at dirrm %%DATADIR%%/test/lib/yaml/lib
X at dirrm %%DATADIR%%/test/lib/yaml
X at dirrm %%DATADIR%%/test/lib
X at dirrm %%DATADIR%%/test/spec
X at dirrm %%DATADIR%%/test
X at dirrm %%DATADIR%%
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/child_context
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/comments
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/complex
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/delimiters
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/dot_notation
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/double_section
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/escaped
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/grand_parent_context
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/implicit_iterator
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/inverted_double_section
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/inverted_section
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/partials
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/partials_with_view_class
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/pragma_unescaped
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/pragmas_in_partials
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/recursive_partials
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/section_iterator_objects
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/section_magic_objects
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/section_objects
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/sections
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/sections_nested
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/simple
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/unescaped
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/utf8
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/utf8_unescaped
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/whitespace
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
6e9deb50ea23fe053a8817deab1f4a81
exit


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



More information about the freebsd-ports-bugs mailing list