summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-01-18 10:51:54 +0000
committerJay Freeman <saurik@saurik.com>2009-01-18 10:51:54 +0000
commitba63cf7658e253029c3c51275aa459a3998ce660 (patch)
treef129a3203fef6620155d6c6f3d902d1c5b238f6e
parent3a153194c843793bfe9c2a672e372f5012c9ca2c (diff)
Added php for Yonas Yanfa.
git-svn-id: http://svn.telesphoreo.org/trunk@530 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r--data/php/_metadata/description1
l---------data/php/_metadata/libxml2.dep1
-rw-r--r--data/php/_metadata/license68
l---------data/php/_metadata/maintainer1
-rw-r--r--data/php/_metadata/name1
-rwxr-xr-xdata/php/_metadata/preinst7
-rw-r--r--data/php/_metadata/priority1
-rw-r--r--data/php/_metadata/role1
-rw-r--r--data/php/_metadata/section1
-rw-r--r--data/php/_metadata/tags1
-rw-r--r--data/php/_metadata/version1
-rw-r--r--data/php/mach-o.diff11
-rw-r--r--data/php/make.sh5
-rw-r--r--data/php/offsetof.diff24
-rw-r--r--data/php/pear.diff12
-rw-r--r--data/php/php-5.2.8.tar.bz2bin0 -> 9827180 bytes
16 files changed, 136 insertions, 0 deletions
diff --git a/data/php/_metadata/description b/data/php/_metadata/description
new file mode 100644
index 000000000..20ef5f16c
--- /dev/null
+++ b/data/php/_metadata/description
@@ -0,0 +1 @@
+overly popular HTML templating language
diff --git a/data/php/_metadata/libxml2.dep b/data/php/_metadata/libxml2.dep
new file mode 120000
index 000000000..076284360
--- /dev/null
+++ b/data/php/_metadata/libxml2.dep
@@ -0,0 +1 @@
+../../libxml2 \ No newline at end of file
diff --git a/data/php/_metadata/license b/data/php/_metadata/license
new file mode 100644
index 000000000..8d3fa076f
--- /dev/null
+++ b/data/php/_metadata/license
@@ -0,0 +1,68 @@
+--------------------------------------------------------------------
+ The PHP License, version 3.01
+Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
+--------------------------------------------------------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. 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.
+
+ 3. The name "PHP" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact group@php.net.
+
+ 4. Products derived from this software may not be called "PHP", nor
+ may "PHP" appear in their name, without prior written permission
+ from group@php.net. You may indicate that your software works in
+ conjunction with PHP by saying "Foo for PHP" instead of calling
+ it "PHP Foo" or "phpfoo"
+
+ 5. The PHP Group may publish revised and/or new versions of the
+ license from time to time. Each version will be given a
+ distinguishing version number.
+ Once covered code has been published under a particular version
+ of the license, you may always continue to use it under the terms
+ of that version. You may also choose to use such covered code
+ under the terms of any subsequent version of the license
+ published by the PHP Group. No one other than the PHP Group has
+ the right to modify the terms applicable to covered code created
+ under this License.
+
+ 6. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes PHP software, freely available from
+ <http://www.php.net/software/>".
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ANY EXPRESSED 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 PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS 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.
+
+--------------------------------------------------------------------
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group@php.net.
+
+For more information on the PHP Group and the PHP project,
+please see <http://www.php.net>.
+
+PHP includes the Zend Engine, freely available at
+<http://www.zend.com>.
diff --git a/data/php/_metadata/maintainer b/data/php/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/php/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/php/_metadata/name b/data/php/_metadata/name
new file mode 100644
index 000000000..2522a6f49
--- /dev/null
+++ b/data/php/_metadata/name
@@ -0,0 +1 @@
+PHP: Hypertext Preprocessor
diff --git a/data/php/_metadata/preinst b/data/php/_metadata/preinst
new file mode 100755
index 000000000..8e999834b
--- /dev/null
+++ b/data/php/_metadata/preinst
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [[ $1 == install || $1 == upgrade ]]; then
+ /usr/libexec/cydia/move.sh /usr/lib/php
+fi
+
+exit 0
diff --git a/data/php/_metadata/priority b/data/php/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/php/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/php/_metadata/role b/data/php/_metadata/role
new file mode 100644
index 000000000..8d0320866
--- /dev/null
+++ b/data/php/_metadata/role
@@ -0,0 +1 @@
+developer
diff --git a/data/php/_metadata/section b/data/php/_metadata/section
new file mode 100644
index 000000000..e0eb96881
--- /dev/null
+++ b/data/php/_metadata/section
@@ -0,0 +1 @@
+Development
diff --git a/data/php/_metadata/tags b/data/php/_metadata/tags
new file mode 100644
index 000000000..ad5d50831
--- /dev/null
+++ b/data/php/_metadata/tags
@@ -0,0 +1 @@
+purpose::console
diff --git a/data/php/_metadata/version b/data/php/_metadata/version
new file mode 100644
index 000000000..614a37bb3
--- /dev/null
+++ b/data/php/_metadata/version
@@ -0,0 +1 @@
+5.2.8
diff --git a/data/php/mach-o.diff b/data/php/mach-o.diff
new file mode 100644
index 000000000..6a7a35a35
--- /dev/null
+++ b/data/php/mach-o.diff
@@ -0,0 +1,11 @@
+diff -ru php-5.2.8/Zend/Zend.m4 php-5.2.8+iPhone/Zend/Zend.m4
+--- php-5.2.8/Zend/Zend.m4 2006-12-20 10:49:32.000000000 +0000
++++ php-5.2.8+iPhone/Zend/Zend.m4 2009-01-17 23:34:44.000000000 +0000
+@@ -61,7 +61,6 @@
+ signal.h \
+ unix.h \
+ stdlib.h \
+-mach-o/dyld.h \
+ dlfcn.h)
+
+ AC_TYPE_SIZE_T
diff --git a/data/php/make.sh b/data/php/make.sh
new file mode 100644
index 000000000..71dc0d351
--- /dev/null
+++ b/data/php/make.sh
@@ -0,0 +1,5 @@
+pkg:setup
+autoconf
+CC="${PKG_TARG}"-gcc pkg:configure --with-iconv="${PKG_ROOT}"/usr
+make
+make install prefix="${PKG_DEST}"/usr datarootdir="${PKG_DEST}"/usr
diff --git a/data/php/offsetof.diff b/data/php/offsetof.diff
new file mode 100644
index 000000000..9929dcba4
--- /dev/null
+++ b/data/php/offsetof.diff
@@ -0,0 +1,24 @@
+diff -ru php-5.2.8/main/php.h php-5.2.8+iPhone/main/php.h
+--- php-5.2.8/main/php.h 2007-12-31 07:20:15.000000000 +0000
++++ php-5.2.8+iPhone/main/php.h 2009-01-18 09:43:06.000000000 +0000
+@@ -418,7 +418,7 @@
+ */
+
+ #ifndef XtOffset
+-#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__)))
++#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__) || defined(__APPLE__)))
+ #ifdef __STDC__
+ #define XtOffset(p_type, field) _Offsetof(p_type, field)
+ #else
+diff -ru php-5.2.8/Zend/zend_ini.h php-5.2.8+iPhone/Zend/zend_ini.h
+--- php-5.2.8/Zend/zend_ini.h 2007-12-31 07:20:03.000000000 +0000
++++ php-5.2.8+iPhone/Zend/zend_ini.h 2009-01-18 09:43:16.000000000 +0000
+@@ -28,7 +28,7 @@
+ #define ZEND_INI_ALL (ZEND_INI_USER|ZEND_INI_PERDIR|ZEND_INI_SYSTEM)
+
+ #ifndef XtOffsetOf
+-# if defined(CRAY) || (defined(__arm) && !defined(LINUX))
++# if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__) || defined(__APPLE__)))
+ # ifdef __STDC__
+ # define XtOffset(p_type, field) _Offsetof(p_type, field)
+ # else
diff --git a/data/php/pear.diff b/data/php/pear.diff
new file mode 100644
index 000000000..bb34c2cce
--- /dev/null
+++ b/data/php/pear.diff
@@ -0,0 +1,12 @@
+diff -ru php-5.2.8/pear/Makefile.frag php-5.2.8+iPhone/pear/Makefile.frag
+--- php-5.2.8/pear/Makefile.frag 2006-11-08 19:05:41.000000000 +0000
++++ php-5.2.8+iPhone/pear/Makefile.frag 2009-01-18 10:27:12.000000000 +0000
+@@ -8,7 +8,7 @@
+ FETCH = `which fetch 2>/dev/null`
+
+ install-pear-installer: $(SAPI_CLI_PATH)
+- @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)"
++ @php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)"
+
+ install-pear:
+ @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
diff --git a/data/php/php-5.2.8.tar.bz2 b/data/php/php-5.2.8.tar.bz2
new file mode 100644
index 000000000..1ef1f7132
--- /dev/null
+++ b/data/php/php-5.2.8.tar.bz2
Binary files differ