gtk2hs 0.10.1-2
http://gtk2hs.sourceforge.net
A GTK+2 binding for Haskell
community :: devel
Maintainer: None
Votes: 58
License: LGPL
Last Updated: Wed, 13 May 2009 11:01:31 +0000
First Submitted: Sun, 27 Jan 2008 13:45:46 +0000
Dependencies gconf gtkglext gtksourceview2 libglade librsvg>=2.16
Required by haskell-ac-easyraster-gtk haskell-aern-rntorm-plot haskell-barracuda haskell-barrie haskell-buster-gtk haskell-chart haskell-diagrams haskell-grapefruit-ui-gtk haskell-gtk2hs-cast-glade haskell-gtk2hs-cast-glib haskell-gtk2hs-cast-gtk haskell-gtk2hs-cast-gtkglext haskell-gtk2hs-cast-gtksourceview2 haskell-gtk2hs-rpn haskell-gtk2hsgenerics haskell-hieroglyph haskell-hnm haskell-hplot haskell-hps-cairo haskell-hs-pgms haskell-hsdip haskell-hunit-gui haskell-proplang haskell-thingie haskell-tracker haskell-vacuum-cairo haskell-visual-graphrewrite l-seed yi
diff -ur /var/abs/community/devel/gtk2hs/gtk2hs.install gtk2hs/gtk2hs.install
--- /var/abs/community/devel/gtk2hs/gtk2hs.install 2009-02-06 23:28:36.000000000 +0200
+++ gtk2hs/gtk2hs.install 2009-02-25 15:37:15.000000000 +0200
@@ -1,17 +1,17 @@
post_install() {
- for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
+ for pkg in glib cairo gtk soegtk glade gconf gtksourceview2 svgcairo gtkglext; do
ghc-pkg register /usr/lib/gtk2hs/${pkg}.package.conf -g
done
}
post_upgrade() {
- for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
+ for pkg in glib cairo gtk soegtk glade gconf gtksourceview2 svgcairo gtkglext; do
ghc-pkg unregister $pkg && ghc-pkg register /usr/lib/gtk2hs/${pkg}.package.conf -g
done
}
pre_remove() {
- for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
+ for pkg in glib cairo gtk soegtk glade gconf gtksourceview2 svgcairo gtkglext; do
ghc-pkg unregister $pkg -g #2>/dev/null
done
rm /usr/lib/gtk2hs/*.o
diff -ur /var/abs/community/devel/gtk2hs/PKGBUILD gtk2hs/PKGBUILD
--- /var/abs/community/devel/gtk2hs/PKGBUILD 2009-02-12 15:58:13.000000000 +0200
+++ gtk2hs/PKGBUILD 2009-02-25 15:36:34.000000000 +0200
@@ -11,7 +11,7 @@
url="http://gtk2hs.sourceforge.net"
arch=('i686' 'x86_64')
makedepends=('ghc>=6.8.1')
-depends=('libglade' 'gtksourceview' 'gconf' 'librsvg>=2.16' 'gtkglext')
+depends=('libglade' 'gtksourceview2' 'gconf' 'librsvg>=2.16' 'gtkglext')
makedepends=('alex' 'happy')
options=('strip' 'docs' 'zipman')
install=gtk2hs.install
---
Also, be sure not to upgrade gtk2hs, but to 'pacman -Rd gtk2hs; pacman -U gtk2hs*gz'
Does the gtk2hs.install of this package need to be updated?
I didn't get the errors of "gour", but ghc wasn't aware of Graphics.UI.Gtk.SourceView, even though it looked installed.
I think it's something with gtk2hs.install, namely the code:
post_install() {
for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
ghc-pkg register /usr/lib/gtk2hs/${pkg}.package.conf -g
done
}
I have a gtksourceview2.package.conf in /usr/lib/gtk2hs, but no sourceview.package.conf. (I think I remember the config script listing sourceview as not being built, while gtksourceview was listed as "yes").
So I run sudo ghc-pkg register /usr/lib/gtk2hs/gtksourceview2.package.conf, and now I can import Graphics.UI.Gtk.SourceView.
-Leif
Hi!
Anyone has working gtk2hs?
Here is result on my computer:
[gour@gaura-nitai gour] yaourt -Sy gtk2hs
Password:
:: Synchronizing package databases...
gaur is up to date
core is up to date
extra 382,9K 52,6K/s 00:00:07 [#####################################################################################] 100%
community 364,5K 53,1K/s 00:00:07 [#####################################################################################] 100%
xyne-any is up to date
resolving dependencies...
looking for inter-conflicts...
Targets (1): gtk2hs-0.10.0-1
Total Download Size: 7,61 MB
Total Installed Size: 49,00 MB
Proceed with installation? [Y/n] y
:: Retrieving packages from community...
gtk2hs-0.10.0-1 7,6M 48,9K/s 00:02:39 [#####################################################################################] 100%
checking package integrity...
(1/1) checking for file conflicts [#####################################################################################] 100%
(1/1) upgrading gtk2hs [#####################################################################################] 100%
ghc-pkg: cannot find package glib
ghc-pkg: cannot find package cairo
ghc-pkg: cannot find package gtk
ghc-pkg: cannot find package soegtk
ghc-pkg: cannot find package glade
ghc-pkg: cannot find package gconf
ghc-pkg: cannot find package sourceview
ghc-pkg: cannot find package svgcairo
ghc-pkg: cannot find package gtkglext
error: scriptlet failed to execute correctly
Sincerely,
Gour
moved to community
Broken for 6.10.x and the SVG patch. Hopefully a 6.10 update is available soon.
would it be possible to include the patch directly into this package ? obviously the gtk2hs hasn't been very active lately ...
i got the same error as quantax,
fixed it with a patch from
http://bugs.gentoo.org/240704
I get the ghc error:
glib/System/Glib.hs:13:0:
Failed to load interface for `System.Glib.UTFString':
Use -v to see a list of the files searched for.
when i try to compile this
I got the same error as quantax...
svgcairo/Graphics/Rendering/Cairo/SVG.chs:201:2:
Couldn't match expected type `()' against inferred type `CInt'
Expected type: Render ()
Inferred type: Render CInt
Edit the PKGBUILD to patch svgcairo/Graphics/Rendering/Cairo/SVG.chs with the following.
199c199
< svgRender :: SVG -> Render ()
---
> svgRender :: SVG -> Render CInt
220c220
< svgRenderFromFile :: FilePath -> Render ()
---
> svgRenderFromFile :: FilePath -> Render CInt
223c223
< svgRenderFromHandle :: Handle -> Render ()
---
> svgRenderFromHandle :: Handle -> Render CInt
226c226
< svgRenderFromString :: String -> Render ()
---
> svgRenderFromString :: String -> Render CInt
It then compiled fine. I think this is due to a change in cairo where a function was changed to return an int instead of void.
The package gtksourceview2 (not, or not only gtksourceview) provides the gtksourceview required to configure gtk2hs.
you missed pkgconfig make dependency
Unable to build 0.9.13 with ghc 6.8.2-2 on i686 here:
svgcairo/Graphics/Rendering/Cairo/SVG.chs:201:2:
Couldn't match expected type `()' against inferred type `CInt'
Expected type: Render ()
Inferred type: Render CInt
In the expression:
liftIO
$ (\ (SVG arg1) (Cairo arg2)
-> withForeignPtr arg1
$ \ argPtr1 -> rsvg_handle_render_cairo argPtr1 arg2)
svg cr
In the expression:
do cr <- ask
liftIO
$ (\ (SVG arg1) (Cairo arg2)
-> withForeignPtr arg1
$ \ argPtr1 -> rsvg_handle_render_cairo argPtr1 arg2)
svg cr
make[1]: *** [svgcairo/Graphics/Rendering/Cairo/SVG.o] Error 1
rm svgcairo/Graphics/Rendering/Cairo/SVG.hs
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-gtk2hs/gtk2hs/src/gtk2hs-0.9.13'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build gtk2hs package.
mrmc, I can't reproduce that here.
Mine's not working :(
I get:
Could not find module `Graphics.Ui.Gtk.Glade':
Does anybody now how to fix this ?
Now the license is in array ;)
Sincerely,
Gour
Minor update - put license in array.
Sincerely,
Gour
If you want/need to test development version, I have made a package gtk2hs-darcs that get latest version from darcs.
Ok guys, don't go look for a new ghc version, it is just because the Arch version have gone from 1 to 1.1 (damn I wished he would have used simply 2).
makedepends now have 'freealut' 'freeglut' 'openal' 'libgl' that was not there before, and have options=('!makeflags') added.
This suggest that the need of --disable-split-objs was due to a broken Arch linux ghc package.
The new version of ghc:
[paul@myhost gtk2hs_darcs]$ pacman -Q ghc
ghc 6.8.2-1.1
... seems to make --disable-split-objs not needed anymore.
Also, according to namcap and:
http://www.archlinux.org/pacman/PKGBUILD.5.html
license should be an array so I suggest:
license=('LGPL')
Wow, good job! My first vote on Archlinux goes to this package.
For the record, the configure option --disable-split-objs was added, fixing the fact that we were obtaining strange symbols not found when linking a program using gtk2hs when it was build on ghc 6.8.2 (any other version, even darcs 6.8.2 nightly builds release was working fine).
I'll spread the news on gtk2hs mailing lists.
Hi!
Thanks to dcoutts in #gentoo-haskell, this release works correctly.
Sincerely,
Gour
moved from [community]
v1.6.0