aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2011-04-09 00:09:12 -0500
committerMatt Smith <mcs@darkregion.net>2011-04-09 00:20:25 -0500
commit349f1088905bee1d6d019764326213102198890f (patch)
tree89ddb9b27407321cd6df0a3ddb25e2377d1306a8 /main
parent4446c956152ff6ff01710382676bbd52a9d190a7 (diff)
downloadaports-349f1088905bee1d6d019764326213102198890f.tar.bz2
aports-349f1088905bee1d6d019764326213102198890f.tar.xz
main/php: php-pear depends on php-xml, date.timezone defaults to UTC, improved php-doc
Diffstat (limited to 'main')
-rw-r--r--main/php/APKBUILD27
1 files changed, 25 insertions, 2 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index 020d24356d..99cff5279f 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -3,7 +3,7 @@
pkgname=php
pkgver=5.3.6
_suhosinver=5.3.6-0.9.10
-pkgrel=4
+pkgrel=5
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
arch="all"
@@ -281,6 +281,28 @@ dev() {
"$subpkgdir"/usr/lib/php/ || return 1
}
+doc() {
+ # man pages
+ mkdir -p "$subpkgdir"/usr/share/man || return 1
+ mv "$pkgdir"/usr/share/man/man* "$subpkgdir"/usr/share/man/ \
+ || return 1
+
+ # doc files
+ _docs="CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS \
+ README.EXTENSIONS README.EXT_SKEL README.MAILINGLIST_RULES \
+ README.PARAMETER_PARSING_API README.PHP4-TO-PHP5-THIN-CHANGES \
+ README.REDIST.BINS README.RELEASE_PROCESS \
+ README.SELF-CONTAINED-EXTENSIONS README.STREAMS \
+ README.SUBMITTING_PATCH README.SVN-RULES README.TESTING \
+ README.TESTING2 README.UNIX-BUILD-SYSTEM README.Zeus \
+ README.input_filter README.namespaces TODO TODO-5.1 \
+ TODO-PHP5 UPGRADING UPGRADING.INTERNALS"
+ for _doc in $_docs; do
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \
+ "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
+ done
+}
+
common() {
pkgdesc="PHP Common Files"
replaces="$pkgname"
@@ -288,6 +310,7 @@ common() {
cd "$srcdir"/$pkgname-$pkgver
install -D -m644 php.ini-production "$subpkgdir"/etc/php/php.ini
sed -i -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" "$subpkgdir"/etc/php/php.ini
+ sed -ri 's/;(date.timezone =)/\1 UTC/' "$subpkgdir"/etc/php/php.ini
sed -ri "s~^([;]*cgi\.rfc2616_headers.*)$~\1\n\n\; If this is enabled, the PHP CGI binary can safely be placed outside of the\n; web tree and people will not be able to circumvent .htaccess security.\ncgi\.discard_path = 1~" "$subpkgdir"/etc/php/php.ini
}
@@ -336,7 +359,7 @@ embed() {
pear() {
pkgdesc="PHP Extension and Application Repository (PEAR)"
- depends="php-cli"
+ depends="php-cli php-xml"
mkdir -p "$subpkgdir"/usr/share "$subpkgdir"/etc/php \
"$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/pecl \