Permalink
Browse files

built tools filtering

filter buitd tools dependencies that are provided by ghc
  • Loading branch information...
1 parent 7e99c6e commit 598cc1342aaeb94a74e908686d503d79faa276a9 @qnikst qnikst committed Feb 21, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 Merge/Dependencies.hs
View
@@ -219,9 +219,10 @@ buildToolsDependencies (PackageDescription { library = lib, executables = exes }
, pkg <- return (lookup pn buildToolsTable)
]
where
- cabalDeps = depL ++ depE
+ cabalDeps = filter notProvided $ depL ++ depE
depL = maybe [] (buildTools.libBuildInfo) lib
depE = concatMap buildTools (filter buildable (map buildInfo exes))
+ notProvided (Cabal.Dependency (Cabal.PackageName pn) _range) = pn `notElem` buildToolsProvided
buildToolsTable :: [(String, Portage.Dependency)]
buildToolsTable =
@@ -233,6 +234,12 @@ buildToolsTable =
, ("gtk2hsC2hs", Portage.AnyVersionOf (Portage.mkPackageName "dev-haskell" "gtk2hs-buildtools"))
]
+-- tools that are provided by ghc or some other existing program
+-- so we do not need dependencies on them
+buildToolsProvided :: [String]
+buildToolsProvided = ["hsc2hs"]
+
+
---------------------------------------------------------------
-- pkg-config
---------------------------------------------------------------

0 comments on commit 598cc13

Please sign in to comment.