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

Collapse All | Expand All

(-)mldonkey-2.6.2.ebuild.orig (-12 / +9 lines)
Lines 18-27 Link Here
18
KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64"
18
KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64"
19
19
20
RDEPEND="dev-lang/perl
20
RDEPEND="dev-lang/perl
21
	gtk2? ( >=gnome-base/librsvg-2.4.0
21
	gtk? (
22
			>=dev-ml/lablgtk-2.4 )
22
		gtk2? ( >=gnome-base/librsvg-2.4.0 >=dev-ml/lablgtk-2.4 )
23
	gtk? ( =dev-ml/lablgtk-1.2.7* )
23
		!gtk2? ( =dev-ml/lablgtk-1.2.7* ) )
24
	oldgtk? ( =dev-ml/lablgtk-1.2.7* )
24
	guionly? (
25
                gtk2? ( >=gnome-base/librsvg-2.4.0 >=dev-ml/lablgtk-2.4 )
26
                !gtk2? ( =dev-ml/lablgtk-1.2.7* ) )
25
	gd? ( >=media-libs/gd-2.0.28 )"
27
	gd? ( >=media-libs/gd-2.0.28 )"
26
28
27
DEPEND="${RDEPEND}
29
DEPEND="${RDEPEND}
Lines 41-51 Link Here
41
	einfo "see the ocaml ebuild for details"
43
	einfo "see the ocaml ebuild for details"
42
	echo ""
44
	echo ""
43
45
44
	if (use gtk && use gtk2) || (use gtk && use oldgtk) || (use gtk2 && use oldgtk); then
45
		eerror "Only one GUI must be chosen! (gtk || gtk2 || oldgtk)"
46
		die "Choose only one GUI"
47
	fi
48
49
	if use guionly && !(use gtk2 || use gtk || use oldgtk); then
46
	if use guionly && !(use gtk2 || use gtk || use oldgtk); then
50
		eerror "You need to choose a GUI (gtk || gtk2 || oldgtk)"
47
		eerror "You need to choose a GUI (gtk || gtk2 || oldgtk)"
51
		die "You have guionly enabled, but you haven't chosen any of GUIs"
48
		die "You have guionly enabled, but you haven't chosen any of GUIs"
Lines 72-83 Link Here
72
	# threads 	Enables multiple threads (TURN IT ON YES WILL YA?)
69
	# threads 	Enables multiple threads (TURN IT ON YES WILL YA?)
73
	# onlygui	Disable all nets support, build only chosen GUI
70
	# onlygui	Disable all nets support, build only chosen GUI
74
71
75
	if use gtk2; then
72
	if use oldgtk; then
73
		myconf="--enable-gui=oldgui"
74
	elif use gtk2; then
76
		myconf="--enable-gui=newgui2"
75
		myconf="--enable-gui=newgui2"
77
	elif use gtk; then
76
	elif use gtk; then
78
		myconf="--enable-gui=newgui1"
77
		myconf="--enable-gui=newgui1"
79
	elif use oldgtk; then
80
		myconf="--enable-gui=oldgui"
81
	else myconf="--disable-gui"
78
	else myconf="--disable-gui"
82
	fi
79
	fi
83
80

Return to bug 103239