freebsd-ports/www/phpmustache/Makefile
John Marino 9755292809 www/phpmustache: Unbreak fetch and update to version 2.4.0
This port had some sort of broken roll-your-own github fetch support.  It
could have been easily corrected for the current version 0.8.1, but that
was 11 releases ago!

So in addition to fixing the fetch, the port was updated to the latest
release v2.4.0.  The port now requires PHP to build.  It always required
PHP as a run depends but this was previously omitted.  The MIT license was
moved to the built-in license handling, and the documentation was eliminated
because it is in unreadable markdown format.  The test files were also
eliminated because it doesn't appear to be meant for users.  The examples
were kept and augmented.  The name of the main class file changed from
"Mustache.php" to "mustache.php" but gets installed to the same location.

PR:		ports/179961
Approved by:	bapt (mentor), maintainer timeout (~4 weeks)
2013-07-22 18:55:37 +00:00

39 lines
720 B
Makefile

# Created by: Steve Polyack <spolyack@collaborativefusion.com>
# $FreeBSD$
PORTNAME= phpmustache
PORTVERSION= 2.4.0
CATEGORIES= www
MASTER_SITES= GH
MAINTAINER= spolyack@collaborativefusion.com
COMMENT= PHP5 code for Mustache
LICENSE= MIT
USE_GITHUB= yes
GH_ACCOUNT= bobthecow
GH_PROJECT= mustache.php
GH_TAGNAME= v2.4.0
GH_COMMIT= 8433da6
USE_PHP= yes
USE_PHP_BUILD= yes
SUB_FILES= pkg-message
do-build:
@${WRKSRC}/bin/build_bootstrap.php
do-install:
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/mustache.php ${DATADIR}
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${CP} -R ${WRKSRC}/test/fixtures/examples/* ${EXAMPLESDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>