Commit bd08af23 authored by Carlo Landmeter's avatar Carlo Landmeter Committed by Natanael Copa

main/php: add php-pear

xml is now buildin to support pear install.
(cherry picked from commit c142813d)
parent 3f891e18
......@@ -3,7 +3,7 @@
pkgname=php
pkgver=5.3.2
_suhosinver=${pkgver}-0.9.9.1
pkgrel=3
pkgrel=4
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
license="PHP-3"
......@@ -15,7 +15,7 @@ makedepends="pcre-dev libxml2-dev libiconv-dev openssl-dev zlib-dev bzip2-dev
gd-dev gmp-dev gettext-dev imap-dev aspell-dev
net-snmp-dev libxslt-dev cyrus-sasl-dev openldap-dev pkgconfig
libgcrypt-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-cli
subpackages="$pkgname-dev $pkgname-doc $pkgname-cli $pkgname-pear
$pkgname-bcmath
$pkgname-bz2
$pkgname-calendar
......@@ -54,7 +54,6 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-cli
$pkgname-sysvmsg
$pkgname-sysvsem
$pkgname-sysvshm
$pkgname-xml
$pkgname-xmlrpc
$pkgname-xsl
$pkgname-zip
......@@ -96,7 +95,7 @@ build() {
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-xml=shared \
--enable-xml \
--enable-zip=shared \
--with-bz2=shared \
--with-curl=shared \
......@@ -178,6 +177,17 @@ cli() {
mv "$pkgdir"/usr/bin/php "$subpkgdir"/usr/bin/
}
pear() {
depends="php"
mkdir -p "$subpkgdir"/usr/bin
mkdir -p "$subpkgdir"/usr/share
mkdir -p "$subpkgdir"/etc/php
mv "$pkgdir"/usr/share/pear "$subpkgdir"/usr/share/
mv "$pkgdir"/usr/bin/pear* "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/bin/pecl "$subpkgdir"/usr/bin/
mv "$pkgdir"/etc/php/pear.conf "$subpkgdir"/etc/php/
}
_mv_mod() {
pkgdesc="$1 php extension"
mkdir -p "$subpkgdir/$_extdir"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment