/[gentoo-x86]/x11-libs/qt-gui/qt-gui-4.6.3-r2.ebuild
Gentoo

Contents of /x11-libs/qt-gui/qt-gui-4.6.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Fri Mar 30 19:53:22 2012 UTC (2 years, 5 months ago) by hwoarang
Branch: MAIN
Changes since 1.6: +2 -5 lines
x11-themes/qgtkstyle is masked for removal. Use x11-libs/qt-gui[gtkstyle] instead

(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)

1 hwoarang 1.7 # Copyright 1999-2012 Gentoo Foundation
2 wired 1.1 # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.7 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/qt-gui-4.6.3-r2.ebuild,v 1.6 2011/12/17 19:37:35 chithanh Exp $
4 wired 1.1
5     EAPI="2"
6     inherit confutils eutils qt4-build
7    
8     DESCRIPTION="The GUI module for the Qt toolkit"
9     SLOT="4"
10 chithanh 1.3 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
11 wired 1.1 IUSE="+accessibility cups dbus +glib gtk mng nas nis raster tiff trace qt3support xinerama"
12    
13     RDEPEND="media-libs/fontconfig
14 pesa 1.5 media-libs/freetype:2
15 jlec 1.4 media-libs/libpng:0
16 wired 1.1 sys-libs/zlib
17 pesa 1.5 virtual/jpeg
18 wired 1.1 ~x11-libs/qt-core-${PV}[aqua=,debug=,glib=,qt3support=]
19     ~x11-libs/qt-script-${PV}[aqua=,debug=]
20     !aqua? (
21     x11-libs/libX11
22     x11-libs/libXext
23     x11-libs/libXrandr
24     x11-libs/libXcursor
25     x11-libs/libXfont
26     x11-libs/libSM
27     x11-libs/libXi
28     )
29     cups? ( net-print/cups )
30     dbus? ( ~x11-libs/qt-dbus-${PV}[aqua=,debug=] )
31     gtk? ( x11-libs/gtk+:2[aqua=] )
32     mng? ( >=media-libs/libmng-1.0.9 )
33     nas? ( >=media-libs/nas-1.5 )
34 jlec 1.4 tiff? ( media-libs/tiff:0 )
35 wired 1.1 xinerama? ( x11-libs/libXinerama )"
36     DEPEND="${RDEPEND}
37     !aqua? (
38     x11-proto/xextproto
39     x11-proto/inputproto
40     )
41     gtk? ( || ( >=x11-libs/cairo-1.10.0[-qt4] <x11-libs/cairo-1.10.0 ) )
42     xinerama? ( x11-proto/xineramaproto )"
43     PDEPEND="qt3support? ( ~x11-libs/qt-qt3support-${PV}[aqua=,debug=] )"
44    
45 chithanh 1.6 PATCHES=( "${FILESDIR}/${PN}-4.6-libpng-1.5.patch" )
46    
47 wired 1.1 pkg_setup() {
48     if ! use qt3support; then
49     ewarn "WARNING: if you need 'qtconfig', you _must_ enable qt3support."
50     fi
51    
52     confutils_use_depend_all gtk glib
53    
54     QT4_TARGET_DIRECTORIES="
55     src/gui
56     src/scripttools
57     tools/designer
58     tools/linguist/linguist
59     src/plugins/imageformats/gif
60     src/plugins/imageformats/ico
61     src/plugins/imageformats/jpeg
62     src/plugins/inputmethods"
63    
64     QT4_EXTRACT_DIRECTORIES="
65     include
66     src
67     tools/linguist/phrasebooks
68     tools/linguist/shared
69     tools/shared"
70    
71     use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer"
72     use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng"
73     use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff"
74     use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets"
75     use trace && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/graphicssystems/trace"
76     QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}"
77    
78     qt4-build_pkg_setup
79     }
80    
81     src_prepare() {
82     qt4-build_src_prepare
83    
84     # Don't build plugins this go around, because they depend on qt3support lib
85     sed -i -e "s:CONFIG(shared:# &:g" "${S}"/tools/designer/src/src.pro
86     }
87    
88     src_configure() {
89     export PATH="${S}/bin:${PATH}"
90     export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
91    
92     myconf="$(qt_use accessibility)
93     $(qt_use cups)
94     $(qt_use glib)
95     $(qt_use mng libmng system)
96     $(qt_use nis)
97     $(qt_use tiff libtiff system)
98     $(qt_use dbus qdbus)
99     $(qt_use qt3support)
100     $(qt_use gtk gtkstyle)
101     $(qt_use xinerama)"
102    
103     use nas && myconf="${myconf} -system-nas-sound"
104     use raster && myconf="${myconf} -graphicssystem raster"
105    
106     myconf="${myconf} -qt-gif -system-libpng -system-libjpeg
107     -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
108     -xrender -xrandr -xkb -xshape -sm -no-svg"
109    
110     # Explicitly don't compile these packages.
111     # Emerge "qt-webkit", "qt-phonon", etc for their functionality.
112     myconf="${myconf} -no-webkit -no-phonon -no-dbus -no-opengl"
113    
114     qt4-build_src_configure
115     }
116    
117     src_install() {
118     QCONFIG_ADD="x11sm xshape xcursor xfixes xrandr xrender xkb fontconfig
119     $(usev accessibility) $(usev xinerama) $(usev cups) $(usev nas)
120     gif png system-png system-jpeg
121     $(use mng && echo system-mng)
122     $(use tiff && echo system-tiff)"
123     QCONFIG_REMOVE="no-gif no-png"
124     QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY)
125     $(use cups && echo QT_CUPS) QT_FONTCONFIG QT_IMAGEFORMAT_JPEG
126     $(use mng && echo QT_IMAGEFORMAT_MNG)
127     $(use nas && echo QT_NAS)
128     $(use nis && echo QT_NIS) QT_IMAGEFORMAT_PNG QT_SESSIONMANAGER QT_SHAPE
129     $(use tiff && echo QT_IMAGEFORMAT_TIFF) QT_XCURSOR
130     $(use xinerama && echo QT_XINERAMA) QT_XFIXES QT_XKB QT_XRANDR QT_XRENDER"
131    
132     qt4-build_src_install
133    
134     # qt-creator
135     # some qt-creator headers are located
136     # under /usr/include/qt4/QtDesigner/private.
137     # those headers are just includes of the headers
138     # which are located under tools/designer/src/lib/*
139     # So instead of installing both, we create the private folder
140     # and drop tools/designer/src/lib/* headers in it.
141     dodir /usr/include/qt4/QtDesigner/private/
142     insinto /usr/include/qt4/QtDesigner/private/
143     doins "${S}"/tools/designer/src/lib/shared/*
144     doins "${S}"/tools/designer/src/lib/sdk/*
145    
146     # install correct designer and linguist icons, bug 241208
147     doicon tools/linguist/linguist/images/icons/linguist-128-32.png \
148     tools/designer/src/designer/images/designer.png \
149     || die "doicon failed"
150     # Note: absolute image path required here!
151     make_desktop_entry "${EPREFIX}"/usr/bin/linguist Linguist \
152     "${EPREFIX}"/usr/share/pixmaps/linguist-128-32.png \
153     'Qt;Development;GUIDesigner' \
154     || die "linguist make_desktop_entry failed"
155     make_desktop_entry "${EPREFIX}"/usr/bin/designer Designer \
156     "${EPREFIX}"/usr/share/pixmaps/designer.png \
157     'Qt;Development;GUIDesigner' \
158     || die "designer make_desktop_entry failed"
159     }

  ViewVC Help
Powered by ViewVC 1.1.20