Yaffs site version 1.1
[yaffs-website] / vendor / ezyang / htmlpurifier / package.php
1 <?php
2
3 set_time_limit(0);
4
5 require_once 'PEAR/PackageFileManager2.php';
6 require_once 'PEAR/PackageFileManager/File.php';
7 PEAR::setErrorHandling(PEAR_ERROR_PRINT);
8 $pkg = new PEAR_PackageFileManager2;
9
10 $pkg->setOptions(
11     array(
12         'baseinstalldir' => '/',
13         'packagefile' => 'package.xml',
14         'packagedirectory' => realpath(dirname(__FILE__) . '/library'),
15         'filelistgenerator' => 'file',
16         'include' => array('*'),
17         'dir_roles' => array('/' => 'php'), // hack to put *.ser files in the right place
18         'ignore' => array(
19             'HTMLPurifier.standalone.php',
20             'HTMLPurifier.path.php',
21             '*.tar.gz',
22             '*.tgz',
23             'standalone/'
24         ),
25     )
26 );
27
28 $pkg->setPackage('HTMLPurifier');
29 $pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
30 $pkg->setSummary('Standards-compliant HTML filter');
31 $pkg->setDescription(
32     'HTML Purifier is an HTML filter that will remove all malicious code
33     (better known as XSS) with a thoroughly audited, secure yet permissive
34     whitelist and will also make sure your documents are standards
35     compliant.'
36 );
37
38 $pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
39
40 $version = trim(file_get_contents('VERSION'));
41 $api_version = substr($version, 0, strrpos($version, '.'));
42
43 $pkg->setChannel('htmlpurifier.org');
44 $pkg->setAPIVersion($api_version);
45 $pkg->setAPIStability('stable');
46 $pkg->setReleaseVersion($version);
47 $pkg->setReleaseStability('stable');
48
49 $pkg->addRelease();
50
51 $pkg->setNotes(file_get_contents('WHATSNEW'));
52 $pkg->setPackageType('php');
53
54 $pkg->setPhpDep('5.0.0');
55 $pkg->setPearinstallerDep('1.4.3');
56
57 $pkg->generateContents();
58
59 $pkg->writePackageFile();
60
61 // vim: et sw=4 sts=4