summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2006-05-07 09:29:35 +0000
committerjdolecek <jdolecek>2006-05-07 09:29:35 +0000
commit1777147663cea2480b9f05bea369be44b8683025 (patch)
tree6239298f32bd49b65df180a73c39387f3d59e955 /lang
parent7f3e735059b0285b976a6c03f1bda1f807fd0735 (diff)
downloadpkgsrc-1777147663cea2480b9f05bea369be44b8683025.tar.gz
fetch PEAR installation archive too, to avoid use of wget by PHP installation
PR: pkg/33432 by Martti Kuparinen XXX PEAR should be moved to separate package
Diffstat (limited to 'lang')
-rw-r--r--lang/php5/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index 078885a15ed..5cb9ac9e22e 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2006/05/06 22:42:44 jdolecek Exp $
+# $NetBSD: Makefile,v 1.31 2006/05/07 09:29:35 jdolecek Exp $
PKGNAME= php-${PHP_BASE_VERS}
#PKGREVISION= # empty
@@ -31,6 +31,21 @@ EGDIR= ${PREFIX}/share/examples/php
CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
+# fetch pear PHAR explicitly; the PHP installation tries to wget it if it's not
+# present; use DIST_SUBDIR, since the pear file is not versioned
+DIST_SUBDIR= ${PKGNAME}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ install-pear-nozlib.phar
+
+# do not checksum the pear file - it's not versioned and might (and
+# very probably will) change over time
+IGNOREFILES= install-pear-nozlib.phar
+
+SITES.install-pear-nozlib.phar = http://pear.php.net/
+
+post-extract:
+ ${CP} ${DISTDIR}/install-pear-nozlib.phar ${WRKSRC}/pear/
+
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${PREFIX}/bin/php
${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 ${PREFIX}/${PKGMANDIR}/man1/php.1