Remove pear package creation script
authorChristian Weiske <cweiske@cweiske.de>
Wed, 19 Apr 2017 20:09:05 +0000 (22:09 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 19 Apr 2017 20:09:05 +0000 (22:09 +0200)
There will be no pear package of phorkie

build.xml

index 8237c65..79efabe 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -151,155 +151,6 @@ Version 0.7.0 - 2015-11-05
   </target>
 
 
-
-  <target name="pear" depends="check"
-   description="Creates the pear package"
-  >
-   <d51pearpkg2 dir="." baseinstalldir="/">
-     <name>phorkie</name>
-     <summary>Self-hosted pastebin software</summary>
-     <description>
-      Self-hosted pastebin software written in PHP.
-      Pastes are editable, may have multiple files and are stored in git repositories.
-     </description>
-     <channel>phorkie.sourceforge.net</channel>
-
-     <lead user="cweiske" name="Christian Weiske" email="cweiske@cweiske.de" />
-     <license>AGPL</license>
-
-     <version   release="${version}"   api="${version}" />
-     <stability release="${stability}" api="${stability}" />
-
-     <notes>${releasenotes}</notes>
-
-     <dependencies>
-       <php minimum_version="5.3.0" />
-       <pear minimum_version="1.9.0" />
-
-       <package name="Date_HumanDiff"
-                channel="pear.php.net"
-                minimum_version="0.4.0"
-                />
-       <package name="HTTP_Request2"
-                channel="pear.php.net"
-                minimum_version="2.1.0"
-                />
-       <package name="OpenID"
-                channel="pear.php.net"
-                minimum_version="0.3.3"
-                />
-       <package name="Pager"
-                channel="pear.php.net"
-                minimum_version="2.4.8"
-                />
-       <package name="PEAR2_Services_Linkback"
-                channel="pear2.php.net"
-                minimum_version="0.2.1"
-                />
-       <package name="Services_Libravatar"
-                channel="pear.php.net"
-                minimum_version="0.2.2"
-                />
-       <package name="VersionControl_Git"
-                channel="pear.php.net"
-                minimum_version="0.4.4"
-                />
-
-       <package name="geshi"
-                channel="pear.geshi.org/geshi"
-                minimum_version="1.0.0"
-                />
-       <package name="Markdown"
-                channel="pear.michelf.com"
-                minimum_version="0.0.2"
-                />
-       <package name="MIME_Type_PlainDetect"
-                channel="zustellzentrum.cweiske.de"
-                minimum_version="0.0.2"
-                />
-       <package name="Twig"
-                channel="pear.twig-project.org"
-                minimum_version="1.6.0"
-                />
-
-     </dependencies>
-
-     <!-- map directory (key) to role -->
-     <dirroles key="data">data</dirroles>
-     <dirroles key="scripts">data</dirroles>
-     <dirroles key="src">php</dirroles>
-     <dirroles key="www">www</dirroles>
-
-     <!-- do not add the following files to the package.
-          copied from excludes above -->
-     <ignore>**/.gitignore</ignore>
-     <ignore>build*</ignore>
-     <ignore>data/config.php</ignore>
-     <ignore>dist/**</ignore>
-     <ignore>*.properties</ignore>
-     <ignore>*.tgz</ignore>
-
-     <replacement path="www/www-header.php"
-      type="pear-config" from="@data_dir@" to="data_dir"
-      />
-
-
-   </d51pearpkg2>
-
-   <!-- time to fix the package.xml file since the task does not
-        allow everything we need:
-        - strip the base directory names like src, data and www
-        - remove that dumb baseinstalldir from files
-        - md5sums are generated automatically when packaging
-   -->
-   <!-- yes, we need to generate a 2nd file and move it back -->
-   <copy file="package.xml" tofile="package2.xml" overwrite="true">
-    <filterchain>
-     <replaceregexp>
-      <!-- remove md5sums -->
-      <regexp
-       pattern="md5sum=&quot;[a-z0-9]{32}&quot; "
-       replace=""
-       />
-      <!-- remove baseinstalldir for files -->
-      <regexp
-       pattern="&lt;file baseinstalldir=&quot;/&quot;"
-       replace="&lt;file"
-       />
-      <!-- install-as for different directories -->
-      <regexp
-       pattern="(&lt;file name=&quot;data/(.+?)&quot;)"
-       replace="\1 install-as=&quot;\2&quot;"
-       />
-      <regexp
-       pattern="(&lt;file name=&quot;doc/(.+?)&quot;)"
-       replace="\1 install-as=&quot;\2&quot;"
-       />
-      <regexp
-       pattern="(&lt;file name=&quot;tests/(.+?)&quot;)"
-       replace="\1 install-as=&quot;\2&quot;"
-       />
-      <regexp
-       pattern="(&lt;file name=&quot;www/(.+?)&quot;)"
-       replace="\1 install-as=&quot;phorkie/\2&quot;"
-       />
-      <regexp
-       pattern="(&lt;file name=&quot;src/(.+?)&quot;)"
-       replace="\1 install-as=&quot;\2&quot;"
-       />
-     </replaceregexp>
-    </filterchain>
-   </copy>
-   <move file="package2.xml" tofile="package.xml" overwrite="true" />
-
-   <!-- package up -->
-   <exec command="pear package" passthru="true" />
-   <move file="${pkgfile}" todir="dist/pear/" />
-
-   <delete file="package.xml" failonerror="true" />
-  </target>
-
-
   <target name="docs" description="render documentation">
    <rST format="html" uptodate="true">
     <fileset refid="fs.doc"/>
@@ -312,7 +163,7 @@ Version 0.7.0 - 2015-11-05
   </target>
 
 
-  <target name="release" depends="check,zip,pear"
+  <target name="release" depends="check,phar,zip"
    description="Package the new version"
    >
    <!-- meta-target -->