forked from ludekslevercz/XML_RPC2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.php
76 lines (74 loc) · 3.41 KB
/
package.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* This is the package.xml generator for XML_RPC2
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to [email protected] so we can mail you a copy immediately.
*
* @category XML
* @package XML_RPC2
* @author Sergio Carvalho <[email protected]>
* @copyright 2005-2007 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: package.php,v 1.37 2007/11/20 20:04:24 farell Exp $
* @link http://pear.php.net/package/PEAR_PackageFileManager
* @since File available since Release 1.6.0
*/
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$release_version = '1.1.1';
$release_state = 'stable';
$api_version = '1.0.5';
$api_state = 'stable';
$release_notes = 'QA release
Better usage of HTTP_Request2, allowing the use of pre-configured instances now
Bug #18329 Fatal error in HTTPRequest.php
Bug #18404 PHP Notice about undefined property: XML_RPC2_Server_Input_PhpInput::$readReque
';
$packagexml = new PEAR_PackageFileManager2();
$packagexml->setOptions(
array(
'packagefile' => 'package.xml',
'exceptions' => array(
'ChangeLog' => 'doc',
'NEWS' => 'doc'),
'filelistgenerator' => 'file',
'packagedirectory' => dirname(__FILE__),
'changelogoldtonew' => false,
'baseinstalldir' => '/',
'simpleoutput' => true,
'dirroles' => array('tests' => 'test'),
'ignore' => array('package.php', '_MTN/', '.svn'),
));
$packagexml->setPackage('XML_RPC2');
$packagexml->setSummary('XML-RPC client/server library');
$packagexml->setDescription(<<<EOS
XML_RPC2 is a pear package providing XML_RPC client and server services. XML-RPC is a simple remote procedure call protocol built using HTTP as transport and XML as encoding.
As a client library, XML_RPC2 is capable of creating a proxy class which exposes the methods exported by the server. As a server library, XML_RPC2 is capable of exposing methods from a class or object instance, seamlessly exporting local methods as remotely callable procedures.
EOS
);
$packagexml->addMaintainer('lead', 'sergiosgc', 'Sergio Carvalho', '[email protected]');
$packagexml->addMaintainer('developer', 'fab', 'Fabien MARTY', '[email protected]');
$packagexml->addMaintainer('developer', 'instance', 'Alan Langford', '[email protected]');
$packagexml->setNotes($release_notes);
$packagexml->addIgnore(array('package.php', '*.tgz'));
$packagexml->setPackageType('php');
$packagexml->addRelease();
$packagexml->clearDeps();
$packagexml->detectDependencies();
$packagexml->addPackageDepWithChannel('required', 'HTTP_Request2', 'pear.php.net', '2.0.0');
$packagexml->addPackageDepWithChannel('required', 'Cache_Lite', 'pear.php.net', '1.6.0');
$packagexml->setChannel('pear.php.net');
$packagexml->setLicense('PHP License 3.02', 'http://www.php.net/license/3_02.txt');
$packagexml->setReleaseVersion($release_version);
$packagexml->setAPIVersion($api_version);
$packagexml->setReleaseStability($release_state);
$packagexml->setAPIStability($api_state);
$packagexml->setPhpDep('5.0.0');
$packagexml->setPearinstallerDep('1.5.4');
$packagexml->generateContents();
$packagexml->writePackageFile();
?>