Add deprecation warning when USE_PHP is empty
authorBrian Evans <grknight@gentoo.org>
Thu, 26 Mar 2015 16:15:33 +0000 (16:15 +0000)
committerBrian Evans <grknight@gentoo.org>
Thu, 26 Mar 2015 16:15:33 +0000 (16:15 +0000)
eclass/ChangeLog
eclass/php-ext-source-r2.eclass

index c0eec7fcdc96d6c9719ecea842776f5c21246665..449627532d77e812f4d45f04ad8a7f1b03761af9 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1573 2015/03/23 02:15:14 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1574 2015/03/26 16:15:33 grknight Exp $
+
+  26 Mar 2015; <grknight@gentoo.org> php-ext-source-r2.eclass:
+  Add deprecation warning when USE_PHP is empty
 
   23 Mar 2015; Davide Pesavento <pesa@gentoo.org> qt4-build.eclass,
   qt4-build-multilib.eclass:
index 97b44ee3f6741dfbb5e7774fa96617fbe8d67f7a..6d8445fd865fa1c5f45878d3ad495ab34374deaf 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.33 2013/06/01 18:51:57 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.34 2015/03/26 16:15:33 grknight Exp $
 
 # @ECLASS: php-ext-source-r2.eclass
 # @MAINTAINER:
@@ -16,7 +16,7 @@
 # This eclass provides a unified interface for compiling and installing standalone
 # PHP extensions (modules).
 
-inherit flag-o-matic autotools multilib
+inherit flag-o-matic autotools multilib eutils
 
 EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install
 
@@ -53,7 +53,8 @@ esac
 # @ECLASS-VARIABLE: USE_PHP
 # @DESCRIPTION:
 # Lists the PHP slots compatibile the extension is compatibile with
-[[ -z "${USE_PHP}" ]] && USE_PHP="php5-3"
+[[ -z "${USE_PHP}" ]] && USE_PHP="php5-3" \
+       && eqawarn "An empty USE_PHP is deprecated and support will be removed on 2015-05-01"
 
 # @ECLASS-VARIABLE: PHP_EXT_OPTIONAL_USE
 # @DESCRIPTION: