1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00

- create required empty dirs on installation

- add runtime pear dependency in bsd.pear.mk

This should fix all the issues reported by pointyhat
and probably obsolates many of the BUILD_DEPENDS and
RUN_DEPENDS on PEAR.php in pear ports.
This commit is contained in:
Alex Dupre 2005-12-12 09:16:07 +00:00
parent faa5c6ed29
commit ca323aed94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150962
3 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= pear
PORTVERSION= 1.4.5
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ale
@ -30,6 +31,7 @@ post-patch:
do-install:
@${LOCALBASE}/bin/php -q ${WRKSRC}/go-pear
@${MKDIR} ${DATADIR}/packages ${DATADIR}/sql
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -7,6 +7,8 @@ PKGNAMEPREFIX= pear-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PEAR
RUN_DEPENDS+= pear:${PORTSDIR}/devel/pear
USE_REINPLACE= yes
.if !defined(USE_PHPIZE)

View File

@ -113,8 +113,10 @@ etc/pear.conf
%%DATADIR%%/XML/RPC.php
%%DATADIR%%/data/PEAR/package.dtd
%%DATADIR%%/data/PEAR/template.spec
@exec mkdir -p %D/share/pear/packages 2> /dev/null || true
%%DATADIR%%/pearcmd.php
%%DATADIR%%/peclcmd.php
@exec mkdir -p %D/share/pear/sql 2> /dev/null || true
%%DATADIR%%/tests/XML_RPC/tests/allgot.inc
%%DATADIR%%/tests/XML_RPC/tests/empty-value-struct.php
%%DATADIR%%/tests/XML_RPC/tests/empty-value.php
@ -163,6 +165,8 @@ etc/pear.conf
@unexec rmdir %D/share/pear/XML 2> /dev/null || true
@dirrm %%DATADIR%%/data/PEAR
@unexec rmdir %D/share/pear/data 2> /dev/null || true
@unexec rmdir %D/share/pear/packages 2> /dev/null || true
@unexec rmdir %D/share/pear/sql 2> /dev/null || true
@dirrm %%DATADIR%%/tests/XML_RPC/tests
@dirrm %%DATADIR%%/tests/XML_RPC
@unexec rmdir %D/share/pear/tests 2> /dev/null || true