cvs: pearweb /rfc 003-dependencies.txt

From: Date: Wed, 12 Dec 2001 02:13:37 +0000
Subject: cvs: pearweb /rfc 003-dependencies.txt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1517@lists.php.net to get a copy of this message
cox Tue Dec 11 21:13:37 2001 EDT Modified files: /pearweb/rfc 003-dependencies.txt Log: a new revision of how to declare dependencies in package.xml after the irc meeting with Stig. New problems in the horizon :) Index: pearweb/rfc/003-dependencies.txt diff -u pearweb/rfc/003-dependencies.txt:1.3 pearweb/rfc/003-dependencies.txt:1.4 --- pearweb/rfc/003-dependencies.txt:1.3 Sun Dec 9 20:46:06 2001 +++ pearweb/rfc/003-dependencies.txt Tue Dec 11 21:13:37 2001 @@ -1,5 +1,5 @@ Title: Dependencies in PEAR Packages -Version: $Revision: 1.3 $ +Version: $Revision: 1.4 $ Status: proposal Maintainer: Stig S. Bakken <ssb@fast.no> Created: 2001-08-28 @@ -68,7 +68,7 @@ |sapi | v.ge |minimum version of PHP with SAPI backend | +---------+----------+---------------------------------------------------+ -[[ 2001-12-10 cox ]] +[[ 2001-12-12 cox ]] 4. Declaring dependencies in the PEAR package definition file @@ -77,15 +77,13 @@ <release> <version>...</version> <..>...</..> - <dependencie> - <!-- type: one of the types mentioned in point 3. --> - <name type="XXX">YYYYYYY</name> - <!-- version (optional): The version of "name" with - the rule specified to compare with the "name" presents - in the user's system --> - <!-- rule: Any version_compare() valid param --> - <version rule="XX">a php version compatible scheme</version> - </dependencie> + <deps> + <!-- type: one of the types mentioned in point 3. + rel : any version_compare() valid comparison + operator + version: a PHP valid version scheme --> + <dep type="xxx" rel="xx" version="x.x.x">name</dep> + </deps> </release> Usage example: @@ -94,18 +92,40 @@ <version>1.3</version> <date>2001-04-19</date> <notes>Bugfix release</notes> - <!-- needed a version of the HTML_Common PEAR package + <deps> + <!-- needed a version of the HTML_Common PEAR package greater or equal than version 0.6.3 --> - <dependencie> - <name type="pkg">HTML_Common</name> - <version rule="ge">0.6.3</version> - </dependencie> - <!-- The GD php extension must be present --> - <dependencie> - <name type="ext">GD</name> - </dependencie> + <dep type="pkg" rel="ge" version="0.6.3">HTML_Common</dep> + + <!-- The GD php extension has to be present --> + <dep type="ext">gd</dep> + + <!-- The OS (valid PHP_OS php constant values, for ex: + linux, win32, winnt) --> + ##(cox) What about if I need only in Windows? + ## Perhaps use PEAR_OS (unix|windows) instead? + ## Dependencies operators? if (win32||winnt) + <dep type="os">linux</dep> + + <!-- The minimun version of php needed is 4.1 --> + <dep type="php" rel="ge" version="4.1" /> + + <!-- The SAPI backend --> + ##(cox) The sapi at installation time will be always + ## the cgi. We can't check if the user has + ## installed a SAPI or not apart from the installer + ## SAPI. + <dep type="sapi">cgi</dep> + + <!-- The program "grep" is present in the PATH -> + <dep type="prog">grep</dep> + + </deps> </release> -## TODO: provide examples for all the dependencies types ## +## TODO: +## - provide examples for all the dependencies types +## - resolve conflicts +## -[[ end 2001-12-10 cox ]] +[[ end 2001-12-12 cox ]]

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