File: gtk.cabal

package info (click to toggle)
haskell-gtk 0.14.10-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,964 kB
  • sloc: haskell: 3,346; ansic: 827; makefile: 161
file content (413 lines) | stat: -rw-r--r-- 16,593 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
Name:           gtk
Version:        0.14.10
License:        LGPL-2.1
License-file:   COPYING
Copyright:      (c) 2001-2010 The Gtk2Hs Team
Author:         Axel Simon, Duncan Coutts and many others
Maintainer:     gtk2hs-users@lists.sourceforge.net
Build-Type:     Custom
Cabal-Version:  >= 1.24
Stability:      provisional
homepage:       http://projects.haskell.org/gtk2hs/
bug-reports:    https://github.com/gtk2hs/gtk2hs/issues
Synopsis:       Binding to the Gtk+ graphical user interface library.
Description: This is the core library of the Gtk2Hs suite of libraries for Haskell
             based on Gtk+. Gtk+ is an extensive and mature multi-platform toolkit
             for creating graphical user interfaces.
Category:       Graphics
Tested-With:    GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.1
Extra-Source-Files: hsgtk.h
                    Graphics/UI/Gtk/ModelView/Gtk2HsStore.h
                    Graphics/UI/Gtk/General/hsgthread.h
                    template-hsc-gtk2hs.h
                    marshal.list
                    hierarchy.list

x-Types-File:       Graphics/UI/Gtk/Types.chs
x-Types-ModName:    Graphics.UI.Gtk.Types
x-Types-Forward:    *System.Glib.GObject Graphics.UI.Gtk.General.Threading
x-Types-Destructor: objectUnrefFromMainloop

Data-Dir:       demo
Data-Files:     actionMenu/ActionMenu.hs
                actionMenu/Makefile

                buttonbox/ButtonBox.hs
                buttonbox/Makefile

                carsim/CarSim.hs
                carsim/Makefile

                concurrent/Makefile
                concurrent/Progress.hs
                concurrent/ProgressThreadedRTS.hs

                embedded/Embedded.hs
                embedded/Makefile
                embedded/MPlayer.hs
                embedded/Notes.txt
                embedded/Uzbl.hs

                fastdraw/FastDraw.hs
                fastdraw/Makefile

                filechooser/FileChooserDemo.glade
                filechooser/FileChooserDemo.hs
                filechooser/Makefile

                fonts/Fonts.hs
                fonts/Makefile

                graphic/Drawing.hs
                graphic/Makefile

                gtkbuilder/GtkBuilderTest.hs
                gtkbuilder/Makefile
                gtkbuilder/simple.ui

                hello/Makefile
                hello/World.hs

                inputmethod/Layout.hs
                inputmethod/Makefile

                menu/ComboDemo.hs
                menu/Makefile
                menu/MenuDemo.hs

                notebook/Notebook.hs
                notebook/Makefile

                statusicon/Makefile
                statusicon/StatusIcon.hs

                treelist/Completion.hs
                treelist/DirList.hs
                treelist/FilterDemo.hs
                treelist/ListDemo.hs
                treelist/ListDND.hs
                treelist/ListTest.glade
                treelist/ListTest.hs
                treelist/ListText.hs
                treelist/Makefile
                treelist/rgb.txt
                treelist/TreeDemo.hs
                treelist/TreeSort.hs
                treelist/TreeTest.glade
                treelist/TreeTest.hs

                treelist/resListDND/desktop.png
                treelist/resListDND/laptop.png
                treelist/resListDND/laptopSmall.png
                treelist/resListDND/printer.png
                treelist/resListDND/server.png
                treelist/resListDND/tower.png

                unicode/Arabic.hs
                unicode/Makefile

                demos.txt

Source-Repository head
  type:         git
  location:     https://github.com/gtk2hs/gtk2hs
  subdir:       gtk

Flag deprecated
  Description:  Include definitions in this library that are considered obsolete.
  Default:      True
  Manual:       True

Flag have-gio
  Description: Depend on GIO package, thereby enabling certain features.
  Default:  True

Flag have-quartz-gtk
  Description: Assume that the installed GTK is the version for OS X backend by Quartz, and hence does not provide gdk_x11_drawable_get_xid
  Default:  False

Flag fmode-binary
  Description: Set the default file translation mode for file I/O operations to _O_BINARY.
               Some GTK libraries open image files without specifing binary mode.
               If you have trouble loading gtk in ghci, then it may help to turn this
               option off.
  Default: True

custom-setup
  setup-depends: base >= 4.6,
                 Cabal >= 1.24 && < 2.3,
                 gtk2hs-buildtools >= 0.13.2.0 && < 0.14

Library
        build-depends:  base >= 4 && < 5,
                        array, containers, mtl, bytestring,
                        text >= 0.11.0.6 && < 1.3,
                        glib  >= 0.13.0.0 && < 0.14,
                        pango >= 0.13.0.0 && < 0.14,
                        cairo >= 0.13.0.0 && < 0.14
        if flag(have-gio)
          build-depends: gio >= 0.13.0 && < 0.14
          cpp-options:    -DHAVE_GIO
        if flag(have-quartz-gtk)
          cpp-options:    -DHAVE_QUARTZ_GTK

        exposed-modules:
          Graphics.UI.Gtk
          Graphics.UI.GtkInternals
          Graphics.UI.Gtk.Abstract.Bin
          Graphics.UI.Gtk.Abstract.Box
          Graphics.UI.Gtk.Abstract.ButtonBox
          Graphics.UI.Gtk.Abstract.Container
          Graphics.UI.Gtk.Abstract.IMContext
          Graphics.UI.Gtk.Abstract.Misc
          Graphics.UI.Gtk.Abstract.Object
          Graphics.UI.Gtk.Abstract.Paned
          Graphics.UI.Gtk.Abstract.Range
          Graphics.UI.Gtk.Abstract.Scale
          Graphics.UI.Gtk.Abstract.Scrollbar
          Graphics.UI.Gtk.Abstract.Separator
          Graphics.UI.Gtk.Abstract.Widget
          Graphics.UI.Gtk.ActionMenuToolbar.Action
          Graphics.UI.Gtk.ActionMenuToolbar.ActionGroup
          Graphics.UI.Gtk.ActionMenuToolbar.RadioAction
          Graphics.UI.Gtk.ActionMenuToolbar.RecentAction
          Graphics.UI.Gtk.ActionMenuToolbar.ToggleAction
          Graphics.UI.Gtk.ActionMenuToolbar.UIManager
          Graphics.UI.Gtk.Builder
          Graphics.UI.Gtk.Buttons.Button
          Graphics.UI.Gtk.Buttons.CheckButton
          Graphics.UI.Gtk.Buttons.RadioButton
          Graphics.UI.Gtk.Buttons.ToggleButton
          Graphics.UI.Gtk.Buttons.LinkButton
          Graphics.UI.Gtk.Buttons.ScaleButton
          Graphics.UI.Gtk.Buttons.VolumeButton
          Graphics.UI.Gtk.Cairo
          Graphics.UI.Gtk.Display.AccelLabel
          Graphics.UI.Gtk.Display.Image
          Graphics.UI.Gtk.Display.Label
          Graphics.UI.Gtk.Display.ProgressBar
          Graphics.UI.Gtk.Display.Spinner
          Graphics.UI.Gtk.Display.Statusbar
          Graphics.UI.Gtk.Display.StatusIcon
          Graphics.UI.Gtk.Display.InfoBar
          Graphics.UI.Gtk.Embedding.Embedding
          Graphics.UI.Gtk.Embedding.Plug
          Graphics.UI.Gtk.Embedding.Socket
          Graphics.UI.Gtk.Embedding.Types
          Graphics.UI.Gtk.Entry.Editable
          Graphics.UI.Gtk.Entry.Entry
          Graphics.UI.Gtk.Entry.EntryBuffer
          Graphics.UI.Gtk.Entry.EntryCompletion
          Graphics.UI.Gtk.Entry.HScale
          Graphics.UI.Gtk.Entry.SpinButton
          Graphics.UI.Gtk.Entry.VScale
          Graphics.UI.Gtk.Gdk.AppLaunchContext
          Graphics.UI.Gtk.Gdk.Cursor
          Graphics.UI.Gtk.Gdk.Keymap
          Graphics.UI.Gtk.Gdk.Display
          Graphics.UI.Gtk.Gdk.DisplayManager
          Graphics.UI.Gtk.Gdk.Drawable
          Graphics.UI.Gtk.Gdk.DrawWindow
          Graphics.UI.Gtk.Gdk.EventM
          Graphics.UI.Gtk.Gdk.Events
          Graphics.UI.Gtk.Gdk.GC
          Graphics.UI.Gtk.Gdk.Gdk
          Graphics.UI.Gtk.Gdk.Keys
          Graphics.UI.Gtk.Gdk.Pixbuf
          Graphics.UI.Gtk.Gdk.PixbufAnimation
          Graphics.UI.Gtk.Gdk.Pixmap
          Graphics.UI.Gtk.Gdk.Region
          Graphics.UI.Gtk.Gdk.Screen
          Graphics.UI.Gtk.General.Clipboard
          Graphics.UI.Gtk.General.Drag
          Graphics.UI.Gtk.General.General
          Graphics.UI.Gtk.General.IconFactory
          Graphics.UI.Gtk.General.IconTheme
          Graphics.UI.Gtk.General.RcStyle
          Graphics.UI.Gtk.General.Selection
          Graphics.UI.Gtk.General.Settings
          Graphics.UI.Gtk.General.StockItems
          Graphics.UI.Gtk.General.Style
          Graphics.UI.Gtk.Layout.Alignment
          Graphics.UI.Gtk.Layout.AspectFrame
          Graphics.UI.Gtk.Layout.Expander
          Graphics.UI.Gtk.Layout.Fixed
          Graphics.UI.Gtk.Layout.HBox
          Graphics.UI.Gtk.Layout.HButtonBox
          Graphics.UI.Gtk.Layout.HPaned
          Graphics.UI.Gtk.Layout.Layout
          Graphics.UI.Gtk.Layout.Notebook
          Graphics.UI.Gtk.Layout.Table
          Graphics.UI.Gtk.Layout.VBox
          Graphics.UI.Gtk.Layout.VButtonBox
          Graphics.UI.Gtk.Layout.VPaned
          Graphics.UI.Gtk.MenuComboToolbar.CheckMenuItem
          Graphics.UI.Gtk.MenuComboToolbar.Combo
          Graphics.UI.Gtk.MenuComboToolbar.ComboBox
          Graphics.UI.Gtk.MenuComboToolbar.ComboBoxEntry
          Graphics.UI.Gtk.MenuComboToolbar.ImageMenuItem
          Graphics.UI.Gtk.MenuComboToolbar.Menu
          Graphics.UI.Gtk.MenuComboToolbar.MenuBar
          Graphics.UI.Gtk.MenuComboToolbar.MenuItem
          Graphics.UI.Gtk.MenuComboToolbar.MenuShell
          Graphics.UI.Gtk.MenuComboToolbar.MenuToolButton
          Graphics.UI.Gtk.MenuComboToolbar.OptionMenu
          Graphics.UI.Gtk.MenuComboToolbar.RadioMenuItem
          Graphics.UI.Gtk.MenuComboToolbar.RadioToolButton
          Graphics.UI.Gtk.MenuComboToolbar.SeparatorMenuItem
          Graphics.UI.Gtk.MenuComboToolbar.SeparatorToolItem
          Graphics.UI.Gtk.MenuComboToolbar.TearoffMenuItem
          Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton
          Graphics.UI.Gtk.MenuComboToolbar.Toolbar
          Graphics.UI.Gtk.MenuComboToolbar.ToolButton
          Graphics.UI.Gtk.MenuComboToolbar.ToolItem
          Graphics.UI.Gtk.MenuComboToolbar.ToolItemGroup
          Graphics.UI.Gtk.MenuComboToolbar.ToolPalette
          Graphics.UI.Gtk.Misc.Accessible
          Graphics.UI.Gtk.Misc.Adjustment
          Graphics.UI.Gtk.Misc.Arrow
          Graphics.UI.Gtk.Misc.Calendar
          Graphics.UI.Gtk.Misc.DrawingArea
          Graphics.UI.Gtk.Misc.EventBox
          Graphics.UI.Gtk.Misc.HandleBox
          Graphics.UI.Gtk.Misc.IMMulticontext
          Graphics.UI.Gtk.Misc.IMContextSimple
          Graphics.UI.Gtk.Misc.SizeGroup
          Graphics.UI.Gtk.Misc.Tooltip
          Graphics.UI.Gtk.Misc.Tooltips
          Graphics.UI.Gtk.Misc.Viewport
          Graphics.UI.Gtk.ModelView
          Graphics.UI.Gtk.ModelView.CellEditable
          Graphics.UI.Gtk.ModelView.CellLayout
          Graphics.UI.Gtk.ModelView.CellRenderer
          Graphics.UI.Gtk.ModelView.CellRendererSpinner
          Graphics.UI.Gtk.ModelView.CellRendererCombo
          Graphics.UI.Gtk.ModelView.CellRendererPixbuf
          Graphics.UI.Gtk.ModelView.CellRendererProgress
          Graphics.UI.Gtk.ModelView.CellRendererText
          Graphics.UI.Gtk.ModelView.CellRendererAccel
          Graphics.UI.Gtk.ModelView.CellRendererSpin
          Graphics.UI.Gtk.ModelView.CellRendererToggle
          Graphics.UI.Gtk.ModelView.CellView
          Graphics.UI.Gtk.ModelView.CustomStore
          Graphics.UI.Gtk.ModelView.IconView
          Graphics.UI.Gtk.ModelView.ListStore
          Graphics.UI.Gtk.ModelView.TreeDrag
          Graphics.UI.Gtk.ModelView.TreeModel
          Graphics.UI.Gtk.ModelView.TreeModelFilter
          Graphics.UI.Gtk.ModelView.TreeModelSort
          Graphics.UI.Gtk.ModelView.TreeRowReference
          Graphics.UI.Gtk.ModelView.TreeSelection
          Graphics.UI.Gtk.ModelView.TreeSortable
          Graphics.UI.Gtk.ModelView.TreeStore
          Graphics.UI.Gtk.ModelView.TreeView
          Graphics.UI.Gtk.ModelView.TreeViewColumn
          Graphics.UI.Gtk.Multiline.TextBuffer
          Graphics.UI.Gtk.Multiline.TextIter
          Graphics.UI.Gtk.Multiline.TextMark
          Graphics.UI.Gtk.Multiline.TextTag
          Graphics.UI.Gtk.Multiline.TextTagTable
          Graphics.UI.Gtk.Multiline.TextView
          Graphics.UI.Gtk.Ornaments.Frame
          Graphics.UI.Gtk.Ornaments.HSeparator
          Graphics.UI.Gtk.Ornaments.VSeparator
          Graphics.UI.Gtk.Printing.PaperSize
          Graphics.UI.Gtk.Printing.PageSetup
          Graphics.UI.Gtk.Printing.PrintContext
          Graphics.UI.Gtk.Printing.PrintOperation
          Graphics.UI.Gtk.Printing.PrintSettings
          Graphics.UI.Gtk.Recent.RecentChooserMenu
          Graphics.UI.Gtk.Recent.RecentChooserWidget
          Graphics.UI.Gtk.Recent.RecentFilter
          Graphics.UI.Gtk.Recent.RecentManager
          Graphics.UI.Gtk.Recent.RecentInfo
          Graphics.UI.Gtk.Recent.RecentChooser
          Graphics.UI.Gtk.Scrolling.HScrollbar
          Graphics.UI.Gtk.Scrolling.ScrolledWindow
          Graphics.UI.Gtk.Scrolling.VScrollbar
          Graphics.UI.Gtk.Selectors.ColorButton
          Graphics.UI.Gtk.Selectors.ColorSelection
          Graphics.UI.Gtk.Selectors.ColorSelectionDialog
          Graphics.UI.Gtk.Selectors.FileChooser
          Graphics.UI.Gtk.Selectors.FileChooserButton
          Graphics.UI.Gtk.Selectors.FileChooserDialog
          Graphics.UI.Gtk.Selectors.FileChooserWidget
          Graphics.UI.Gtk.Selectors.FileFilter
          Graphics.UI.Gtk.Selectors.FileSelection
          Graphics.UI.Gtk.Selectors.FontButton
          Graphics.UI.Gtk.Selectors.FontSelection
          Graphics.UI.Gtk.Selectors.FontSelectionDialog
          Graphics.UI.Gtk.Selectors.HSV
          Graphics.UI.Gtk.Special.Ruler
          Graphics.UI.Gtk.Special.HRuler
          Graphics.UI.Gtk.Special.VRuler
          Graphics.UI.Gtk.Windows.AboutDialog
          Graphics.UI.Gtk.Windows.Assistant
          Graphics.UI.Gtk.Windows.Dialog
          Graphics.UI.Gtk.Windows.Invisible
          Graphics.UI.Gtk.Windows.MessageDialog
          Graphics.UI.Gtk.Windows.Window
          Graphics.UI.Gtk.Windows.OffscreenWindow
          Graphics.UI.Gtk.Windows.WindowGroup
          Graphics.UI.Gtk.General.Enums
        other-modules:
          Graphics.UI.Gtk.Gdk.Enums
          Graphics.UI.Gtk.Gdk.PixbufData
          Graphics.UI.Gtk.General.Structs
          Graphics.UI.Gtk.ModelView.Types
          Graphics.UI.Gtk.ModelView.Sequence
          Graphics.UI.Gtk.Multiline.Types
          Graphics.UI.Gtk.Abstract.ContainerChildProperties
          Graphics.UI.Gtk.General.DNDTypes
          Graphics.UI.Gtk.General.Threading
          Graphics.UI.Gtk.Types
          Graphics.UI.Gtk.Signals

        default-language:   Haskell98
        default-extensions: ForeignFunctionInterface
        c-sources: Graphics/UI/Gtk/ModelView/Gtk2HsStore.c
                   Graphics/UI/Gtk/General/hsgthread.c
          -- Due to http://hackage.haskell.org/trac/ghc/ticket/781
        -- we need to compile the hsgthread.c module with -fPIC to ensure that a global
        -- variable in GLib that holds the address for the mutex lock and unlock functions
        -- is accessed correctly. This bug only exists on x86-64 platforms.
        if arch(x86_64)
          cc-options:      -fPIC
        x-Signals-File:  Graphics/UI/Gtk/Signals.chs
        x-Signals-Modname: Graphics.UI.Gtk.Signals
        x-Signals-Types: marshal.list
        -- the following field is only needed because the gtk package may have callbacks that
        -- take 'Widget's as arguments which, in turn, need gObjectUnrefFromMainloop which
        -- needs to be imported from this module:
        x-Signals-Import: Graphics.UI.Gtk.General.Threading
        include-dirs:   .
        cpp-options: -U__BLOCKS__
        if os(darwin) || os(freebsd)
          cpp-options: -D__attribute__(A)= -D_Nullable= -D_Nonnull=
        if !flag(deprecated)
          cpp-options:  -DDISABLE_DEPRECATED
        else
          x-Types-Tag:  deprecated
        if os(windows)
          cpp-options:    -DWIN32 -fno-exceptions
          cc-options:     -fno-exceptions
          extra-libraries: kernel32

        if os(windows)
          cpp-options: -D__USE_MINGW_ANSI_STDIO=1

        x-c2hs-Header:  hsgtk.h
        x-Types-Hierarchy:  hierarchy.list

        if os(windows) || flag(have-quartz-gtk)
          x-Types-Tag: default
        else
          x-Types-Tag: default plugNsocket
          cpp-options: -DHAVE_PLUG_AND_SOCKET

        if os(windows) && flag(fmode-binary)
          cc-options: -DGTK2HS_SET_FMODE_BINARY

        pkgconfig-depends: gthread-2.0, gtk+-2.0

        cpp-options: -Upixel