root/trunk/package.php

Revision 205, 5.3 kB (checked in by iteman, 2 weeks ago)

- Prepared release 2.6.1.

  • Property svn:keywords set to Id Rev
Line 
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
3
4/**
5 * PHP version 5
6 *
7 * Copyright (c) 2005-2008 KUBO Atsuhiro <iteman@users.sourceforge.net>,
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are met:
12 *
13 *     * Redistributions of source code must retain the above copyright
14 *       notice, this list of conditions and the following disclaimer.
15 *     * Redistributions in binary form must reproduce the above copyright
16 *       notice, this list of conditions and the following disclaimer in the
17 *       documentation and/or other materials provided with the distribution.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 * @package    Stagehand_TestRunner
32 * @copyright  2005-2008 KUBO Atsuhiro <iteman@users.sourceforge.net>
33 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License (revised)
34 * @version    SVN: $Id$
35 * @since      File available since Release 0.1.0
36 */
37
38require_once 'PEAR/PackageFileManager2.php';
39require_once 'PEAR.php';
40
41PEAR::staticPushErrorHandling(PEAR_ERROR_CALLBACK, create_function('$error', 'var_dump($error); exit();'));
42
43$releaseVersion = '2.6.1';
44$releaseStability = 'stable';
45$apiVersion = '1.1.0';
46$apiStability = 'stable';
47$notes = 'A new release of Stagehand_TestRunner is now available.
48
49What\'s New in Stagehand_TestRunner 2.6.1
50
51 * A defect fix: A defect has been fixed that caused warning messages to be displayed if E_STRICT was enabled.';
52
53$package = new PEAR_PackageFileManager2();
54$package->setOptions(array('filelistgenerator' => 'file',
55                           'changelogoldtonew' => false,
56                           'simpleoutput'      => true,
57                           'baseinstalldir'    => '/',
58                           'packagefile'       => 'package.xml',
59                           'packagedirectory'  => '.',
60                           'dir_roles'         => array('bin' => 'script',
61                                                        'doc' => 'doc',
62                                                        'src' => 'php',
63                                                        'tests' => 'test'),
64                           'ignore'            => array('package.php'))
65                     );
66
67$package->setPackage('Stagehand_TestRunner');
68$package->setPackageType('php');
69$package->setSummary('Automated test runners for PHPUnit, SimpleTest, PHPSpec');
70$package->setDescription('Stagehand_TestRunner provides command line scripts to run tests automatically. These scripts automatically detect and run all tests ending with "Test.php" or "TestCase.php" (PHPUnit/SimpleTest), or "Spec.php" (PHPSpec) under an arbitrary directory. Stagehand_TestRunner now supports PHPUnit, SimpleTest, and PHPSpec.');
71$package->setChannel('pear.piece-framework.com');
72$package->setLicense('BSD License (revised)', 'http://www.opensource.org/licenses/bsd-license.php');
73$package->setAPIVersion($apiVersion);
74$package->setAPIStability($apiStability);
75$package->setReleaseVersion($releaseVersion);
76$package->setReleaseStability($releaseStability);
77$package->setNotes($notes);
78$package->setPhpDep('5.0.3');
79$package->setPearinstallerDep('1.4.3');
80$package->addPackageDepWithChannel('required', 'PEAR', 'pear.php.net', '1.4.3');
81$package->addPackageDepWithChannel('required', 'Console_Getopt', 'pear.php.net', '1.2');
82$package->addPackageDepWithChannel('optional', 'Console_Color', 'pear.php.net', '1.0.2');
83$package->addPackageDepWithChannel('optional', 'Net_Growl', 'pear.php.net', '0.7.0');
84$package->addPackageDepWithChannel('optional', 'PHPUnit', 'pear.phpunit.de', '3.3.0');
85$package->addPackageDepWithChannel('optional', 'PHPSpec', 'pear.phpspec.org', '0.2.3');
86$package->addExtensionDep('required', 'pcre');
87$package->addMaintainer('lead', 'iteman', 'KUBO Atsuhiro', 'iteman@users.sourceforge.net');
88$package->addGlobalReplacement('package-info', '@package_version@', 'version');
89$package->addInstallAs('bin/specrunner', 'specrunner');
90$package->addInstallAs('bin/specrunner.bat', 'specrunner.bat');
91$package->addInstallAs('bin/testrunner', 'testrunner');
92$package->addInstallAs('bin/testrunner.bat', 'testrunner.bat');
93$package->addInstallAs('bin/testrunner-st', 'testrunner-st');
94$package->addInstallAs('bin/testrunner-st.bat', 'testrunner-st.bat');
95$package->generateContents();
96
97if (array_key_exists(1, $_SERVER['argv']) && $_SERVER['argv'][1] == 'make') {
98    $package->writePackageFile();
99} else {
100    $package->debugPackageFile();
101}
102
103exit();
104
105/*
106 * Local Variables:
107 * mode: php
108 * coding: iso-8859-1
109 * tab-width: 4
110 * c-basic-offset: 4
111 * c-hanging-comment-ender-p: nil
112 * indent-tabs-mode: nil
113 * End:
114 */
Note: See TracBrowser for help on using the browser.