cvs: php4 /pear package.dtd /pear/PEAR Common.php

From: Date: Sun, 28 Apr 2002 07:52:00 +0000
Subject: cvs: php4 /pear package.dtd /pear/PEAR Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3598@lists.php.net to get a copy of this message
ssb Sun Apr 28 03:52:00 2002 EDT Modified files: /php4/pear package.dtd /php4/pear/PEAR Common.php Log: * package.dtd: version 1.0b7 - added <provides> element - added <script> element Index: php4/pear/package.dtd diff -u php4/pear/package.dtd:1.22 php4/pear/package.dtd:1.23 --- php4/pear/package.dtd:1.22 Tue Apr 9 04:10:08 2002 +++ php4/pear/package.dtd Sun Apr 28 03:52:00 2002 @@ -1,10 +1,10 @@ <!-- - $Id: package.dtd,v 1.22 2002/04/09 08:10:08 ssb Exp $ + $Id: package.dtd,v 1.23 2002/04/28 07:52:00 ssb Exp $ - This is the PEAR package description, version 1.0b6. + This is the PEAR package description, version 1.0b7. It should be used with the informal public identifier: - "-//PHP Group//DTD PEAR Package 1.0b6//EN//XML" + "-//PHP Group//DTD PEAR Package 1.0b7//EN//XML" Copyright (c) 1997-2002 The PHP Group @@ -43,7 +43,7 @@ <!ELEMENT changelog (release)+> -<!ELEMENT release (version|license|state|date|notes|filelist|deps)+> +<!ELEMENT release (version|license|state|date|notes|filelist|deps|provides)+> <!ELEMENT version (#PCDATA)> @@ -90,3 +90,16 @@ type (pkg|ext|php|prog|ldlib|rtlib|os|websrv|sapi) #REQUIRED rel (has|eq|lt|le|gt|ge) 'has' version CDATA #IMPLIED> + +<!ELEMENT provides (#PCDATA)> +<!ATTLIST provides + type (ext|prog|class|function|feature|api) #REQUIRED + name CDATA #REQUIRED> + +<!ELEMENT script (#PCDATA)> +<!ATTLIST script + phase (pre-install |post-install | + pre-uninstall|post-uninstall| + pre-build |post-build | + pre-configure|post-configure| + pre-setup |post-setup ) #REQUIRED> Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.55 php4/pear/PEAR/Common.php:1.56 --- php4/pear/PEAR/Common.php:1.55 Tue Apr 23 19:36:54 2002 +++ php4/pear/PEAR/Common.php Sun Apr 28 03:52:00 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.55 2002/04/23 23:36:54 ssb Exp $ +// $Id: Common.php,v 1.56 2002/04/28 07:52:00 ssb Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; @@ -68,6 +68,18 @@ */ $GLOBALS['_PEAR_Common_replacement_types'] = array('php-const', 'pear-config'); +/** + * Valid "provide" types + * @var array + */ +$GLOBALS['_PEAR_Common_provide_types'] = array('ext', 'prog', 'class', 'function', 'feature', 'api'); + +/** + * Valid "provide" types + * @var array + */ +$GLOBALS['_PEAR_Common_script_phases'] = array('pre-install', 'post-install', 'pre-uninstall', 'post-uninstall', 'pre-build', 'post-build', 'pre-configure', 'post-configure', 'pre-setup', 'post-setup'); + // }}} /** @@ -1224,6 +1236,34 @@ function getReplacementTypes() { return $GLOBALS['_PEAR_Common_replacement_types']; + } + + // }}} + // {{{ getReplacementTypes() + + /** + * Get the implemented file replacement types in + * + * @return array + * @static + */ + function getProvideTypes() + { + return $GLOBALS['_PEAR_Common_provide_types']; + } + + // }}} + // {{{ getReplacementTypes() + + /** + * Get the implemented file replacement types in + * + * @return array + * @static + */ + function getScriptPhases() + { + return $GLOBALS['_PEAR_Common_script_phases']; } // }}}

« previous php.pear.cvs (#3598) next »