/
package.php
48 lines (42 loc) · 1.7 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
<?php
/**
* Package file for creating PEAR packages. This file defines how the PEAR
* package should be constructed.
*
* Before a new tag is made, VERSION should be incremented to the new tag identifier.
*
* @author Box UK <opensource@boxuk.com>
* @copyright Copyright (c) 2011, Box UK
* @license http://opensource.org/licenses/mit-license.php MIT License and http://www.gnu.org/licenses/gpl.html GPL license
* @link http://github.com/boxuk/describr
* @since 1.0.0
*/
define( 'VERSION', '1.1.2' );
define( 'BOXUK_PEAR_CHANNEL', 'pear.boxuk.net' ); //
require_once( 'PEAR/PackageFileManager2.php' );
require_once( 'PEAR/PackageFileManager/File.php' );
$aFilesToIgnore = array();
$aFilesToIgnore[] = 'bootstrap.php';
$packagexml = new PEAR_PackageFileManager2;
$packagexml->addPackageDepWithChannel('package', 'Autoload', BOXUK_PEAR_CHANNEL, '1.0.1');
$packagexml->setOptions(array(
'packagedirectory' => 'lib',
'baseinstalldir' => '/',
'ignore' => $aFilesToIgnore
));
$packagexml->setPackage( 'routing' );
$packagexml->setSummary( 'Routing Library' );
$packagexml->setDescription( '-' );
$packagexml->setChannel( BOXUK_PEAR_CHANNEL );
$packagexml->setAPIVersion( VERSION );
$packagexml->setReleaseVersion( VERSION );
$packagexml->setReleaseStability( 'stable' );
$packagexml->setAPIStability( 'stable' );
$packagexml->setNotes( "-" );
$packagexml->setPackageType( 'php' );
$packagexml->setPhpDep( '5.3.0' );
$packagexml->setPearinstallerDep( '1.3.0' );
$packagexml->addMaintainer( 'lead', 'boxuk', 'boxuk', 'opensource@boxuk.com' );
$packagexml->setLicense( 'MIT License', 'http://opensource.org/licenses/mit-license.php' );
$packagexml->generateContents();
$packagexml->writePackageFile();