On Mon, Feb 8, 2010 at 12:50 AM, Axel Simon <axel.si...@in.tum.de> wrote:
> thanks for your contribution. In fact, I'm working (struggeling) right now
> to get the different pieces of Gtk2Hs built with cabal. Cairo as a leaf
> package will be one of them. I'm don't know if you ran into many problems
> using the standard c2hs pre-processor when compiling the c2hs files of
> Cairo. Gtk2Hs has used a custom c2hs and I'm bundeling that up as a separate
> tool, too. If you managed to build Cairo without this customized version,
> then that's fine.

That is the approach I took, yes.  It required a bit of fiddling but
wasn't too bad.

> However, I'm not sure if any of the other modules of
> Gtk2Hs requires the .chi files that c2hs generates. If so, you need to
> create a custom Setup.hs that installs these files in the same location as
> the .hi files. I'm currently working on this so you might just be able to
> take my Setup.hs file and use it in the Cairo pacakge.
>
> I'll look at your patch. If it all makes sense, I'll try to apply or the
> merge in some other way.

If it helps any, I tried to make my changes to the Cairo part of
gtk2hs in smaller logical steps.  I'll put it online so you can look
at it... ok, here:
  http://github.com/martine/hscairo/commits/master
The first commit is a direct import of the code from the gtk2hs repo,
while each subsequent diff is a cleanup (like "remove trailing
whitespace").

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to