root/branches/gettext/autopackage2.php

Revision 379, 5.9 kB (checked in by gerd, 2 years ago)

feature: custom modules, merged revision 373-378 (from trunk)

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