Permalink
Browse files

Do not add profile? flag for binary only pkgs

  • Loading branch information...
1 parent 0a5a285 commit b2fd58d9edf551077936ed3a23911e2712c7649f @qnikst qnikst committed Feb 28, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 Merge/Dependencies.hs
View
@@ -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)

0 comments on commit b2fd58d

Please sign in to comment.