forked from pear/Services_Openstreetmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.php
76 lines (74 loc) · 2.03 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
error_reporting(0);
require_once 'PEAR/PackageFileManager2.php';
// recommended - makes PEAR_Errors act like exceptions (kind of)
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$packagexml = new PEAR_PackageFileManager2();
$packagexml->setOptions(
array(
'filelistgenerator' => 'file',
'packagedirectory' => dirname(__FILE__),
'baseinstalldir' => '/',
'dir_roles' => array(
'examples' => 'doc',
'tests' => 'test'
),
'ignore' => array(
'coverage.db',
'package.php',
'package.xml',
'package.xml.old',
'docs',
),
'simpleoutput' => true)
);
$packagexml->setPackageType('php');
$packagexml->addRelease();
$packagexml->setPackage('Services_OpenStreetMap');
$packagexml->setChannel('pear.php.net');
$packagexml->setReleaseVersion('0.1.0');
$packagexml->setAPIVersion('0.1.0');
$packagexml->setReleaseStability('alpha');
$packagexml->setAPIStability('alpha');
$packagexml->setSummary('OpenStreetMap Services');
$packagexml->setDescription('Provide an interface to the OpenStreetMap services.');
$packagexml->setNotes(
'Initial release of Services_OpenStreetMap - post PEPR process.'
);
$packagexml->setPhpDep('5.3.0');
$packagexml->setPearinstallerDep('1.7.0');
$packagexml->addPackageDepWithChannel(
'required',
'HTTP_Request2',
'pear.php.net',
'2.0.0'
);
$packagexml->addPackageDepWithChannel(
'required',
'Log',
'pear.php.net',
'1.12.7'
);
$packagexml->addPackageDepWithChannel(
'required',
'Cache',
'pear.php.net',
'1.5.6'
);
$packagexml->addMaintainer('lead', 'kguest', 'Ken Guest', '[email protected]');
$packagexml->setLicense(
'BSD License',
'http://www.opensource.org/licenses/bsd-license.html'
);
$packagexml->addGlobalReplacement('package-info', '@PEAR-VER@', 'version');
$packagexml->generateContents();
if (isset($_GET['make'])
|| (isset($_SERVER['argv'])
&& @$_SERVER['argv'][1] == 'make')
) {
$packagexml->writePackageFile();
} else {
$packagexml->debugPackageFile();
}
// vim:set et ts=4 sw=4:
?>