Permalink
Browse files

Update structure to make Autoload Builder be packagable by Fedora and…

… possibly other distros
  • Loading branch information...
1 parent d44c827 commit 0ade5a20f370bed0fadf355ee90c006dbc801385 @theseer committed Oct 15, 2012
Showing with 204 additions and 112 deletions.
  1. +31 −0 LICENSE
  2. 0 readme.markdown → README.md
  3. +170 −111 package.xml
  4. +3 −1 pear.sh
View
31 LICENSE
@@ -0,0 +1,31 @@
+Autoload Builder
+
+Copyright (c) 2010-2012 Arne Blankerts <arne@blankerts.de>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of Arne Blankerts nor the names of contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT * NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER ORCONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
File renamed without changes.
View
@@ -1,113 +1,172 @@
<?xml version="1.0" encoding="UTF-8"?>
-<package packagerversion="1.4.10" version="2.0"
- xmlns="http://pear.php.net/dtd/package-2.0"
- xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
- http://pear.php.net/dtd/tasks-1.0.xsd
- http://pear.php.net/dtd/package-2.0
- http://pear.php.net/dtd/package-2.0.xsd">
- <name>Autoload</name>
- <channel>pear.netpirates.net</channel>
- <summary>A tool and library to generate autoload code.</summary>
- <description>A tool and library to generate autoload code.</description>
- <lead>
- <name>Arne Blankerts</name>
- <user>theseer</user>
- <email>arne@blankerts.de</email>
- <active>yes</active>
- </lead>
- <date>2012-07-23</date>
- <version>
- <release>1.9.1</release>
- <api>1.9.0</api>
- </version>
- <stability>
- <release>stable</release>
- <api>stable</api>
- </stability>
- <license>BSD License</license>
- <notes>http://github.com/theseer/Autoload/tree</notes>
- <contents>
- <dir name="/">
- <dir name="TheSeer">
- <dir name="Autoload">
- <dir name="templates">
- <dir name="cs">
- <file baseinstalldir="/" name="default.php.tpl" role="php" />
- <file baseinstalldir="/" name="php52.php.tpl" role="php" />
- <file baseinstalldir="/" name="phar.php.tpl" role="php" />
- </dir>
- <dir name="ci">
- <file baseinstalldir="/" name="default.php.tpl" role="php" />
- <file baseinstalldir="/" name="php52.php.tpl" role="php" />
- <file baseinstalldir="/" name="phar.php.tpl" role="php" />
- </dir>
- <file baseinstalldir="/" name="staticphar.php.tpl" role="php" />
- <file baseinstalldir="/" name="static.php.tpl" role="php" />
- </dir>
- <file baseinstalldir="/" name="cli.php" role="php" />
- <file baseinstalldir="/" name="autoloadbuilder.php" role="php" />
- <file baseinstalldir="/" name="classfinder.php" role="php" />
- <file baseinstalldir="/" name="dependencysorter.php" role="php" />
- <file baseinstalldir="/" name="staticbuilder.php" role="php" />
- <file baseinstalldir="/" name="autoload.php" role="php" />
- </dir>
- </dir>
- <file baseinstalldir="/" name="phpab.php" role="script">
- <tasks:replace from="/usr/bin/env php" to="php_bin" type="pear-config"/>
- <tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
- <tasks:replace from="%development%" to="version" type="package-info" />
- </file>
- <file baseinstalldir="/" name="phpab.bat" role="script">
- <tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
- <tasks:replace from="@bin_dir@" to="bin_dir" type="pear-config" />
- </file>
- </dir>
- </contents>
- <dependencies>
- <required>
- <php>
- <min>5.3.0</min>
- </php>
- <pearinstaller>
- <min>1.8.0</min>
- </pearinstaller>
- <package>
- <name>DirectoryScanner</name>
+<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.4.10" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
+ <name>Autoload</name>
<channel>pear.netpirates.net</channel>
- <min>1.1.0</min>
- </package>
- <package>
- <name>ConsoleTools</name>
- <channel>components.ez.no</channel>
- <min>1.6</min>
- </package>
- <extension>
- <name>tokenizer</name>
- </extension>
- </required>
- <optional>
- <extension>
- <name>phar</name>
- </extension>
- </optional>
- </dependencies>
- <phprelease>
- <installconditions>
- <os>
- <name>windows</name>
- </os>
- </installconditions>
- <filelist>
- <install as="phpab" name="phpab.php" />
- <install as="phpab.bat" name="phpab.bat" />
- </filelist>
- </phprelease>
- <phprelease>
- <filelist>
- <install as="phpab" name="phpab.php" />
- <ignore name="phpab.bat" />
- </filelist>
- </phprelease>
-</package>
+ <summary>A tool and library to generate autoload code.</summary>
+ <description>A tool and library to generate autoload code.</description>
+ <lead>
+ <name>Arne Blankerts</name>
+ <user>theseer</user>
+ <email>arne@blankerts.de</email>
+ <active>yes</active>
+ </lead>
+ <date>2012-07-23</date>
+ <version>
+ <release>1.9.1</release>
+ <api>1.9.0</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license>BSD License</license>
+ <notes>http://github.com/theseer/Autoload/tree</notes>
+ <contents>
+ <dir name="/">
+ <dir name="TheSeer">
+ <dir name="Autoload">
+ <dir name="templates">
+ <dir name="cs">
+ <file baseinstalldir="/" name="default.php.tpl" role="php"/>
+ <file baseinstalldir="/" name="php52.php.tpl" role="php"/>
+ <file baseinstalldir="/" name="phar.php.tpl" role="php"/>
+ </dir>
+ <dir name="ci">
+ <file baseinstalldir="/" name="default.php.tpl" role="php"/>
+ <file baseinstalldir="/" name="php52.php.tpl" role="php"/>
+ <file baseinstalldir="/" name="phar.php.tpl" role="php"/>
+ </dir>
+ <file baseinstalldir="/" name="staticphar.php.tpl" role="php"/>
+ <file baseinstalldir="/" name="static.php.tpl" role="php"/>
+ </dir>
+ <file baseinstalldir="/" name="cli.php" role="php"/>
+ <file baseinstalldir="/" name="autoloadbuilder.php" role="php"/>
+ <file baseinstalldir="/" name="classfinder.php" role="php"/>
+ <file baseinstalldir="/" name="dependencysorter.php" role="php"/>
+ <file baseinstalldir="/" name="staticbuilder.php" role="php"/>
+ <file baseinstalldir="/" name="autoload.php" role="php"/>
+ </dir>
+ </dir>
+ <file baseinstalldir="/" name="phpab.php" role="script">
+ <tasks:replace from="/usr/bin/env php" to="php_bin" type="pear-config"/>
+ <tasks:replace from="@php_bin@" to="php_bin" type="pear-config"/>
+ <tasks:replace from="%development%" to="version" type="package-info"/>
+ </file>
+ <file baseinstalldir="/" name="phpab.bat" role="script">
+ <tasks:replace from="@php_bin@" to="php_bin" type="pear-config"/>
+ <tasks:replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
+ </file>
+
+ <file baseinstalldir="/" name="phpunit.xml.dist" role="test" />
+ <dir name="tests">
+ <dir name="_data">
+ <dir name="classfinder">
+ <file baseinstalldir="/" role="test" name="brackettest1.php"/>
+ <file baseinstalldir="/" role="test" name="brackettest2.php"/>
+ <file baseinstalldir="/" role="test" name="implementsextends.php"/>
+ <file baseinstalldir="/" role="test" name="interface.php"/>
+ <file baseinstalldir="/" role="test" name="multiclass.php"/>
+ <file baseinstalldir="/" role="test" name="namespace1.php"/>
+ <file baseinstalldir="/" role="test" name="namespace2.php"/>
+ <file baseinstalldir="/" role="test" name="namespace3.php"/>
+ <file baseinstalldir="/" role="test" name="namespace4.php"/>
+ <file baseinstalldir="/" role="test" name="namespace5.php"/>
+ <file baseinstalldir="/" role="test" name="namespace6.php"/>
+ <file baseinstalldir="/" role="test" name="namespace7.php"/>
+ <file baseinstalldir="/" role="test" name="noclass.php"/>
+ <file baseinstalldir="/" role="test" name="class.php"/>
+ <file baseinstalldir="/" role="test" name="namespaceconstant.php"/>
+ <file baseinstalldir="/" role="test" name="parseerror1.php"/>
+ <file baseinstalldir="/" role="test" name="parseerror2.php"/>
+ <file baseinstalldir="/" role="test" name="parseerror3.php"/>
+ <file baseinstalldir="/" role="test" name="parseerror4.php"/>
+ <file baseinstalldir="/" role="test" name="redeclaration.php"/>
+ <file baseinstalldir="/" role="test" name="trait0.php"/>
+ <file baseinstalldir="/" role="test" name="trait1.php"/>
+ <file baseinstalldir="/" role="test" name="trait2.php"/>
+ <file baseinstalldir="/" role="test" name="trait3.php"/>
+ <file baseinstalldir="/" role="test" name="extends.php"/>
+ <file baseinstalldir="/" role="test" name="implements1.php"/>
+ <file baseinstalldir="/" role="test" name="implements2.php"/>
+ <file baseinstalldir="/" role="test" name="implements3.php"/>
+ <file baseinstalldir="/" role="test" name="interfaceextends1.php"/>
+ <file baseinstalldir="/" role="test" name="interfaceextends2.php"/>
+ <file baseinstalldir="/" role="test" name="namespace8.php"/>
+ <file baseinstalldir="/" role="test" name="parseerror5.php"/>
+ <file baseinstalldir="/" role="test" name="trait4.php"/>
+ <file baseinstalldir="/" role="test" name="use1.php"/>
+ <file baseinstalldir="/" role="test" name="use2.php"/>
+ <file baseinstalldir="/" role="test" name="use3.php"/>
+ <file baseinstalldir="/" role="test" name="use4.php"/>
+ <file baseinstalldir="/" role="test" name="use5.php"/>
+ <file baseinstalldir="/" role="test" name="use6.php"/>
+ <file baseinstalldir="/" role="test" name="use7.php"/>
+ <file baseinstalldir="/" role="test" name="use8.php"/>
+ </dir>
+ <dir name="templates">
+ <file baseinstalldir="/" role="test" name="simple.php"/>
+ </dir>
+ <dir name="dependency">
+ <file baseinstalldir="/" role="test" name="file1.php"/>
+ <file baseinstalldir="/" role="test" name="file2.php"/>
+ <file baseinstalldir="/" role="test" name="ns01.php"/>
+ <file baseinstalldir="/" role="test" name="ns02.php"/>
+ <file baseinstalldir="/" role="test" name="ns11.php"/>
+ <file baseinstalldir="/" role="test" name="ns12.php"/>
+ </dir>
+ </dir>
+ <file baseinstalldir="/" role="test" name="autoloadbuilder.test.php"/>
+ <file baseinstalldir="/" role="test" name="classdependencysorter.test.php"/>
+ <file baseinstalldir="/" role="test" name="init.php"/>
+ <file baseinstalldir="/" role="test" name="classfinder.test.php"/>
+ </dir>
+ <file baseinstalldir="/" name="README.md" role="doc" />
+ <file baseinstalldir="/" name="LICENSE" role="doc" />
+ </dir>
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.3.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.8.0</min>
+ </pearinstaller>
+ <package>
+ <name>DirectoryScanner</name>
+ <channel>pear.netpirates.net</channel>
+ <min>1.1.0</min>
+ </package>
+ <package>
+ <name>ConsoleTools</name>
+ <channel>components.ez.no</channel>
+ <min>1.6</min>
+ </package>
+ <extension>
+ <name>tokenizer</name>
+ </extension>
+ </required>
+ <optional>
+ <extension>
+ <name>phar</name>
+ </extension>
+ </optional>
+ </dependencies>
+ <phprelease>
+ <installconditions>
+ <os>
+ <name>windows</name>
+ </os>
+ </installconditions>
+ <filelist>
+ <install as="phpab" name="phpab.php"/>
+ <install as="phpab.bat" name="phpab.bat"/>
+ </filelist>
+ </phprelease>
+ <phprelease>
+ <filelist>
+ <install as="phpab" name="phpab.php"/>
+ <ignore name="phpab.bat"/>
+ </filelist>
+ </phprelease>
+</package>
View
@@ -2,9 +2,11 @@
rm -f Autoload*.tgz
mkdir -p tmp/TheSeer/Autoload
cp -r src/* tmp/TheSeer/Autoload
-cp package.xml tmp
+cp package.xml phpunit.xml.dist LICENSE README.md tmp
+cp -r tests tmp
cp phpab.* tmp
cd tmp
+php ../../DirectoryScanner/samples/pear-package.php ../package.xml . | xmllint --format - > package.xml
pear package
mv Autoload*.tgz ..
cd ..

0 comments on commit 0ade5a2

Please sign in to comment.