[3.1.0] Fix bug with rgb() w/ spaces inside shorthand CSS properties
[htmlpurifier.git] / package.php
blob851fafb997f0b030b5235716b6b8aa22e02807c5
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' => realpath(dirname(__FILE__) . '/library'),
14 'filelistgenerator' => 'file',
15 'include' => array('*'),
16 'dir_roles' => array('/' => 'php'), // hack to put *.ser files in the right place
17 'ignore' => array('HTMLPurifier.auto.php', 'HTMLPurifier.standalone.php', 'HTMLPurifier.path.php', 'standalone/'),
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 = trim(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('5.0.0');
48 $pkg->setPearinstallerDep('1.4.3');
50 $pkg->generateContents();
52 $compat =& $pkg->exportCompatiblePackageFile1();
53 $compat->writePackageFile();
54 $pkg->writePackageFile();