[107250] trunk/dports
ryandesign at macports.org
ryandesign at macports.org
Mon Jun 24 00:22:19 PDT 2013
Revision: 107250
https://trac.macports.org/changeset/107250
Author: ryandesign at macports.org
Date: 2013-06-24 00:22:19 -0700 (Mon, 24 Jun 2013)
Log Message:
-----------
php: add php55-opcache subport (#39512)
Modified Paths:
--------------
trunk/dports/lang/php/Portfile
trunk/dports/php/php-opcache/Portfile
Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile 2013-06-24 07:06:39 UTC (rev 107249)
+++ trunk/dports/lang/php/Portfile 2013-06-24 07:22:19 UTC (rev 107250)
@@ -831,6 +831,26 @@
}
}
+if {[vercmp ${branch} 5.5] >= 0} {
+ subport ${php}-opcache {
+ php.extensions.zend opcache
+
+ description OPcache improves PHP performance by storing precompiled \
+ script bytecode in shared memory, thereby removing the \
+ need for PHP to load and parse scripts on each request.
+
+ long_description ${description}
+
+ configure.args-append --enable-opcache
+
+ post-destroot {
+ set docdir ${destroot}${prefix}/share/doc/${subport}
+ xinstall -d ${docdir}
+ xinstall -W ${destroot.dir} -m 644 README ${docdir}
+ }
+ }
+}
+
subport ${php}-openssl {
categories-append devel security
@@ -1131,13 +1151,21 @@
distname ${name}-${version}
}
+proc get_default_php_extensions {} {
+ global php.extensions.zend php.rootname
+ if {0 < [llength ${php.extensions.zend}]} {
+ return
+ }
+ return ${php.rootname}
+}
+
# Set up the php portgroup, for extension subports.
if {[is_extension_subport]} {
- default php.extensions ${php.rootname}
+ default php.extensions {[get_default_php_extensions]}
default homepage http://www.php.net/${php.rootname}
php.build_dirs
- foreach extension ${php.extensions} {
+ foreach extension [concat ${php.extensions} ${php.extensions.zend}] {
# Speed up extraction by extracting only the modules we're going to be building.
extract.post_args-append ${worksrcdir}/ext/${extension}
@@ -1147,7 +1175,7 @@
post-extract {
# The PDO extensions need the PDO headers which are installed by the ${php} port.
- foreach extension ${php.extensions} {
+ foreach extension [concat ${php.extensions} ${php.extensions.zend}] {
if {[regexp {^pdo_} ${extension}]} {
file mkdir ${worksrcpath}/ext/${extension}/ext
ln -s ${prefix}/include/${php}/php/ext/pdo ${worksrcpath}/ext/${extension}/ext
Modified: trunk/dports/php/php-opcache/Portfile
===================================================================
--- trunk/dports/php/php-opcache/Portfile 2013-06-24 07:06:39 UTC (rev 107249)
+++ trunk/dports/php/php-opcache/Portfile 2013-06-24 07:22:19 UTC (rev 107250)
@@ -7,7 +7,7 @@
name php-opcache
version 7.0.2
platforms darwin
-maintainers ryandesign openmaintainer
+maintainers ryandesign
license PHP-3.01
# As of PHP 5.5 this extension is bundled with PHP.
@@ -19,7 +19,7 @@
description OPcache improves PHP performance by storing precompiled \
script bytecode in shared memory, thereby removing the \
- need for PHP to load and parse scripts on each request
+ need for PHP to load and parse scripts on each request.
long_description ${description}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130624/41998190/attachment.html>
More information about the macports-changes
mailing list