Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 28684 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/x11-libs/wxGTK/wxGTK-2.4.1-r1.ebuild (-20 / +33 lines)
Lines 9-28 Link Here
9
LICENSE="LGPL-2"
9
LICENSE="LGPL-2"
10
SLOT="0"
10
SLOT="0"
11
KEYWORDS="~x86 ~ppc ~sparc"
11
KEYWORDS="~x86 ~ppc ~sparc"
12
IUSE="nls odbc opengl gtk2"
12
IUSE="nls odbc opengl gtk2 png jpeg tiff"
13
13
14
DEPEND="virtual/x11
14
RDEPEND="virtual/x11
15
	media-libs/netpbm
16
	media-libs/giflib
17
	media-libs/libpng
18
	media-libs/jpeg
19
	media-libs/tiff
20
	sys-libs/zlib
15
	sys-libs/zlib
16
	png? ( media-libs/libpng )
17
	jpeg? ( media-libs/jpeg )
18
	tiff? ( media-libs/tiff )
21
	odbc? ( dev-db/unixODBC  )
19
	odbc? ( dev-db/unixODBC  )
22
	opengl? ( virtual/opengl )
20
	opengl? ( virtual/opengl )
23
	gtk2? ( >=x11-libs/gtk+-2.0* dev-libs/libunicode ) : ( =x11-libs/gtk+-1.2* )"
21
	gtk2? ( >=x11-libs/gtk+-2.0* ) : ( =x11-libs/gtk+-1.2* )"
24
22
25
RDEPEND="nls? ( sys-devel/gettext )"
23
	# Note: gettext is not runtime dependency even if nls? because wxWindows
24
	#       has its own implementation of it
25
26
DEPEND="${RDEPEND}"
26
27
27
src_unpack() {
28
src_unpack() {
28
	unpack ${A}
29
	unpack ${A}
Lines 33-40 Link Here
33
34
34
src_compile() {
35
src_compile() {
35
	local myconf
36
	local myconf
36
	myconf="--enable-gif --with-libtiff --with-zlib --with-libpng \
37
	myconf=""
37
		--enable-png --with-libjpeg"
38
	
39
	# Configurable image handlers that depend on external libraries:
40
	use png || myconf="${myconf} --without-libpng"
41
	use jpeg || myconf="${myconf} --without-libjpeg"
42
	use tiff || myconf="${myconf} --without-libtiff"
38
43
39
	#Note: pcx image support enabled by default if found.
44
	#Note: pcx image support enabled by default if found.
40
	#Also, all wxWindows gui features are enabled by default. If you
45
	#Also, all wxWindows gui features are enabled by default. If you
Lines 48-64 Link Here
48
	#       We only use --enable-unicode (if at all) when we use
53
	#       We only use --enable-unicode (if at all) when we use
49
	#       gtk2.
54
	#       gtk2.
50
55
56
   # Note: this ebuild no longer builds wxGTK with --enable-unicode --> commented out,
57
	#       should be restored when this changes
51
58
52
	if [ `use odbc` ] && [ ! `use gtk2` ]; then
59
	#if [ `use odbc` ] && [ ! `use gtk2` ]; then
60
	#	myconf="${myconf} --with-odbc"
61
	#elif [ `use odbc` ] && [ `use gtk2` ]; then
62
	#	ewarn ""
63
	#	einfo "you cannot specify both odbc and gtk2"
64
	#	einfo "Choosing gtk2 over odbc"
65
	#	einfo "re-run with USE=\"-gtk2\" to enable odbc"
66
	#	ewarn ""
67
	#	sleep 5
68
	#	myconf="${myconf} --without-odbc"
69
	#else
70
	#	myconf="${myconf} --without-odbc"
71
	#fi
72
	
73
	if [ `use odbc` ]; then
53
		myconf="${myconf} --with-odbc"
74
		myconf="${myconf} --with-odbc"
54
	elif [ `use odbc` ] && [ `use gtk2` ]; then
55
		ewarn ""
56
		einfo "you cannot specify both odbc and gtk2"
57
		einfo "Choosing gtk2 over odbc"
58
		einfo "re-run with USE=\"-gtk2\" to enable odbc"
59
		ewarn ""
60
		sleep 5
61
		myconf="${myconf} --without-odbc"
62
	else
75
	else
63
		myconf="${myconf} --without-odbc"
76
		myconf="${myconf} --without-odbc"
64
	fi
77
	fi

Return to bug 28684