root/trunk/package.php

Revision 392, 5.9 kB (checked in by argh, 1 year ago)

Fixed a bug when using an autoload() function in combination with external modules.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * package.xml generation file for patTemplate
4  *
5  * This file is executed by createSnaps.php to
6  * automatically create a package that can be
7  * installed via the PEAR installer.
8  *
9  * $Id$
10  *
11  * @author        Stephan Schmidt <schst@php-tools.net>
12  * @package        patForms
13  * @subpackage    Tools
14  */
15
16 /**
17  * uses PackageFileManager
18  */
19 require_once 'PEAR/PackageFileManager2.php';
20 require_once 'PEAR/PackageFileManager/Svn.php';
21
22 /**
23  * current version
24  */
25 $version = '0.9.0b3';
26
27 /**
28  * Current API version
29  */
30 $apiVersion = '0.9.0';
31
32 /**
33  * current state
34  */
35 $state = 'beta';
36
37 /**
38  * current API stability
39  */
40 $apiStability = 'stable';
41
42 /**
43  * release notes
44  */
45 $notes = <<<EOT
46 Third release candidate for 0.9.0.
47
48 Changes since v0.9.0b2:
49 * patForms main:
50   - Fixed flexy dependency group in PEAR package (schst)
51   - Added smarty dependency group in PEAR package (schst)
52   - Added a missing error check in the createForm method (argh)
53   - Added the class attribute to the form (schst)
54   - Removed version 1 package.xml from distribution (schst)
55   - Added dependency on PEAR::Date (required by the Date element) (schst)
56   - Fixed patTemplate dependency group (schst)
57   - patForms is now cabable to load custom modules from other directories (gERD)
58   - Fixed a bug when using an __autoload() function in combination with external modules (argh)
59
60 * Elements
61   - File: determining the session's save path now correctly uses the php.ini setting if available (argh)
62   - File: improved error messages with useful information and error solving hints (argh)
63   - Radio: fixed bug #203: problems with Radio/RadioGroup and value '0' (schst)
64   - File: fixed the notice that occurrs when the maxsize attribute is not set (argh)
65   - Added new SwitchGroup element that handles checkbox groups (argh)
66
67 * Rules
68   - fixed typos in patForms_Rule_MaxLength (sfuchs)
69
70 * Storages
71   - fixed bug #205: semicolon at end of SQL (schst)
72
73 * Clientside features
74
75 * Propel Integration
76   - fixed patForms_Creator_Definition reference problem with adding rules (sfuchs)
77   - fixed patForms_Storage_Propel to write results back to the form after saving (sfuchs)
78
79 * Renderer
80   - no changes
81
82 * Parser
83   - Added missing error checks in the createFormFromTemplate method (argh)
84
85 * Examples collection
86   - Tweaked the output of submitted form variables to include variable type information (argh)
87   - Added array values display to the ouput of submitted form variables (argh)
88 EOT;
89
90 /**
91  * package description
92  */
93 $description = <<<EOT
94 patForms is a powerful package that helps you creating an validating forms. It is not limited to HTML forms.
95 EOT;
96
97 $package = new PEAR_PackageFileManager2();
98
99 $result = $package->setOptions(array(
100     'license'           => 'LGPL',
101     'filelistgenerator' => 'svn',
102     'ignore'            => array( 'package.php', 'autopackage2.php', 'package2.xml', '.cvsignore', '.svn', 'examples/cache', 'rfcs' ),
103     'simpleoutput'      => true,
104     'baseinstalldir'    => 'pat',
105     'packagedirectory'  => './',
106     'dir_roles'         => array(
107                                  'rfcs' => 'doc',
108                                  'docs' => 'doc',
109                                  'examples' => 'doc',
110                                  'tests' => 'test',
111                                  )
112     ));
113 if (PEAR::isError($result)) {
114     echo $result->getMessage();
115     die();
116 }
117
118 $package->setPackage('patForms');
119 $package->setSummary('Powerful form management package.');
120 $package->setDescription($description);
121
122 $package->setChannel('pear.php-tools.net');
123 $package->setAPIVersion($apiVersion);
124 $package->setReleaseVersion($version);
125 $package->setReleaseStability($state);
126 $package->setAPIStability($apiStability);
127 $package->setNotes($notes);
128 $package->setPackageType('php');
129 $package->setLicense('LGPL', 'http://www.gnu.org/copyleft/lesser.txt');
130
131 $package->addMaintainer('lead', 'argh', 'Sebastian Mordziol', 'argh@php-tools.net', 'yes');
132 $package->addMaintainer('lead', 'schst', 'Stephan Schmidt', 'schst@php-tools.net', 'yes');
133 $package->addMaintainer('lead', 'sfuchs', 'Sven Fuchs', 'svenfuchs@artweb-design.de', 'yes');
134 $package->addMaintainer('developer', 'gerd', 'Gerd Schaufelberger', 'gerd@php-tools.net', 'yes');
135 $package->addMaintainer('helper', 'luckec', 'Carsten Lucke', 'carsten@tool-garage.de');
136
137 $package->setPhpDep('4.3.0');
138 $package->setPearinstallerDep('1.4.0');
139
140 $package->addPackageDepWithChannel('required', 'patError', 'pear.php-tools.net', '1.1.0');
141 $package->addPackageDepWithChannel('required', 'Date', 'pear.php.net', '1.4.0');
142
143 $package->addDependencyGroup('pattemplate', 'Render your forms with patTemplate.');
144 $package->addGroupPackageDepWithChannel('package', 'pattemplate', 'patTemplate', 'pear.php-tools.net', '3.0.0');
145
146 $package->addDependencyGroup('flexy', 'Render your forms with Flexy.');
147 $package->addGroupPackageDepWithChannel('package', 'flexy', 'HTML_Template_Flexy', 'pear.net');
148
149 $package->addDependencyGroup('smarty', 'Render your forms with Smarty.');
150 $package->addGroupPackageDepWithChannel('package', 'smarty', 'Smarty', 'pearified.net');
151
152 $package->addDependencyGroup('storagedb', 'Automatically store submitted results in a database.');
153 $package->addGroupPackageDepWithChannel('package', 'storagedb', 'DB', 'pear.php.net', '1.7.0');
154
155 $package->addDependencyGroup('storagemail', 'Automatically email submitted results.');
156 $package->addGroupPackageDepWithChannel('package', 'storagemail', 'Mail', 'pear.php.net', '1.1.0');
157
158 $package->addDependencyGroup('validatemail', 'Advanced email validation by querying the mail-server.');
159 $package->addGroupPackageDepWithChannel('package', 'validatemail', 'Net_DNS', 'pear.php.net');
160 $package->addGroupPackageDepWithChannel('package', 'validatemail', 'Net_SMTP', 'pear.php.net');
161
162 $package->generateContents();
163
164 if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
165     $result = $package->writePackageFile();
166 } else {
167     $result = $package->debugPackageFile();
168 }
169
170 if (PEAR::isError($result)) {
171     echo $result->getMessage();
172     die();
173 }
174 ?>
Note: See TracBrowser for help on using the browser.