[83198] trunk/dports/php
pixilla at macports.org
pixilla at macports.org
Sat Aug 27 16:10:02 PDT 2011
Revision: 83198
http://trac.macports.org/changeset/83198
Author: pixilla at macports.org
Date: 2011-08-27 16:10:01 -0700 (Sat, 27 Aug 2011)
Log Message:
-----------
php/pear-*:
- Add base pear ports.
Added Paths:
-----------
trunk/dports/php/pear-Archive_Tar/
trunk/dports/php/pear-Archive_Tar/Portfile
trunk/dports/php/pear-Console_Getopt/
trunk/dports/php/pear-Console_Getopt/Portfile
trunk/dports/php/pear-PEAR/
trunk/dports/php/pear-PEAR/Portfile
trunk/dports/php/pear-Structures_Graph/
trunk/dports/php/pear-Structures_Graph/Portfile
trunk/dports/php/pear-XML_Util/
trunk/dports/php/pear-XML_Util/Portfile
trunk/dports/php/php5-pear/
trunk/dports/php/php5-pear/Portfile
Added: trunk/dports/php/pear-Archive_Tar/Portfile
===================================================================
--- trunk/dports/php/pear-Archive_Tar/Portfile (rev 0)
+++ trunk/dports/php/pear-Archive_Tar/Portfile 2011-08-27 23:10:01 UTC (rev 83198)
@@ -0,0 +1,16 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup php5pear 1.0
+
+php5pear.setup Archive_Tar 1.3.7
+categories-append net www
+platforms darwin
+maintainers pixilla openmaintainer
+
+description PEAR Archive_Tar package
+long_description ${description}
+
+checksums sha1 5b35a8c3bfa34ba8b29c5208f8f37504d0ce280c \
+ rmd160 0b018556bf4d916440e0e661e714986edd728de2
Property changes on: trunk/dports/php/pear-Archive_Tar/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/php/pear-Console_Getopt/Portfile
===================================================================
--- trunk/dports/php/pear-Console_Getopt/Portfile (rev 0)
+++ trunk/dports/php/pear-Console_Getopt/Portfile 2011-08-27 23:10:01 UTC (rev 83198)
@@ -0,0 +1,16 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup php5pear 1.0
+
+php5pear.setup Console_Getopt 1.3.1
+categories-append net www
+platforms darwin
+maintainers pixilla openmaintainer
+
+description PEAR Console_Getopt package
+long_description ${description}
+
+checksums sha1 8f9ac495728ee9ba87edd109c3946f11ee72bc08 \
+ rmd160 aae10ad272bf2a66bc80d899f60cb8e630f90d16
Property changes on: trunk/dports/php/pear-Console_Getopt/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/php/pear-PEAR/Portfile
===================================================================
--- trunk/dports/php/pear-PEAR/Portfile (rev 0)
+++ trunk/dports/php/pear-PEAR/Portfile 2011-08-27 23:10:01 UTC (rev 83198)
@@ -0,0 +1,21 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup php5pear 1.0
+
+php5pear.setup PEAR 1.9.4
+categories-append net www
+platforms darwin
+maintainers pixilla openmaintainer
+
+description PEAR PEAR package
+long_description ${description}
+
+checksums sha1 7c4e88ae5064827507b2c9ae0108eb5972d900db \
+ rmd160 8c57e069d305470a9313d1a617e6dd9b6d07ef08
+
+depends_lib-append port:pear-Archive_Tar \
+ port:pear-Structures_Graph \
+ port:pear-Console_Getopt \
+ port:pear-XML_Util
Property changes on: trunk/dports/php/pear-PEAR/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/php/pear-Structures_Graph/Portfile
===================================================================
--- trunk/dports/php/pear-Structures_Graph/Portfile (rev 0)
+++ trunk/dports/php/pear-Structures_Graph/Portfile 2011-08-27 23:10:01 UTC (rev 83198)
@@ -0,0 +1,16 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup php5pear 1.0
+
+php5pear.setup Structures_Graph 1.0.4
+categories-append net www
+platforms darwin
+maintainers pixilla openmaintainer
+
+description PEAR Structures_Graph package
+long_description ${description}
+
+checksums sha1 00f5c2aefad0c3f6490e5ca95da87828e64ebc57 \
+ rmd160 d236ddff4a31cafa6fa750b4ec4a0849c48ad3f6
Property changes on: trunk/dports/php/pear-Structures_Graph/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/php/pear-XML_Util/Portfile
===================================================================
--- trunk/dports/php/pear-XML_Util/Portfile (rev 0)
+++ trunk/dports/php/pear-XML_Util/Portfile 2011-08-27 23:10:01 UTC (rev 83198)
@@ -0,0 +1,16 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup php5pear 1.0
+
+php5pear.setup XML_Util 1.2.1
+categories-append net www
+platforms darwin
+maintainers pixilla openmaintainer
+
+description PEAR XML_Util package
+long_description ${description}
+
+checksums sha1 8072216577fb9ad684f15e0388ab0b1c0b57e2d4 \
+ rmd160 9d9dd43889312f46f39c9a43a800a8f2d8f6e9b2
Property changes on: trunk/dports/php/pear-XML_Util/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/php/php5-pear/Portfile
===================================================================
--- trunk/dports/php/php5-pear/Portfile (rev 0)
+++ trunk/dports/php/php5-pear/Portfile 2011-08-27 23:10:01 UTC (rev 83198)
@@ -0,0 +1,109 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name php5-pear
+version 20110334
+categories php www
+platforms darwin
+maintainers pixilla
+description PEAR build and repository support for php5
+long_description ${description}
+homepage http://pear.php.net
+master_sites http://pear.php.net
+livecheck.type moddate
+
+depends_lib port:php5
+
+dist_subdir ${name}-${version}
+distfiles install-pear-nozlib.phar
+
+checksums sha1 d59ea92ebd9bea4c992026f4473a3249779231fd \
+ rmd160 cd70e616f81f0c3450904b70f00a117879f0abc3
+
+set buildpath ${worksrcpath}/build
+set instpath ${buildpath}/libexec/php
+set pearpath ${prefix}/libexec/php
+set systemtmp /private/tmp/pear
+
+extract.mkdir yes
+extract {
+ file copy ${distpath}/install-pear-nozlib.phar ${worksrcpath}
+}
+configure {
+ system "cd ${worksrcpath} && \
+ PHP_PEAR_INSTALL_DIR=${instpath}/pear \
+ PHP_PEAR_BIN_DIR=${instpath}/bin \
+ PHP_PEAR_PHP_BIN=${prefix}/bin/php \
+ PHP_PEAR_CFG_DIR=${instpath}/pear/cfg \
+ PHP_PEAR_DOC_DIR=${instpath}/pear/docs \
+ PHP_PEAR_DATA_DIR=${instpath}/pear/data \
+ PHP_PEAR_WWW_DIR=${instpath}/pear/www \
+ PHP_PEAR_TEST_DIR=${instpath}/pear/tests \
+ PHP_PEAR_SYSCONF_DIR=${instpath}/etc \
+ ${prefix}/bin/php \
+ install-pear-nozlib.phar \
+ "
+}
+build {
+ xinstall -d ${buildpath}/lib/php/pear
+ xinstall -d ${buildpath}/var/db/php5
+
+ set pearcmd "PHP_PEAR_INSTALL_DIR=${instpath}/pear PHP_PEAR_SYSCONF_DIR=${instpath}/etc \
+ PHP_PEAR_BIN_DIR=${instpath}/bin ${instpath}/bin/pear -c ${instpath}/etc/pear.conf \
+ -C ${instpath}/etc/pear.conf"
+
+ system "${pearcmd} config-show"
+
+ system "${pearcmd} config-create ${pearpath} ${instpath}/etc/pear.conf"
+
+ system "${pearcmd} config-set php_dir ${pearpath}/pear"
+
+ system "${pearcmd} config-set bin_dir ${pearpath}/bin"
+
+ system "${pearcmd} config-set cache_dir ${systemtmp}/cache"
+
+ system "${pearcmd} config-set download_dir ${systemtmp}/download"
+
+ system "${pearcmd} config-set temp_dir ${systemtmp}/temp"
+
+ system "${pearcmd} config-set sig_keydir ${pearpath}/etc/pearkeys"
+
+ system "${pearcmd} config-set auto_discover 1"
+
+ system "${pearcmd} config-show"
+
+ xinstall -d ${buildpath}/lib/php/pear
+ set fp [open ${buildpath}/lib/php/pear/pear-ini.php w]
+ puts $fp "<?php"
+ puts $fp "# Automatically add the PEAR repository path to PHP's include_path."
+ puts $fp "set_include_path ( get_include_path ( ) . PATH_SEPARATOR . '${prefix}/lib/php/pear' ) ;"
+ puts $fp "?>"
+ close $fp
+
+ xinstall -d ${buildpath}/var/db/php5
+ set fp [open ${buildpath}/var/db/php5/pear.ini w]
+ puts $fp "; Do not edit this file; it is automatically generated by MacPorts."
+ puts $fp "; Any changes you make will be lost if you upgrade or uninstall php5-pear."
+ puts $fp "; To configure PHP, edit ${prefix}/etc/php5/php.ini."
+ puts $fp "auto_prepend_file = '${prefix}/lib/php/pear/pear-ini.php'"
+ close $fp
+
+ reinplace "s|${buildpath}|${prefix}|g" ${instpath}/bin/pear
+ reinplace "s|${buildpath}|${prefix}|g" ${instpath}/bin/peardev
+ reinplace "s|${buildpath}|${prefix}|g" ${instpath}/bin/pecl
+ reinplace "s|${buildpath}|${prefix}|g" ${instpath}/pear/pearcmd.php
+ reinplace "s|${buildpath}|${prefix}|g" ${instpath}/pear/peclcmd.php
+}
+
+destroot {
+ xinstall -d ${destroot}${prefix}/lib/php/pear
+ xinstall -d ${destroot}${prefix}/var/db/php5
+ file copy ${buildpath}/lib/php/pear/pear-ini.php ${destroot}${prefix}/lib/php/pear/pear-ini.php
+ file copy ${buildpath}/var/db/php5/pear.ini ${destroot}${prefix}/var/db/php5/pear.ini
+ file copy ${instpath} ${destroot}${prefix}/libexec
+# system "rm -R ${destroot}${prefix}/libexec/php/pear/{.channels,.depdb,.depdblock,.filemap,.lock,.registry}"
+ system "chown -R :staff ${destroot}${prefix}/libexec/php/pear/\.*"
+ system "chmod -R g+w ${destroot}${prefix}/libexec/php/pear/\.*"
+}
\ No newline at end of file
Property changes on: trunk/dports/php/php5-pear/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110827/1379707c/attachment-0001.html>
More information about the macports-changes
mailing list