diff options
-rw-r--r-- | devel/pear-install/Makefile | 12 | ||||
-rw-r--r-- | devel/pear-install/pkg-plist | 1 |
2 files changed, 10 insertions, 3 deletions
diff --git a/devel/pear-install/Makefile b/devel/pear-install/Makefile index c651a1bd0ccf..5f2aad387957 100644 --- a/devel/pear-install/Makefile +++ b/devel/pear-install/Makefile @@ -18,6 +18,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/php-config:${PORTSDIR}/www/mod_php4 RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 NO_BUILD= yes +EXAMPLESDIR= ${PREFIX}/share/examples/pear .include <bsd.port.pre.mk> @@ -25,7 +26,7 @@ NO_BUILD= yes PHP_VERSION!= ${LOCALBASE}/bin/php-config --version PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix .else -PHP_VERSION= 4.2.3 +PHP_VERSION= 4.3.0 .endif LPHP_LIB= lib/php @@ -33,7 +34,12 @@ PEARDIR= ${PHP_BASE}/${LPHP_LIB} do-install: @${ECHO_MSG} "===> Backuping the original PEAR from mod_php4 into ${PEARDIR}.DIST_PHP ..." - @${MKDIR} ${PEARDIR}.DIST_PHP - @${CP} -Rp ${PEARDIR}/* ${PEARDIR}.DIST_PHP + @${CP} -Rp ${PEARDIR} ${PEARDIR}.DIST_PHP + +post-install: +# To be used by other pear-* ports +.if !defined(NOPORTDOCS) + @${MKDIR} ${EXAMPLESDIR} +.endif .include <bsd.port.post.mk> diff --git a/devel/pear-install/pkg-plist b/devel/pear-install/pkg-plist index ba8e0f102edb..c151014c4d82 100644 --- a/devel/pear-install/pkg-plist +++ b/devel/pear-install/pkg-plist @@ -1,3 +1,4 @@ +%%PORTDOCS%%@dirrm share/examples/pear @exec rm -r %D/lib/php.DIST_PHP 2>/dev/null || true @exec cp -Rp %D/lib/php %D/lib/php.DIST_PHP @unexec rm -r %D/lib/php || true |