[3.1.1] General munge improvements
[htmlpurifier/rdancer.git] / package.php
blob371e3b46707aa5686079b0bc7919332e3144e7a4
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(
18 'HTMLPurifier.standalone.php',
19 'HTMLPurifier.path.php',
20 'standalone/'
25 $pkg->setPackage('HTMLPurifier');
26 $pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
27 $pkg->setSummary('Standards-compliant HTML filter');
28 $pkg->setDescription(
29 'HTML Purifier is an HTML filter that will remove all malicious code
30 (better known as XSS) with a thoroughly audited, secure yet permissive
31 whitelist and will also make sure your documents are standards
32 compliant.'
35 $pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
37 $version = trim(file_get_contents('VERSION'));
38 $api_version = substr($version, 0, strrpos($version, '.'));
40 $pkg->setChannel('htmlpurifier.org');
41 $pkg->setAPIVersion($api_version);
42 $pkg->setAPIStability('stable');
43 $pkg->setReleaseVersion($version);
44 $pkg->setReleaseStability('stable');
46 $pkg->addRelease();
48 $pkg->setNotes(file_get_contents('WHATSNEW'));
49 $pkg->setPackageType('php');
51 $pkg->setPhpDep('5.0.0');
52 $pkg->setPearinstallerDep('1.4.3');
54 $pkg->generateContents();
56 $compat =& $pkg->exportCompatiblePackageFile1();
57 $compat->writePackageFile();
58 $pkg->writePackageFile();