Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not add profile? flag for binary only pkgs

  • Loading branch information...
commit b2fd58d9edf551077936ed3a23911e2712c7649f 1 parent 0a5a285
@qnikst qnikst authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 Merge/Dependencies.hs
View
6 Merge/Dependencies.hs
@@ -105,7 +105,9 @@ resolveDependencies pkg mcompiler =
hasBuildableExes p = any (buildable . buildInfo) . executables $ p
treatAsLibrary = (not . hasBuildableExes) pkg || hasLibs pkg
- haskell_deps = haskellDependencies pkg
+ haskell_deps
+ | treatAsLibrary = add_profile $ haskellDependencies pkg
+ | otherwise = haskellDependencies pkg
cabal_dep = cabalDependency pkg compiler
ghc_dep = compilerIdToDependency compiler
extra_libs = findCLibs pkg
@@ -131,6 +133,7 @@ resolveDependencies pkg mcompiler =
dep_e = [ "${RDEPEND}" ],
rdep = extra_libs ++ pkg_config
}
+ add_profile = map (flip Portage.addDepUseFlag (Portage.mkQUse "profile"))
---------------------------------------------------------------
@@ -139,7 +142,6 @@ resolveDependencies pkg mcompiler =
haskellDependencies :: PackageDescription -> [Portage.Dependency]
haskellDependencies pkg =
- map (flip Portage.addDepUseFlag (Portage.mkQUse "profile")) $
Portage.simplify_deps
$ C2E.convertDependencies (Portage.Category "dev-haskell") (buildDepends pkg)
Please sign in to comment.
Something went wrong with that request. Please try again.