Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtk+.py « packages - github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7cbc319650e63fe6692bf4354af699a5a83079f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
class GtkPackage (GnomePackage):
	def __init__ (self):
		GnomePackage.__init__ (self, 'gtk+',
			version_major = '2.24',
			version_minor = '5',
			configure_flags = [
				'--with-gdktarget=%{gdk_target}',
#				'--disable-cups',
			]
		)

		self.gdk_target = 'x11'
		if Package.profile.name == 'darwin':
			self.gdk_target = 'quartz'
			self.sources.extend ([
				#patches from gtk-osx-build
				'patches/gtk/gtkselection.patch',
				'patches/gtk/gtk-keyhash.patch',
				'patches/gtk/gtk-relocation.patch',
				'patches/gtk/gdk-deadkeys.patch',
				'patches/gtk/gdkeventloop.patch',
				'patches/gtk/gtkdndmemory.patch',
				'patches/gtk/gtkselection_deref.patch',

				# Bug 346609 - [PATCH] Quartz backend has no support for one-button mice
				#https://bugzilla.gnome.org/show_bug.cgi?id=346609
				'patches/gtk/gtkcontrolclick.patch',

				# Bug 655074 - [PATCH] Fix crash with undecorated windows on MacOS Lion
				#https://bugzilla.gnome.org/show_bug.cgi?id=655074
				'patches/gtk/gtkundecoratedwindow.patch',

				# add some missing keybindings
				'patches/gtk/gtkmackeys.patch',

				# Bug 655122 - Crash when resizing window on MacOS Lion
				# https://bugzilla.gnome.org/show_bug.cgi?id=655122
				'patches/gtk/gtklionresizecrash.patch',

				# Bug 655087 - CoreGraphics error "clip: empty path" creating
				# new window on Lion
				# https://bugzilla.gnome.org/show_bug.cgi?id=655087
				'patches/gtk/gdk-empty-clip.patch',

				# Bug 508601 - Copying from GTK+ applications causes crash
				# https://bugzilla.gnome.org/show_bug.cgi?id=508601
				'patches/gtk/gtk-clipboard-crash.patch',
			])

	def prep (self):
		Package.prep (self)
		if Package.profile.name == 'darwin':
			for p in range (1, len (self.sources)):
				self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')

GtkPackage ()