From: Andres L. <kos...@ge...> - 2004-03-03 17:35:42
|
[rearranged the original message a bit] > >Do you have some wxhaskell ebuild handy? > > No, I installed it by hand. I can have a go at writing an ebuild > although if as you say wxHaskell writes into /usr/lib then a Makefile > patch is probably in order. As I mentioned though, my wxHaskell is > currently a bit broken so I'm going to have to sort that out first. > Although I suspect the broken bit might actually be wxWidgets. I have just committed a dev-haskell/wxhaskell-0.6 ebuild to the Gentoo CVS, so it should propagate within the next hour. I had it lying around for some time now, but never got around to actually adding it. It is tested on exactly one machine right now, but there seems to be request for it -- so please test and provide feedback, also if it works fine. > >Thank you for pointing this out. I never came across one. > > You probably did, XFree86 uses several tarballs, although admittedly it > does expand them all into the same place before building. There is > though, as far as I can see, nothing to stop you making your own > subdirectories of the build directory and extracting a tarball into each > of those, then building and installing each of them as necessary. You can just specify multiple URI's in SRC_URI, and all of them get downloaded and unpacked by default. As Daan pointed out, in the case of wxhaskell, it's not needed though, as the source distribution contains everything to build the documentation. > >I was playing during the 0.30.4 but could not solve sandbox problem since > >wxhaskell writes into /usr/lib. > > > >Of course, I did it with addwrite /usr/lib and some sed trickery (could > >not > >find haddock-base), but wanted to have more clean solution by patching > >Makefile. addwrite for the installation process is not an option. Usually, some combination of patching, setting prefix, or being lucky and have DESTDIR, helps. > That would be preferable. An install target that supports DESTDIR is a > nice preferable solution for most projects. Not necessarily the easiest > to implement though, but it depends on the build system. Should not be a problem. You could probably modify the Makefile and send the patch to Daan. I'm sure he will consider to apply it. > >>Although having said that, I can't get wxHaskell stuff to link properly > >>on my Gentoo box at the moment, probably because my OpenGL setup is > >>rather broken. I have added the library flags needed to link in the wx-gl libaries. I hope it actually still works with a non-opengl-enabled version of wxGTK, I haven't tried that. Best, Andres |