textproc/pear-Text_Template: Install all files

- Fix WWW
- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh 2023-12-02 06:01:30 +08:00
parent 962efa4ae7
commit 3b1576800d
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 8 additions and 5 deletions

View file

@ -1,11 +1,12 @@
PORTNAME= Text_Template
PORTVERSION= 3.0.1
PORTREVISION= 1
CATEGORIES= textproc www pear
PKGNAMEPREFIX= ${PEAR_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Simple template engine
WWW= https://pear.phpunit.de/
WWW= https://github.com/sebastianbergmann/php-text-template
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
@ -15,14 +16,12 @@ USES= pear:env
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= share/PHP/Text_Template/Template.php
USE_GITHUB= yes
GH_ACCOUNT= sebastianbergmann
GH_PROJECT= php-text-template
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/PHP/Text_Template
${INSTALL_SCRIPT} ${WRKSRC}/src/Template.php ${STAGEDIR}${PREFIX}/share/PHP/Text_Template
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/src/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,4 @@
%%DATADIR%%/Template.php
%%DATADIR%%/exceptions/Exception.php
%%DATADIR%%/exceptions/InvalidArgumentException.php
%%DATADIR%%/exceptions/RuntimeException.php