diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-12 15:49:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-12 15:49:07 +0000 |
commit | 355ab59b7e3112bea10a9f971e9e378ed04a2d2e (patch) | |
tree | 234aff4785a71c9ae34a60a329dcadede5451fec /testing | |
parent | 5810663c10db3057f9e900a837775c17693a7747 (diff) | |
download | aports-355ab59b7e3112bea10a9f971e9e378ed04a2d2e.tar.bz2 aports-355ab59b7e3112bea10a9f971e9e378ed04a2d2e.tar.xz |
testing/php: fixed the module subpackages
Diffstat (limited to 'testing')
-rw-r--r-- | testing/php/APKBUILD | 167 |
1 files changed, 78 insertions, 89 deletions
diff --git a/testing/php/APKBUILD b/testing/php/APKBUILD index c5e327f1ef..69577dd9d1 100644 --- a/testing/php/APKBUILD +++ b/testing/php/APKBUILD @@ -6,9 +6,10 @@ pkgrel=0 pkgdesc="The PHP language runtime engine" url="http://www.php.net/" license="PHP-3" -depends="" +depends="uclibc" makedepends="pcre-dev libxml2-dev libiconv-dev openssl-dev zlib-dev bzip2-dev -curl-dev libpng-dev libjpeg-dev freetype-dev libmcrypt-dev mysql-dev sqlite-dev" +curl-dev libpng-dev libjpeg-dev freetype-dev libmcrypt-dev mysql-dev sqlite-dev +libtool libltdl" subpackages="$pkgname-doc $pkgname-dev $pkgname-bcmath $pkgname-bz2 $pkgname-calendar $pkgname-curl $pkgname-exif $pkgname-ftp $pkgname-gd $pkgname-iconv $pkgname-json $pkgname-mcrypt @@ -52,179 +53,167 @@ build() { install -D -m644 php.ini-recommended "$pkgdir"/etc/php/php.ini } +_mv_mod() { + local d=usr/lib/php/20060613 + mkdir -p "$subpkgdir/$d" + mv "$pkgdir/$d/${1}.so" "$subpkgdir/$d/" || return 1 + # last one removed the dir + rmdir "$pkgdir/$d" 2>/dev/null + return 0 +} + + bcmath() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/bcmath.so" \ - "${subpkgdir}/usr/lib/php/20060613/bcmath.so" + depends="uclibc $pkgname" + _mv_mod bcmath } bz2() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/bz2.so" \ - "${subpkgdir}/usr/lib/php/20060613/bz2.so" + depends="uclibc $pkgname" + _mv_mod bz2 } calendar() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/calendar.so" \ - "${subpkgdir}/usr/lib/php/20060613/calendar.so" + depends="uclibc $pkgname" + _mv_mod calendar } curl() { - depends="$pkgname curl" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/curl.so" \ - "${subpkgdir}/usr/lib/php/20060613/curl.so" + depends="uclibc $pkgname curl" + _mv_mod curl } exif() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/exif.so" \ - "${subpkgdir}/usr/lib/php/20060613/exif.so" + depends="uclibc $pkgname" + _mv_mod exif } ftp() { - depends="$pkgname openssl" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/ftp.so" \ - "${subpkgdir}/usr/lib/php/20060613/ftp.so" + depends="uclibc $pkgname openssl" + _mv_mod ftp } gd() { - depends="$pkgname freetype libpng libjpeg zlib" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/gd.so" \ - "${subpkgdir}/usr/lib/php/20060613/gd.so" + depends="uclibc $pkgname freetype libpng libjpeg zlib" + _mv_mod gd } iconv() { - depends="$pkgname libiconv" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/iconv.so" \ - "${subpkgdir}/usr/lib/php/20060613/iconv.so" + depends="uclibc $pkgname libiconv" + _mv_mod iconv } json() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/json.so" \ - "${subpkgdir}/usr/lib/php/20060613/json.so" + depends="uclibc $pkgname" + _mv_mod json } mcrypt() { - depends="$pkgname libmcrypt" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/mcrypt.so" \ - "${subpkgdir}/usr/lib/php/20060613/mcrypt.so" + depends="uclibc $pkgname libmcrypt" + _mv_mod mcrypt } mime_magic() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/mime_magic.so" \ - "${subpkgdir}/usr/lib/php/20060613/mime_magic.so" + depends="uclibc $pkgname" + _mv_mod mime_magic } mysql() { - depends="$pkgname mysql" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/mysql.so" \ - "${subpkgdir}/usr/lib/php/20060613/mysql.so" + depends="uclibc $pkgname mysql" + _mv_mod mysql } mysqli() { - depends="$pkgname mysql zlib openssl" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/mysqli.so" \ - "${subpkgdir}/usr/lib/php/20060613/mysqli.so" + depends="uclibc $pkgname mysql zlib openssl" + _mv_mod mysqli } openssl() { - depends="$pkgname openssl" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/openssl.so" \ - "${subpkgdir}/usr/lib/php/20060613/openssl.so" + depends="uclibc $pkgname openssl" + _mv_mod openssl } pdo() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/pdo.so" \ - "${subpkgdir}/usr/lib/php/20060613/pdo.so" + depends="uclibc $pkgname" + _mv_mod pdo } pdo_mysql() { - depends="$pkgname mysql zlib openssl" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/pdo_mysql.so" \ - "${subpkgdir}/usr/lib/php/20060613/pdo_mysql.so" + depends="uclibc $pkgname mysql zlib openssl" + _mv_mod pdo_mysql } pdo_sqlite() { - depends="$pkgname sqlite" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/pdo_sqlite.so" \ - "${subpkgdir}/usr/lib/php/20060613/pdo_sqlite.so" + depends="uclibc $pkgname sqlite" + _mv_mod pdo_sqlite } posix() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/posix.so" \ - "${subpkgdir}/usr/lib/php/20060613/posix.so" + depends="uclibc $pkgname" + _mv_mod posix } session() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/session.so" \ - "${subpkgdir}/usr/lib/php/20060613/session.so" + depends="uclibc $pkgname" + _mv_mod session } shmop() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/mysqli.so" \ - "${subpkgdir}/usr/lib/php/20060613/mysqli.so" + depends="uclibc $pkgname" + _mv_mod shmop } soap() { - depends="$pkgname libxml2 zlib" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/soap.so" \ - "${subpkgdir}/usr/lib/php/20060613/soap.so" + depends="uclibc $pkgname libxml2 zlib" + _mv_mod soap } sockets() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/sockets.so" \ - "${subpkgdir}/usr/lib/php/20060613/sockets.so" + depends="uclibc $pkgname" + _mv_mod sockets } sqlite() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/sqlite.so" \ - "${subpkgdir}/usr/lib/php/20060613/sqlite.so" + depends="uclibc $pkgname" + _mv_mod sqlite } sysvmsg() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/sysvmsg.so" \ - "${subpkgdir}/usr/lib/php/20060613/sysvmsg.so" + depends="uclibc $pkgname" + _mv_mod sysvmsg } sysvsem() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/sysvsem.so" \ - "${subpkgdir}/usr/lib/php/20060613/sysvsem.so" + depends="uclibc $pkgname" + _mv_mod sysvsem } sysvshm() { - depends="$pkgname" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/sysvshm.so" \ - "${subpkgdir}/usr/lib/php/20060613/sysvshm.so" + depends="uclibc $pkgname" + _mv_mod sysvshm } xmlrpc() { - depends="$pkgname libiconv libxml2 zlib" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/xmlrpc.so" \ - "${subpkgdir}/usr/lib/php/20060613/xmlrpc.so" + depends="uclibc $pkgname libiconv libxml2 zlib" + _mv_mod xmlrpc } zip() { - depends="$pkgname zlib" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/zip.so" \ - "${subpkgdir}/usr/lib/php/20060613/zip.so" + depends="uclibc $pkgname zlib" + _mv_mod zip } zlib() { - depends="$pkgname zlib" - install -D -m755 "${srcdir}/${pkgname}-${pkgver}/modules/zlib.so" \ - "${subpkgdir}/usr/lib/php/20060613/zlib.so" + depends="uclibc $pkgname zlib" + _mv_mod zlib +} + +# devleoper package +dev() { + default_dev + mkdir -p "$subpkgdir"/usr/lib/php/ + mv "$pkgdir"/usr/lib/php/build "$subpkgdir"/usr/lib/php/ } md5sums="8760a833cf10433d3e72271ab0d0eccf php-5.2.8.tar.bz2" |