Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

profile and haddock only make sense for lib packages

  • Loading branch information...
commit c81b0559cd7dea4c0a14c477c95d5617fe9bd0ce 1 parent 7d56d4f
Duncan Coutts authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Cabal2Ebuild.hs
View
4 Cabal2Ebuild.hs
@@ -80,7 +80,7 @@ ebuildTemplate = EBuild {
keywords = ["~amd64","~x86"],
iuse = [],
depend = [],
- features = ["profile","haddock"],
+ features = [],
licenseComments = "",
cabalPath = Nothing,
my_pn = Nothing
@@ -100,7 +100,7 @@ cabal2ebuild pkg = ebuildTemplate {
: convertDependencies (Cabal.buildDepends pkg),
my_pn = if any isUpper cabalPkgName then Just cabalPkgName else Nothing,
features = (features ebuildTemplate)
- ++ maybe [] (const ["lib"]) (Cabal.library pkg)
+ ++ maybe [] (const ["profile","haddock", "lib"]) (Cabal.library pkg)
++ if null (Cabal.executables pkg) then [] else ["bin"]
} where
cabalPkgName = Cabal.pkgName (Cabal.package pkg)
Please sign in to comment.
Something went wrong with that request. Please try again.