# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-qt/qtgui/qtgui-4.8.5-r4.ebuild,v 1.12 2015/03/31 19:19:40 ulm Exp $ EAPI=5 inherit eutils qt4-build DESCRIPTION="The GUI module for the Qt toolkit" SRC_URI+=" http://dev.gentoo.org/~pesa/patches/${PN}-systemtrayicon-plugin-system.patch" SLOT="4" if [[ ${QT4_BUILD_TYPE} == live ]]; then KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc" else KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" fi IUSE="+accessibility cups egl +glib gtkstyle mng nas nis qt3support tiff trace xinerama +xv" REQUIRED_USE=" gtkstyle? ( glib ) " # cairo[-qt4] is needed because of bug 454066 RDEPEND=" app-eselect/eselect-qtgraphicssystem ~dev-qt/qtcore-${PV}[aqua=,debug=,glib=,qt3support=] ~dev-qt/qtscript-${PV}[aqua=,debug=] media-libs/fontconfig media-libs/freetype:2 media-libs/libpng:0= sys-libs/zlib virtual/jpeg:0 !aqua? ( x11-libs/libICE x11-libs/libSM x11-libs/libX11 x11-libs/libXcursor x11-libs/libXext x11-libs/libXfixes x11-libs/libXi x11-libs/libXrandr x11-libs/libXrender xinerama? ( x11-libs/libXinerama ) xv? ( x11-libs/libXv ) ) cups? ( net-print/cups ) egl? ( media-libs/mesa[egl] ) glib? ( dev-libs/glib:2 ) gtkstyle? ( x11-libs/cairo[-qt4(-)] x11-libs/gtk+:2[aqua=] ) mng? ( >=media-libs/libmng-1.0.9:= ) nas? ( >=media-libs/nas-1.5 ) tiff? ( media-libs/tiff:0 ) ! "${ED}"/usr/share/qt4/graphicssystems/raster || die echo "" > "${ED}"/usr/share/qt4/graphicssystems/native || die newicon tools/qtconfig/images/appicon.png qtconfig.png make_desktop_entry qtconfig 'Qt Configuration Tool' qtconfig 'Qt;Settings;DesktopSettings' # bug 388551 if use gtkstyle; then local tempfile=${T}/${PN}${SLOT}.sh cat <<-EOF > "${tempfile}" export GTK2_RC_FILES=\${HOME}/.gtkrc-2.0 EOF insinto /etc/profile.d doins "${tempfile}" fi } pkg_postinst() { qt4-build_pkg_postinst # raster is the default graphicssystem, set it on first install eselect qtgraphicssystem set raster --use-old }