[1.7.0] Rewire dependencies, removing redundant includes and adding necessary ones
[htmlpurifier.git] / package.php
blob06a50514176a25c10dee2cf7475634fd11cdc898
1 <?php
3 set_time_limit(0);
5 require_once 'PEAR/PackageFileManager2.php';
6 PEAR::setErrorHandling(PEAR_ERROR_PRINT);
7 $pkg = new PEAR_PackageFileManager2;
9 $pkg->setOptions(
10 array(
11 'baseinstalldir' => '/',
12 'packagefile' => 'package2.xml',
13 'packagedirectory' => dirname(__FILE__) . '/library',
14 'filelistgenerator' => 'file',
15 'include' => array('*'),
16 'dir_roles' => array('/' => 'php'), // hack to put .ser in the right place
17 'ignore' => array('HTMLPurifier.auto.php'),
21 $pkg->setPackage('HTMLPurifier');
22 $pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
23 $pkg->setSummary('Standards-compliant HTML filter');
24 $pkg->setDescription(
25 'HTML Purifier is an HTML filter that will remove all malicious code
26 (better known as XSS) with a thoroughly audited, secure yet permissive
27 whitelist and will also make sure your documents are standards
28 compliant.'
31 $pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
33 $version = file_get_contents('VERSION');
34 $api_version = substr($version, 0, strrpos($version, '.'));
36 $pkg->setChannel('htmlpurifier.org');
37 $pkg->setAPIVersion($api_version);
38 $pkg->setAPIStability('stable');
39 $pkg->setReleaseVersion($version);
40 $pkg->setReleaseStability('stable');
42 $pkg->addRelease();
44 $pkg->setNotes(file_get_contents('WHATSNEW'));
45 $pkg->setPackageType('php');
47 $pkg->setPhpDep('4.3.9');
48 $pkg->setPearinstallerDep('1.4.3');
50 $pkg->generateContents();
52 $compat =& $pkg->exportCompatiblePackageFile1();
53 $compat->writePackageFile();
54 $pkg->writePackageFile();