[20736] trunk/dports/www/php5/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 24 08:08:06 PST 2006
Revision: 20736
http://trac.macosforge.org/projects/macports/changeset/20736
Author: jwa at macports.org
Date: 2006-11-24 08:08:05 -0800 (Fri, 24 Nov 2006)
Log Message:
-----------
pear stuff is collected into its own section as a variant. Now
php5 installs without pear, none of it, by default. The
variant includes destination directory for build, configuration
option &c. The variant checks, whether pear files exist and if
they do, it does not try to install them.
I do this commit, because midgard package (my maintenance
responsibility) needs PHP and changed the dependency from 4
to 5, and I couldn't get a response from my co-maintainer.
If this breaks something, I'll fix it.
Modified Paths:
--------------
trunk/dports/www/php5/Portfile
Modified: trunk/dports/www/php5/Portfile
===================================================================
--- trunk/dports/www/php5/Portfile 2006-11-24 14:49:08 UTC (rev 20735)
+++ trunk/dports/www/php5/Portfile 2006-11-24 16:08:05 UTC (rev 20736)
@@ -4,6 +4,7 @@
name php5
version 5.2.0
+revision 0
categories lang php www
maintainers ryandesign at macports.org, jwa at macports.org
@@ -27,7 +28,7 @@
distfiles php-${version}.tar.bz2:release
worksrcdir php-${version}
checksums md5 e6029fafcee029edcfa2ceed7a005333 \
- sha1 6306829b1b252156ca3a936ec809aba89a71d9e1
+ sha1 6306829b1b252156ca3a936ec809aba89a71d9e1
use_bzip2 yes
depends_lib port:libxml2 \
@@ -82,6 +83,7 @@
--with-jpeg-dir=${prefix} \
--with-png-dir=${prefix} \
--enable-gd-native-ttf \
+ --without-pear \
--with-freetype-dir=${prefix}
configure.env CFLAGS=-I${prefix}/include/c-client
@@ -190,8 +192,25 @@
}
}
-destroot.args INSTALL_ROOT=${destroot} PHP_PEAR_INSTALL_DIR=${prefix}/lib/php
+variant pear {
+ configure.args-delete --without-pear
+ configure.args-append --with-pear=${prefix}/lib/php
+ destroot.target-append install-pear
+ destroot.args-append PHP_PEAR_INSTALL_DIR=${prefix}/lib/php
+ post-destroot {
+ #nuke pear-stuff in ${destroot}
+ system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock"
+ system "if \[ -f ${prefix}/lib/php/.depdblock \]; then rm -f ${destroot}${prefix}/lib/php/.depdblock; fi"
+ system "if \[ -f ${prefix}/lib/php/.depdb \]; then rm -f ${destroot}${prefix}/lib/php/.depdb; fi"
+ system "if \[ -f ${prefix}/lib/php/.filemap \]; then rm -f ${destroot}${prefix}/lib/php/.filemap; fi"
+ system "if \[ -f ${prefix}/lib/php/.lock \]; then rm -f ${destroot}${prefix}/lib/php/.lock; fi"
+ system "if \[ -d ${prefix}/lib/php/.channels \]; then rm -rf ${destroot}${prefix}/lib/php/.channels; fi"
+ }
+}
+
+destroot.args INSTALL_ROOT=${destroot}
+
destroot.target install-cli install-build install-headers install-programs
post-destroot {
@@ -223,8 +242,6 @@
xinstall -m 755 ${workpath}/${worksrcdir}/php.ini-dist ${destroot}${prefix}/etc/php.ini-dist
xinstall -m 755 ${workpath}/${worksrcdir}/php.ini-recommended ${destroot}${prefix}/etc/php.ini-recommended
- #nuke pear-stuff in ${destroot}
- system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock"
}
post-install {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061124/7db29f81/attachment.html
More information about the macports-changes
mailing list