package.php #24

  • //
  • guest/
  • jon_parise/
  • api/
  • php/
  • package.php
  • View
  • Commits
  • Open Download .zip Download (2 KB)
<?php

require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);

$desc= <<<EOT
The Perforce extension wraps the Perforce C/C++ API.  This gives PHP developers direct access to the native Perforce client functions.
EOT;

$version = '1.0.3';
$notes = <<<EOT
Fixing some compilations issues with PHP 5.3 builds.
EOT;

$package = new PEAR_PackageFileManager2();

$result = $package->setOptions(array(
    'filelistgenerator' => 'perforce',
    'changelogoldtonew' => false,
    'simpleoutput'      => true,
    'baseinstalldir'    => '/',
    'packagefile'       => 'package.xml',
    'packagedirectory'  => '.',
    'clearcontents'     => true,
    'ignore'            => array('package.php', 'package.xml'),
    'roles'             => array(
        'cpp'       => 'src',
        'h'         => 'src',
        'm4'        => 'src',
        'w32'       => 'src',
        'in'        => 'src',
    ),
    'exceptions'        => array(
         'CREDITS'  => 'doc',
    ),
));

if (PEAR::isError($result)) {
    echo $result->getMessage();
    die();
}

$package->clearDeps();
$package->setPackage('perforce');
$package->setPackageType('extsrc');
$package->setSummary('Perforce API Extension');
$package->setDescription($desc);
$package->setChannel('pecl.php.net');
$package->setLicense('BSD License');
$package->addMaintainer('lead', 'jon', 'Jon Parise', 'jon@php.net');

$package->addConfigureOption('with-perforce', 'Path to P4API', 'autodetect');

$package->addRelease();
$package->setProvidesExtension('perforce');
$package->setAPIVersion('1.0.0');
$package->setAPIStability('stable');
$package->setReleaseVersion($version);
$package->setReleaseStability('stable');
$package->setNotes($notes);
$package->setPhpDep('5.2.0');
$package->setPearInstallerDep('1.4.3');

$package->generateContents();

if ($_SERVER['argv'][1] == 'commit') {
    $result = $package->writePackageFile();
} else {
    $result = $package->debugPackageFile();
}

if (PEAR::isError($result)) {
    echo $result->getMessage();
    die();
}
# Change User Description Committed
#24 7625 Jon Parise Preparing the 1.0.3 build.
#23 6277 Jon_Parise The Windows version of the extension can now be built as a shared DLL.
#22 6169 Jon_Parise The internal object code has been rewritten to take advantage of the
   PHP5-specific object model.
#21 6149 Jon_Parise Preparing the 1.0.0 release.
#20 6143 Jon_Parise Cleaning up the package file generation script and preparing the 1.0.0
release candidate.
#19 6138 Jon_Parise Woops; the next release should be 0.9.3.
#18 6137 Jon_Parise Preparing the 0.9.4 release.
#17 6131 Jon_Parise Added the P4API path as a build-time configuration option and improved
the Unix build's P4API path detection code.
#16 6129 Jon_Parise Removing the runTag() and waitTag() methods because support for them has
   been deprecated in the official P4API.

   Also, the C++ object memory allocation approach has been simplified.
#15 6127 Jon_Parise Preparing the 0.9.1 release.
#14 6126 Jon_Parise Correcting the C++ linkage when building the extension as a shared module.
#13 6100 Jon_Parise Preparing the 0.9.0 release (now with release stability).
#12 6097 Jon_Parise Preparing the documentation for the 0.7.0 release.
#11 6094 Jon_Parise setArgs() now accepts either an array of arguments or individual arguments.
#10 6092 Jon_Parise Fixing support for tagged output.
 We also now return all of the tags
   (unfiltered) to the user's OutputStat() implementation.
#9 6091 Jon_Parise Move this package into the pecl.php.net channel.
#8 6090 Jon_Parise Preparing the 0.6.0 release.
#7 6086 Jon_Parise Preparing the 0.5.0 alpha release.
#6 6054 Jon_Parise Updating the package infrastructure to work with the latest PEAR tools.
#5 4427 Jon_Parise Corrected some compilation issues with older versions of PHP under
Windows.

Submitted by: ken@demarest.com
#4 4325 Jon_Parise Updating the package.xml file for the 0.3.0 release.
#3 4295 Jon_Parise The package.xml file should have noted that this package is being
released under the BSD license, not the PHP license.
#2 4294 Jon_Parise Adding an example command line script and bumping the package's version
number to 1.2.0.
#1 4291 Jon_Parise Initial version of the Perforce extension for PHP.