[MacPorts] #28377: Pear install
MacPorts
noreply at macports.org
Tue Feb 22 11:24:02 PST 2011
#28377: Pear install
--------------------------------------+-------------------------------------
Reporter: oldmilwaukee33@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port:
--------------------------------------+-------------------------------------
Comment(by pixilla@…):
There are 6 ports that are required for my pear-php5extension patch to
work. I don't know if this ticket is a good place to attach them.
[[BR]]
I spent an hour and a half creating 36 pear-[name] ports this morning and
am using them on my system now.[[BR]]
{{{
$ port installed name:pear
The following ports are currently installed:
pear-Archive_Tar @1.3.7_0 (active)
pear-Auth @1.6.4_0 (active)
pear-Auth_SASL @1.0.4_0 (active)
pear-Config @1.10.12_0 (active)
pear-Console_Getopt @1.3.0_0 (active)
pear-HTML_Common @1.2.5_0 (active)
pear-HTML_Common2 @2.0.0_0 (active)
pear-HTML_Table @1.8.3_0 (active)
pear-HTML_Template_IT @1.3.0_0 (active)
pear-HTTP_Client @1.2.1_0 (active)
pear-HTTP_Request @1.4.4_0 (active)
pear-HTTP_Request2 @0.6.0_0 (active)
pear-Log @1.12.5_0 (active)
pear-Mail @1.2.0_0 (active)
pear-Mail_Mime @1.8.1_0 (active)
pear-Mail_mimeDecode @1.5.5_0 (active)
pear-Mail_Queue @1.2.6_0 (active)
pear-MDB2 @2.5.0b3_0 (active)
pear-MDB2_Driver_mysqli @1.5.0b3_0 (active)
pear-MDB2_Schema @0.8.5_0 (active)
pear-MIME_Type @1.2.1_0 (active)
pear-Net_IMAP @1.1.0_0 (active)
pear-Net_POP3 @1.3.8_0 (active)
pear-Net_SMTP @1.5.0_0 (active)
pear-Net_Socket @1.0.10_0 (active)
pear-Net_URL @1.0.15_0 (active)
pear-Net_URL2 @0.3.1_0 (active)
pear-PEAR @1.9.1_0 (active)
pear-PEAR_Frontend_Web @0.7.5_0 (active)
pear-PHPUnit @1.3.2_0 (active)
pear-SOAP @0.12.0_0 (active)
pear-Structures_Graph @1.0.4_0 (active)
pear-Var_Dump @1.0.4_0 (active)
pear-XML_Parser @1.3.4_0 (active)
pear-XML_Serializer @0.20.2_0 (active)
pear-XML_Util @1.2.1_0 (active)
php5-pear @20110221_0 (active)
}}}
The pear ports are very simple to create, just like Ryans
extensions.[[BR]]
{{{
$ port cat pear-Auth
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c
-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup archcheck 1.0
PortGroup php5extension 1.0
php5extension.setup Auth 1.6.4 pear
checksums sha1 37243ee9115f9d4838c75fe537724541bb885978 \
rmd160 78b64b2bd36c8ef24437c6c090b11956ee64bd23
}}}
I use a pear.ini file to load the pear lib path so the pear packages are
available to php without manually editing conf files.[[BR]]
{{{
$ port contents php5-pear
Port php5-pear contains:
/opt/local/lib/php/pear/pear-ini.php
/opt/local/var/db/php5/pear.ini
}}}
{{{
$ cat /opt/local/var/db/php5/pear.ini
; Do not edit this file; it is automatically generated by MacPorts.
; Any changes you make will be lost if you upgrade or uninstall php5-pear.
; To configure PHP, edit /opt/local/etc/php5/php.ini.
auto_prepend_file = "/opt/local/lib/php/pear/pear-ini.php"
}}}
{{{
$ cat /opt/local/lib/php/pear/pear-ini.php
<?php
# Do not edit this file; it is automatically generated by MacPorts.
# Any changes you make will be lost if you upgrade or uninstall php5-pear.
# To configure PHP, edit /opt/local/etc/php5/php.ini.
$path = '/opt/local/lib/php/pear' ;
set_include_path ( get_include_path ( ) . PATH_SEPARATOR . $path ) ;
?>
}}}
--
Ticket URL: <https://trac.macports.org/ticket/28377#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list