mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
5f4f144548
- Bump PORTREVISION Changelog: Update Archiv_TAR to 1.3.11 * Fix Bug #19746: Broken with PHP 5.5 [mrook] * Implement Feature #11258: Custom date/time in files added on-the-fly [mrook] Update Console_Getopt to 1.3.1 * fix Bug #4475: An ambiguous error occurred when specifying similar longoption name. * fix Bug #10055: Not failing properly on short options missing required values * fix Bug #11068: No way to read plain "-" option [cardoe] * Implement Request #13140: [PATCH] to skip unknown parameters. [patch by rquadling, improved on by dufuz] Update Structures_Graph to 1.0.4 * Bug #17108 BasicGraph::test_directed_degree fails on PHP 5 [clockwerx]
44 lines
1.5 KiB
Makefile
44 lines
1.5 KiB
Makefile
# Created by: Alex Dupre <ale@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pear
|
|
PORTVERSION= 1.9.4
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://miwibox.org/distfiles/
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= PEAR framework for PHP
|
|
|
|
USE_BZIP2= yes
|
|
NO_BUILD= yes
|
|
|
|
WANT_PHP_CLI= yes
|
|
USE_PHP= pcre xml
|
|
USE_PHP_BUILD= yes
|
|
|
|
PEARDIR= ${PREFIX}/share/pear
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \
|
|
-e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \
|
|
-e "s|%%TMPDIR%%|/tmp/pear|" \
|
|
${WRKSRC}/go-pear
|
|
@cd ${WRKSRC}/go-pear-bundle && ${MKDIR} tmp && ${TAR} -C tmp -xf PEAR-${PORTVERSION}.tar
|
|
@cd ${WRKSRC}/go-pear-bundle/tmp/PEAR-${PORTVERSION} && ${PATCH} -s -p0 < ${FILESDIR}/extra-patch-PEAR-Config.php
|
|
@${RM} ${WRKSRC}/go-pear-bundle/tmp/PEAR-${PORTVERSION}/PEAR/Config.php.orig
|
|
@${MD5} -q ${WRKSRC}/go-pear-bundle/tmp/PEAR-${PORTVERSION}/PEAR/Config.php > ${WRKSRC}/Config.php.md5
|
|
@${REINPLACE_CMD} -E -e "s|(file md5sum=\").*(\" name=\"PEAR/Config.php\" role=\"php\")|\1`${CAT} ${WRKSRC}/Config.php.md5`\2|g" \
|
|
${WRKSRC}/go-pear-bundle/tmp/package2.xml ${WRKSRC}/go-pear-bundle/package2.xml
|
|
@cd ${WRKSRC}/go-pear-bundle/tmp && ${TAR} -cf ../PEAR-${PORTVERSION}.tar package2.xml PEAR-${PORTVERSION} package.xml
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${LOCALBASE}/bin/php -q ./go-pear
|
|
@${SED} -i "" "s|<?php|<?php dl('pcre.so'); dl('xml.so');|" \
|
|
${PEARDIR}/peclcmd.php
|
|
|
|
post-install:
|
|
@${CP} -n ${PREFIX}/etc/pear.conf.sample ${PREFIX}/etc/pear.conf || ${TRUE}
|
|
|
|
.include <bsd.port.mk>
|