Hi! Here is an ebuild for GHC, the Glasgow Haskell Compiler, along with two small patches that fix minor but in our case fatal glitches in the GHC build system. The ebuild will perform as many as three bootstrap stages, depending on whether a running GHC is available or not: If no GHC is available, it will bootstrap an older version (4.08.3) from C sources, build 5.03.2 from that, and rebuild 5.03.2 with itself (required to get GHCi, the interactive interpreter). The first stage will be skipped if any version of GHC is found in the PATH or pointed to by the GHC environment variable. The second stage will be skipped if a running version of GHC 5.03.2 itself is already available. The ebuild recognizes the USE flags tetex and opengl. If tetex is given, the GHC documentation will be generated in PostScript format in addition to HTML. If opengl is given, the HOpenGL library (a Haskell binding for OpenGL) will be built.
Created attachment 1180 [details] ghc-5.02.3.ebuild (New Package)
Created attachment 1181 [details] Enable the 4.08.2 bootstrap script to use a different make command from 'gmake'.
Created attachment 1182 [details] Patch to make the 5.02.3 configure script work without an installed version of the Happy parser generator
Created attachment 1183 [details] md5 checksums for all the distfiles
Created attachment 1184 [details] Source for the lndir utility from the XFree source tree. Forgot to mention this: The build uses lndir, which is in the XFree86 package. Because the source is just one small C file, I included it here, so as to not depend on X. ;)
Oh, of course I suggest category dev-lang for this.
Hi Sven Great work! Comitted the ebuild. BTW, what is your opinion on the license for ghc? It looks like "as-is" (all licenses are in separate files under /usr/portage/licenses) is the most appropriate. Did you notice any issues in the ghc license that would make "as-is" inappropriate and require addition of another license to the pool? George
Created attachment 1505 [details, diff] Build DocBook documentation only if USEing 'doc'. Require DocBook DTD 3.1 in that case. Thanks to a bug report by Matthew Walton I've noticed that GHC requires the DocBook DTD 3.1, not 4.1.