| 55 | | $e = $packagexml->setOptions( |
| 56 | | array('package' => 'PHPonTrax', |
| 57 | | 'channel' => 'pear.phpontrax.com', |
| 58 | | 'summary' => 'Rapid Application Development Made Easy', |
| 59 | | 'description' => 'PHP port of Ruby on Rails', |
| 60 | | 'baseinstalldir' => 'PHPonTrax', |
| 61 | | 'version' => '264svn', |
| 62 | | 'packagedirectory' => '.', |
| 63 | | 'state' => 'beta', |
| 64 | | 'filelistgenerator' => 'svn', // generate from svn |
| 65 | | 'notes' => 'We\'ve implemented many new and exciting features', |
| 66 | | 'dir_roles' => array('doc' => 'doc', |
| 67 | | 'test' => 'test', |
| 68 | | 'data' => 'data'), |
| 69 | | 'exceptions' => array('pear-trax' => 'script', |
| 70 | | 'pear-trax.bat' => 'script', |
| 71 | | 'vendor/trax/templates/error.phtml' => 'php', |
| 72 | | 'vendor/trax/templates/view.phtml' => 'php', |
| 73 | | 'vendor/trax/templates/mailer_view.phtml' => 'php', |
| 74 | | 'vendor/trax/templates/scaffolds/add.phtml' => 'php', |
| 75 | | 'vendor/trax/templates/scaffolds/edit.phtml' => 'php', |
| 76 | | 'vendor/trax/templates/scaffolds/index.phtml' => 'php', |
| 77 | | 'vendor/trax/templates/scaffolds/layout.phtml' => 'php', |
| 78 | | 'vendor/trax/templates/scaffolds/show.phtml' => 'php', |
| 79 | | 'vendor/trax/templates/scaffolds/scaffold.css' => 'php', |
| 80 | | 'vendor/trax/templates/scaffolds/generator_templates/form_scaffolding.phtml' => 'php', |
| 81 | | 'vendor/trax/templates/scaffolds/generator_templates/layout.phtml' => 'php', |
| 82 | | 'vendor/trax/templates/scaffolds/generator_templates/view_add.phtml' => 'php', |
| 83 | | 'vendor/trax/templates/scaffolds/generator_templates/view_edit.phtml' => 'php', |
| 84 | | 'vendor/trax/templates/scaffolds/generator_templates/view_index.phtml' => 'php', |
| 85 | | 'vendor/trax/templates/scaffolds/generator_templates/view_show.phtml' => 'php', |
| 86 | | 'vendor/trax/templates/scaffolds/generator_templates/style.css' => 'php', |
| 87 | | ), |
| 88 | | 'installexceptions' => array('pear-trax' => '/', |
| 89 | | 'dispatch.php' => 'public'), |
| 90 | | 'installas' => array('pear-trax' => 'trax', |
| 91 | | 'pear-trax.bat' => 'trax') |
| 92 | | )); |
| 93 | | if (PEAR::isError($e)) { |
| 94 | | echo $e->getMessage(); |
| 95 | | die(); |
| 96 | | |
| 97 | | } |
| 98 | | |
| 99 | | // Depends on PHP 5 |
| | 55 | $e = $packagexml->setOptions(array( |
| | 56 | 'package' => 'PHPonTrax', |
| | 57 | 'channel' => 'pear.phpontrax.com', |
| | 58 | 'summary' => 'Rapid Application Development Made Easy', |
| | 59 | 'description' => 'PHP port of Ruby on Rails', |
| | 60 | 'baseinstalldir' => 'PHPonTrax', |
| | 61 | 'version' => '266svn', |
| | 62 | 'packagedirectory' => '.', |
| | 63 | 'state' => 'beta', |
| | 64 | 'filelistgenerator' => 'svn', // generate from svn |
| | 65 | 'notes' => 'We\'ve implemented many new and exciting features', |
| | 66 | 'dir_roles' => array( |
| | 67 | 'doc' => 'doc', |
| | 68 | 'test' => 'test', |
| | 69 | 'data' => 'data' |
| | 70 | ), |
| | 71 | 'exceptions' => array( |
| | 72 | 'pear-trax' => 'script', |
| | 73 | 'pear-trax.bat' => 'script', |
| | 74 | 'vendor/trax/templates/error.phtml' => 'php', |
| | 75 | 'vendor/trax/templates/view.phtml' => 'php', |
| | 76 | 'vendor/trax/templates/mailer_view.phtml' => 'php', |
| | 77 | 'vendor/trax/templates/scaffolds/add.phtml' => 'php', |
| | 78 | 'vendor/trax/templates/scaffolds/edit.phtml' => 'php', |
| | 79 | 'vendor/trax/templates/scaffolds/index.phtml' => 'php', |
| | 80 | 'vendor/trax/templates/scaffolds/layout.phtml' => 'php', |
| | 81 | 'vendor/trax/templates/scaffolds/show.phtml' => 'php', |
| | 82 | 'vendor/trax/templates/scaffolds/scaffold.css' => 'php', |
| | 83 | 'vendor/trax/templates/scaffolds/generator_templates/form_scaffolding.phtml' => 'php', |
| | 84 | 'vendor/trax/templates/scaffolds/generator_templates/layout.phtml' => 'php', |
| | 85 | 'vendor/trax/templates/scaffolds/generator_templates/view_add.phtml' => 'php', |
| | 86 | 'vendor/trax/templates/scaffolds/generator_templates/view_edit.phtml' => 'php', |
| | 87 | 'vendor/trax/templates/scaffolds/generator_templates/view_index.phtml' => 'php', |
| | 88 | 'vendor/trax/templates/scaffolds/generator_templates/view_show.phtml' => 'php', |
| | 89 | 'vendor/trax/templates/scaffolds/generator_templates/style.css' => 'php' |
| | 90 | ), |
| | 91 | 'installexceptions' => array( |
| | 92 | 'pear-trax' => '/', |
| | 93 | 'dispatch.php' => 'public' |
| | 94 | ), |
| | 95 | 'installas' => array( |
| | 96 | 'pear-trax' => 'trax', |
| | 97 | 'pear-trax.bat' => 'trax' |
| | 98 | ) |
| | 99 | )); |
| | 100 | |
| | 101 | if(PEAR::isError($e)) { |
| | 102 | die($e->getMessage()); |
| | 103 | } |
| | 104 | |
| | 105 | // Depends on PHP 5 |
| 121 | | if (PEAR::isError($e)) { |
| 122 | | echo $e->getMessage(); |
| 123 | | die(); |
| 124 | | |
| 125 | | } |
| 126 | | $e = $packagexml->addDependency('PHPUnit2','1.0'); |
| 127 | | if (PEAR::isError($e)) { |
| 128 | | echo $e->getMessage(); |
| 129 | | die(); |
| 130 | | |
| 131 | | } |
| 132 | | |
| 133 | | // Optionally uses these PEAR modules |
| 134 | | $e = $packagexml->addDependency('PhpDocumentor','1.3.0RC4','ge','pkg','yes'); |
| 135 | | if (PEAR::isError($e)) { |
| 136 | | echo $e->getMessage(); |
| 137 | | die(); |
| 138 | | |
| 139 | | } |
| 140 | | |
| 141 | | // Who maintains this package |
| 142 | | $e = $packagexml->addMaintainer('john','lead','John Peterson', |
| 143 | | 'john@mytechsupport.com'); |
| 144 | | if (PEAR::isError($e)) { |
| 145 | | echo $e->getMessage(); |
| 146 | | die(); |
| 147 | | |
| 148 | | } |
| 149 | | |
| 150 | | $e = $packagexml->addMaintainer('haas','developer','Walt Haas', |
| 151 | | 'haas@xmission.com'); |
| 152 | | if (PEAR::isError($e)) { |
| 153 | | echo $e->getMessage(); |
| 154 | | die(); |
| 155 | | |
| 156 | | } |
| 157 | | |
| 158 | | // Substitute local configuration values for these symbols |
| 159 | | $e = $packagexml->addGlobalReplacement('pear-config', '@BIN-DIR@', |
| 160 | | 'bin_dir'); |
| 161 | | if (PEAR::isError($e)) { |
| 162 | | echo $e->getMessage(); |
| 163 | | die(); |
| 164 | | |
| 165 | | } |
| 166 | | |
| 167 | | $e = $packagexml->addGlobalReplacement('pear-config', '@DOC-DIR@', |
| 168 | | 'doc_dir'); |
| 169 | | if (PEAR::isError($e)) { |
| 170 | | echo $e->getMessage(); |
| 171 | | die(); |
| 172 | | |
| 173 | | } |
| 174 | | |
| 175 | | $e = $packagexml->addGlobalReplacement('pear-config', '@PHP-DIR@', |
| 176 | | 'php_dir'); |
| 177 | | if (PEAR::isError($e)) { |
| 178 | | echo $e->getMessage(); |
| 179 | | die(); |
| 180 | | |
| 181 | | } |
| 182 | | |
| 183 | | $e = $packagexml->addGlobalReplacement('pear-config', '@DATA-DIR@', |
| 184 | | 'data_dir'); |
| 185 | | if (PEAR::isError($e)) { |
| 186 | | echo $e->getMessage(); |
| 187 | | die(); |
| 188 | | |
| 189 | | } |
| 190 | | |
| 191 | | $e = $packagexml->addGlobalReplacement('pear-config', '@PHP-BIN@', |
| 192 | | 'php_bin'); |
| 193 | | if (PEAR::isError($e)) { |
| 194 | | echo $e->getMessage(); |
| 195 | | die(); |
| 196 | | |
| 197 | | } |
| 198 | | |
| 199 | | $e = $packagexml->addGlobalReplacement('pear-config', '@TEST-DIR@', |
| 200 | | 'test_dir'); |
| 201 | | if (PEAR::isError($e)) { |
| 202 | | echo $e->getMessage(); |
| 203 | | die(); |
| 204 | | |
| 205 | | } |
| 206 | | |
| 207 | | // Platform-dependent command lines |
| | 123 | if(PEAR::isError($e)) { |
| | 124 | die($e->getMessage()); |
| | 125 | } |
| | 126 | |
| | 127 | //$e = $packagexml->addDependency('PHPUnit2','1.0'); |
| | 128 | //if(PEAR::isError($e)) { |
| | 129 | //die($e->getMessage()); |
| | 130 | //} |
| | 131 | |
| | 132 | // Optionally uses these PEAR modules |
| | 133 | $e = $packagexml->addDependency('PhpDocumentor','1.3.0','ge','pkg','yes'); |
| | 134 | if(PEAR::isError($e)) { |
| | 135 | die($e->getMessage()); |
| | 136 | } |
| | 137 | |
| | 138 | // Who maintains this package |
| | 139 | $e = $packagexml->addMaintainer('john','lead','John Peterson','john@mytechsupport.com'); |
| | 140 | if(PEAR::isError($e)) { |
| | 141 | die($e->getMessage()); |
| | 142 | } |
| | 143 | |
| | 144 | $e = $packagexml->addMaintainer('haas','developer','Walt Haas','haas@xmission.com'); |
| | 145 | if(PEAR::isError($e)) { |
| | 146 | die($e->getMessage()); |
| | 147 | } |
| | 148 | |
| | 149 | // Substitute local configuration values for these symbols |
| | 150 | $e = $packagexml->addGlobalReplacement('pear-config', '@BIN-DIR@', 'bin_dir'); |
| | 151 | if(PEAR::isError($e)) { |
| | 152 | die($e->getMessage()); |
| | 153 | } |
| | 154 | |
| | 155 | $e = $packagexml->addGlobalReplacement('pear-config', '@DOC-DIR@', 'doc_dir'); |
| | 156 | if(PEAR::isError($e)) { |
| | 157 | die($e->getMessage()); |
| | 158 | } |
| | 159 | |
| | 160 | $e = $packagexml->addGlobalReplacement('pear-config', '@PHP-DIR@', 'php_dir'); |
| | 161 | if(PEAR::isError($e)) { |
| | 162 | die($e->getMessage()); |
| | 163 | } |
| | 164 | |
| | 165 | $e = $packagexml->addGlobalReplacement('pear-config', '@DATA-DIR@', 'data_dir'); |
| | 166 | if(PEAR::isError($e)) { |
| | 167 | die($e->getMessage()); |
| | 168 | } |
| | 169 | |
| | 170 | $e = $packagexml->addGlobalReplacement('pear-config', '@PHP-BIN@', 'php_bin'); |
| | 171 | if(PEAR::isError($e)) { |
| | 172 | die($e->getMessage()); |
| | 173 | } |
| | 174 | |
| | 175 | $e = $packagexml->addGlobalReplacement('pear-config', '@TEST-DIR@', 'test_dir'); |
| | 176 | if(PEAR::isError($e)) { |
| | 177 | die($e->getMessage()); |
| | 178 | } |
| | 179 | |
| | 180 | // Platform-dependent command lines |