diff options
author | ale <ale@FreeBSD.org> | 2005-12-12 17:16:07 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-12-12 17:16:07 +0800 |
commit | c8a0f05195b2207289007bcba604137d5eb81da1 (patch) | |
tree | 3f66142eea94eca7d2b827d3db85a40823e19988 /devel/pear | |
parent | c314b601aacc3fa3e15b150dfaa3669fc53750d8 (diff) | |
download | freebsd-ports-gnome-c8a0f05195b2207289007bcba604137d5eb81da1.tar.gz freebsd-ports-gnome-c8a0f05195b2207289007bcba604137d5eb81da1.tar.zst freebsd-ports-gnome-c8a0f05195b2207289007bcba604137d5eb81da1.zip |
- 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.
Diffstat (limited to 'devel/pear')
-rw-r--r-- | devel/pear/Makefile | 2 | ||||
-rw-r--r-- | devel/pear/bsd.pear.mk | 2 | ||||
-rw-r--r-- | devel/pear/pkg-plist | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/devel/pear/Makefile b/devel/pear/Makefile index 4d6fdd75fddf..57e21b9db105 100644 --- a/devel/pear/Makefile +++ b/devel/pear/Makefile @@ -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> diff --git a/devel/pear/bsd.pear.mk b/devel/pear/bsd.pear.mk index f633c9b0199b..b24675a90d77 100644 --- a/devel/pear/bsd.pear.mk +++ b/devel/pear/bsd.pear.mk @@ -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) diff --git a/devel/pear/pkg-plist b/devel/pear/pkg-plist index d93ec06a6900..b1b6dd3a469f 100644 --- a/devel/pear/pkg-plist +++ b/devel/pear/pkg-plist @@ -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 |