summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Markus With <olemarkus@gentoo.org>2011-12-09 20:19:24 +0000
committerOle Markus With <olemarkus@gentoo.org>2011-12-09 20:19:24 +0000
commit81a010c285e916a0bc54f911d6d2d130adeb6c31 (patch)
tree58a1afb597aa9373570cd80a0153c302b04f8adc /dev-lang
parentUse DESTDIR to remove la files from the correct location. (diff)
downloadhistorical-81a010c285e916a0bc54f911d6d2d130adeb6c31.tar.gz
historical-81a010c285e916a0bc54f911d6d2d130adeb6c31.tar.bz2
historical-81a010c285e916a0bc54f911d6d2d130adeb6c31.zip
Removed pkg_postinst and all references due to bug #380845
Package-Manager: portage-2.2.0_alpha71/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/php/ChangeLog7
-rw-r--r--dev-lang/php/Manifest29
-rw-r--r--dev-lang/php/files/eblits/pkg_postinst-v2.eblit62
-rw-r--r--dev-lang/php/php-5.2.17.ebuild62
-rw-r--r--dev-lang/php/php-5.3.8.ebuild62
-rw-r--r--dev-lang/php/php-5.4.0_rc1.ebuild332
-rw-r--r--dev-lang/php/php-5.4.0_rc2.ebuild332
-rw-r--r--dev-lang/php/php-5.4.0_rc3.ebuild62
8 files changed, 197 insertions, 751 deletions
diff --git a/dev-lang/php/ChangeLog b/dev-lang/php/ChangeLog
index af470fde5332..14fb094534f8 100644
--- a/dev-lang/php/ChangeLog
+++ b/dev-lang/php/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/php
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.526 2011/12/09 18:23:44 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.527 2011/12/09 20:19:24 olemarkus Exp $
+
+ 09 Dec 2011; Ole Markus With <olemarkus@gentoo.org>
+ -files/eblits/pkg_postinst-v2.eblit, php-5.2.17.ebuild, php-5.3.8.ebuild,
+ -php-5.4.0_rc1.ebuild, -php-5.4.0_rc2.ebuild, php-5.4.0_rc3.ebuild:
+ Removed pkg_postinst and all references due to bug #380845
09 Dec 2011; Ole Markus With <olemarkus@gentoo.org>
-files/eblits/common-v1.eblit, php-5.2.17.ebuild, php-5.3.8.ebuild,
diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest
index eeb15363bb55..04d4361b42ab 100644
--- a/dev-lang/php/Manifest
+++ b/dev-lang/php/Manifest
@@ -4,7 +4,6 @@ Hash: SHA1
AUX 20php5-envd 145 RMD160 8c81fb7dc1d1ddf16fd956d748514db3bcb27603 SHA1 f1cef57c0def8e2c5422aaf136f40b4ff47801d2 SHA256 efaae9e6ae5f7010e073c2ab6d8a9dda009f0707c7d7b0c027e142c94f7041a4
AUX 70_mod_php5.conf-apache2 348 RMD160 9f3f49a52ebf92c2650501c5ceb6f95ce4bb2e76 SHA1 62992e793446b4a9a64900d1ecba7bae06873382 SHA256 5bb8a45570582b4389a7d3feea0398e1c13ed4ced96e559b9406ed8c965dea8c
AUX eblits/common-v2.eblit 379 RMD160 595fd6c6be1e0ac15012ea78497a4d2c287c6754 SHA1 98e28261e32bda53c7dfef88def615f633af7c44 SHA256 8c15442b04b0216342ef6f2b8565cb3510f6850fe67745d5697861e2f7759194
-AUX eblits/pkg_postinst-v2.eblit 2224 RMD160 766ba5a45b59cb328072d8e030219b9cbc01499e SHA1 e59eec1a1661a34dd45ee3fc751d11fcd3c2f909 SHA256 50c68ceb6a8f53dbac66cba9766882bfdad1aaf453593aeee693179f55c1ffb8
AUX eblits/pkg_setup-v2.eblit 393 RMD160 430ab1f0227011172d422886862bd59d3886034a SHA1 2fdb587135cd0fe84ea51bfee8cf4ea9fd67dcb5 SHA256 17f9316065960ff0ca56aeec918c2c9e6c80ffdf951a238f7271a589753e320c
AUX eblits/pkg_setup-v3.eblit 283 RMD160 f1b8307ad0c1f05e6acdd38fb70cec2c65e47cf8 SHA1 97361e7542a3dc3bb6d803ddab2a150f40ba8531 SHA256 5905eb3e6d984a9f8fe49e088adad99db7249f62a957c19f0ae4bf3f56ecaecd
AUX eblits/src_compile-v1.eblit 1283 RMD160 83fbb374e2dfaa9d164e6b32b57c268ed06bf519 SHA1 09124cbc9008bfb72eb24cd24b2319d22df52c2c SHA256 5ec76ae24304c5f803a615a98394c219018da1b1ce2018f92f6ac8c5becf6c99
@@ -25,35 +24,29 @@ DIST php-5.2.17.tar.bz2 9092312 RMD160 567fa8d718b93fb83a89494c83a8bec224ac99e9
DIST php-5.3.8.tar.bz2 11190060 RMD160 f18a18e2dfd7ea7885760eec2a05b3c4a15ad9db SHA1 8f29029e092f262876bfdd2ce56f6867e2b74b85 SHA256 a1dd06fd5593e97d9a5bd9818d6501d28d3ee8f09b83f0ec78f7cdfc060f3ea2
DIST php-5.3.9RC1.tar.bz2 11230477 RMD160 d00734de38b5cc2e719f5f80ac609e4362f6dfad SHA1 34306d0a7926a21ba15ee29ab37bbab44633b3fa SHA256 6d76af052c1575765d9bf03d8963415d437209fd790f74d85b523799f1dd718d
DIST php-5.3.9RC2.tar.bz2 11415643 RMD160 2051cd223e30b49c93cd4282c4f4c51b45909547 SHA1 6699803c03f789cf9d311a9a0daab9d14515d5be SHA256 aac16a868056d2a19cb44b5b5732efb974a30dadc000d729c6374f3208005634
-DIST php-5.4.0RC1.tar.bz2 11321722 RMD160 4cae98d1d388bf18d70cd3041d0c314ac4788c69 SHA1 dc7fafeffb2039947bcbccf54fd811f66e46b558 SHA256 98f71de2d474c975326fd8452058f741843fe3b7db601f4788ed327adcc7a781
-DIST php-5.4.0RC2.tar.bz2 11797774 RMD160 5000f30470119ed2c3d9924c69aa8ce2b4f47f71 SHA1 96c2beaf3df65ad950e5206c709bb8e4e4e41c45 SHA256 1fd66dd2e34235d35d6521160e4dea44dd0bf01b0893e6f4a5b3b18706ff0845
DIST php-5.4.0RC3.tar.bz2 11444398 RMD160 9549bbeb1fd719f6c3d20bda7ede23c5059805a3 SHA1 875e36522020ddab5b2b82efefe49de3979ef650 SHA256 23f9bac36ff7a3ce9f367e313c2b89a03483238d44ff8a590ae829c7ee1fc748
DIST php-patchset-5.2.17-r0.tar.bz2 8369 RMD160 544af4eb2de8e4478e675810f18a5b494b59709b SHA1 7b3c56437b435f60f72f7af08112e77c01e2f827 SHA256 fb159a02faf5120dd9bc620bd3f3094735f181aa6893273bb7dd29771b8b23b2
DIST php-patchset-5.3.8-r0.tar.bz2 7518 RMD160 3b9fc4063202b0a83b76a8c0f5bcfeb2ab358a50 SHA1 8b20057a68c9f6f4554ab96a884e874707fcd2e5 SHA256 a4677d75648529ccec61fc0edaa2684ad72c0b15bc81dc0770a6cbc927337686
DIST php-patchset-5.3.9_rc1-r0.tar.bz2 7522 RMD160 4bf3d9bb26d86858ab26be0aa0466eaef4001553 SHA1 cd0dd6704b0c0b04cc1c78027efdfbcc5a9d182c SHA256 95863c23bd9a72013729dcdd005dc585ad5b3d689082503a3702f20df514362f
DIST php-patchset-5.3.9_rc2-r0.tar.bz2 7515 RMD160 c3aca464d04df468fc8aaf6237be49bd891822b8 SHA1 228617dba2801397a5b51ca66fc9c90cf224a768 SHA256 afa2d477c630c2bdd2c3cd5eec24d7eb3e3a7cfd9819b4f4f328c1aad5335612
-DIST php-patchset-5.4.0_rc1-r0.tar.bz2 6001 RMD160 0200e6ada41e471a30bfddeeb166d3254a9e2856 SHA1 3b1f71255db1c003f452c2fe41f93284a50967c4 SHA256 06834d624ce6269aa8005a28ccc0e55b2e8d500af57e4392e641978d5993a3ea
-DIST php-patchset-5.4.0_rc2-r0.tar.bz2 6001 RMD160 0200e6ada41e471a30bfddeeb166d3254a9e2856 SHA1 3b1f71255db1c003f452c2fe41f93284a50967c4 SHA256 06834d624ce6269aa8005a28ccc0e55b2e8d500af57e4392e641978d5993a3ea
DIST php-patchset-5.4.0_rc3-r0.tar.bz2 6001 RMD160 0200e6ada41e471a30bfddeeb166d3254a9e2856 SHA1 3b1f71255db1c003f452c2fe41f93284a50967c4 SHA256 06834d624ce6269aa8005a28ccc0e55b2e8d500af57e4392e641978d5993a3ea
DIST suhosin-patch-5.2.16-0.9.7.patch.gz 23069 RMD160 b28b70faf136b3e04c5b483da0f4c2279378f43a SHA1 fec10b2b81582d06bb0d0a96ea55c525afc8ab29 SHA256 aae115a318d80b3f32cedf876e7a8e4b932febb1b0c743c0b398003ebe122f91
DIST suhosin-patch-5.3.7-0.9.10.patch.gz 41175 RMD160 19f789bf49a5fed2cd88b199fd8ac5d1ffa9bdc8 SHA1 3c38e873584b8f9e325a813cc9b197a342595099 SHA256 0a0dac0e4343596f2bfcef27dcf7180524b78bb1d2d2ca878370a7d0f8313d26
-EBUILD php-5.2.17.ebuild 9353 RMD160 c4a1a245ae1fbc0161d7687dcb35f71ed8c4649f SHA1 5a57708e93b80c0af023130168de1f051f4bd4fc SHA256 6dde7760f8a191fd294d037a319b40ec084226e55edfccbb9d2273a9940049d3
-EBUILD php-5.3.8.ebuild 9598 RMD160 cc01f582f52eaebe2867c9c23c661721b33f7b15 SHA1 af23e15c9321a04852fbef6a5fb79c5501c9c7ae SHA256 b43cec6c35d55f941a75335521ba899d83ff6eacc2871707629098e19d6cf378
+EBUILD php-5.2.17.ebuild 11394 RMD160 65f1b169b64c96cbb8c20fe68b5eb7764ae938a7 SHA1 643825308163b7aa86f8dfd36c14e85424e1c001 SHA256 a98528b76f0babcda8c2d3e7e0ec604b4312305c416c441c4fa0873133b2cb17
+EBUILD php-5.3.8.ebuild 11639 RMD160 fc5bd64a7fce23c8d81394df537745bd0da52f95 SHA1 1061d87837a47e58c547d82879ccd0cab4c0b9d1 SHA256 d00245d3ef7bc88946c30e4a3f66d3fa7c0058dfe9133f645e4d0f543af8796b
EBUILD php-5.3.9_rc1.ebuild 11661 RMD160 402de47bdec0ea824f6c6a76be16ad19fac83808 SHA1 2fe55ef34c604bedb91b410603a2e25711784701 SHA256 e0c0cd8ab24538c783b5f2d293fee74f1a5f360d3883c0befc9e00e2dfc61b5f
EBUILD php-5.3.9_rc2.ebuild 11661 RMD160 c60fe840dc0d1f46fefbda93aba565e54937ada3 SHA1 9867084bd34f936442d8d2c80a2c1a33dc687edf SHA256 783e383b26d685f78990d6dbf810bc7d67c70b0a5f647e2713adf370a623a96c
-EBUILD php-5.4.0_rc1.ebuild 8579 RMD160 35d43804cf6af0af3b14c47824b08b98b25a4118 SHA1 3f32b99e456ef6577079f0b57d923dbf9de4481c SHA256 4ae41e327bc363abd7b9ffb4c869256b661fc4a21a8beb18015bec9150609267
-EBUILD php-5.4.0_rc2.ebuild 8579 RMD160 8a1b5ca093cdf2ead9c4b38dc77ccf5257dfe17f SHA1 5b7de2434874f855149fae69aff0c238257c6a7c SHA256 3a7415d6255b02f4d46e90f5a9e14d16da3b25b3d159df92e3b419b99931554b
-EBUILD php-5.4.0_rc3.ebuild 8579 RMD160 d84146db5be8ccf5d7623d0533994ba8a0d3bf30 SHA1 ba7c2f6b68239f3fafc438659fdbc0fa177e8d7c SHA256 1dff9d3ed3c4ca4fdc58e8d288262977d9e93921fdb096694cae847f5b9a5358
-MISC ChangeLog 89848 RMD160 91d5d298a4196dcda4b88293f7c7e98fc714c89f SHA1 d64cf5aa94c575e40b667faba11756b553da4c10 SHA256 227ab0148af97eec63670e77397b64f197d243add801a993cf67a9522a881e4f
+EBUILD php-5.4.0_rc3.ebuild 10620 RMD160 2e01f78f011ec2d3abb5931d8c1e387b105b32d3 SHA1 4527f30975ec9bfe2218e21086bc9ef257824179 SHA256 239cbeb214361901302f1f74e044e7146d125e0a2a2ebce5b9881d43e641950d
+MISC ChangeLog 90110 RMD160 d0d4fbdf351255120ee4c437693f0e9d6003d6dd SHA1 ecc33107aa154d29f78d9e2c02430994ed7735c4 SHA256 c6b82ed7800b21a29fc5d81979cf20259291502081445b9e3b758b9b7607c7b3
MISC metadata.xml 2075 RMD160 e2eb44e39169dc2ff8e099d670a222e7102b1aea SHA1 9cebbc373dc8441aa0374132a3b5d87df6d37ffc SHA256 3d8bc9305be300ef7ef92d18ba5476927ec90a5b6d43c2408936229590ff5ac5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iQEcBAEBAgAGBQJO4lJBAAoJEGurSuXEqSv1cw8H/A9a08QoRwmldV/P96KYJ27V
-UGtmcPUfT1SBY67IUfL85pjhHfzBXpNzaFis340tGVew0Yi2iVDsu8/W/jpCP0Sj
-5uP0BkBv31PlT8MDQiwb2Eb/islqaR2YdDaesar3KGE2SKzTXoK4fkEcVAdkBqMU
-VOSUnMyi4Xbpfy2vXzyNvR7LKz1nvruGLVtFjpEjt4ytbrSSYZ5nvypeue8IuOK/
-eMkj3nZohWqVY+6HOWo7DecC/3k4vKTcU10VPTEEEvKBFW7IreLmibSNCfHUFk1g
-mSHZo9FzDQJLRvN2w4Vfevm1MA0xV3klPNHL6EY+STFwjrmbzmSY96WGmrpEvB0=
-=jp48
+iQEcBAEBAgAGBQJO4m1eAAoJEGurSuXEqSv1px0H/1fBFQoEZ6GCc1WJrDSlKsyH
+88vJOnIDQqDek4FkaGtKIc0a/z3AuukcX+ubUhl84gX6f+NM1u1ohzZda9vYJ9R0
+CGdm66sGOlh9k7Y0uxiJGnNWmGAp79IltsMg5JjOTi315B3onlyFhzUZFlHlwK/l
+E5ccdIMsIpHtdvJ1+E/anzdRCrA8fI2pH+NY9kCdJPRQ6KcOqr5hky6DUaqxxkUH
+o8NKfT4Kn9eZRr3KgIOA7X0LGRIuriwENI52600fD5tk/w1KwzJ5i48yhPLeyX2I
+YzsDDNIOQxkXsh+nn3bRLkYy8pglhfGKgTC+BJHbqI8UBYF5opUKkgq0Q9qnxAg=
+=ScHq
-----END PGP SIGNATURE-----
diff --git a/dev-lang/php/files/eblits/pkg_postinst-v2.eblit b/dev-lang/php/files/eblits/pkg_postinst-v2.eblit
deleted file mode 100644
index 408f35ba12d3..000000000000
--- a/dev-lang/php/files/eblits/pkg_postinst-v2.eblit
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit,v 1.13 2011/07/26 16:47:11 olemarkus Exp $
-
-eblit-php-pkg_postinst() {
- # Output some general info to the user
- if use apache2 ; then
- APACHE2_MOD_DEFINE="PHP5"
- APACHE2_MOD_CONF="70_mod_php5"
- apache-module_pkg_postinst
- fi
-
-
- # Create the symlinks for php
- for m in ${SAPIS}; do
- [[ ${m} == 'embed' ]] && continue;
- if use $m ; then
- local ci=$(eselect php show $m)
- if [[ -z $ci ]]; then
- eselect php set $m php${SLOT}
- einfo "Switched ${m} to use php:${SLOT}"
- einfo
- elif [[ $ci != "php${SLOT}" ]] ; then
- elog "To switch $m to use php:${SLOT}, run"
- elog " eselect php set $m php${SLOT}"
- elog
- fi
- fi
- done
-
- elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
- elog "to compile extensions for the ${SLOT} ABI"
- elog
- if ! use readline && use cli ; then
- ewarn "Note that in order to use php interactivly, you need to enable"
- ewarn "the readline USE flag or php -a will hang"
- fi
- elog
- elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
- elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
- elog "'production' or 'development' in /etc/make.conf"
- ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
-
- # check for not yet migrated old style config dirs
- ls "${ROOT}"/etc/php/*-php5 &>/dev/null
- if [[ $? -eq 0 ]]; then
- ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
- ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
- fi
- elog
- elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
- elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
- elog
-
- if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
- ewarn "The suhosin USE flag now only installs the suhosin patch!"
- ewarn "If you want the suhosin extension, make sure you install"
- ewarn " dev-php5/suhosin"
- ewarn
- fi
-}
-
diff --git a/dev-lang/php/php-5.2.17.ebuild b/dev-lang/php/php-5.2.17.ebuild
index edd321dba512..f94ccdc1ddc3 100644
--- a/dev-lang/php/php-5.2.17.ebuild
+++ b/dev-lang/php/php-5.2.17.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.2.17.ebuild,v 1.15 2011/12/09 18:23:44 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.2.17.ebuild,v 1.16 2011/12/09 20:19:24 olemarkus Exp $
EAPI=2
@@ -328,4 +328,62 @@ src_configure() { eblit-run src_configure v521 ; }
src_compile() { eblit-run src_compile v1 ; }
src_install() { eblit-run src_install v2 ; }
src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
+
+#Do not use eblit for this because it will not get sourced when installing from
+#binary package (bug #380845)
+pkg_postinst() {
+ # Output some general info to the user
+ if use apache2 ; then
+ APACHE2_MOD_DEFINE="PHP5"
+ APACHE2_MOD_CONF="70_mod_php5"
+ apache-module_pkg_postinst
+ fi
+
+ # Create the symlinks for php
+ for m in ${SAPIS}; do
+ [[ ${m} == 'embed' ]] && continue;
+ if use $m ; then
+ local ci=$(eselect php show $m)
+ if [[ -z $ci ]]; then
+ eselect php set $m php${SLOT}
+ einfo "Switched ${m} to use php:${SLOT}"
+ einfo
+ elif [[ $ci != "php${SLOT}" ]] ; then
+ elog "To switch $m to use php:${SLOT}, run"
+ elog " eselect php set $m php${SLOT}"
+ elog
+ fi
+ fi
+ done
+
+ elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
+ elog "to compile extensions for the ${SLOT} ABI"
+ elog
+ if ! use readline && use cli ; then
+ ewarn "Note that in order to use php interactivly, you need to enable"
+ ewarn "the readline USE flag or php -a will hang"
+ fi
+ elog
+ elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
+ elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
+ elog "'production' or 'development' in /etc/make.conf"
+ ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
+
+ # check for not yet migrated old style config dirs
+ ls "${ROOT}"/etc/php/*-php5 &>/dev/null
+ if [[ $? -eq 0 ]]; then
+ ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
+ ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
+ fi
+ elog
+ elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
+ elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
+ elog
+
+ if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
+ ewarn "The suhosin USE flag now only installs the suhosin patch!"
+ ewarn "If you want the suhosin extension, make sure you install"
+ ewarn " dev-php5/suhosin"
+ ewarn
+ fi
+}
diff --git a/dev-lang/php/php-5.3.8.ebuild b/dev-lang/php/php-5.3.8.ebuild
index 659d3c6d2f1c..159630d3fecc 100644
--- a/dev-lang/php/php-5.3.8.ebuild
+++ b/dev-lang/php/php-5.3.8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.8.ebuild,v 1.10 2011/12/09 18:23:44 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.8.ebuild,v 1.11 2011/12/09 20:19:24 olemarkus Exp $
EAPI=4
@@ -353,4 +353,62 @@ src_configure() { eblit-run src_configure v2 ; }
src_compile() { eblit-run src_compile v1 ; }
src_install() { eblit-run src_install v2 ; }
src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
+
+#Do not use eblit for this because it will not get sourced when installing from
+#binary package (bug #380845)
+pkg_postinst() {
+ # Output some general info to the user
+ if use apache2 ; then
+ APACHE2_MOD_DEFINE="PHP5"
+ APACHE2_MOD_CONF="70_mod_php5"
+ apache-module_pkg_postinst
+ fi
+
+ # Create the symlinks for php
+ for m in ${SAPIS}; do
+ [[ ${m} == 'embed' ]] && continue;
+ if use $m ; then
+ local ci=$(eselect php show $m)
+ if [[ -z $ci ]]; then
+ eselect php set $m php${SLOT}
+ einfo "Switched ${m} to use php:${SLOT}"
+ einfo
+ elif [[ $ci != "php${SLOT}" ]] ; then
+ elog "To switch $m to use php:${SLOT}, run"
+ elog " eselect php set $m php${SLOT}"
+ elog
+ fi
+ fi
+ done
+
+ elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
+ elog "to compile extensions for the ${SLOT} ABI"
+ elog
+ if ! use readline && use cli ; then
+ ewarn "Note that in order to use php interactivly, you need to enable"
+ ewarn "the readline USE flag or php -a will hang"
+ fi
+ elog
+ elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
+ elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
+ elog "'production' or 'development' in /etc/make.conf"
+ ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
+
+ # check for not yet migrated old style config dirs
+ ls "${ROOT}"/etc/php/*-php5 &>/dev/null
+ if [[ $? -eq 0 ]]; then
+ ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
+ ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
+ fi
+ elog
+ elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
+ elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
+ elog
+
+ if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
+ ewarn "The suhosin USE flag now only installs the suhosin patch!"
+ ewarn "If you want the suhosin extension, make sure you install"
+ ewarn " dev-php5/suhosin"
+ ewarn
+ fi
+}
diff --git a/dev-lang/php/php-5.4.0_rc1.ebuild b/dev-lang/php/php-5.4.0_rc1.ebuild
deleted file mode 100644
index d5627ddb028c..000000000000
--- a/dev-lang/php/php-5.4.0_rc1.ebuild
+++ /dev/null
@@ -1,332 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.0_rc1.ebuild,v 1.1 2011/11/11 13:14:36 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-
-# alias, so we can handle different types of releases (finals, rcs, alphas,
-# betas, ...) w/o changing the whole ebuild
-PHP_PV="${PV/_rc/RC}"
-PHP_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="gentoo"
-else
- SUHOSIN_TYPE="suhosin"
-fi
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
- SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
-fi
-
-SRC_URI="
- ${PHP_SRC_URI}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-# Enable suhosin if available
-[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
-
-DEPEND="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- nls? ( sys-devel/gettext )
- oci8-instant-client? ( dev-db/oracle-instantclient-basic )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- postgres? ( dev-db/postgresql-base )
- qdbm? ( dev-db/qdbm )
- readline? ( sys-libs/readline )
- recode? ( app-text/recode )
- sharedmem? ( dev-libs/mm )
- simplexml? ( >=dev-libs/libxml2-2.6.8 )
- snmp? ( >=net-analyzer/net-snmp-5.2 )
- soap? ( >=dev-libs/libxml2-2.6.8 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.3 )
- ssl? ( >=dev-libs/openssl-0.9.7 )
- sybase-ct? ( dev-db/freetds )
- tidy? ( app-text/htmltidy )
- truetype? (
- =media-libs/freetype-2*
- >=media-libs/t1lib-5.0.0
- !gd? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- wddx? ( >=dev-libs/libxml2-2.6.8 )
- xml? ( >=dev-libs/libxml2-2.6.8 )
- xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
- xmlreader? ( >=dev-libs/libxml2-2.6.8 )
- xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
- xpm? (
- x11-libs/libXpm
- virtual/jpeg
- media-libs/libpng sys-libs/zlib
- )
- xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
- zip? ( sys-libs/zlib )
- zlib? ( sys-libs/zlib )
- virtual/mta
-"
-
-php="=${CATEGORY}/${PF}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-DEPEND="${DEPEND}
- sys-devel/flex
- >=sys-devel/m4-1.4.3
- >=sys-devel/libtool-1.5.18"
-
-# They are in PDEPEND because we need PHP installed first!
-PDEPEND="doc? ( app-doc/php-docs )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-PHP_INI_FILE="php.ini"
-
-want_apache
-
-# eblit-core
-# Usage: <function> [version] [eval]
-# Main eblit engine
-eblit-core() {
- [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files"
- local e v func=$1 ver=$2 eval_=$3
- for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
- e="${FILESDIR}/eblits/${func}${v}.eblit"
- if [[ -e ${e} ]] ; then
- . "${e}"
- [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
- return 0
- fi
- done
- return 1
-}
-
-# eblit-include
-# Usage: [--skip] <function> [version]
-# Includes an "eblit" -- a chunk of common code among ebuilds in a given
-# package so that its functions can be sourced and utilized within the
-# ebuild.
-eblit-include() {
- local skipable=false r=0
- [[ $1 == "--skip" ]] && skipable=true && shift
- [[ $1 == pkg_* ]] && skipable=true
-
- [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
- eblit-core $1 $2
- r="$?"
- ${skipable} && return 0
- [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
-}
-
-# eblit-run-maybe
-# Usage: <function>
-# Runs a function if it is defined in an eblit
-eblit-run-maybe() {
- [[ $(type -t "$@") == "function" ]] && "$@"
-}
-
-# eblit-run
-# Usage: <function> [version]
-# Runs a function defined in an eblit
-eblit-run() {
- eblit-include --skip common v2
- eblit-include "$@"
- eblit-run-maybe eblit-$1-pre
- eblit-${PN}-$1
- eblit-run-maybe eblit-$1-post
-}
-
-# eblit-pkg
-# Usage: <phase> [version]
-# Includes the given functions AND evals them so they're included in the binpkgs
-eblit-pkg() {
- [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
- eblit-core $1 $2 1
-}
-
-eblit-pkg pkg_setup v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_rc2.ebuild b/dev-lang/php/php-5.4.0_rc2.ebuild
deleted file mode 100644
index ef1089f9f881..000000000000
--- a/dev-lang/php/php-5.4.0_rc2.ebuild
+++ /dev/null
@@ -1,332 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.0_rc2.ebuild,v 1.1 2011/11/25 09:10:47 olemarkus Exp $
-
-EAPI=4
-
-inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
-
-SUHOSIN_VERSION=""
-FPM_VERSION="builtin"
-EXPECTED_TEST_FAILURES=""
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-function php_get_uri ()
-{
- case "${1}" in
- "php-stas")
- echo "http://downloads.php.net/stas/${2}"
- ;;
- "php-pre")
- echo "http://downloads.php.net/johannes/${2}"
- ;;
- "php")
- echo "http://www.php.net/distributions/${2}"
- ;;
- "suhosin")
- echo "http://download.suhosin.org/${2}"
- ;;
- "olemarkus")
- echo "http://olemarkus.org/~olemarkus/gentoo/${2}"
- ;;
- "gentoo")
- echo "mirror://gentoo/${2}"
- ;;
- *)
- die "unhandled case in php_get_uri"
- ;;
- esac
-}
-
-PHP_MV="$(get_major_version)"
-
-# alias, so we can handle different types of releases (finals, rcs, alphas,
-# betas, ...) w/o changing the whole ebuild
-PHP_PV="${PV/_rc/RC}"
-PHP_PV="${PHP_PV/_alpha/alpha}"
-PHP_PV="${PHP_PV/_beta/beta}"
-PHP_RELEASE="php-stas"
-PHP_P="${PN}-${PHP_PV}"
-
-PHP_PATCHSET_LOC="olemarkus"
-
-PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
-
-PHP_PATCHSET="0"
-PHP_PATCHSET_URI="
- $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
-
-PHP_FPM_INIT_VER="4"
-PHP_FPM_CONF_VER="1"
-
-if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
- # in some cases we use our own suhosin patch (very recent version,
- # patch conflicts, etc.)
- SUHOSIN_TYPE="gentoo"
-else
- SUHOSIN_TYPE="suhosin"
-fi
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
- SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
-fi
-
-SRC_URI="
- ${PHP_SRC_URI}
- ${PHP_PATCHSET_URI}"
-
-if [[ -n ${SUHOSIN_VERSION} ]]; then
- SRC_URI="${SRC_URI}
- suhosin? ( ${SUHOSIN_URI} )"
-fi
-
-DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
-HOMEPAGE="http://php.net/"
-LICENSE="PHP-3"
-
-SLOT="$(get_version_component_range 1-2)"
-S="${WORKDIR}/${PHP_P}"
-
-# We can build the following SAPIs in the given order
-SAPIS="embed cli cgi fpm apache2"
-
-# Gentoo-specific, common features
-IUSE="kolab"
-
-# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
-IUSE="${IUSE}
- ${SAPIS/cli/+cli}
- threads"
-
-IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
- crypt +ctype curl curlwrappers debug doc
- enchant exif frontbase +fileinfo +filter firebird
- flatfile ftp gd gdbm gmp +hash +iconv imap inifile
- intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
- mssql mysql mysqlnd mysqli nls
- oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
- readline recode +session sharedmem
- +simplexml snmp soap sockets spell sqlite3 ssl
- sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
- xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
-
-# Enable suhosin if available
-[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
-
-DEPEND="!dev-lang/php:5
- >=app-admin/eselect-php-0.6.2
- >=dev-libs/libpcre-8.12[unicode]
- apache2? ( www-servers/apache[threads=] )
- berkdb? ( =sys-libs/db-4* )
- bzip2? ( app-arch/bzip2 )
- cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
- cjk? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- crypt? ( >=dev-libs/libmcrypt-2.4 )
- curl? ( >=net-misc/curl-7.10.5 )
- enchant? ( app-text/enchant )
- exif? ( !gd? (
- virtual/jpeg
- media-libs/libpng
- sys-libs/zlib
- ) )
- firebird? ( dev-db/firebird )
- gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
- gdbm? ( >=sys-libs/gdbm-1.8.0 )
- gmp? ( >=dev-libs/gmp-4.1.2 )
- iconv? ( virtual/libiconv )
- imap? ( virtual/imap-c-client[ssl=] )
- intl? ( dev-libs/icu )
- iodbc? ( dev-db/libiodbc )
- kerberos? ( virtual/krb5 )
- kolab? ( >=net-libs/c-client-2004g-r1 )
- ldap? ( >=net-nds/openldap-1.2.11 )
- ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
- libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
- mssql? ( dev-db/freetds[mssql] )
- !mysqlnd? (
- mysql? ( virtual/mysql )
- mysqli? ( >=virtual/mysql-4.1 )
- )
- nls? ( sys-devel/gettext )
- oci8-instant-client? ( dev-db/oracle-instantclient-basic )
- odbc? ( >=dev-db/unixODBC-1.8.13 )
- postgres? ( dev-db/postgresql-base )
- qdbm? ( dev-db/qdbm )
- readline? ( sys-libs/readline )
- recode? ( app-text/recode )
- sharedmem? ( dev-libs/mm )
- simplexml? ( >=dev-libs/libxml2-2.6.8 )
- snmp? ( >=net-analyzer/net-snmp-5.2 )
- soap? ( >=dev-libs/libxml2-2.6.8 )
- spell? ( >=app-text/aspell-0.50 )
- sqlite3? ( >=dev-db/sqlite-3.7.6.3 )
- ssl? ( >=dev-libs/openssl-0.9.7 )
- sybase-ct? ( dev-db/freetds )
- tidy? ( app-text/htmltidy )
- truetype? (
- =media-libs/freetype-2*
- >=media-libs/t1lib-5.0.0
- !gd? (
- virtual/jpeg media-libs/libpng sys-libs/zlib )
- )
- unicode? ( dev-libs/oniguruma )
- wddx? ( >=dev-libs/libxml2-2.6.8 )
- xml? ( >=dev-libs/libxml2-2.6.8 )
- xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
- xmlreader? ( >=dev-libs/libxml2-2.6.8 )
- xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
- xpm? (
- x11-libs/libXpm
- virtual/jpeg
- media-libs/libpng sys-libs/zlib
- )
- xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
- zip? ( sys-libs/zlib )
- zlib? ( sys-libs/zlib )
- virtual/mta
-"
-
-php="=${CATEGORY}/${PF}"
-
-REQUIRED_USE="
- truetype? ( gd )
- cjk? ( gd )
- exif? ( gd )
-
- xpm? ( gd )
- gd? ( zlib )
- simplexml? ( xml )
- soap? ( xml )
- wddx? ( xml )
- xmlrpc? ( || ( xml iconv ) )
- xmlreader? ( xml )
- xsl? ( xml )
- ldap-sasl? ( ldap )
- kolab? ( imap )
- mhash? ( hash )
- phar? ( hash )
- mysqlnd? ( || (
- mysql
- mysqli
- pdo
- ) )
-
- qdbm? ( !gdbm )
- readline? ( !libedit )
- recode? ( !imap !mysql !mysqli )
- sharedmem? ( !threads )
-
- !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
-
-DEPEND="${DEPEND}
- enchant? ( !dev-php5/pecl-enchant )
- fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 )
- filter? ( !dev-php5/pecl-filter )
- json? ( !dev-php5/pecl-json )
- phar? ( !dev-php5/pecl-phar )
- zip? ( !dev-php5/pecl-zip )"
-
-[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
-=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
-
-DEPEND="${DEPEND}
- sys-devel/flex
- >=sys-devel/m4-1.4.3
- >=sys-devel/libtool-1.5.18"
-
-# They are in PDEPEND because we need PHP installed first!
-PDEPEND="doc? ( app-doc/php-docs )"
-
-# No longer depend on the extension. The suhosin USE flag only installs the
-# patch
-#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
-
-# Allow users to install production version if they want to
-
-case "${PHP_INI_VERSION}" in
- production|development)
- ;;
- *)
- PHP_INI_VERSION="development"
- ;;
-esac
-
-PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
-PHP_INI_FILE="php.ini"
-
-want_apache
-
-# eblit-core
-# Usage: <function> [version] [eval]
-# Main eblit engine
-eblit-core() {
- [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files"
- local e v func=$1 ver=$2 eval_=$3
- for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
- e="${FILESDIR}/eblits/${func}${v}.eblit"
- if [[ -e ${e} ]] ; then
- . "${e}"
- [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
- return 0
- fi
- done
- return 1
-}
-
-# eblit-include
-# Usage: [--skip] <function> [version]
-# Includes an "eblit" -- a chunk of common code among ebuilds in a given
-# package so that its functions can be sourced and utilized within the
-# ebuild.
-eblit-include() {
- local skipable=false r=0
- [[ $1 == "--skip" ]] && skipable=true && shift
- [[ $1 == pkg_* ]] && skipable=true
-
- [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
- eblit-core $1 $2
- r="$?"
- ${skipable} && return 0
- [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
-}
-
-# eblit-run-maybe
-# Usage: <function>
-# Runs a function if it is defined in an eblit
-eblit-run-maybe() {
- [[ $(type -t "$@") == "function" ]] && "$@"
-}
-
-# eblit-run
-# Usage: <function> [version]
-# Runs a function defined in an eblit
-eblit-run() {
- eblit-include --skip common v2
- eblit-include "$@"
- eblit-run-maybe eblit-$1-pre
- eblit-${PN}-$1
- eblit-run-maybe eblit-$1-post
-}
-
-# eblit-pkg
-# Usage: <phase> [version]
-# Includes the given functions AND evals them so they're included in the binpkgs
-eblit-pkg() {
- [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
- eblit-core $1 $2 1
-}
-
-eblit-pkg pkg_setup v3
-
-src_prepare() { eblit-run src_prepare v4 ; }
-src_configure() { eblit-run src_configure v3 ; }
-src_compile() { eblit-run src_compile v2 ; }
-src_install() { eblit-run src_install v3 ; }
-src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
diff --git a/dev-lang/php/php-5.4.0_rc3.ebuild b/dev-lang/php/php-5.4.0_rc3.ebuild
index d8134254821f..fce8dd393735 100644
--- a/dev-lang/php/php-5.4.0_rc3.ebuild
+++ b/dev-lang/php/php-5.4.0_rc3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.0_rc3.ebuild,v 1.1 2011/12/09 09:45:13 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.0_rc3.ebuild,v 1.2 2011/12/09 20:19:24 olemarkus Exp $
EAPI=4
@@ -329,4 +329,62 @@ src_configure() { eblit-run src_configure v3 ; }
src_compile() { eblit-run src_compile v2 ; }
src_install() { eblit-run src_install v3 ; }
src_test() { eblit-run src_test v1 ; }
-pkg_postinst() { eblit-run pkg_postinst v2 ; }
+
+#Do not use eblit for this because it will not get sourced when installing from
+#binary package (bug #380845)
+pkg_postinst() {
+ # Output some general info to the user
+ if use apache2 ; then
+ APACHE2_MOD_DEFINE="PHP5"
+ APACHE2_MOD_CONF="70_mod_php5"
+ apache-module_pkg_postinst
+ fi
+
+ # Create the symlinks for php
+ for m in ${SAPIS}; do
+ [[ ${m} == 'embed' ]] && continue;
+ if use $m ; then
+ local ci=$(eselect php show $m)
+ if [[ -z $ci ]]; then
+ eselect php set $m php${SLOT}
+ einfo "Switched ${m} to use php:${SLOT}"
+ einfo
+ elif [[ $ci != "php${SLOT}" ]] ; then
+ elog "To switch $m to use php:${SLOT}, run"
+ elog " eselect php set $m php${SLOT}"
+ elog
+ fi
+ fi
+ done
+
+ elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
+ elog "to compile extensions for the ${SLOT} ABI"
+ elog
+ if ! use readline && use cli ; then
+ ewarn "Note that in order to use php interactivly, you need to enable"
+ ewarn "the readline USE flag or php -a will hang"
+ fi
+ elog
+ elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
+ elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
+ elog "'production' or 'development' in /etc/make.conf"
+ ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
+
+ # check for not yet migrated old style config dirs
+ ls "${ROOT}"/etc/php/*-php5 &>/dev/null
+ if [[ $? -eq 0 ]]; then
+ ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
+ ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
+ fi
+ elog
+ elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
+ elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
+ elog
+
+ if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
+ ewarn "The suhosin USE flag now only installs the suhosin patch!"
+ ewarn "If you want the suhosin extension, make sure you install"
+ ewarn " dev-php5/suhosin"
+ ewarn
+ fi
+}