Skip to content

Commit

Permalink
Support new gtk3 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Jul 14, 2013
1 parent 60c0ab6 commit ba041f6
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Source-Repository head
Library
build-depends: base >= 4 && < 5, array, containers, mtl,
glib >= 0.11 && < 0.13,
gtk (>=0.12.4.1 && <0.13) || (>=3.12.4.1 && <3.13)
gtk >=0.12.4.1 && <0.13

build-tools: gtk2hsC2hs >= 0.13.5,
gtk2hsHookGenerator, gtk2hsTypeGen
Expand All @@ -61,5 +61,5 @@ Library
x-Signals-Types: marshal.list

x-c2hs-Header: hs-gtk-mac-integration.h
pkgconfig-depends: gtk-mac-integration >= 2.0.0
pkgconfig-depends: gtk-mac-integration >=2.0.0

65 changes: 65 additions & 0 deletions gtk3-mac-integration.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Name: gtk3-mac-integration
Version: 0.2.0.1
License: LGPL-2.1
License-file: COPYING
Copyright: (c) 2001-2010 The Gtk2Hs Team
Author: Duncan Coutts, Peter Gavin, Axel Simon, Hamish Mackenzie
Maintainer: [email protected]
Build-Type: Custom
Cabal-Version: >= 1.8.0
Stability: provisional
homepage: http://www.haskell.org/gtk2hs/
bug-reports: http://hackage.haskell.org/trac/gtk2hs/
Synopsis: Bindings for the Gtk/OS X integration library.
Description: gtk-mac-integration helps integrate Gtk applications with the native Mac
desktop and make it feel more like a Mac application.
http://sourceforge.net/apps/trac/gtk-osx/wiki/Integrate

Category: Graphics
Tested-With: GHC == 7.2.2
Extra-Source-Files: hs-gtk-mac-integration.h
SetupWrapper.hs SetupMain.hs Gtk2HsSetup.hs
marshal.list
hierarchy.list

Data-Dir: demo
Data-Files: OSXDemo.hs
Makefile

x-Types-File: Graphics/UI/Gtk/OSX/Types.chs
x-Types-Tag: gtk-mac-integration
x-Types-ModName: Graphics.UI.Gtk.OSX.Types
x-Types-Forward: *Graphics.UI.GtkInternals
x-Types-Destructor: objectUnrefFromMainloop
x-Types-Hierarchy: hierarchy.list

Source-Repository head
type: darcs
location: http://code.haskell.org/gtk-mac-integration/

Library
build-depends: base >= 4 && < 5, array, containers, mtl,
glib >= 0.11 && < 0.13,
gtk3 >=0.12.4.1 && <0.13

build-tools: gtk2hsC2hs >= 0.13.5,
gtk2hsHookGenerator, gtk2hsTypeGen

exposed-modules:
Graphics.UI.Gtk.OSX
Graphics.UI.Gtk.OSX.Application
other-modules:
Graphics.UI.Gtk.OSX.Types
Graphics.UI.Gtk.OSX.Signals

extensions: ForeignFunctionInterface

include-dirs: .

x-Signals-File: Graphics/UI/Gtk/OSX/Signals.chs
x-Signals-Modname: Graphics.UI.Gtk.OSX.Signals
x-Signals-Types: marshal.list

x-c2hs-Header: hs-gtk-mac-integration.h
pkgconfig-depends: gtk-mac-integration >=2.0.0

12 changes: 12 additions & 0 deletions install-both.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh -ex

cabal clean
mv gtk-mac-integration.cabal-renamed gtk-mac-integration.cabal || true
mv gtk3-mac-integration.cabal gtk3-mac-integration.cabal-renamed || true
cabal-src-install "$@"

cabal clean
mv gtk3-mac-integration.cabal-renamed gtk3-mac-integration.cabal || true
mv gtk-mac-integration.cabal gtk-mac-integration.cabal-renamed || true
cabal-src-install "$@"

0 comments on commit ba041f6

Please sign in to comment.