haskell-cabal.eclass: drop unused CABAL_FEATURES="alex happy c2hs cpphs"
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 13 Sep 2016 21:21:29 +0000 (22:21 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 13 Sep 2016 21:26:38 +0000 (22:26 +0100)
commita2d669ef498c0372a1792d97a3084c82e3278e38
tree3a7e4f11c680537a851473f69836c983a662b150
parent1bfd2e7f1c50c42260d9fcaa891b2f393ed45f76
haskell-cabal.eclass: drop unused CABAL_FEATURES="alex happy c2hs cpphs"

While at it:
- dropped internal 'ghc-sanecabal()' helper
- factored out parallelism setup to new 'ghc-make-args()' function
- building initial Setup binary now also uses 'ghc-make-args()'
- dropped unused CABAL_MIN_VERSION global variable

Fixed bug in 'ghc-make-args()' to work on NOSMP ports of GHC:
We use 'qb0' to enable parallel GC. Parallel GC requires SMP
support and threaded runtime.

Reported by iota__ on arm/ghc-8 where there is support for
parallel make but not the SMP support:

    ,("Host platform","arm-unknown-linux")
    ,("Support SMP","NO")
    ,("Support parallel --make","YES")
    ,("RTS ways","l debug thr...

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/ghc-package.eclass
eclass/haskell-cabal.eclass