root/tags/RELEASE_0_9_0B3/autopackage2.php

Revision 376, 5.6 kB (checked in by schst, 2 years ago)

Do not include autopackage2.php in PEAR package

  • 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
61 * Elements
62   - File: determining the session's save path now correctly uses the php.ini setting if available (argh)
63   - File: improved error messages with useful information and error solving hints (argh)
64   - Radio: fixed bug #203: problems with Radio/RadioGroup and value '0' (schst)
65   - File: fixed the notice that occurrs when the maxsize attribute is not set (argh)
66   - Added new SwitchGroup element that handles checkbox groups (argh)
67
68 * Rules
69   - fixed typos in patForms_Rule_MaxLength (sfuchs)
70
71 * Storages
72   - fixed bug #205: semicolon at end of SQL (schst)
73
74 * Clientside features
75
76 * Propel Integration
77   - fixed patForms_Creator_Definition reference problem with adding rules (sfuchs)
78   - fixed patForms_Storage_Propel to write results back to the form after saving (sfuchs)
79
80 * Renderer
81   - no changes
82
83 * Parser
84   - Added missing error checks in the createFormFromTemplate method (argh)
85
86 * Examples collection
87   - Tweaked the output of submitted form variables to include variable type information (argh)
88   - Added array values display to the ouput of submitted form variables (argh)
89 EOT;
90
91 /**
92  * package description
93  */
94 $description = <<<EOT
95 patForms is a powerful package that helps you creating an validating forms. It is not limited to HTML forms.
96 EOT;
97
98 $package = new PEAR_PackageFileManager2();
99
100 $result = $package->setOptions(array(
101     'license'           => 'LGPL',
102     'filelistgenerator' => 'file',
103     'ignore'            => array( 'package.php', 'autopackage2.php', 'package2.xml', '.cvsignore', '.svn', 'examples/cache', 'rfcs' ),
104     'simpleoutput'      => true,
105     'baseinstalldir'    => 'pat',
106     'packagedirectory'  => './',
107     'dir_roles'         => array(
108                                  'rfcs' => 'doc',
109                                  'docs' => 'doc',
110                                  'examples' => 'doc',
111                                  'tests' => 'test',
112                                  )
113     ));
114 if (PEAR::isError($result)) {
115     echo $result->getMessage();
116     die();
117 }
118
119 $package->setPackage('patForms');
120 $package->setSummary('Powerful form management package.');
121 $package->setDescription($description);
122
123 $package->setChannel('pear.php-tools.net');
124 $package->setAPIVersion($apiVersion);
125 $package->setReleaseVersion($version);
126 $package->setReleaseStability($state);
127 $package->setAPIStability($apiStability);
128 $package->setNotes($notes);
129 $package->setPackageType('php');
130 $package->setLicense('LGPL', 'http://www.gnu.org/copyleft/lesser.txt');
131
132 $package->addMaintainer('lead', 'argh', 'Sebastian Mordziol', 'argh@php-tools.net', 'yes');
133 $package->addMaintainer('lead', 'schst', 'Stephan Schmidt', 'schst@php-tools.net', 'yes');
134 $package->addMaintainer('lead', 'sfuchs', 'Sven Fuchs', 'svenfuchs@artweb-design.de', 'yes');
135 $package->addMaintainer('developer', 'gerd', 'Gerd Schaufelberger', 'gerd@php-tools.net', 'yes');
136 $package->addMaintainer('helper', 'luckec', 'Carsten Lucke', 'carsten@tool-garage.de');
137
138 $package->setPhpDep('4.3.0');
139 $package->setPearinstallerDep('1.4.0');
140
141 $package->addPackageDepWithChannel('required', 'patError', 'pear.php-tools.net', '1.1.0');
142 $package->addPackageDepWithChannel('required', 'Date', 'pear.php.net', '1.4.0');
143
144 $package->addDependencyGroup('pattemplate', 'Render your forms with patTemplate.');
145 $package->addGroupPackageDepWithChannel('package', 'pattemplate', 'patTemplate', 'pear.php-tools.net', '3.0.0');
146
147 $package->addDependencyGroup('flexy', 'Render your forms with Flexy.');
148 $package->addGroupPackageDepWithChannel('package', 'flexy', 'HTML_Template_Flexy', 'pear.net');
149
150 $package->addDependencyGroup('smarty', 'Render your forms with Smarty.');
151 $package->addGroupPackageDepWithChannel('package', 'smarty', 'Smarty', 'pearified.net');
152
153 $package->addDependencyGroup('storagedb', 'Automatically store submitted results in a database.');
154 $package->addGroupPackageDepWithChannel('package', 'storagedb', 'DB', 'pear.php.net', '1.7.0');
155
156 $package->addDependencyGroup('storagemail', 'Automatically email submitted results.');
157 $package->addGroupPackageDepWithChannel('package', 'storagemail', 'Mail', 'pear.php.net', '1.1.0');
158
159 $package->addDependencyGroup('validatemail', 'Advanced email validation by querying the mail-server.');
160 $package->addGroupPackageDepWithChannel('package', 'validatemail', 'Net_DNS', 'pear.php.net');
161 $package->addGroupPackageDepWithChannel('package', 'validatemail', 'Net_SMTP', 'pear.php.net');
162
163 $package->generateContents();
164
165 $result = $package->writePackageFile();
166
167 if (PEAR::isError($result)) {
168     echo $result->getMessage();
169     die();
170 }
171 ?>
Note: See TracBrowser for help on using the browser.