Release 1.6.0, merged in r875-930.
[htmlpurifier.git] / package.php
blob8ee09e55ec39bf2f6a0ac73c37f9050790c12e67
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 'ignore' => array('HTMLPurifier.auto.php'),
20 $pkg->setPackage('HTMLPurifier');
21 $pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
22 $pkg->setSummary('Standards-compliant HTML filter');
23 $pkg->setDescription(
24 'HTML Purifier is an HTML filter that will remove all malicious code
25 (better known as XSS) with a thoroughly audited, secure yet permissive
26 whitelist and will also make sure your documents are standards
27 compliant.'
30 $pkg->addMaintainer('lead', 'edwardzyang', 'Edward Z. Yang', 'htmlpurifier@jpsband.org', 'yes');
32 $pkg->setChannel('hp.jpsband.org');
33 $pkg->setAPIVersion('1.5');
34 $pkg->setAPIStability('stable');
35 $pkg->setReleaseVersion('1.5.0');
36 $pkg->setReleaseStability('stable');
38 $pkg->addRelease();
40 $pkg->setNotes('Major bugs were fixed and some major internal refactoring was undertaken. The visible changes include XHTML 1.1-style modularization of HTMLDefinition, rudimentary internationalization, and a fix for a fatal error when the PHP4 DOM XML extension was loaded. The x subtag is now allowed in language codes. Element by element AllowedAttribute declaration is now possible for global attributes. Instead of *.class, you can write span.class. The old syntax still works, and enables the attribute for all elements.');
41 $pkg->setPackageType('php');
43 $pkg->setPhpDep('4.3.9');
44 $pkg->setPearinstallerDep('1.4.3');
46 $pkg->generateContents();
48 $compat =& $pkg->exportCompatiblePackageFile1();
49 $compat->writePackageFile();
50 $pkg->writePackageFile();