pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/pear Update pear from version 1.5.4nb3 to version...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e310ef831e6d
branches:  trunk
changeset: 400863:e310ef831e6d
user:      seb <seb%pkgsrc.org@localhost>
date:      Thu Oct 29 08:29:03 2009 +0000

description:
Update pear from version 1.5.4nb3 to version 1.9.0.

Pkgsrc changes:
- Update base pear packages:Archive_Tar-1.3.3, Console_Getopt-1.2.3
Structures_Graph-1.0.3
- Update ${FILESDIR}/go-pear.php from latest version at
http://pear.php.net/go-pear
- Update ${FILESDIR}/pear.sh from the bundled version
- Provide bootstrap PEAR.php via ${FILESDIR}/PEAR.php from
http://cvs.php.net/viewvc.cgi/pear-core/PEAR.php?view=co&pathrev=PEAR_1_4
(see FILESDIR/go-pear.php's code) and put it into ${WRKSRC} at the extract
phase
- Update PLIST

Upstream changes:
A lot! IMHO more than what can be recorded here.
Please see individual releases Changelog since version 1.5.4
at http://pear.php.net/package/PEAR.

diffstat:

 lang/pear/Makefile          |    19 +-
 lang/pear/PLIST             |    23 +-
 lang/pear/distinfo          |    31 +-
 lang/pear/files/PEAR.php    |  1110 ++++++++++++++++++++++++++++++++++++++++++
 lang/pear/files/go-pear.php |  1136 ++++++++++++++++++++++++------------------
 lang/pear/files/pear.sh     |     4 +-
 lang/pear/patches/patch-aa  |   104 ++-
 7 files changed, 1871 insertions(+), 556 deletions(-)

diffs (truncated from 3159 to 300 lines):

diff -r 67eb52e07296 -r e310ef831e6d lang/pear/Makefile
--- a/lang/pear/Makefile        Thu Oct 29 07:14:46 2009 +0000
+++ b/lang/pear/Makefile        Thu Oct 29 08:29:03 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2009/07/17 18:00:16 adrianp Exp $
+# $NetBSD: Makefile,v 1.11 2009/10/29 08:29:03 seb Exp $
 #
 
-DISTNAME=      PEAR-1.5.4
-PKGREVISION=   3
+DISTNAME=      PEAR-1.9.0
+#PKGREVISION=  1
 PKGNAME=       ${PHP_PKG_PREFIX}-${DISTNAME:S/PEAR/pear/}
 CATEGORIES=    lang
 MASTER_SITES=  http://download.pear.php.net/package/
@@ -31,21 +31,21 @@
 
 # everything else that forms a part of the "base" PEAR install
 #
-PEAR_SRCS=             PEAR-1.5.4${EXTRACT_SUFX}
+PEAR_SRCS=             PEAR-1.9.0${EXTRACT_SUFX}
 DISTFILES+=            ${PEAR_SRCS}
 EXTRACT_ONLY+=         ${PEAR_SRCS}
 
-ARCHIVE_SRCS=          Archive_Tar-1.3.2${EXTRACT_SUFX}
+ARCHIVE_SRCS=          Archive_Tar-1.3.3${EXTRACT_SUFX}
 ARCHIVE_WRKSRC=                ${WRKDIR}/${ARCHIVE_SRCS:S/${EXTRACT_SUFX}//}
 DISTFILES+=            ${ARCHIVE_SRCS}
 EXTRACT_ONLY+=         ${ARCHIVE_SRCS}
 
-CONSOLE_SRCS=          Console_Getopt-1.2.2${EXTRACT_SUFX}
+CONSOLE_SRCS=          Console_Getopt-1.2.3${EXTRACT_SUFX}
 CONSOLE_WRKSRC=                ${WRKDIR}/${CONSOLE_SRCS:S/${EXTRACT_SUFX}//}
 DISTFILES+=            ${CONSOLE_SRCS}
 EXTRACT_ONLY+=         ${CONSOLE_SRCS}
 
-STRUCTURES_SRCS=       Structures_Graph-1.0.2${EXTRACT_SUFX}
+STRUCTURES_SRCS=       Structures_Graph-1.0.3${EXTRACT_SUFX}
 DISTFILES+=            ${STRUCTURES_SRCS}
 #
 # end of base components
@@ -65,12 +65,15 @@
 SUBST_SED.pear+=       -e "s|@SH@|${SH}|g"
 SUBST_MESSAGE.pear=    Fixing pear installation script.
 
+INSTALLATION_DIRS+=    share/examples/pear
+
 post-extract:
        ${RM} ${WRKSRC}/INSTALL
        ${MKDIR} ${WRKSRC}/install
        ${MKDIR} ${BUNDLE}
        ${CP} ${FILESDIR}/go-pear.php ${WRKSRC}/install
        ${CP} ${FILESDIR}/pear.sh ${WRKSRC}
+       ${CP} ${FILESDIR}/PEAR.php ${BUNDLE}
 
 do-build:
        ${GZCAT} ${DISTDIR}/${ARCHIVE_SRCS} > \
@@ -84,10 +87,8 @@
 
        ${CP} ${ARCHIVE_WRKSRC}/Archive/Tar.php ${BUNDLE}
        ${CP} ${CONSOLE_WRKSRC}/Console/Getopt.php ${BUNDLE}
-       ${CP} ${WRKSRC}/PEAR.php ${BUNDLE}
 
 do-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/pear
        ${PREFIX}/bin/php ${DESTDIR}${WRKSRC}/install/go-pear.php local
        ${INSTALL_SCRIPT} ${WRKSRC}/pear.sh ${DESTDIR}${PREFIX}/bin/pear
        ${INSTALL_DATA} ${WRKSRC}/pear.conf \
diff -r 67eb52e07296 -r e310ef831e6d lang/pear/PLIST
--- a/lang/pear/PLIST   Thu Oct 29 07:14:46 2009 +0000
+++ b/lang/pear/PLIST   Thu Oct 29 08:29:03 2009 +0000
@@ -1,10 +1,12 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 20:34:14 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2009/10/29 08:29:03 seb Exp $
 bin/pear
 bin/peardev
 bin/pecl
 lib/php/.channels/.alias/pear.txt
 lib/php/.channels/.alias/pecl.txt
+lib/php/.channels/.alias/phpdocs.txt
 lib/php/.channels/__uri.reg
+lib/php/.channels/doc.php.net.reg
 lib/php/.channels/pear.php.net.reg
 lib/php/.channels/pecl.php.net.reg
 lib/php/.depdb
@@ -49,17 +51,19 @@
 lib/php/PEAR/Command/Test.xml
 lib/php/PEAR/Common.php
 lib/php/PEAR/Config.php
-lib/php/PEAR/Dependency.php
 lib/php/PEAR/Dependency2.php
 lib/php/PEAR/DependencyDB.php
 lib/php/PEAR/Downloader.php
 lib/php/PEAR/Downloader/Package.php
 lib/php/PEAR/ErrorStack.php
 lib/php/PEAR/Exception.php
+lib/php/PEAR/FixPHP5PEARWarnings.php
 lib/php/PEAR/Frontend.php
 lib/php/PEAR/Frontend/CLI.php
 lib/php/PEAR/Installer.php
 lib/php/PEAR/Installer/Role.php
+lib/php/PEAR/Installer/Role/Cfg.php
+lib/php/PEAR/Installer/Role/Cfg.xml
 lib/php/PEAR/Installer/Role/Common.php
 lib/php/PEAR/Installer/Role/Data.php
 lib/php/PEAR/Installer/Role/Data.xml
@@ -75,6 +79,8 @@
 lib/php/PEAR/Installer/Role/Src.xml
 lib/php/PEAR/Installer/Role/Test.php
 lib/php/PEAR/Installer/Role/Test.xml
+lib/php/PEAR/Installer/Role/Www.php
+lib/php/PEAR/Installer/Role/Www.xml
 lib/php/PEAR/PackageFile.php
 lib/php/PEAR/PackageFile/Generator/v1.php
 lib/php/PEAR/PackageFile/Generator/v2.php
@@ -88,8 +94,8 @@
 lib/php/PEAR/REST.php
 lib/php/PEAR/REST/10.php
 lib/php/PEAR/REST/11.php
+lib/php/PEAR/REST/13.php
 lib/php/PEAR/Registry.php
-lib/php/PEAR/Remote.php
 lib/php/PEAR/RunTest.php
 lib/php/PEAR/Task/Common.php
 lib/php/PEAR/Task/Postinstallscript.php
@@ -103,6 +109,7 @@
 lib/php/PEAR/Validate.php
 lib/php/PEAR/Validator/PECL.php
 lib/php/PEAR/XMLParser.php
+lib/php/PEAR5.php
 lib/php/Structures/Graph.php
 lib/php/Structures/Graph/Manipulator/AcyclicTest.php
 lib/php/Structures/Graph/Manipulator/TopologicalSorter.php
@@ -111,11 +118,9 @@
 lib/php/data/PEAR/package.dtd
 lib/php/data/PEAR/template.spec
 lib/php/data/Structures_Graph/LICENSE
-lib/php/data/Structures_Graph/genpackage.xml.pl
-lib/php/data/Structures_Graph/package.sh
-lib/php/data/Structures_Graph/publish.sh
 lib/php/doc/Archive_Tar/docs/Archive_Tar.txt
 lib/php/doc/PEAR/INSTALL
+lib/php/doc/PEAR/LICENSE
 lib/php/doc/PEAR/README
 lib/php/doc/Structures_Graph/docs/generate.sh
 lib/php/doc/Structures_Graph/docs/html/Structures_Graph/Structures_Graph.html
@@ -140,9 +145,9 @@
 lib/php/doc/Structures_Graph/docs/tutorials/Structures_Graph/Structures_Graph.pkg
 lib/php/pearcmd.php
 lib/php/peclcmd.php
-lib/php/test/Structures_Graph/tests/README
-lib/php/test/Structures_Graph/tests/all-tests.php
+lib/php/test/Structures_Graph/tests/AllTests.php
 lib/php/test/Structures_Graph/tests/testCase/BasicGraph.php
 share/examples/pear/pear.conf
+@pkgdir lib/php/.registry/.channel.pecl.php.net
+@pkgdir lib/php/.registry/.channel.doc.php.net
 @pkgdir lib/php/.registry/.channel.__uri
-@pkgdir lib/php/.registry/.channel.pecl.php.net
diff -r 67eb52e07296 -r e310ef831e6d lang/pear/distinfo
--- a/lang/pear/distinfo        Thu Oct 29 07:14:46 2009 +0000
+++ b/lang/pear/distinfo        Thu Oct 29 08:29:03 2009 +0000
@@ -1,15 +1,18 @@
-$NetBSD: distinfo,v 1.4 2008/09/15 11:54:21 adrianp Exp $
+$NetBSD: distinfo,v 1.5 2009/10/29 08:29:03 seb Exp $
 
-SHA1 (Archive_Tar-1.3.2.tgz) = 40a16c6fe6cee12d9fd87d487785db2949ffa9ff
-RMD160 (Archive_Tar-1.3.2.tgz) = cec105d1cdefd502f209c24c217645cec723d7a2
-Size (Archive_Tar-1.3.2.tgz) = 17150 bytes
-SHA1 (Console_Getopt-1.2.2.tgz) = 3158237f6cd8ed34a269c67cbe546156c03cff0b
-RMD160 (Console_Getopt-1.2.2.tgz) = fb8a955ef2c41618305e03c9a4164c3a465c5e86
-Size (Console_Getopt-1.2.2.tgz) = 4252 bytes
-SHA1 (PEAR-1.5.4.tgz) = f03a8bfbd68bd1834829a67346711fd157da3685
-RMD160 (PEAR-1.5.4.tgz) = 2e3ede082a7f6b085cfd414ddaf5b0d9dad1372f
-Size (PEAR-1.5.4.tgz) = 293070 bytes
-SHA1 (Structures_Graph-1.0.2.tgz) = 300aa0a2effb0b39c4fa8a63a834748ae99c2855
-RMD160 (Structures_Graph-1.0.2.tgz) = 8eb53f6da109b90bab5d8101e99183a1ae116404
-Size (Structures_Graph-1.0.2.tgz) = 30947 bytes
-SHA1 (patch-aa) = b7938a5143f27f167a3065f6331bd34cd0d65153
+SHA1 (Archive_Tar-1.3.3.tgz) = b49de079aee8c087c19b718534503234670598cb
+RMD160 (Archive_Tar-1.3.3.tgz) = 3abe03b42ee81b6ddf5449db6277806f664aec6b
+Size (Archive_Tar-1.3.3.tgz) = 18119 bytes
+SHA1 (Console_Getopt-1.2.3.tgz) = 2f4ea028f478123164c3f6588f8a505dc35915df
+RMD160 (Console_Getopt-1.2.3.tgz) = d1624dbcb223395ded9e46285f896d6f5bb5ca74
+Size (Console_Getopt-1.2.3.tgz) = 4011 bytes
+SHA1 (PEAR-1.9.0.tgz) = a268b9af85a3daad047c77947838932f2737e6aa
+RMD160 (PEAR-1.9.0.tgz) = cfac92b7569676783b44a38309f8a156f49a35e8
+Size (PEAR-1.9.0.tgz) = 291634 bytes
+SHA1 (Structures_Graph-1.0.3.tgz) = 13761cc4788f6c272730abe110a5a5048be18643
+RMD160 (Structures_Graph-1.0.3.tgz) = 835cfc8c4cd7475f5486c710abe5dd9737c1b476
+Size (Structures_Graph-1.0.3.tgz) = 30191 bytes
+SHA1 (XML_Util-1.2.1.tgz) = 8072216577fb9ad684f15e0388ab0b1c0b57e2d4
+RMD160 (XML_Util-1.2.1.tgz) = 9d9dd43889312f46f39c9a43a800a8f2d8f6e9b2
+Size (XML_Util-1.2.1.tgz) = 17729 bytes
+SHA1 (patch-aa) = 8d4d9762c26e878ab78e465eace3c4bac1a7ef5f
diff -r 67eb52e07296 -r e310ef831e6d lang/pear/files/PEAR.php
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/pear/files/PEAR.php  Thu Oct 29 08:29:03 2009 +0000
@@ -0,0 +1,1110 @@
+<?php
+/**
+ * PEAR, the PHP Extension and Application Repository
+ *
+ * PEAR class and PEAR_Error class
+ *
+ * PHP versions 4 and 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license%php.net@localhost so we can mail you a copy immediately.
+ *
+ * @category   pear
+ * @package    PEAR
+ * @author     Sterling Hughes <sterling%php.net@localhost>
+ * @author     Stig Bakken <ssb%php.net@localhost>
+ * @author     Tomas V.V.Cox <cox%idecnet.com@localhost>
+ * @author     Greg Beaver <cellog%php.net@localhost>
+ * @copyright  1997-2006 The PHP Group
+ * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
+ * @version    CVS: Id: PEAR.php,v 1.97 2006/01/06 04:47:36 cellog Exp
+ * @link       http://pear.php.net/package/PEAR
+ * @since      File available since Release 0.1
+ */
+
+/*
+ * $NetBSD: PEAR.php,v 1.1 2009/10/29 08:29:03 seb Exp $
+ *
+ * This is http://cvs.php.net/viewvc.cgi/pear-core/PEAR.php?view=co&pathrev=PEAR_1_4
+ *
+ * See $bootstrap_files definition in go-pear.php
+ *
+ */
+
+/**#@+
+ * ERROR constants
+ */
+define('PEAR_ERROR_RETURN',     1);
+define('PEAR_ERROR_PRINT',      2);
+define('PEAR_ERROR_TRIGGER',    4);
+define('PEAR_ERROR_DIE',        8);
+define('PEAR_ERROR_CALLBACK',  16);
+/**
+ * WARNING: obsolete
+ * @deprecated
+ */
+define('PEAR_ERROR_EXCEPTION', 32);
+/**#@-*/
+define('PEAR_ZE2', (function_exists('version_compare') &&
+                    version_compare(zend_version(), "2-dev", "ge")));
+
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    define('OS_WINDOWS', true);
+    define('OS_UNIX',    false);
+    define('PEAR_OS',    'Windows');
+} else {
+    define('OS_WINDOWS', false);
+    define('OS_UNIX',    true);
+    define('PEAR_OS',    'Unix'); // blatant assumption
+}
+
+// instant backwards compatibility
+if (!defined('PATH_SEPARATOR')) {
+    if (OS_WINDOWS) {
+        define('PATH_SEPARATOR', ';');
+    } else {
+        define('PATH_SEPARATOR', ':');
+    }
+}
+
+$GLOBALS['_PEAR_default_error_mode']     = PEAR_ERROR_RETURN;
+$GLOBALS['_PEAR_default_error_options']  = E_USER_NOTICE;
+$GLOBALS['_PEAR_destructor_object_list'] = array();
+$GLOBALS['_PEAR_shutdown_funcs']         = array();
+$GLOBALS['_PEAR_error_handler_stack']    = array();
+
+@ini_set('track_errors', true);
+
+/**
+ * Base class for other PEAR classes.  Provides rudimentary
+ * emulation of destructors.
+ *
+ * If you want a destructor in your class, inherit PEAR and make a
+ * destructor method called _yourclassname (same name as the
+ * constructor, but with a "_" prefix).  Also, in your constructor you
+ * have to call the PEAR constructor: $this->PEAR();.
+ * The destructor method will be called without parameters.  Note that
+ * at in some SAPI implementations (such as Apache), any output during
+ * the request shutdown (in which destructors are called) seems to be
+ * discarded.  If you need to get any debug information from your
+ * destructor, use error_log(), syslog() or something similar.
+ *
+ * IMPORTANT! To use the emulated destructors you need to create the
+ * objects by reference: $obj =& new PEAR_child;
+ *
+ * @category   pear
+ * @package    PEAR
+ * @author     Stig Bakken <ssb%php.net@localhost>
+ * @author     Tomas V.V. Cox <cox%idecnet.com@localhost>



Home | Main Index | Thread Index | Old Index