Skip to content
Browse files

Use MIT License, delete unused package.xml

git-svn-id: http://svn.php.net/repository/pear/packages/Console_Color/trunk@228175 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 30eb078 commit d90505023298ccf4322c69defc1e247d8d687258 Stefan Walk committed
Showing with 60 additions and 77 deletions.
  1. +21 −20 Color.php
  2. +19 −0 LICENSE
  3. +0 −49 package.xml
  4. +20 −8 package2.xml
View
41 Color.php
@@ -1,22 +1,24 @@
<?php
-/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
-// +----------------------------------------------------------------------+
-// | PHP version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2003 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Stefan Walk <post@fuer-et.de> |
-// +----------------------------------------------------------------------+
+
+// Copyright (c) 2007 Stefan Walk
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
//
-// $Id$
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+// IN THE SOFTWARE.
$GLOBALS['_CONSOLE_COLOR_CODES'] = array (
'color' => array(
@@ -64,9 +66,8 @@
*
* @package Console_Color
* @category Console
- * @author Stefan Walk <post@fuer-et.de>
- * @license http://www.php.net/license/3_0.txt PHP License
- * @version 0.0.3
+ * @author Stefan Walk <et@php.net>
+ * @license http://www.opensource.org/licenses/mit-license.php MIT License
*
*/
class Console_Color {
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2007 Stefan Walk
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
View
49 package.xml
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<package version="1.0">
- <name>Console_Color</name>
- <summary>
- This Class allows you to easily use ANSI console colors in your application.
- </summary>
- <description>
- You can use Console_Color::convert to transform colorcodes like %r into ANSI
- control codes. print Console_Color::convert("%rHello World!%n"); would print
- "Hello World" in red, for example.
- </description>
- <maintainers>
- <maintainer>
- <user>et</user>
- <name>Stefan Walk</name>
- <email>post@fuer-et.de</email>
- <role>lead</role>
- </maintainer>
- <maintainer>
- <user>et</user>
- <name>Stefan Walk</name>
- <email>post@fuer-et.de</email>
- <role>lead</role>
- </maintainer>
- <maintainer>
- <user>scottmattocks</user>
- <name>Scott Mattocks</name>
- <email>scottmattocks@php.net</email>
- <role>lead</role>
- </maintainer>
- </maintainers>
- <release>
- <version>1.0.0</version>
- <date>2006-11-06</date>
- <license>PHP</license>
- <state>stable</state>
- <notes>
- </notes>
- <filelist>
- <dir name="/" baseinstalldir="Console">
- <file role="php" name="Color.php" />
- <dir name="examples">
- <file role="doc" name ="color_example.php" />
- <file role="doc" name="documentation" />
- </dir>
- </dir>
- </filelist>
- </release>
-</package>
View
28 package2.xml
@@ -13,7 +13,7 @@ control codes. print Console_Color::convert(&quot;%rHello World!%n&quot;); would
<lead>
<name>Stefan Walk</name>
<user>et</user>
- <email>post@fuer-et.de</email>
+ <email>et@php.net</email>
<active>yes</active>
</lead>
<lead>
@@ -22,19 +22,17 @@ control codes. print Console_Color::convert(&quot;%rHello World!%n&quot;); would
<email>scottmattocks@php.net</email>
<active>yes</active>
</lead>
- <date>2006-11-16</date>
- <time>09:35:46</time>
+ <date>2007-01-26</date>
<version>
- <release>1.0.1</release>
+ <release>1.0.2</release>
<api>1.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
- <license uri="http://www.php.net/license">PHP</license>
- <notes>Update to package2.xml
- </notes>
+ <license uri="http://www.opensource.org/licenses/mit-license.php">MIT</license>
+ <notes>License file, MIT license</notes>
<contents>
<dir name="/">
<dir name="examples">
@@ -42,6 +40,7 @@ control codes. print Console_Color::convert(&quot;%rHello World!%n&quot;); would
<file baseinstalldir="Console" name="documentation" role="doc" />
</dir> <!-- //examples -->
<file baseinstalldir="Console" name="Color.php" role="php" />
+ <file baseinstalldir="Console" name="LICENSE" role="doc" />
</dir> <!-- / -->
</contents>
<dependencies>
@@ -84,5 +83,18 @@ control codes. print Console_Color::convert(&quot;%rHello World!%n&quot;); would
<notes>Update to package2.xml
</notes>
</release>
- </changelog>
+ <release>
+ <date>2007-01-26</date>
+ <version>
+ <release>1.0.2</release>
+ <api>1.0.0</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.opensource.org/licenses/mit-license.php">MIT</license>
+ <notes>License file, MIT license</notes>
+ </release>
+</changelog>
</package>

0 comments on commit d905050

Please sign in to comment.
Something went wrong with that request. Please try again.