Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (74 sloc) 2.078 kb
<?php
error_reporting(0);
require_once 'PEAR/PackageFileManager2.php';
// recommended - makes PEAR_Errors act like exceptions (kind of)
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$packagexml = new PEAR_PackageFileManager2();
$packagexml->setOptions(
array(
'filelistgenerator' => 'file',
'packagedirectory' => dirname(__FILE__),
'baseinstalldir' => '/',
'dir_roles' => array(
'examples' => 'doc',
'tests' => 'test'
),
'ignore' => array(
'coverage.db',
'package.php',
'package.xml',
'package.xml.old',
'docs',
),
'simpleoutput' => true)
);
$packagexml->setPackageType('php');
$packagexml->addRelease();
$packagexml->setPackage('Services_OpenStreetMap');
$packagexml->setChannel('pear.php.net');
$packagexml->setReleaseVersion('0.1.0');
$packagexml->setAPIVersion('0.1.0');
$packagexml->setReleaseStability('alpha');
$packagexml->setAPIStability('alpha');
$packagexml->setSummary('OpenStreetMap Services');
$packagexml->setDescription('Provide an interface to the OpenStreetMap services.');
$packagexml->setNotes(
'Initial release of Services_OpenStreetMap - post PEPR process.'
);
$packagexml->setPhpDep('5.3.0');
$packagexml->setPearinstallerDep('1.7.0');
$packagexml->addPackageDepWithChannel(
'required',
'HTTP_Request2',
'pear.php.net',
'2.0.0'
);
$packagexml->addPackageDepWithChannel(
'required',
'Log',
'pear.php.net',
'1.12.7'
);
$packagexml->addPackageDepWithChannel(
'required',
'Cache',
'pear.php.net',
'1.5.6'
);
$packagexml->addMaintainer('lead', 'kguest', 'Ken Guest', 'kguest@php.net');
$packagexml->setLicense(
'BSD License',
'http://www.opensource.org/licenses/bsd-license.html'
);
$packagexml->addGlobalReplacement('package-info', '@PEAR-VER@', 'version');
$packagexml->generateContents();
if (isset($_GET['make'])
|| (isset($_SERVER['argv'])
&& @$_SERVER['argv'][1] == 'make')
) {
$packagexml->writePackageFile();
} else {
$packagexml->debugPackageFile();
}
// vim:set et ts=4 sw=4:
?>
Jump to Line
Something went wrong with that request. Please try again.