From: "Wulf Krueger (philantrop)" <philantrop@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: kde4-base.eclass
Date: Thu, 03 Apr 2008 18:12:49 +0000 [thread overview]
Message-ID: <E1JhTvd-0007i6-Cq@stork.gentoo.org> (raw)
philantrop 08/04/03 18:12:49
Modified: kde4-base.eclass
Log:
Added support for EAPI=kdebuild-1. Hard depend on qt-4.4.x when PV >= 4.1.
Revision Changes Path
1.7 eclass/kde4-base.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kde4-base.eclass?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kde4-base.eclass?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kde4-base.eclass?r1=1.6&r2=1.7
Index: kde4-base.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- kde4-base.eclass 26 Mar 2008 20:39:05 -0000 1.6
+++ kde4-base.eclass 3 Apr 2008 18:12:48 -0000 1.7
@@ -1,6 +1,6 @@
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.6 2008/03/26 20:39:05 zlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.7 2008/04/03 18:12:48 philantrop Exp $
# @ECLASS: kde4-base.eclass
# @MAINTAINER:
@@ -17,36 +17,67 @@
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm
-COMMONDEPEND="|| ( (
- x11-libs/qt-core:4
- x11-libs/qt-gui:4
- x11-libs/qt-qt3support:4
- x11-libs/qt-svg:4
- x11-libs/qt-test:4 )
- >=x11-libs/qt-4.3.3:4 )"
+kde4-base_set_qt_dependencies() {
+ local qt qtcore qtgui qt3support qtsvg qttest qtopengl qtdepend qtopengldepend
-# @ECLASS-VARIABLE: OPENGL_REQUIRED
-# @DESCRIPTION:
-# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
-# This variable must be set before inheriting any eclasses. Defaults to 'never'.
-OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
+ # use dependencies
+ case "${EAPI}" in
+ kdebuild-1)
+ qt="[accessibility][dbus][debug?][gif][jpeg][png][qt3support][ssl][zlib]"
+ qtcore="[debug?][qt3support][ssl]"
+ qtgui="[accessibility][dbus][debug?]"
+ qt3support="[accessibility][debug?]"
+ qtsvg="[debug?]"
+ qttest="[debug?]"
+ qtopengl="[debug?]"
+ case "${OPENGL_REQUIRED}" in
+ always)
+ qt="${qt}[opengl]"
+ ;;
+ optional)
+ qt="${qt}[opengl?]"
+ ;;
+ esac
+ ;;
+ esac
-OPENGLDEPEND="|| ( x11-libs/qt-opengl:4
- >=x11-libs/qt-4.3.3:4 )"
-case "${OPENGL_REQUIRED}" in
- always)
- COMMONDEPEND="${COMMONDEPEND}
- ${OPENGLDEPEND}"
- ;;
- optional)
- IUSE="${IUSE} opengl"
- COMMONDEPEND="${COMMONDEPEND}
- opengl? ( ${OPENGLDEPEND} )"
- ;;
- *)
- OPENGL_REQUIRED="never"
- ;;
-esac
+ # split qt
+ qtdepend="
+ x11-libs/qt-core:4${qtcore}
+ x11-libs/qt-gui:4${qtgui}
+ x11-libs/qt-qt3support:4${qt3support}
+ x11-libs/qt-svg:4${qtsvg}
+ x11-libs/qt-test:4${qttest}"
+ qtopengldepend="x11-libs/qt-opengl:4${qtopengl}"
+
+ # allow monolithic qt for PV < 4.1
+ case "${PV}" in
+ scm|9999.4|4.1*) : ;;
+ *)
+ qtdepend="|| ( ( ${qtdepend} ) >=x11-libs/qt-4.3.3:4${qt} )"
+ qtopengldepend="|| ( ${qtopengldepend} >=x11-libs/qt-4.3.3:4 )"
+ ;;
+ esac
+
+ # opengl dependencies
+ case "${OPENGL_REQUIRED}" in
+ always)
+ qtdepend="${qtdepend}
+ ${qtopengldepend}"
+ ;;
+ optional)
+ IUSE="${IUSE} opengl"
+ qtdepend="${qtdepend}
+ opengl? ( ${qtopengldepend} )"
+ ;;
+ *)
+ OPENGL_REQUIRED="never"
+ ;;
+ esac
+
+ COMMONDEPEND="${COMMONDEPEND} ${qtdepend}"
+}
+kde4-base_set_qt_dependencies
DEPEND="${DEPEND} ${COMMONDEPEND}
>=dev-util/cmake-2.4.7-r1
@@ -55,6 +86,12 @@
x11-proto/xf86vidmodeproto"
RDEPEND="${RDEPEND} ${COMMONDEPEND}"
+# @ECLASS-VARIABLE: OPENGL_REQUIRED
+# @DESCRIPTION:
+# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
+# This variable must be set before inheriting any eclasses. Defaults to 'never'.
+OPENGL_REQUIRED="${OPENGL_REQUIRED:-never}"
+
# @ECLASS-VARIABLE: CPPUNIT_REQUIRED
# @DESCRIPTION:
# Is cppunit required for tests? Possible values are 'always', 'optional' and 'never'.
@@ -120,7 +157,7 @@
_pv=":kde-4"
fi
;;
- svn|9999*|:kde-svn)
+ scm|svn|9999*|:kde-svn)
_kdedir="svn"
_pv=":kde-svn"
export NEED_KDE="svn"
@@ -251,40 +288,47 @@
kde4-base_pkg_setup() {
debug-print-function $FUNCNAME "$@"
- # KDE4 applications require qt4 compiled with USE="accessibility dbus gif jpeg png qt3support ssl zlib".
- if has_version '<x11-libs/qt-4.4_alpha:4'; then
- QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} accessibility dbus gif jpeg png qt3support ssl zlib"
- else
- KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
- x11-libs/qt-core qt3support ssl
- x11-libs/qt-gui accessibility dbus
- x11-libs/qt-qt3support accessibility"
- fi
-
- if has debug ${IUSE//+} && use debug; then
- if has_version '<x11-libs/qt-4.4.0_alpha:4'; then
- QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} debug"
+ case "${EAPI}" in
+ kdebuild-1)
+ [[ -n ${QT4_BUILT_WITH_USE_CHECK} || -n ${KDE4_BUILT_WITH_USE_CHECK} ]] && \
+ die "built_with_use illegal in this EAPI!"
+ ;;
+ *)
+ # KDE4 applications require qt4 compiled with USE="accessibility dbus gif jpeg png qt3support ssl zlib".
+ if has_version '<x11-libs/qt-4.4_alpha:4'; then
+ QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} accessibility dbus gif jpeg png qt3support ssl zlib"
else
KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
- x11-libs/qt-core:4 debug
- x11-libs/qt-gui:4 debug
- x11-libs/qt-qt3support:4 debug
- x11-libs/qt-svg:4 debug
- x11-libs/qt-test:4 debug"
- if has opengl ${IUSE//+} && use opengl || [[ ${OPENGL_REQUIRED} == always ]]; then
+ x11-libs/qt-core qt3support ssl
+ x11-libs/qt-gui accessibility dbus
+ x11-libs/qt-qt3support accessibility"
+ fi
+
+ if has debug ${IUSE//+} && use debug; then
+ if has_version '<x11-libs/qt-4.4.0_alpha:4'; then
+ QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} debug"
+ else
KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
- x11-libs/qt-opengl:4 debug"
+ x11-libs/qt-core:4 debug
+ x11-libs/qt-gui:4 debug
+ x11-libs/qt-qt3support:4 debug
+ x11-libs/qt-svg:4 debug
+ x11-libs/qt-test:4 debug"
+ if has opengl ${IUSE//+} && use opengl || [[ ${OPENGL_REQUIRED} == always ]]; then
+ KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
+ x11-libs/qt-opengl:4 debug"
+ fi
fi
fi
- fi
- if has opengl ${IUSE//+} && use opengl || [[ ${OPENGL_REQUIRED} == always ]]; then
- if has_version '<x11-libs/qt-4.4.0_alpha:4'; then
- QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} opengl"
+ if has opengl ${IUSE//+} && use opengl || [[ ${OPENGL_REQUIRED} == always ]]; then
+ if has_version '<x11-libs/qt-4.4.0_alpha:4'; then
+ QT4_BUILT_WITH_USE_CHECK="${QT4_BUILT_WITH_USE_CHECK} opengl"
+ fi
fi
- fi
-
- kde4-functions_check_use
+ kde4-functions_check_use
+ ;;
+ esac
}
# @FUNCTION: kde4-base_apply_patches
@@ -358,7 +402,7 @@
ebegin "Updating cmake/ directory..."
rm -rf "${KDE_S}/cmake" || die "Unable to remove old cmake/ directory"
ln -s "${WORKDIR}/cmake" "${KDE_S}/cmake" || die "Unable to symlink the new cmake/ directory"
- eend 0
+ eend 0
fi
}
--
gentoo-commits@lists.gentoo.org mailing list
next reply other threads:[~2008-04-03 18:12 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 18:12 Wulf Krueger (philantrop) [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-10 3:46 [gentoo-commits] gentoo-x86 commit in eclass: kde4-base.eclass Patrick Lauer (patrick)
2011-10-21 23:00 Andreas HAttel (dilfridge)
2011-09-07 17:34 Alexey Shvetsov (alexxy)
2011-08-31 23:44 Andreas HAttel (dilfridge)
2011-07-27 9:30 Alexey Shvetsov (alexxy)
2011-07-11 18:27 Andreas HAttel (dilfridge)
2011-07-11 17:16 Tomas Chvatal (scarabeus)
2011-07-06 19:26 Andreas HAttel (dilfridge)
2011-06-06 18:42 Jonathan Callen (abcd)
2011-05-23 22:56 Jonathan Callen (abcd)
2011-05-14 16:03 Andreas HAttel (dilfridge)
2011-04-22 18:48 Jonathan Callen (abcd)
2011-04-22 11:18 Tomas Chvatal (scarabeus)
2011-04-21 20:01 Andreas HAttel (dilfridge)
2011-04-06 8:53 Andreas HAttel (dilfridge)
2011-03-16 22:45 Andreas HAttel (dilfridge)
2011-01-11 13:15 Kacper Kowalik (xarthisius)
2010-11-24 23:54 Andreas HAttel (dilfridge)
2010-10-27 21:24 Andreas HAttel (dilfridge)
2010-09-13 21:47 Maciej Mrozowski (reavertm)
2010-09-11 5:18 Maciej Mrozowski (reavertm)
2010-09-11 4:37 Maciej Mrozowski (reavertm)
2010-08-13 5:05 Maciej Mrozowski (reavertm)
2010-08-12 19:32 Maciej Mrozowski (reavertm)
2010-06-26 16:02 Maciej Mrozowski (reavertm)
2010-06-26 1:33 Maciej Mrozowski (reavertm)
2010-05-15 14:03 Maciej Mrozowski (reavertm)
2010-04-07 21:16 Tomas Chvatal (scarabeus)
2009-11-25 19:51 Theo Chatzimichos (tampakrap)
2009-10-28 15:50 Tomas Chvatal (scarabeus)
2009-10-28 14:27 Jonathan Callen (abcd)
2009-10-28 14:23 Jonathan Callen (abcd)
2009-10-27 17:43 Tomas Chvatal (scarabeus)
2009-10-27 14:20 Tomas Chvatal (scarabeus)
2009-06-05 9:48 Tomas Chvatal (scarabeus)
2009-06-04 13:50 Tomas Chvatal (scarabeus)
2009-04-18 21:33 Tomas Chvatal (scarabeus)
2009-04-15 11:09 Tomas Chvatal (scarabeus)
2009-03-26 21:55 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2009-03-11 17:40 Tomas Chvatal (scarabeus)
2009-02-02 21:35 Tomas Chvatal (scarabeus)
2009-01-31 21:31 Patrick Lauer (patrick)
2009-01-31 14:00 Ben de Groot (yngwin)
2009-01-24 23:24 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2009-01-18 15:12 Alexey Shvetsov (alexxy)
2009-01-06 10:55 Tomas Chvatal (scarabeus)
2008-12-07 11:39 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2008-11-22 1:23 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2008-11-21 17:06 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2008-11-09 22:52 Tomas Chvatal (scarabeus)
2008-10-11 3:05 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2008-10-04 14:51 Jorge Manuel B. S. Vicetto (jmbsvicetto)
2008-04-14 13:23 Bo Oersted Andresen (zlin)
2008-04-06 21:36 Bo Oersted Andresen (zlin)
2008-03-26 20:39 Bo Oersted Andresen (zlin)
2008-03-14 15:51 Ingmar Vanhassel (ingmar)
2008-03-10 21:41 Bo Oersted Andresen (zlin)
2008-02-18 17:00 Ingmar Vanhassel (ingmar)
2008-01-18 2:37 Ingmar Vanhassel (ingmar)
2008-01-16 22:50 Ingmar Vanhassel (ingmar)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JhTvd-0007i6-Cq@stork.gentoo.org \
--to=philantrop@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox