root/trunk/autopackage2.php

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