Personal tools

Gentoo/HaskellPlatform

From HaskellWiki

< Gentoo(Difference between revisions)
Jump to: navigation, search
(update the masking section to show recent changes)
(Setup)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Gentoo supports the Haskell Platform!
 
Gentoo supports the Haskell Platform!
   
==Masking and Unmasking==
+
==Setup==
   
As of this writing the Gentoo ebuilds for Haskell Platform are no longer hard masked, which means unmasking them is no longer needed. However, on 64 bit systems the ebuilds is not stable yet, so they need to be enabled by adding these entries to /etc/portage/package.keywords
+
There are two ways to install haskell-platform, from the main [http://packages.gentoo.org/package/dev-haskell/haskell-platform portage tree] or the [https://github.com/gentoo-haskell/gentoo-haskell/tree/master/dev-haskell/haskell-platform overlay]. The overlay is recommended as the overlay includes additional haskell packages that are not in the portage tree.
  +
  +
===Overlay===
  +
  +
To get the latest version use the overlay. If you haven't already, [http://www.gentoo.org/proj/en/overlays/userguide.xml install layman] (this is used to setup overlays). Then run 'layman -a haskell' to install the haskell overlay. Now you are ready to [[#Install|install]].
  +
  +
===Portage Setup===
  +
  +
Gentoo portage packaging policy requires that packages can not be marked stable until they have been in the portage tree for > 30 days. Some of the ebuilds are not stable yet, so they need to be enabled by adding these entries to /etc/portage/package.keywords:
   
 
<pre>
 
<pre>
dev-haskell/haskell-platform
+
app-admin/haskell-updater
dev-haskell/fgl
+
dev-haskell/alex
  +
dev-haskell/cabal
  +
dev-haskell/cabal-install
  +
dev-haskell/cgi
  +
dev-haskell/deepseq
  +
dev-haskell/fgl
  +
dev-haskell/gluraw
  +
dev-haskell/glut
  +
dev-haskell/haddock
  +
dev-haskell/happy
  +
dev-haskell/haskell-platform
 
dev-haskell/haskell-src
 
dev-haskell/haskell-src
  +
dev-haskell/hscolour
 
dev-haskell/html
 
dev-haskell/html
dev-haskell/network
+
dev-haskell/http
dev-haskell/zlib
+
dev-haskell/hunit
 
dev-haskell/mtl
 
dev-haskell/mtl
dev-haskell/cabal-install
+
dev-haskell/network
dev-haskell/stm
+
dev-haskell/objectname
  +
dev-haskell/openglraw
  +
dev-haskell/opengl
  +
dev-haskell/parallel
 
dev-haskell/parsec
 
dev-haskell/parsec
  +
dev-haskell/quickcheck
  +
dev-haskell/random
  +
dev-haskell/regex-base
  +
dev-haskell/regex-compat
 
dev-haskell/regex-posix
 
dev-haskell/regex-posix
dev-haskell/happy
+
dev-haskell/statevar
dev-haskell/xhtml
+
dev-haskell/stm
dev-haskell/editline
+
dev-haskell/syb
dev-haskell/cgi
+
dev-haskell/tensor
dev-haskell/parallel
+
dev-haskell/text
 
dev-haskell/time
 
dev-haskell/time
dev-haskell/quickcheck
+
dev-haskell/transformers
  +
dev-haskell/xhtml
  +
dev-haskell/zlib
 
dev-lang/ghc
 
dev-lang/ghc
dev-haskell/glut
 
dev-haskell/http
 
dev-haskell/regex-base
 
app-admin/haskell-updater
 
dev-haskell/haddock
 
</pre>
 
 
Furthermore, because the ebuild for haskell-platform (dev-haskell/haskell-platform-2009.2.0.2) uses the old version of ghc (dev-lang/ghc-6.10.4), it will conflict with newer ebuilds that use newer versions such as ghc-6.12.3. In order to resolve this conflict the newer ebuilds that uses ghc-6.12.3 need to be masked by adding these entries to /etc/portage/package.mask
 
 
<pre>
 
=dev-lang/ghc-6.12.3
 
=app-admin/haskell-updater-1.1.3.0
 
=dev-haskell/stm-2.1.2.2
 
=dev-haskell/haddock-2.6.1
 
 
</pre>
 
</pre>
   

Latest revision as of 13:16, 3 June 2012

Gentoo supports the Haskell Platform!

Contents

[edit] 1 Setup

There are two ways to install haskell-platform, from the main portage tree or the overlay. The overlay is recommended as the overlay includes additional haskell packages that are not in the portage tree.

[edit] 1.1 Overlay

To get the latest version use the overlay. If you haven't already, install layman (this is used to setup overlays). Then run 'layman -a haskell' to install the haskell overlay. Now you are ready to install.

[edit] 1.2 Portage Setup

Gentoo portage packaging policy requires that packages can not be marked stable until they have been in the portage tree for > 30 days. Some of the ebuilds are not stable yet, so they need to be enabled by adding these entries to /etc/portage/package.keywords:

app-admin/haskell-updater
dev-haskell/alex
dev-haskell/cabal
dev-haskell/cabal-install
dev-haskell/cgi
dev-haskell/deepseq
dev-haskell/fgl
dev-haskell/gluraw
dev-haskell/glut
dev-haskell/haddock
dev-haskell/happy
dev-haskell/haskell-platform
dev-haskell/haskell-src
dev-haskell/hscolour
dev-haskell/html
dev-haskell/http
dev-haskell/hunit
dev-haskell/mtl
dev-haskell/network
dev-haskell/objectname
dev-haskell/openglraw
dev-haskell/opengl
dev-haskell/parallel
dev-haskell/parsec
dev-haskell/quickcheck
dev-haskell/random
dev-haskell/regex-base
dev-haskell/regex-compat
dev-haskell/regex-posix
dev-haskell/statevar
dev-haskell/stm
dev-haskell/syb
dev-haskell/tensor
dev-haskell/text
dev-haskell/time
dev-haskell/transformers
dev-haskell/xhtml
dev-haskell/zlib
dev-lang/ghc

[edit] 2 Install

Now, to install, run:

emerge haskell-platform

This will pull the GHC compiler, Cabal, and all the libraries included in HP. If you want haddock documentation, set your USE="doc". If you also want profiling libraries, set USE="profile".

[edit] 3 Feedback

Got any feedback for the packages above? Let us know!

You'll find us in #gentoo-haskell @ freenode, or send your comments to haskell@gentoo.org.