forked from PHPOffice/PHPExcel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.php
More file actions
104 lines (87 loc) · 2.71 KB
/
Copy pathpackage.php
File metadata and controls
104 lines (87 loc) · 2.71 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* This is the package.xml generator for PHPExcel
*
* PHP version 5
*
* LICENSE: GNU LESSER GENERAL PUBLIC LICENSE (LGPL)
*
* @package PHPExcel
* @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
*/
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$apiVersion = '1.0.0';
$apiState = 'beta';
$releaseVersion = '1.0.0';
$releaseState = 'beta';
$package = new PEAR_PackageFileManager2();
$package->setOptions(
array(
'filelistgenerator' => 'file',
'simpleoutput' => true,
'baseinstalldir' => '/PHPExcel',
'packagedirectory' => './',
'dir_roles' => array(
'Classes' => 'php'
),
'exceptions' => array(
'LICENSE.txt' => 'doc',
'changelog.txt' => 'doc',
'install.txt' => 'doc',
'README.md' => 'doc'
),
'ignore' => array(
'composer.json',
'package.php',
'*.tgz'
)
)
);
$package->setPackage('PHPExcel');
$package->setSummary('Read, Write and Create spreadsheet documents in PHP');
$package->setDescription('PHPExcel is a library written in pure PHP and '.
'providing a set of classes that allow you to write to and read from '.
'different spreadsheet file formats, like Excel (BIFF) .xls, Excel '.
'2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, '.
'PDF, HTML, ... This project is built around Microsoft\'s OpenXML '.
'standard and PHP.');
$package->setChannel('pear.silverorange.com');
$package->setPackageType('php');
$package->setLicense('LGPL',
'http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt');
$package->setNotes('First release!');
$package->setReleaseVersion($releaseVersion);
$package->setReleaseStability($releaseState);
$package->setAPIVersion($apiVersion);
$package->setAPIStability($apiState);
$package->addMaintainer(
'lead',
'nick',
'Nick Burka',
'nick@silverorange.com'
);
$package->addMaintainer(
'lead',
'nrf',
'Nathan Fredrickson',
'nathan@silverorange.com'
);
$package->setPhpDep('5.2.0');
/*
$package->addExtensionDep('required', 'php_zip');
$package->addExtensionDep('required', 'php_xml');
$package->addExtensionDep('required', 'php_gd2');
*/
$package->setPearinstallerDep('1.4.0');
$package->generateContents();
if ( isset($_GET['make'])
|| (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')
) {
$package->writePackageFile();
} else {
$package->debugPackageFile();
}
?>