-fix installation through pear
authorMichael Wallner <mike@php.net>
Mon, 25 Jul 2005 16:01:42 +0000 (16:01 +0000)
committerMichael Wallner <mike@php.net>
Mon, 25 Jul 2005 16:01:42 +0000 (16:01 +0000)
config.m4
package.xml

index 15d958c..85b6de3 100644 (file)
--- a/config.m4
+++ b/config.m4
@@ -77,6 +77,7 @@ dnl ----
                http_api.c http_auth_api.c http_cache_api.c http_request_api.c http_date_api.c \
                http_headers_api.c http_message_api.c http_send_api.c http_url_api.c"
        PHP_NEW_EXTENSION([http], $PHP_HTTP_SOURCES, [$ext_shared])
+       PHP_ADD_BUILD_DIR($ext_builddir/phpstr, 1)
        PHP_SUBST([HTTP_SHARED_LIBADD])
        PHP_ADD_MAKEFILE_FRAGMENT
        AC_DEFINE([HAVE_HTTP], [1], [Have extended HTTP support])
index f238ee9..dd43914 100644 (file)
     <dir name="/">
       <file role="doc">CREDITS</file>
       <file role="doc">EXPERIMENTAL</file>
-      <file role="doc">docs/functions.html</file>
+      <file role="doc" install-as="functions.html">docs/functions.html</file>
       <file role="doc">KnownIssues.txt</file>
       
       <file role="src" platform="windows">http.dsp</file>
       <file role="src" platform="windows">config.w32</file>
       <file role="src">config.m4</file>
       
-      <file role="src">phpstr/phpstr.h</file>
-      <file role="src">phpstr/phpstr.c</file>
+      <dir name="phpstr">
+        <file role="src">phpstr.h</file>
+        <file role="src">phpstr.c</file>
+      </dir>
       
       <file role="src">missing.h</file>
       <file role="src">missing.c</file>
       <file role="src">http_exception_object.c</file>
       
       <dir name="tests" role="test">
-        <file>README.txt</file>
-        <file>run-tests.diff</file>
+        <file install-as="README.txt">README.txt</file>
+        <file install-as="run-tests.diff">run-tests.diff</file>
         <file>data.txt</file>
         <file>skip.inc</file>
         <file>abs_uri_001.phpt</file>
     </dir>
   </filelist>
   <deps>
-       <dep type="php" rel="ge" version="4.3.1" optional="no" />
-       <dep type="php" rel="ge" version="5.0.4" optional="yes" />
+       <dep type="php" rel="ge" version="4.3" optional="no" />
        <dep type="ext" rel="has" optional="yes">session</dep>
        <dep type="ext" rel="has" optional="yes">zlib</dep>
   </deps>