Skip to content

Commit

Permalink
Cabal2Ebuild: move 'test-suite' to the end of features
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information
Sergei Trofimovich committed Apr 19, 2012
1 parent 68ddc8f commit bacaeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal2Ebuild.hs
Expand Up @@ -59,10 +59,10 @@ cabal2ebuild pkg = Portage.ebuildTemplate {
E.my_pn = if any isUpper cabalPkgName then Just cabalPkgName else Nothing,
E.features = E.features E.ebuildTemplate
++ (if hasExe then ["bin"] else [])
++ (if hasTests then ["test-suite"] else [])
++ maybe [] (const (["lib","profile","haddock","hoogle"]
++ if cabalPkgName == "hscolour" then [] else ["hscolour"])
) (Cabal.library pkg) -- hscolour can't colour its own sources
++ (if hasTests then ["test-suite"] else [])
} where
cabalPkgName = display $ Cabal.pkgName (Cabal.package pkg)
hasExe = (not . null) (Cabal.executables pkg)
Expand Down

0 comments on commit bacaeb6

Please sign in to comment.