aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-12-12 17:16:07 +0800
committerale <ale@FreeBSD.org>2005-12-12 17:16:07 +0800
commitc8a0f05195b2207289007bcba604137d5eb81da1 (patch)
tree3f66142eea94eca7d2b827d3db85a40823e19988 /devel/pear
parentc314b601aacc3fa3e15b150dfaa3669fc53750d8 (diff)
downloadfreebsd-ports-graphics-c8a0f05195b2207289007bcba604137d5eb81da1.tar.gz
freebsd-ports-graphics-c8a0f05195b2207289007bcba604137d5eb81da1.tar.zst
freebsd-ports-graphics-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/Makefile2
-rw-r--r--devel/pear/bsd.pear.mk2
-rw-r--r--devel/pear/pkg-plist4
3 files changed, 8 insertions, 0 deletions
diff --git a/devel/pear/Makefile b/devel/pear/Makefile
index 4d6fdd75fdd..57e21b9db10 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 f633c9b0199..b24675a90d7 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 d93ec06a690..b1b6dd3a469 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