1 |
carlo 08/07/28 22:10:17 |
2 |
|
3 |
Modified: qt3.eclass qt4.eclass |
4 |
Log: |
5 |
Mark qt_min_version() and qt4_min_version() as deprecated. |
6 |
|
7 |
Revision Changes Path |
8 |
1.35 eclass/qt3.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt3.eclass?rev=1.35&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt3.eclass?rev=1.35&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt3.eclass?r1=1.34&r2=1.35 |
13 |
|
14 |
Index: qt3.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v |
17 |
retrieving revision 1.34 |
18 |
retrieving revision 1.35 |
19 |
diff -u -r1.34 -r1.35 |
20 |
--- qt3.eclass 26 Jul 2008 23:13:30 -0000 1.34 |
21 |
+++ qt3.eclass 28 Jul 2008 22:10:16 -0000 1.35 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 2005 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v 1.34 2008/07/26 23:13:30 carlo Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v 1.35 2008/07/28 22:10:16 carlo Exp $ |
27 |
|
28 |
# @ECLASS: qt3.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -10,7 +10,7 @@ |
31 |
# This eclass contains various functions that may be useful |
32 |
# when dealing with packages using Qt3 libraries. |
33 |
|
34 |
-inherit toolchain-funcs versionator |
35 |
+inherit toolchain-funcs versionator eutils |
36 |
|
37 |
QTPKG="x11-libs/qt-" |
38 |
QT3MAJORVERSIONS="3.3 3.2 3.1 3.0" |
39 |
@@ -26,11 +26,10 @@ |
40 |
# @FUNCTION: qt_min_version |
41 |
# @USAGE: [minimum version] |
42 |
# @DESCRIPTION: |
43 |
-# This function is simple. In your depend, do something like this: |
44 |
-# DEPEND="$(qt_min_version 3.1)" |
45 |
-# and it handles the rest for you. Currently, the eclass assumes |
46 |
-# that a minimum version of Qt3 is not satisfied by Qt4. |
47 |
+# This function is deprecated. Use slot dependencies instead. |
48 |
qt_min_version() { |
49 |
+ ewarn "qt_min_version() is deprecated. Use slot dependencies instead." |
50 |
+ epause |
51 |
local list=$(qt_min_version_list "$@") |
52 |
if [[ ${list%% *} == "${list}" ]]; then |
53 |
echo "${list}" |
54 |
|
55 |
|
56 |
|
57 |
1.46 eclass/qt4.eclass |
58 |
|
59 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4.eclass?rev=1.46&view=markup |
60 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4.eclass?rev=1.46&content-type=text/plain |
61 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4.eclass?r1=1.45&r2=1.46 |
62 |
|
63 |
Index: qt4.eclass |
64 |
=================================================================== |
65 |
RCS file: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v |
66 |
retrieving revision 1.45 |
67 |
retrieving revision 1.46 |
68 |
diff -u -r1.45 -r1.46 |
69 |
--- qt4.eclass 26 Jul 2008 23:47:03 -0000 1.45 |
70 |
+++ qt4.eclass 28 Jul 2008 22:10:16 -0000 1.46 |
71 |
@@ -1,6 +1,6 @@ |
72 |
# Copyright 2005 Gentoo Foundation |
73 |
# Distributed under the terms of the GNU General Public License v2 |
74 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.45 2008/07/26 23:47:03 carlo Exp $ |
75 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.46 2008/07/28 22:10:16 carlo Exp $ |
76 |
|
77 |
# @ECLASS: qt4.eclass |
78 |
# @MAINTAINER: |
79 |
@@ -27,14 +27,10 @@ |
80 |
# @FUNCTION: qt4_min_version |
81 |
# @USAGE: [minimum version] |
82 |
# @DESCRIPTION: |
83 |
-# This function should be called in package DEPENDs whenever it depends on qt4. |
84 |
-# Simple example - in your depend, do something like this: |
85 |
-# DEPEND="$(qt4_min_version 4.2)" |
86 |
-# if the package can be build with qt-4.2 or higher. |
87 |
-# |
88 |
-# For builds that use an EAPI with support for SLOT dependencies, this will |
89 |
-# return a SLOT dependency, rather than a list of versions. |
90 |
+# This function is deprecated. Use slot dependencies instead. |
91 |
qt4_min_version() { |
92 |
+ ewarn "qt4_min_version() is deprecated. Use slot dependencies instead." |
93 |
+ epause |
94 |
case ${EAPI:-0} in |
95 |
# EAPIs without SLOT dependencies |
96 |
0) echo "|| (" |