[49694] trunk/dports/_resources/port1.0/group/php5pecl-1.0.tcl
ryandesign at macports.org
ryandesign at macports.org
Wed Apr 15 07:36:14 PDT 2009
Revision: 49694
http://trac.macports.org/changeset/49694
Author: ryandesign at macports.org
Date: 2009-04-15 07:36:13 -0700 (Wed, 15 Apr 2009)
Log Message:
-----------
php5pecl: change wording "package" and "module" to "extension" which is how the pecl web site refers to them, and set up php5pecl.extension php5pecl.extension_dir.
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/php5pecl-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/php5pecl-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/php5pecl-1.0.tcl 2009-04-15 14:23:37 UTC (rev 49693)
+++ trunk/dports/_resources/port1.0/group/php5pecl-1.0.tcl 2009-04-15 14:36:13 UTC (rev 49694)
@@ -32,22 +32,26 @@
# Usage:
#
# PortGroup php5pecl 1.0
-# php5pecl.setup pecl_package version
+# php5pecl.setup pecl_extension version
#
-# where pecl_package is the name of the package (e.g. APC), and version
+# where pecl_extension is the name of the extension (e.g. APC), and version
# is its version. This automatically sets up the standard environment for
-# building PECL modules.
+# building PECL extensions.
-proc php5pecl.setup {package version} {
+proc php5pecl.setup {extension version} {
+ global php5pecl.extension php5pecl.extension_dir
global destroot prefix worksrcpath
- name php5-${package}
+ set php5pecl.extension ${extension}
+ set php5pecl.extension_dir [exec ${prefix}/bin/php-config --extension-dir]
+
+ name php5-${php5pecl.extension}
version ${version}
categories php
- homepage http://pecl.php.net/package/${package}/
+ homepage http://pecl.php.net/package/${php5pecl.extension}/
master_sites http://pecl.php.net/get/
- distname ${package}-${version}
+ distname ${php5pecl.extension}-${version}
extract.suffix .tgz
depends_lib path:bin/phpize:php5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090415/84ad7d89/attachment.html>
More information about the macports-changes
mailing list