Some cleanups from project overlay
authorMarkus Ullmann <jokey@gentoo.org>
Mon, 3 Mar 2008 17:05:06 +0000 (17:05 +0000)
committerMarkus Ullmann <jokey@gentoo.org>
Mon, 3 Mar 2008 17:05:06 +0000 (17:05 +0000)
eclass/php-common-r1.eclass

index 6e0fcd448923387af44d6a85458e706804b1be21..e70a182fb76cb504190991f50a65b3835715f562 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.12 2007/11/29 23:11:04 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.13 2008/03/03 17:05:06 jokey Exp $
 
 # Based on robbat2's work on the php4 sapi eclass
 # Based on stuart's work on the php5 sapi eclass
 # ========================================================================
 
 php_check_cflags() {
-       # Filter the following from C[XX]FLAGS regardless, as apache won't be
-       # supporting LFS until 2.2 is released and in the tree. Fixes bug #24373.
-       filter-flags "-D_FILE_OFFSET_BITS=64"
-       filter-flags "-D_FILE_OFFSET_BITS=32"
-       filter-flags "-D_LARGEFILE_SOURCE=1"
-       filter-flags "-D_LARGEFILE_SOURCE"
-
        # Fixes bug #14067.
        # Changed order to run it in reverse for bug #32022 and #12021.
-       replace-flags "-march=k6-3" "-march=i586"
-       replace-flags "-march=k6-2" "-march=i586"
-       replace-flags "-march=k6" "-march=i586"
+       replace-cpu-flags "k6*" "i586"
 }
 
 # ========================================================================
@@ -58,6 +49,15 @@ php_check_imap() {
                        die "Please recompile the IMAP C-Client libraries with SSL support disabled"
                fi
        fi
+
+       if use "kolab" || phpconfutils_usecheck "kolab" ; then
+               if ! built_with_use net-libs/c-client kolab ; then
+                       eerror
+                       eerror "IMAP with annotations support requested, but net-libs/c-client is built without it!"
+                       eerror
+                       die "Please recompile net-libs/c-client with USE=kolab."
+               fi
+       fi
 }
 
 # ========================================================================