aboutsummaryrefslogtreecommitdiffstats
path: root/main/php/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2010-05-11 11:03:14 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2010-05-11 11:03:14 +0000
commitc142813db6323befd942c1d19ae1d143ce043523 (patch)
treed76620bbb343c5cd30b92ef77c0226dce617745a /main/php/APKBUILD
parentae3f072c05c7c64aff458e7883136989f7563683 (diff)
downloadaports-c142813db6323befd942c1d19ae1d143ce043523.tar.bz2
aports-c142813db6323befd942c1d19ae1d143ce043523.tar.xz
main/php: add php-pear
xml is now buildin to support pear install.
Diffstat (limited to 'main/php/APKBUILD')
-rw-r--r--main/php/APKBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index c080671869..c2ab6e7906 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -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"