Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3092 - ghc-5.02.3.ebuild (New Package)
Summary: ghc-5.02.3.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-27 19:49 UTC by Sven Moritz Hallberg
Modified: 2002-06-13 11:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ghc-5.02.3.ebuild (New Package) (ghc-5.02.3.ebuild,6.90 KB, text/plain)
2002-05-27 19:51 UTC, Sven Moritz Hallberg
Details
Enable the 4.08.2 bootstrap script to use a different make command from 'gmake'. (ghc-4.08.2-gentoo.patch,1.11 KB, text/plain)
2002-05-27 19:52 UTC, Sven Moritz Hallberg
Details
Patch to make the 5.02.3 configure script work without an installed version of the Happy parser generator (ghc-5.02.3-gentoo.patch,152.65 KB, text/plain)
2002-05-27 19:53 UTC, Sven Moritz Hallberg
Details
md5 checksums for all the distfiles (digest-ghc-5.02.3,207 bytes, text/plain)
2002-05-27 19:54 UTC, Sven Moritz Hallberg
Details
Source for the lndir utility from the XFree source tree. (lndir.c,7.86 KB, text/plain)
2002-05-27 19:57 UTC, Sven Moritz Hallberg
Details
Build DocBook documentation only if USEing 'doc'. Require DocBook DTD 3.1 in that case. (ghc-5.02.3.ebuild-docbook-patch.diff,2.19 KB, patch)
2002-06-13 11:38 UTC, Sven Moritz Hallberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Moritz Hallberg 2002-05-27 19:49:51 UTC
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.
Comment 1 Sven Moritz Hallberg 2002-05-27 19:51:01 UTC
Created attachment 1180 [details]
ghc-5.02.3.ebuild (New Package)
Comment 2 Sven Moritz Hallberg 2002-05-27 19:52:28 UTC
Created attachment 1181 [details]
Enable the 4.08.2 bootstrap script to use a different make command from 'gmake'.
Comment 3 Sven Moritz Hallberg 2002-05-27 19:53:28 UTC
Created attachment 1182 [details]
Patch to make the 5.02.3 configure script work without an installed version of the Happy parser generator
Comment 4 Sven Moritz Hallberg 2002-05-27 19:54:37 UTC
Created attachment 1183 [details]
md5 checksums for all the distfiles
Comment 5 Sven Moritz Hallberg 2002-05-27 19:57:09 UTC
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. ;)
Comment 6 Sven Moritz Hallberg 2002-05-27 19:58:41 UTC
Oh, of course I suggest category dev-lang for this. 
Comment 7 George Shapovalov (RETIRED) gentoo-dev 2002-06-10 03:06:36 UTC
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
Comment 8 Sven Moritz Hallberg 2002-06-13 11:38:43 UTC
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.