diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2011-03-02 14:48:09 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2011-03-02 14:48:09 +0000 |
commit | 67b70103d6fc74186ce861cc554508065dfa0051 (patch) | |
tree | 2b55d353ce6981dc3c4b004d53d5f0c082dd7db2 /main/php/APKBUILD | |
parent | c1dcf0a2f96b6605c529ef8f4e334ab661ed976e (diff) | |
parent | cc4a8c13fff3d8637aa0eb0dd2df000036601f42 (diff) | |
download | aports-67b70103d6fc74186ce861cc554508065dfa0051.tar.bz2 aports-67b70103d6fc74186ce861cc554508065dfa0051.tar.xz |
Merge git://git.alpinelinux.org/aports
Conflicts:
testing/openxcap/APKBUILD
Diffstat (limited to 'main/php/APKBUILD')
-rw-r--r-- | main/php/APKBUILD | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD index 8ad19f27dc..b4146be14d 100644 --- a/main/php/APKBUILD +++ b/main/php/APKBUILD @@ -74,16 +74,25 @@ source="http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2 $install " -_extdir="/usr/lib/php/20090626" +_apiver="20090626" +_extdir="/usr/lib/php/$_apiver" +_srcdir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_srcdir" # beat the pear installer into using xml.so patch -p1 -i "$srcdir"/php-install-pear-xml.patch || return 1 patch -p1 -i "$srcdir"/php-uclibc.patch || return 1 # apply suhosin patch patch -p1 -i "${srcdir}"/suhosin-patch-${_suhosinver}.patch || return 1 + + # safty check for api changes + local vapi=$(sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h) + if [ "$vapi" != "$_apiver" ]; then + error "Upstreram API version is now $vapi. Expecting $_vapi" + return 1 + fi } build() { |